findprog-in: Improve errno upon failure on native Windows.
[gnulib.git] / ChangeLog
blob72eb5023933510430589dbbaf704df889e92ffa3
1 2020-12-24  Bruno Haible  <bruno@clisp.org>
3         findprog-in: Improve errno upon failure on native Windows.
4         * lib/findprog-in.c (find_in_given_path): If the file basename has no
5         dot and the search with a suffix returned no result, do also a search
6         without a suffix, and set errno = ENOEXEC if we find a file in this way.
7         * tests/test-spawn-pipe-script.c (main): Update expected errno.
9 2020-12-23  Bruno Haible  <bruno@clisp.org>
11         posix_spawn, posix_spawnp: Fix execution of scripts.
12         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
13         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
14         or posix_spawnp allows unsecure execution of scripts.
15         * doc/posix-functions/posix_spawn.texi: Document the script execution
16         problem.
17         * doc/posix-functions/posix_spawnp.texi: Likewise.
19 2020-12-23  Bruno Haible  <bruno@clisp.org>
21         Add unit tests regarding execution of scripts.
22         * tests/executable-script: New file.
23         * tests/executable-shell-script: New file.
24         * tests/test-posix_spawn-script.c: New file.
25         * tests/test-posix_spawnp-script.c: New file.
26         * tests/test-execute-script.c: New file.
27         * tests/test-spawn-pipe-script.c: New file.
28         * modules/posix_spawn-tests (Files): Add
29         tests/test-posix_spawn-script.c, tests/executable-script,
30         tests/executable-shell-script.
31         (Makefile.am): Compile and run test-posix_spawn-script.
32         * modules/posix_spawnp-tests (Files): Add
33         tests/test-posix_spawnp-script.c, tests/executable-script,
34         tests/executable-shell-script.
35         (Makefile.am): Compile and run test-posix_spawnp-script.
36         * modules/execute-tests (Files): Add tests/test-execute-script.c,
37         tests/executable-script, tests/executable-shell-script.
38         (Makefile.am): Compile and run test-execute-script.
39         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
40         tests/executable-script, tests/executable-shell-script.
41         (Makefile.am): Compile and run test-spawn-pipe-script.
43 2020-12-23  Bruno Haible  <bruno@clisp.org>
45         Don't execute scripts without '#!' marker through /bin/sh.
46         This reflects the change done in glibc through
47         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
48         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
49         * lib/spawni.c (internal_function): Remove macro.
50         (script_execute): Remove function.
51         (__spawni): Don't invoke script_execute.
52         * lib/execute.c (execute): Disable the ENOEXEC handling.
53         * lib/spawn-pipe.c (create_pipe): Likewise.
54         * NEWS: Mention the change.
56 2020-12-23  Bruno Haible  <bruno@clisp.org>
58         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
59         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
60         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
61         * lib/spawni.c (__spawni): Update function parameters.
63 2020-12-23  Bruno Haible  <bruno@clisp.org>
65         posix_spawn tests: Add two more tests.
66         * tests/test-posix_spawn-inherit0.c: New file, based on
67         tests/test-posix_spawn-open2.c.
68         * tests/test-posix_spawn-inherit1.c: New file, based on
69         tests/test-posix_spawn-open2.c.
70         * modules/posix_spawn-tests (Files): Add them.
71         (Depends-on): Add fflush.
72         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
73         test-posix_spawn-inherit1.
75 2020-12-23  Bruno Haible  <bruno@clisp.org>
77         posix_spawn tests: Add another test.
78         * tests/test-posix_spawn-open2.c: New file, based on
79         tests/test-posix_spawn-open1.c.
80         * modules/posix_spawn-tests (Files): Add it.
81         (Makefile.am): Compile and run test-posix_spawn-open1.
83 2020-12-20  Bruno Haible  <bruno@clisp.org>
85         Remove support for broken <wchar.h> in AIX 3.
86         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
88 2020-12-20  Bruno Haible  <bruno@clisp.org>
90         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
91         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
92         * lib/mbchar.h: Likewise.
93         * lib/mbiter.h: Likewise.
94         * lib/mbuiter.h: Likewise.
95         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
96         * lib/mbfile.h: Don't include <time.h>.
97         * lib/mbswidth.h: Update comment.
98         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
99         <wchar.h>.
100         * lib/wctype.in.h: Likewise.
101         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
102         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
103         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
104         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
105         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
106         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
107         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
108         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
109         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
110         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
111         AC_FUNC_MBRTOWC): Likewise.
112         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
113         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
114         Likewise.
115         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
116         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
117         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
118         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
119         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
120         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
121         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
122         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
123         Likewise.
124         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
125         gl_WCSRTOMBS_NULL): Likewise.
126         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
127         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
128         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
129         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
130         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
131         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
132         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
133         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
134         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
135         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
137 2020-12-20  Bruno Haible  <bruno@clisp.org>
139         isnanf: Fix autoconf test.
140         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
142 2020-12-20  Bruno Haible  <bruno@clisp.org>
144         Remove some of the support for obsolete IRIX 4 and 5.
145         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
146         libsun.
147         * tests/init.sh (setup_): Don't talk about IRIX 5.
149 2020-12-20  Bruno Haible  <bruno@clisp.org>
151         filemode: Remove Cray support.
152         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
153         (filemodestring): Don't produce an 'M' type.
154         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
155         * m4/st_dm_mode.m4: Remove file.
156         * modules/filemode (Files): Remove it.
158 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
160         free-posix: assume glibc 2.33 fixes this.
161         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
162         Use compile-time test rather than guessing for cross-builds.
164 2020-12-20  Bruno Haible  <bruno@clisp.org>
166         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
167         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
168         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
169         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
171 2020-12-20  Bruno Haible  <bruno@clisp.org>
173         float: Fix compilation error when gnulib's float.h exists twice.
174         Reported by Santiago Vila <sanvila@unex.es>.
175         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
177 2020-12-19  Bruno Haible  <bruno@clisp.org>
179         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
180         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
181         Don't trust _POSIX_VERSION for this test.
183 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
185         free-posix: port to GNU/Linux
186         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
187         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
188         other GNU/Linux hosts.
190 2020-12-19  Bruno Haible  <bruno@clisp.org>
192         free-posix: Add tests.
193         * tests/test-free.c: New file.
194         * tests/macros.h (ASSERT_NO_STDIO,
195         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
196         WRITE_TO_STDERR): New macros.
197         * modules/free-posix-tests: New file.
199 2020-12-18  Bruno Haible  <bruno@clisp.org>
201         free-posix: Add C++ declaration test.
202         * tests/test-stdlib-c++.cc (free): New declaration.
204 2020-12-18  Bruno Haible  <bruno@clisp.org>
206         free-posix: New module, renamed from 'free'.
207         * modules/free-posix: Renamed from modules/free.
208         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
209         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
210         not GNULIB_FREE.
211         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
212         GNULIB_FREE.
213         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
214         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
215         what it does.
216         * NEWS: Mention that module 'free' no longer exists.
217         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
218         * modules/canonicalize-lgpl (Depends-on): Likewise.
220 2020-12-18  Bruno Haible  <bruno@clisp.org>
222         free: Remove support for obsolete platforms.
223         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
224         CANNOT_FREE_NULL.
225         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
226         * modules/free (Description): Update.
227         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
229 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
231         intprops: port to ICC 2021.1 Beta 20201112
232         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
233         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
234         Add a clause for other compilers that claim to support
235         __builtin_mul_overflow_p, since we might as well find out about
236         slackers other than Clang and ICC.
237         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
238         like older GCCs even when it claims to be a newer one.
240 2020-12-18  Bruno Haible  <bruno@clisp.org>
242         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
243         Reported by Stefan Liebler <stli@linux.ibm.com> in
244         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
245         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
246         GCC 5.x and 6.x.
247         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
248         GCC 5.x and 6.x.
250 2020-12-17  Bruno Haible  <bruno@clisp.org>
252         free: Fix warning.
253         Reported by Pádraig Brady <P@draigBrady.com> in
254         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
255         * lib/stdlib.in.h (free): New declaration.
256         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
257         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
258         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
259         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
260         'free' as a macro here.
261         * modules/free (Depends-on): Add stdlib.
262         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
264 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
266         canonicalize-lgpl: fix AIX test failures
267         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
268         Problem reported by Bruno Haible in:
269         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
270         * lib/canonicalize-lgpl.c: Include sys/stat.h.
271         (__realpath): When testing a file name ending in '/', use stat
272         rather than readlink, so that it does the right thing on AIX.
273         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
275         canonicalize: omit second readlink when not needed
276         * lib/canonicalize.c (canonicalize_filename_mode_stk):
277         Omit second readlink when (can_exist != CAN_MISSING
278         && startlen != 0 && !logical).  Simplify.
280         canonicalize: remove arbitrary 8192-byte limit
281         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
282         like GNU Hurd that do not define the PATH_MAX macro, and similarly
283         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
284         using scratch buffers.  Lessen the number of differences between
285         the two source files, to simplify this and future maintenance.
286         * lib/canonicalize-lgpl.c (__realpath):
287         * lib/canonicalize.c (canonicalize_filename_mode_stk):
288         Use scratch buffers instead of malloc and malloca.  This avoids
289         the need for alloca, and avoids the need for malloc in most cases.
290         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
291         easier to compare, e.g., by sorting include files and by switching
292         to the GNU convention of calling file names "file names", not
293         "path names".  Include stdbool.h, scratch_buffer.h.
294         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
295         (malloca) [_LIBC]: Remove.
296         [!_LIBC]: Do not include malloca.h.
297         (get_path_max): New function, so that pathconf is called only in
298         the rare and dubious case when when RESOLVED is not null and
299         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
300         file name, as we care about the longest file name starting from
301         "/" (not from the input file name), and POSIX does not specify
302         what pathconf does on a non-directory file anyway.  If PATH_MAX is
303         not defined, do not worry about overriding a path_max of 0, and do
304         not let path_max exceed IDX_MAX.
305         (__realpath): Remove an assumption that file name components
306         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
307         the Hurd, presumably).
308         When allocating the result, allocate it to just the right size;
309         this costs nothing when the result is smaller than 1023 bytes,
310         and for larger results it's probably worth the CPU to call realloc,
311         as canonicalize.c already does.
312         * lib/canonicalize.c: Include attribute.h.
313         Do not include pathmax.h or xgetcwd.h.
314         (PATH_MAX): Do not define, so file names longer than 8192 bytes
315         work on platforms with no fixed limit.
316         (canonicalize_filename_mode_stk): New function, with
317         the content of the old canonicalize_filename_mode.
318         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
319         since the scratch buffers now do memory management for us.
320         Use rawmemchr instead of adding strlen.
321         Use mempcpy instead of mempcpy + size.
322         Assume free preserves errno.
323         (canonicalize_filename_mode): Use it.
324         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
325         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
326         scratch_buffer, stdbool, xalloc-die.
327         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
328         malloca, realloc-posix.  Add scratch_buffer, stdbool.
330         canonicalize-lgpl: simplify merge to glibc
331         This patch lessens the differences between git glibc
332         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
333         The (perhaps wishful) goal is to make them identical.
334         * lib/canonicalize-lgpl.c [!_LIBC]:
335         Include <libc-config.h>, not config.h.
336         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
337         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
338         Do not include alloca.h, since we use malloca now.
339         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
340         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
341         freea so that the mainline code can be kept #ifdef free.
342         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
343         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
344         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
345         __eloop_threshold.  All uses of their definiens changed.
346         (SIZE_MAX): Remove; no longer needed.
347         (alloc_failed): Remove, and remove all instances.
348         No need for alloc_failed now that free preserves errno.
349         (__realpath): Default path_max to 1024 instead of 8192, as that’s
350         the glibc tradition and is safer when the 2nd argument is null.
351         Use __rawmemchr instead of strchr.
352         Use __mempcpy where appropriate.
353         Simplify test for overflow so that it does not need SIZE_MAX.
354         Do not preserve errno around free or freea calls; no longer needed.
355         Mark __realpath with libc_hidden_def.
356         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
357         malloc-posix, mempcpy, realloc-posix, rawmemchr.
358         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
360         free: preserve errno
361         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
362         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
363         platforms that do not preserve errno.
364         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
365         Also, define CANNOT_FREE_NULL if free cannot free NULL.
366         * modules/free (configure.ac): Also replace 'free' if
367         it does not preserve errno.
369         idx: simplify IDX_MAX, remove IDX_WIDTH
370         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
371         to UNSIGNED_IDX_T.
372         (IDX_WIDTH): Remove, since it’s not used and its value
373         arguably should be PTRDIFF_WIDTH anyway.
375 2020-12-16  Bruno Haible  <bruno@clisp.org>
377         posix_spawn_file_actions_addfchdir-tests: Rename test.
378         * tests/test-posix_spawn-fchdir.c: Renamed from
379         tests/test-posix_spawn5.c.
380         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
381         Update.
383         posix_spawn_file_actions_addchdir-tests: Rename test.
384         * tests/test-posix_spawn-chdir.c: Renamed from
385         tests/test-posix_spawn4.c.
386         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
387         Update.
389         posix_spawn-tests: Rename test.
390         * tests/test-posix_spawn-open1.c: Renamed from
391         tests/test-posix_spawn3.c.
392         * modules/posix_spawn-tests (Files, Makefile.am): Update.
394         posix_spawnp-tests: Rename test.
395         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
396         tests/test-posix_spawn2.c.
397         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
398         tests/test-posix_spawn2.in.sh.
399         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
401         posix_spawnp-tests: Rename test.
402         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
403         tests/test-posix_spawn1.c.
404         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
405         tests/test-posix_spawn1.in.sh.
406         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
408 2020-12-14  Bruno Haible  <bruno@clisp.org>
410         findprog-in: Allow overriding the current directory.
411         * lib/findprog.h (find_in_given_path): Add directory argument.
412         * lib/findprog-in.c (find_in_given_path): Likewise.
413         * lib/execute.c (execute): Update caller.
414         * lib/spawn-pipe.c (create_pipe): Likewise.
415         * lib/windows-spawn.c (spawnpvech): Likewise.
416         * NEWS: Mention the change.
418 2020-12-14  Bruno Haible  <bruno@clisp.org>
420         posix_spawn-internal: Make better use of 'const'.
421         * lib/spawn_int.h (__spawni): Does not need write access to the elements
422         of argv and envp.
423         * lib/spawni.c (__spawni, script_execute): Likewise.
424         * lib/spawn.c (posix_spawn): Update caller.
425         * lib/spawnp.c (posix_spawnp): Likewise.
427 2020-12-14  Bruno Haible  <bruno@clisp.org>
429         spawn: Make it compile on native Windows.
430         * modules/spawn (Depends-on): Add signal-h.
432 2020-12-14  Bruno Haible  <bruno@clisp.org>
434         windows-spawn: Avoid shadowing a variable.
435         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
437 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
439         string: port memchr macro to AIX 7.2 XLC
440         Its <string.h> defines a memchr macro to help inlining.
441         * lib/string.in.h (memchr): #undef before #defining.
443         canonicalize: fix AIX test failures
444         Problem reported by Bruno Haible in:
445         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
446         * lib/canonicalize.c (canonicalize_filename_mode):
447         When testing a file name ending in '/', use stat rather than
448         readlink, so that it does the right thing on AIX.
449         * modules/canonicalize (Depends-on): Add readlink, to pull in the
450         recent changes in the Gnulib readlink module.
452         Assume readlink/readlinkat ERANGE fix
453         * lib/areadlink-with-size.c (areadlink_with_size):
454         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
455         * lib/careadlinkat.c (readlink_stk):
456         Do not worry about readlink or readlinkat failing with errno == ERANGE,
457         since the Gnulib readlink and readlinkat modules now fix that.
459         getcwd: port to AIX
460         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
461         in case our sys/stat.h #defined a function macro with the same name.
463         readlink, readlinkat: add ERANGE portability
464         Fix some portability issues with Gnulib's readlink and readlinkat,
465         notably mostly working around the ERANGE problem in AIX and HP-UX.
466         * doc/posix-functions/readlink.texi:
467         * doc/posix-functions/readlinkat.texi:
468         ERANGE problem is mostly fixed now.  Mention AIX problem with
469         trailing / and EINVAL.  Lessen differences between these two files.
470         * lib/readlink.c (rpl_readlink):
471         * lib/readlinkat.c (rpl_readlinkat):
472         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
473         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
474         Lessen spurious differences between the readlink and readlinkat code.
475         * lib/readlinkat.c (rpl_readlinkat):
476         Fix bug where stat was used where fstatat was intended.
477         * m4/readlink.m4 (gl_FUNC_READLINK):
478         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
479         to identify readlink problems more precisely.  All uses changed.
480         Guess no on AIX or HP-UX for this variable.
481         Add check for whether readlink truncates results,
482         and define new macro READLINK_TRUCATE_BUG accordingly.
483         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
484         Also check gl_cv_func_readlink_trailing_slash when deciding
485         whether to replace readlinkat.
486         * modules/readlinkat (Depends-on): Most dependencies are also
487         needed if replacing readlinkat.  fstatat is different, as it
488         is needed only if replacing an existing readlinkat.
490 2020-12-13  Bruno Haible  <bruno@clisp.org>
492         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
493         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
494         the stdin_handle and/or stdout_handle.
496 2020-12-12  Bruno Haible  <bruno@clisp.org>
498         Fix gnulib-tool error when some modules occur in tests/.
499         * doc/gnulib.texi (Specification): Update statistics.
500         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
501         (Using AC_LIBOBJ): New section.
502         * check-AC_LIBOBJ: New file.
503         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
504         * modules/fopen-gnu (Files): Add lib/fopen.c.
505         * modules/memmem (Files): Add lib/memmem.c.
506         * modules/renameat (Files): Add lib/at-func2.c.
507         * modules/strcasestr (Files): Add lib/strcasestr.c.
508         * modules/strstr (Files): Add lib/strstr.c.
510 2020-12-11  Bruno Haible  <bruno@clisp.org>
512         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
513         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
514         elements of argv.
515         * lib/sh-quote.c (shell_quote_argv): Likewise.
516         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
517         the return type.
518         * lib/windows-spawn.c (prepare_spawn): Likewise.
519         * lib/os2-spawn.h (prepare_spawn): Likewise.
520         * lib/os2-spawn.c (prepare_spawn): Likewise.
521         * lib/execute.h (execute): Does not need write access to the elements of
522         prog_argv.
523         * lib/execute.c (execute): Likewise.
524         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
525         Likewise.
526         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
527         create_pipe_out): Likewise.
528         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
529         Likewise.
530         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
531         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
532         * lib/javaexec.h (execute_fn): Does not need write access to the
533         elements of prog_argv.
534         * lib/javaexec.c (execute_java_class): Update variable types and remove
535         casts to 'char *'.
536         * lib/csharpexec.h (execute_fn): Does not need write access to the
537         elements of prog_argv.
538         * lib/csharpexec.c (execute_csharp_using_mono,
539         execute_csharp_using_sscli): Update variable types and remove casts to
540         'char *'.
541         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
542         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
543         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
544         is_jikes_present): Update variable types and remove casts to 'char *'.
545         * lib/javaversion.c (execute_and_read_line): Does not need write access
546         to the elements of prog_argv.
547         * lib/csharpcomp.c (compile_csharp_using_mono,
548         compile_csharp_using_sscli): Update variable types and remove casts to
549         'char *'.
550         * tests/test-sh-quote.c (main): Update variable types and remove casts
551         to 'char *'.
552         * tests/test-execute-main.c (main): Update variable types and remove
553         casts to 'char *'.
554         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
555         remove casts to 'char *'.
556         * NEWS: Mention the changes.
558 2020-12-11  Bruno Haible  <bruno@clisp.org>
560         execute-tests: Fix compilation error with MSVC.
561         * tests/test-execute-child.c (is_device): With _fstat, use
562         'struct _stat', not 'struct stat'.
564 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
566         vararrays: just use 2.70
567         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
568         and later, since Autoconf 2.70 matches Gnulib now.
570         sys_types: just use 2.70
571         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
572         Reindent to match Autoconf sources.
573         Use Autoconf 2.70 as a prerequisite, not 2.69c.
575         stdint: port to Autoconf 2.70
576         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
577         instead of assuming that AC_INCLUDES_DEFAULT does it.
578         The old code relied on AC_INCLUDES_DEFAULT being called
579         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
580         but this does not occur in Autoconf 2.70.
582         pid_t.m4: just use 2.70
583         * m4/pid_t.m4 (AC_TYPE_PID_T):
584         Use Autoconf 2.70 as a prerequisite, not 2.69c.
586         largefile: just use 2.70
587         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
588         Use Autoconf 2.70 as a prerequisite, not 2.69c.
590         AC_C_RESTRICT: update from Autoconf
591         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
592         as a prerequisite, not 2.69c, since 2.70 is now out.
593         (AC_C_RESTRICT): Define only for 2.70 or earlier.
594         Try __restrict__ before __restrict.
596         extensions: update from Autoconf
597         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
598         Provide a default implementation for Autoconf 2.69 or earlier.
599         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
600         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
602         alloca: update from Autoconf
603         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
604         Trivial update to match Autoconf 2.70.
606 2020-12-11  Bruno Haible  <bruno@clisp.org>
608         memchr: Work around memory overrun bug on AIX 7.2.
609         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
610         * doc/posix-functions/memchr.texi: Mention the AIX bug.
612 2020-12-11  Bruno Haible  <bruno@clisp.org>
614         execute-tests: Fix compilation error on AIX in 32-bit mode.
615         * tests/test-execute-child.c: In order to get the original definition of
616         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
617         include the system's <sys/stat.h> and use it before including other
618         header files.
620 2020-12-10  Bruno Haible  <bruno@clisp.org>
622         windows-spawn: Relicense under LGPLv2+.
623         * modules/windows-spawn (License): Change to LGPLv2+.
625 2020-12-10  Bruno Haible  <bruno@clisp.org>
627         execute, spawn-pipe: Fix memory leak on native Windows.
628         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
629         * lib/windows-spawn.c: Don't include xalloc.h.
630         (quoted_arg_length, quoted_arg_string): New functions, extracted from
631         prepare_spawn.
632         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
633         elements of *new_argv together.
634         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
635         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
636         * lib/os2-spawn.c: Don't include xalloc.h.
637         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
638         elements of *new_argv together.
639         * lib/execute.c: Include xalloc.h.
640         (execute): Check return value of prepare_spawn. Free the memory
641         allocated by prepare_spawn.
642         * modules/execute (Depends-on): Add xalloc-die.
643         * lib/spawn-pipe.c: Include xalloc.h.
644         (create_pipe): Check return value of prepare_spawn. Free the memory
645         allocated by prepare_spawn.
646         * modules/spawn-pipe (Depends-on): Add xalloc-die.
648 2020-12-10  Bruno Haible  <bruno@clisp.org>
650         findprog-in: Relicense under LGPLv2+.
651         Paul Smith's approval is in
652         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
653         * modules/findprog-in (License): Change to LGPLv2+.
655 2020-12-10  Bruno Haible  <bruno@clisp.org>
657         findprog-in: Don't exit upon out-of-memory.
658         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
659         code.
660         * lib/findprog-in.c: Don't include xalloc.h.
661         (find_in_given_path): Call concatenated_filename, not
662         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
663         return NULL with errno set.
664         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
665         concat-filename, strdup-posix, malloc-posix.
667 2020-12-09  Bruno Haible  <bruno@clisp.org>
669         fmaf: Work around a bug on FreeBSD 12.2/arm.
670         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
671         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
673 2020-12-09  Bruno Haible  <bruno@clisp.org>
675         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
676         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
677         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
678         * lib/glthread/threadlib.c: Include <errno.h>.
679         (glthread_in_use): For FreeBSD, provide an alternative implementation
680         that uses pthread_key_create.
682 2020-12-09  Bruno Haible  <bruno@clisp.org>
684         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
685         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
686         not 'isnan'.
688 2020-12-08  Bruno Haible  <bruno@clisp.org>
690         std-gnu11: Make compatible with Autoconf 2.70.
691         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
692         use.
694 2020-12-08  Bruno Haible  <bruno@clisp.org>
696         argp: Avoid undefined behaviour when invoking qsort().
697         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
698         Reported by Jeffrey Walton <noloader@gmail.com> in
699         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
700         * lib/argp-help.c (group_cmp): Remove third argument.
701         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
702         upon hol_cluster_cmp.
703         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
704         (hol_entry_cmp): Rewritten to implement a total order.
706 2020-12-08  Bruno Haible  <bruno@clisp.org>
708         argp: Improve comments.
709         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
710         null pointer.
711         (struct hol_entry): Fix comment regarding sort order of group.
712         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
713         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
714         (hol_cluster_is_child, argp_hol): Move functions.
715         (HOL_ENTRY_PTRCMP): Remove unused macro.
717 2020-12-08  Bruno Haible  <bruno@clisp.org>
719         argp: Don't pass invalid arguments to isspace() and isalnum().
720         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
721         before passing it to isspace() or isalnum().
723 2020-12-08  Bruno Haible  <bruno@clisp.org>
725         argp: Don't rely on undefined behaviour of _tolower().
726         Patch by Eric Blake
727         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
728         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
729         not upper-case.  Pass correct range to tolower.
731 2020-12-07  Bruno Haible  <bruno@clisp.org>
733         unicodeio: Fix wrong result on FreeBSD.
734         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
735         characters on all platforms.
737 2020-12-07  Bruno Haible  <bruno@clisp.org>
739         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
740         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
741         FreeBSD systems.
743 2020-12-07  Bruno Haible  <bruno@clisp.org>
745         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
746         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
747         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
748         trivially of sbrk is not available.
749         * doc/glibc-functions/sbrk.texi: Mention that the function does not
750         exist in FreeBSD 12.2/arm64.
751         * doc/glibc-functions/brk.texi: Likewise.
753 2020-12-07  Bruno Haible  <bruno@clisp.org>
755         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
756         Suggested by Zack Weinberg in
757         <https://savannah.gnu.org/support/?110294>.
758         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
759         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
761 2020-12-07  Bruno Haible  <bruno@clisp.org>
763         Tweak the Windows oldnames workaround.
764         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
765         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
766         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
767         always.
768         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
769         * lib/stdlib.in.h (putenv): Likewise.
771 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
773         doc: fix flat address space discussion
774         * doc/gnulib-readme.texi (Other portability assumptions):
775         Move the all-bits-zero assumption outside the flat address space
776         section, since the two issues are independent.
778         doc: document -static-libubsan more
779         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
780         -static-libubsan a bit more.  Mostly cons.
782 2020-12-06  Bruno Haible  <bruno@clisp.org>
784         doc: Add more details regarding the undefined behaviour sanitizer.
785         * doc/gnulib-readme.texi (High Quality): Describe
786         -fsanitize-undefined-trap-on-error better.
788 2020-12-06  Bruno Haible  <bruno@clisp.org>
790         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
791         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
792         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
793         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
794         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
795         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
796         a preprocessor #define.
797         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
798         * lib/search.in.h (lfind, lsearch): Likewise.
799         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
800         Likewise.
801         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
802         * lib/string.in.h (memccpy, strdup): Likewise.
803         * lib/sys_stat.in.h (chmod, umask): Likewise.
804         * lib/time.in.h (tzset): Likewise.
805         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
806         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
807         read, rmdir, swab, unlink, write): Likewise.
808         * lib/utime.in.h (utime): Likewise.
809         * lib/wchar.in.h (wcsdup): Likewise.
810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
811         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
812         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
814         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
815         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
816         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
817         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
819         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
820         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
821         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
822         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
823         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
825 2020-12-06  Bruno Haible  <bruno@clisp.org>
827         doc: Mention some missing function declarations.
828         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
829         AIX.
830         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
831         FreeBSD.
832         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
833         Cygwin.
834         * doc/pastposix-functions/fcvt.texi: Likewise.
835         * doc/pastposix-functions/gcvt.texi: Likewise.
837 2020-12-06  Bruno Haible  <bruno@clisp.org>
839         doc: Tweak example.
840         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
841         'print'.
843 2020-12-06  Bruno Haible  <bruno@clisp.org>
845         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
846         * tests/test-filenamecat.c: Include idx.h.
847         (main): Mark prefixlen as nonnegative.
848         * modules/filenamecat-tests (Depends-on): Add idx.
850 2020-12-06  Bruno Haible  <bruno@clisp.org>
852         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
853         * lib/time_rz.c: Include idx.h.
854         (save_abbr): Mark zone_size as nonnegative.
855         * modules/time_rz (Depends-on): Add idx.
857 2020-12-06  Bruno Haible  <bruno@clisp.org>
859         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
860         * lib/parse-datetime.y: Include idx.h.
861         (textint): Mark digits as nonnegative.
862         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
863         dsts_seen, times_seen, zones_seen as nonnegative.
864         (lookup_word): Mark wordlen as nonnegative.
865         (yylex): Mark count as nonnegative.
866         (parse_datetime2): Mark tzsize as nonnegative.
867         * modules/parse-datetime (Depends-on): Add idx.
869 2020-12-06  Bruno Haible  <bruno@clisp.org>
871         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
872         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
873         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
874         nonnegative.
875         * modules/fnmatch (Depends-on): Add idx.
877 2020-12-06  Bruno Haible  <bruno@clisp.org>
879         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
880         * lib/c-stack.c: Include idx.h.
881         (die): Mark buflen as nonnegative.
882         * modules/c-stack (Depends-on): Add idx.
884 2020-12-06  Bruno Haible  <bruno@clisp.org>
886         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
887         * lib/backupfile.c: Include idx.h.
888         (numbered_backup): Mark base_offset as nonnegative.
889         (backupfile_internal): Likewise.
890         * modules/backup-rename (Depends-on): Add idx.
891         * modules/backupfile (Depends-on): Likewise.
893 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
895         doc: fix curved quotes issue
896         * doc/gnulib.texi: Set txicodequoteundirected and
897         txicodequotebacktick so that ` and ' in examples do not generate
898         curved single quotes that do the wrong thing when cut and pasted.
900         doc: mention static and dynamic checking
901         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
902         for static and dynamic checking.
904         intprops: Add INT_ADD_OK etc.
905         * doc/intprops.texi (Checking Integer Overflow): New section.
906         * lib/intprops.h: From a suggestion by Bruno Haible in:
907         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
908         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
910         doc: move exotic platfroms to Target Platforms
911         * doc/gnulib-intro.texi (Supported Platforms)
912         (Formerly Supported Platforms, Unsupported Platforms):
913         New subsections, split off from Target Platforms.
914         (Unsupported Platforms): Move the exotic-platform stuff here ...
915         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
916         section.
918         doc: mention intptr_t etc. and IBM i
919         * doc/gnulib-readme.texi (Other portability assumptions):
920         Mention intptr_t and uintptr_t, and that arithmetic on them
921         works in the usual way.
922         (Exotic platforms): New section, containing material from
923         the old 'Integer Portability' section.  Also mention IBM i.
924         * doc/intprops.texi (Wraparound Arithmetic):
925         Say that the macros work on unsigned integers too.
926         (Integer Portability): Remove.
928 2020-12-04  Bruno Haible  <bruno@clisp.org>
930         utime: Fix a test failure on macOS 10.13.
931         Reported by Martin Storsjö <martin@martin.st> in
932         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
933         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
934         slashes on files.
935         * lib/utime.c (utime): Add alternative implementation for Unix
936         platforms.
937         * modules/utime (Depends-on): Add stat.
938         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
939         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
940         trailing-slash bug.
941         * doc/posix-functions/open.texi: Likewise.
942         * doc/posix-functions/stat.texi: Likewise.
943         * doc/posix-functions/symlink.texi: Likewise.
945 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
947         intprops: update doc and mention Unisys
948         * doc/gnulib-readme.texi (Other portability assumptions):
949         Also mention ptrdiff_t when talking about widths and overflow.
950         * doc/intprops.texi (Integer Properties): Summarize new section.
951         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
952         evaluates its argument.
953         (Integer Bounds): Fix typo.
954         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
955         Document that the _WRAPV macros now support pointers to unsigned
956         integers.
957         (Integer Range Overflow): Update SEI CERT citation.
958         (Integer Portability): New subsection, which mentions
959         the oddball Unisys platforms as non-Gnulib targets.
961 2020-12-03  Bruno Haible  <bruno@clisp.org>
963         idx: Clarify that idx_t always behaves like a signed type.
964         Suggested by Paul Eggert in
965         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
966         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
967         Don't test UNSIGNED_IDX_T.
969 2020-12-03  Bruno Haible  <bruno@clisp.org>
971         idx: New module.
972         * lib/idx.h: New file.
973         * modules/idx: New file.
974         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
975         ptrdiff_t.
976         * lib/canonicalize.c: Likewise.
977         * modules/canonicalize-lgpl (Depends-on): Add idx.
978         * modules/canonicalize (Depends-on): Likewise.
980 2020-12-03  Bruno Haible  <bruno@clisp.org>
982         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
983         Reported by Martin Storsjö <martin@martin.st> in
984         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
985         * tests/test-fprintf-posix3.c: Skip the test on macOS.
986         (main): Return a different exit code at each point. Allow 100 KB extra
987         memory consumption.
988         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
989         doesn't work" diagnostic.
991 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
993         canonicalize: refactor can_mode flag
994         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
995         (multiple_bits_set): ... this new static function.  Uses changed.
996         (canonicalize_filename_mode): Refactor for clarity to avoid
997         modifying the CAN_MODE argument.
999         canonicalize: prefer signed integer types
1000         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
1001         (seen_triple, canonicalize_filename_mode): Prefer signed to
1002         unsigned types where either will do, as they avoid some glitches
1003         in comparisons and can trap on overflow when debugging.
1005         canonicalize: fix most of another EOVERFLOW issue
1006         * lib/canonicalize.c (canonicalize_filename_mode):
1007         Do not call stat if fewer than 20 symlinks have been traversed.
1008         This avoids EOVERFLOW failure in the common case where there
1009         are not that many symlinks, while continuing to catch loops
1010         (or fail due to EOVERFLOW) in the unusual case when there
1011         are many symlinks to traverse.
1013         canonicalize: do not assume symlinks have st_ino
1014         * lib/canonicalize.c (canonicalize_filename_mode):
1015         When checking for loops, use st_dev and st_ino from the parent
1016         directory not from the symlink, as pre-2017 POSIX says these
1017         members are not reliable for symlinks.  Couple this with START
1018         (the remaining file name to be resolved), not NAME (the whole file
1019         name with START as its suffix).
1020         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
1022         canonicalize: fix EOVERFLOW bug
1023         * lib/canonicalize.c (canonicalize_filename_mode):
1024         When testing whether a directory entry is a symbolic link, or a
1025         directory or other, do not use lstat or stat or
1026         areadlink_with_size.  Just use areadlink, as this suffices and it
1027         avoids the EOVERFLOW problem that lstat and stat have.
1028         * modules/canonicalize (Depends-on): Depend on areadlink instead
1029         of areadlink-with-size and stat.
1031         canonicalize-lgpl: fix EOVERFLOW bug
1032         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
1033         (__realpath): Do not use lstat.  Just use readlink, as this
1034         suffices and it avoids the EOVERFLOW problem that lstat has.
1035         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
1037 2020-12-02  Bruno Haible  <bruno@clisp.org>
1039         strsignal-tests: Fix test failure on macOS 10.13.
1040         Reported by Martin Storsjö <martin@martin.st> in
1041         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1042         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
1043         to be longer than the expected result.
1045 2020-12-02  Bruno Haible  <bruno@clisp.org>
1047         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
1048         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
1049         recursive self-include problem on FreeBSD 12.2 in C++ mode.
1051 2020-12-02  Bruno Haible  <bruno@clisp.org>
1053         spawn-pipe: Allow caller to specify directory for the subprocess.
1054         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1055         Add directory argument.
1056         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
1057         (create_pipe): Add directory argument. If specified, resolve the program
1058         file name and make it absolute, first. Pass the directory to spawnpvech
1059         and posix_spawn_file_actions_addchdir.
1060         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
1061         argument.
1062         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
1063         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
1064         * tests/test-spawn-pipe-main.c (test_pipe): Update.
1065         * NEWS: Mention the change.
1066         * lib/csharpcomp.c (compile_csharp_using_mono,
1067         compile_csharp_using_sscli): Update.
1068         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
1069         is_gcj_43): Update.
1070         * lib/javaversion.c (execute_and_read_line): Update.
1071         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
1072         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
1074 2020-12-02  Bruno Haible  <bruno@clisp.org>
1076         execute: Allow caller to specify directory for the subprocess.
1077         * lib/execute.h (execute): Add directory argument.
1078         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
1079         (execute): Add directory argument. If specified, resolve the program
1080         file name and make it absolute, first. Pass the directory to spawnpvech
1081         and posix_spawn_file_actions_addchdir.
1082         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
1083         posix_spawn, posix_spawn_file_actions_addchdir.
1084         * tests/test-execute-main.c: Add test for passing a directory.
1085         * tests/test-execute-child.c: Likewise.
1086         * tests/test-execute.sh: Update.
1087         * modules/execute-tests (Depends-on): Add mkdir.
1088         * NEWS: Mention the change.
1089         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
1090         * lib/csharpexec.c (execute_csharp_using_mono,
1091         execute_csharp_using_sscli): Update.
1092         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1093         compile_using_javac, compile_using_jikes, is_javac_present,
1094         is_jikes_present): Update.
1095         * lib/javaexec.c (execute_java_class): Update.
1097 2020-12-01  Bruno Haible  <bruno@clisp.org>
1099         vma-iter: Add support for macOS11/arm64.
1100         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
1101         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
1102         and by Martin Storsjö <martin@martin.st> in
1103         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1104         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
1106 2020-12-01  Bruno Haible  <bruno@clisp.org>
1108         spawn-pipe: Fix handling of OS/2 kLIBC.
1109         Reported by KO Myung-Hun <komh78@gmail.com> in
1110         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
1111         * modules/spawn-pipe (configure.ac): Use the common idiom for
1112         recognizing the OS/2 operating system.
1114 2020-11-30  Bruno Haible  <bruno@clisp.org>
1116         execute: Fix uninitialized use of errno.
1117         * lib/execute.c (execute): Preserve errno across several system calls.
1119 2020-11-30  Bruno Haible  <bruno@clisp.org>
1121         access tests: Fix test failure on native Windows.
1122         * tests/test-access.c (main): Change permissions of f2 file before
1123         attempting to remove it.
1125 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
1127         faccessat: link with $(LIB_EACCESS)
1128         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
1129         module depends on euidaccess.
1131 2020-11-30  Bruno Haible  <bruno@clisp.org>
1133         execute, spawn-pipe: Make multithread-safe on native Windows.
1134         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
1135         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
1136         (spawnpvech): New declaration.
1137         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
1138         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
1139         (_): Remove macro.
1140         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
1141         undup_safer_noinherit): Remove functions.
1142         (spawnpvech): New function.
1143         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
1144         cloexec, dup2, error, gettext-h.
1145         * lib/execute.c: Include msvc-nothrow.h.
1146         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
1147         * lib/spawn-pipe.c: Include msvc-nothrow.h.
1148         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
1149         instead of _spawnvpe.
1150         * modules/execute (Depends-on): Add msvc-nothrow.
1151         * modules/spawn-pipe (Depends-on): Likewise.
1153 2020-11-30  Bruno Haible  <bruno@clisp.org>
1155         execute, spawn-pipe: Improve documentation.
1156         * lib/execute.h: Describe progname, prog_path, prog_argv.
1157         * lib/spawn-pipe.h: Likewise.
1159 2020-11-30  Bruno Haible  <bruno@clisp.org>
1161         execute tests: Add more tests.
1162         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
1163         inherited file descriptors >= 3.
1164         * tests/test-execute-child.c: Likewise.
1165         * tests/test-execute.sh: Update.
1167 2020-11-30  Bruno Haible  <bruno@clisp.org>
1169         havelib: Fix for non-ELF platforms (regression 2019-11-17).
1170         Reported by comex <comexk@gmail.com> in
1171         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
1172         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
1173         don't expect an ELF header.
1175 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1177         bitset: use integer_length in table implementation
1178         * lib/bitset/table.c (tbitset_list_reverse): Use
1179         BITSET_FOR_EACH_BIT_REVERSE.
1181 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1183         bitset: use integer_length in list implementation
1184         * lib/bitset/list.c (lbitset_list_reverse): Use
1185         BITSET_FOR_EACH_BIT_REVERSE.
1187 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1189         bitset: use integer_length in vector implementation
1190         * lib/bitset/array.c (vbitset_list_reverse): Use
1191         BITSET_FOR_EACH_BIT_REVERSE.
1193 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1195         bitset: use integer_length in array implementation
1196         * modules/bitset (Depends-on): Add integer_length_l.
1197         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
1198         * lib/bitset/array.c (abitset_list_reverse): Use it.
1200 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1202         bitset: style: use consistent names
1203         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
1204         and 'boffset' as 'bitoff', for consistency with the other
1205         implementations.
1206         * bitset/table.c (tbitset_list_reverse): Likewise.
1208 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1210         bitset: style: sort header
1211         * lib/bitset/base.h (bitset_ffs): Rename as...
1212         (bitset_ffs_): this.
1213         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
1215 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1217         bitset: tests: check BITSET_FOR_EACH_REVERSE
1218         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
1219         Check BITSET_FOR_EACH_REVERSE.
1221 2020-11-29  Bruno Haible  <bruno@clisp.org>
1223         spawn-pipe tests: Fix test failure with MSVC.
1224         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
1225         (gl_msvc_invalid_parameter_handler): New function.
1226         (main): Set a global invalid-parameter handler.
1227         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
1229 2020-11-29  Bruno Haible  <bruno@clisp.org>
1231         execute: Add tests.
1232         * tests/test-execute.sh: New file.
1233         * tests/test-execute-main.c: New file.
1234         * tests/test-execute-child.c: New file.
1235         * modules/execute-tests: New file.
1237 2020-11-29  Bruno Haible  <bruno@clisp.org>
1239         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
1240         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
1241         works.
1242         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
1243         fallback implementation as on Haiku.
1244         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
1245         effective.
1246         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
1248 2020-11-29  Bruno Haible  <bruno@clisp.org>
1250         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
1251         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
1252         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
1253         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
1254         * lib/windows-spawn.c: Remove modifications for kLIBC.
1255         * modules/spawn-pipe (Files): Add the new files.
1256         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
1258 2020-11-28  Bruno Haible  <bruno@clisp.org>
1260         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
1261         Reported by Paul Eggert in
1262         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
1263         * m4/sparcv8+.m4: New file.
1264         * modules/sparcv8+: New file.
1265         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
1267 2020-11-28  Bruno Haible  <bruno@clisp.org>
1269         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
1270         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
1272 2020-11-28  Bruno Haible  <bruno@clisp.org>
1274         windows-spawn: New module.
1275         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
1276         implementations.
1277         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
1278         * modules/windows-spawn: New file.
1279         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
1280         * lib/spawn-pipe.c: Likewise.
1281         * modules/execute (Files): Remove lib/w32spawn.h.
1282         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1283         xalloc.
1284         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1285         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
1286         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1287         xalloc.
1288         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1290 2020-11-27  Bruno Haible  <bruno@clisp.org>
1292         ssfmalloc tests: Port to macOS 11.
1293         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
1295 2020-11-26  Bruno Haible  <bruno@clisp.org>
1297         Fix dependencies of modules that use '_exit' on native Windows.
1298         Reported by Jim Meyering in
1299         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
1300         * modules/_Exit (Depends-on): Add unistd.
1301         * modules/closein (Depends-on): Likewise.
1302         * modules/closeout (Depends-on): Likewise.
1303         * modules/forkpty (Depends-on): Likewise.
1304         * modules/posix_spawn-internal (Depends-on): Likewise.
1305         * modules/savewd (Depends-on): Likewise.
1306         * modules/stat-time-tests (Depends-on): Likewise.
1308 2020-11-26  Bruno Haible  <bruno@clisp.org>
1310         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
1311         * modules/raise-tests (Depends-on): Add unistd.
1312         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
1314 2020-11-25  Jim Meyering  <meyering@fb.com>
1316         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
1317         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
1318         non-NULL, since we don't bother handing strdup failure.
1320         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
1321         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
1322         * tests/test-raise.c: Include unistd.h.
1323         (handler): Use _exit, not exit.
1325 2020-11-23  Bruno Haible  <bruno@clisp.org>
1327         Use the correct printf format attribute for mingw.
1328         Reported by Reuben Thomas <rrt@sc3d.org> in
1329         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
1331         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
1332         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
1334         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
1335         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
1336         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1337         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
1338         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
1339         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
1341         * modules/vasnprintf (Depends-on): Add stdio.
1342         * lib/vasnprintf.h: Include <stdio.h>.
1343         (asnprintf, vasnprintf): Use the standard printf format attribute.
1345         * modules/xvasprintf (Depends-on): Add stdio.
1346         * lib/xvasprintf.h: Include <stdio.h>.
1347         (xasprintf, xvasprintf): Use the standard printf format attribute.
1349         * modules/xprintf (Depends-on): List stdio first.
1350         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
1351         depends on GNULIB_VPRINTF_POSIX.
1352         (xfprintf, xvfprintf): Use a printf format attribute that depends on
1353         GNULIB_VFPRINTF_POSIX.
1355         * modules/c-vasnprintf (Depends-on): Add stdio.
1356         * lib/c-vasnprintf.h: Include <stdio.h>.
1357         (c_vasnprintf): Use the standard printf format attribute.
1359         * modules/c-vasprintf (Depends-on): Add stdio.
1360         * lib/c-vasprintf.h: Include <stdio.h>.
1361         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
1363         * modules/c-vsnprintf (Depends-on): Add stdio.
1364         * lib/c-vsnprintf.h: Include <stdio.h>.
1365         (c_vsnprintf): Use the standard printf format attribute.
1367         * modules/c-snprintf (Depends-on): Add stdio.
1368         * lib/c-snprintf.h: Include <stdio.h>.
1369         (c_snprintf): Use the standard printf format attribute.
1371         * modules/c-xvasprintf (Depends-on): Add stdio.
1372         * lib/c-xvasprintf.h: Include <stdio.h>.
1373         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
1375         * modules/error (Depends-on): Depend on stdio always.
1376         * lib/error.h: Include <stdio.h>.
1377         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
1378         (error, error_at_line): Use a printf format attribute that depends on
1379         GNULIB_VFPRINTF_POSIX.
1380         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1381         _GL_ATTRIBUTE_FORMAT_PRINTF.
1383         * modules/verror (Depends-on): Add stdio.
1384         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
1385         (verror, verror_at_line): Use the standard printf format attribute.
1386         * lib/verror.c: Include "error.h".
1388         * modules/argp (Depends-on): Add stdio.
1389         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
1390         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
1392         * modules/libtextstyle-optional (Depends-on): Add stdio.
1393         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
1394         printf format attribute.
1396         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
1397         format attribute.
1399 2020-11-23  Pádraig Brady  <P@draigBrady.com>
1401         selinux-at, selinux-h: use const correct declarations
1402         * lib/se-selinux.in.h: Use const for "set" functions,
1403         to match current selinux, and support cleaner user code.
1404         * lib/selinux-at.c: Likewise.
1405         * lib/selinux-at.h: Likewise.
1407 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1409         canonicalize-lgpl: fix memory leak
1410         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
1411         which could have occurred if BUF was so large that malloc was
1412         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
1413         this eliminates the need to free BUF separately.
1415 2020-11-22  Bruno Haible  <bruno@clisp.org>
1417         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
1418         * modules/xvasprintf (Depends-on): Add xalloc.
1419         * modules/pipe-filter-gi (Depends-on): Likewise.
1420         * modules/execute (Depends-on): Likewise, for w32spawn.h.
1421         * modules/spawn-pipe (Depends-on): Likewise.
1423 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
1425         bootstrap: add option hooks
1426         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
1427         (bootstrap_option_hook): Likewise.
1428         (usage): Call bootstrap_print_option_usage_hook.
1430 2020-11-22  Bruno Haible  <bruno@clisp.org>
1432         argp: Don't break getprogname on non-glibc systems.
1433         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
1434         program_invocation_name and program_invocation_short_name.
1436 2020-11-22  Bruno Haible  <bruno@clisp.org>
1438         doc: Document <link.h>.
1439         * doc/glibc-headers/link.texi: New file.
1440         * doc/gnulib.texi: Include it.
1442 2020-11-22  Bruno Haible  <bruno@clisp.org>
1444         doc: Add references to the LSB.
1445         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
1446         * doc/posix-functions/*.texi: Likewise.
1448 2020-11-22  Bruno Haible  <bruno@clisp.org>
1450         doc: Fix a makeinfo warning (regression 2020-11-03).
1451         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
1453 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1455         parse-datetime: fix printf format typo
1456         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
1457         previous patch to this file.  Problem reported by Chris Elvidge in
1458         <https://bugs.gnu.org/44763#32>.
1460         setlocale-null-tests: work around GCC bug 44511
1461         * tests/test-setlocale_null-mt-all.c:
1462         * tests/test-setlocale_null-mt-one.c:
1463         Ignore -Wreturn-type, to work around GCC bug 44511.
1465         nl_langinfo-tests: work around GCC bug 44511
1466         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
1467         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
1468         Problem reported for GNU grep by Andreas Schwab
1469         <https://bugs.gnu.org/44535>.
1471         selinux-h: add stubs for selabel_open etc.
1472         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
1473         because matchpathcon is deprecated in favor of selabel_open etc.,
1474         so this patch adds stubs for these functions.
1475         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
1476         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
1477         as it is needed for selabel_open and selinux/selinux.h declares
1478         this type here.
1479         * modules/selinux-h (Files): Add the new files.
1480         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
1481         (lib_SOURCES): Add se-label.in.h, se-label.c.
1482         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
1483         (selinux/label.h): New rule, mimicking selinux/context.h.
1484         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
1485         (Include): Add selinux/label.h.
1487 2020-11-21  Bruno Haible  <bruno@clisp.org>
1489         Update after 'test-driver' in Automake changed.
1490         * build-aux/test-driver.diff: Rebase.
1492 2020-11-21  Daiki Ueno  <ueno@gnu.org>
1494         read-file: remove dead assignment
1495         * lib/read-file.c (fread_file): Remove dead assignment when
1496         RF_SENSITIVE is set, flagged by clang-analyzer.
1498 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1500         bitset: tests: exercise the stats too
1502         * tests/test-bitset.c: Display the stats at the end of the test.
1503         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
1504         last bin, display "256-..." rather that "256-511", since the last bin
1505         does count item greater than or equal to 256.
1507 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1509         bitset: tests: try harder to break it
1510         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
1511         BITSET_LIST_SIZE.
1512         (main): Likewise.
1513         While at it, also exercise super small bitsets.
1515 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1517         bitset: use ffs where possible in the vector implementation
1518         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
1520 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1522         bitset: use ffs where possible in the table implementation
1523         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
1525 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1527         bitset: check empty and full bitsets
1528         * tests/test-bitset.c (check_zero, check_ones): New.
1529         (check_attributes): Use them.
1531 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1533         bitset: be sure to always return a value
1534         * lib/bitset/array.c (abitset_small_list): Always update *next and
1535         return a value.
1537 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1539         vcs-to-changelog: Expect spaces in file names
1540         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
1541         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
1542         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
1543         tabs to spaces.
1544         (list_changes): Use tabs to identify file names.
1546 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1548         bitset: strengthen tests
1549         * tests/test-bitset.c (compare): Also check count.
1550         Deal only with random values, move the one-bit tests to...
1551         (check_one_bit): this new function.
1552         (check_attributes): Call it.
1554 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1556         bitset: fix iteration over table bitsets
1557         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
1559 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1561         bitset: rename internal details for consistency
1562         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
1564 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1566         bitset: test: run deterministic tests on several bitset sizes
1567         * tests/test-bitset.c (check_attributes): Run it with small and large
1568         sizes.
1570 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1572         bitset: use ffs where possible in the list implementation
1573         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
1575 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1577         bitset: use ffs where possible in array implementation
1578         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
1580 2020-11-17  Bruno Haible  <bruno@clisp.org>
1582         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
1583         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1584         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1585         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
1586         C++ mode.
1588 2020-11-17  Bruno Haible  <bruno@clisp.org>
1590         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
1591         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
1592         is always declared.
1593         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
1594         declared.
1596 2020-11-17  Bruno Haible  <bruno@clisp.org>
1598         Fix link errors on AIX.
1599         * modules/clean-temp (Link): Link with $(LIBTHREAD).
1600         * modules/getumask (Link): Link with $(LIBTHREAD).
1601         * modules/getumask-tests (Makefile.am): Link test-getumask with
1602         $(LIBTHREAD).
1603         * modules/supersede (Link): Link with $(LIBTHREAD).
1604         * modules/supersede-tests (Makefile.am): Link test-supersede with
1605         $(LIBTHREAD).
1606         * modules/fatal-signal (Link): New section.
1607         * modules/execute (Link): New section.
1608         * modules/csharpexec (Link): Link with $(LIBTHREAD).
1609         * modules/javaexec (Link): Link with $(LIBTHREAD).
1610         * modules/spawn-pipe (Link): New section.
1611         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
1612         $(LIBTHREAD).
1613         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
1614         * modules/javacomp (Link): Link with $(LIBTHREAD).
1615         * modules/javaversion (Link): Link with $(LIBTHREAD).
1616         * modules/pipe-filter-gi (Link): New section.
1617         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
1618         test-pipe-filter-gi2-main with $(LIBTHREAD).
1619         * modules/pipe-filter-ii (Link): New section.
1620         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
1621         test-pipe-filter-ii2-main with $(LIBTHREAD).
1622         * modules/term-style-control (Link): New section.
1623         * modules/term-style-control-tests (Makefile.am): Link
1624         test-term-style-control-hello, test-term-style-control-yes with
1625         $(LIBTHREAD).
1626         * modules/wait-process (Link): New section.
1627         * modules/nonblocking-pipe-tests (Makefile.am): Link
1628         test-nonblocking-pipe-main with $(LIBTHREAD).
1629         * modules/nonblocking-socket-tests (Makefile.am): Link
1630         test-nonblocking-socket-main with $(LIBTHREAD).
1632 2020-11-16  Bruno Haible  <bruno@clisp.org>
1634         Fix link errors on platforms with libunistring.
1635         * modules/c32isalnum (Link): New section.
1636         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
1637         $(LIBUNISTRING).
1638         * modules/c32isalpha (Link): New section.
1639         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
1640         $(LIBUNISTRING).
1641         * modules/c32isblank (Link): New section.
1642         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
1643         $(LIBUNISTRING).
1644         * modules/c32iscntrl (Link): New section.
1645         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
1646         $(LIBUNISTRING).
1647         * modules/c32isdigit (Link): New section.
1648         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
1649         $(LIBUNISTRING).
1650         * modules/c32isgraph (Link): New section.
1651         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
1652         $(LIBUNISTRING).
1653         * modules/c32islower (Link): New section.
1654         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
1655         $(LIBUNISTRING).
1656         * modules/c32isprint (Link): New section.
1657         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
1658         $(LIBUNISTRING).
1659         * modules/c32ispunct (Link): New section.
1660         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
1661         $(LIBUNISTRING).
1662         * modules/c32isspace (Link): New section.
1663         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
1664         $(LIBUNISTRING).
1665         * modules/c32isupper (Link): New section.
1666         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
1667         $(LIBUNISTRING).
1668         * modules/c32isxdigit (Link): New section.
1669         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
1670         $(LIBUNISTRING).
1671         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
1672         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1673         $(LIBUNISTRING).
1675 2020-11-16  Bruno Haible  <bruno@clisp.org>
1677         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
1678         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1679         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1680         * modules/getumask-tests (Makefile.am): Link test-getumask with
1681         $(LIBINTL).
1682         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
1683         * modules/supersede-tests (Makefile.am): Link test-supersede with
1684         $(LIBINTL).
1685         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1686         $(LIBINTL).
1688 2020-11-16  Bruno Haible  <bruno@clisp.org>
1690         getumask: Document link dependencies.
1691         * modules/getumask (Link): New section.
1693 2020-11-16  Bruno Haible  <bruno@clisp.org>
1695         Update link dependencies in modules after 2020-09-09 change.
1696         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
1697         * modules/mkdtemp (Link): Likewise.
1698         * modules/mkostemp (Link): Likewise.
1699         * modules/mkostemps (Link): Likewise.
1700         * modules/mkstemp (Link): Likewise.
1701         * modules/mkstemps (Link): Likewise.
1702         * modules/supersede (Link): Likewise.
1703         * modules/tmpfile (Link): Likewise.
1704         * modules/tmpfile-safer (Link): Likewise.
1706 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1708         getumask-tests: port to Solaris 10 etc.
1709         Problem reported by Tom Christensen in:
1710         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
1711         * modules/getumask-tests (test_getumask_LDADD):
1712         Add $(LIB_CLOCK_GETTIME).
1714 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1716         bitset: use ffsl to accelerate iterations over set bits
1717         Suggested by Bruno Haible.
1718         * modules/bitset: Depend upon ffsl.
1719         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
1720         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
1722 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1724         bitset: more tests
1725         * tests/test-bitset.c (compare): Make it clear that the random values
1726         should not be modified.
1727         Check bitset_first, bitset_last and BITSET_FOR_EACH.
1729 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1731         bitset: fix the copy from lbitset to other types
1732         * lib/bitset/list.c (lbitset_copy): Rename as...
1733         (lbitset_copy_): this.
1734         (lbitset_copy): New.
1735         Dispatch to heterogeneous/homogeneous copy.
1737 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1739         bitset: making debug traces more useful
1740         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
1742         bitset: comment changes
1743         * lib/bitset.c: Move some documenting comments to...
1744         * lib/bitset.h: here.
1745         * lib/bitset/array.c: Fix some comments.
1747 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1749         careadlinkat: warn better about GCC bug 93644
1750         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
1751         not in effect, use "#warning" to let builders know more clearly
1752         about GCC bug 93644, because the bug triggers even if no -W option
1753         is given to GCC.
1755 2020-11-13  Jim Meyering  <meyering@fb.com>
1757         hard-locale-tests: avoid a -Wstrict-prototypes warning
1758         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
1759         changing "main ()" to "main (void)". This was the only case that
1760         triggered a warning when building grep with --enable-gcc-warnings.
1762 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1764         time_rz: simplify CVE-2017-7476 fix
1765         * lib/time_rz.c: Do not include limits.h; I think it was included
1766         under the mistaken impression that limits.h defines SIZE_MAX.
1767         (SIZE_MAX): Remove.
1768         (save_abbr): Put string length into a ptrdiff_t variable,
1769         so that the size comparison works naturally.  This
1770         fixes CVE-2017-7476 in a cleaner way.
1772         parse-datetime: streamline overflow checking
1773         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
1774         did not work for unsigned destinations, and since time_t might
1775         be unsigned that meant it did not work for time_t destinations.
1776         This limitation of INT_ADD_WRAPV has been fixed, so we can
1777         now streamline parse-datetime.y a bit.
1778         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
1779         has not been used for a while.
1780         (yylex, parse_datetime2): Assume C99 declarations after statements.
1781         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
1782         to TYPE_MINIMUM.
1783         (parse_datetime2): No need for time_overflow now that
1784         INT_ADD_WRAPV works for unsigned results.
1786         parse-datetime-tests: port to Alpine Linux 3.12.1
1787         * tests/test-parse-datetime.c: Include errno.h for errno,
1788         and unistd.h for _SC_TZNAME_MAX and sysconf.
1789         (main): In the outlandishly-long time zone abbreviation test,
1790         do not exceed TZNAME_MAX as this has undefined behavior,
1791         and on Alpine Linux 3.12.1 it makes the test fail.
1793 2020-11-09  Pádraig Brady  <P@draigBrady.com>
1795         mgetgroups: avoid warning with clang
1796         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
1797         so disable -Wpointer-sign for all clang versions.
1799 2020-11-07  Bruno Haible  <bruno@clisp.org>
1801         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
1802         Reported by Simon Josefsson in
1803         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
1804         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
1805         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
1806         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
1808 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1810         tests: pacify Sun C 5.9
1811         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
1812         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
1813         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
1814         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
1815         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
1816         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
1817         Remove unreachable ‘return NULL;’s.
1819         tests: port better to XLC 12.01
1820         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
1821         even in code that is not executed, as IBM XLC 12.01 complains "The
1822         subscript -1 is less than zero."
1823         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
1824         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
1825         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
1826         arguments than are required by the macro definition."
1828 2020-11-03  Bruno Haible  <bruno@clisp.org>
1830         aligned-malloc: Use fixes from the new modules.
1831         * modules/aligned-malloc (Depends-on): Add posix_memalign,
1832         aligned_alloc, memalign.
1833         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
1835 2020-11-03  Bruno Haible  <bruno@clisp.org>
1837         aligned_alloc: Add tests.
1838         * tests/test-aligned_alloc.c: New file.
1839         * modules/aligned_alloc-tests: New file.
1841         aligned_alloc: New module.
1842         * lib/stdlib.in.h (aligned_alloc): New declaration.
1843         * lib/aligned_alloc.c: New file.
1844         * m4/aligned_alloc.m4: New file.
1845         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
1846         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
1847         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1848         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
1849         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1850         * modules/aligned_alloc: New file.
1851         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
1852         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
1853         AIX bug.
1855 2020-11-03  Bruno Haible  <bruno@clisp.org>
1857         posix_memalign: Add tests.
1858         * tests/test-posix_memalign.c: New file.
1859         * modules/posix_memalign-tests: New file.
1861         posix_memalign: New module.
1862         * lib/stdlib.in.h (posix_memalign): New declaration.
1863         * lib/posix_memalign.c: New file.
1864         * m4/posix_memalign.m4: New file.
1865         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
1866         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
1867         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1868         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
1869         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1870         * modules/posix_memalign: New file.
1871         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
1872         * doc/posix-functions/posix_memalign.texi: Mention the new module and
1873         the OpenBSD bug.
1875 2020-11-03  Bruno Haible  <bruno@clisp.org>
1877         memalign: Add tests.
1878         * tests/test-memalign.c: New file.
1879         * modules/memalign-tests: New file.
1881         memalign: New module.
1882         * modules/memalign: New file.
1883         * doc/glibc-functions/memalign.texi: Mention the new module.
1885 2020-11-03  Bruno Haible  <bruno@clisp.org>
1887         verify tests: Fix crash with GCC (regression 2020-11-02).
1888         * tests/test-verify.c (main): Fix initializer of s.
1890 2020-11-03  Pádraig Brady  <P@draigBrady.com>
1892         mountlist: recognize more file system types as remote
1894         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
1895         "remote" file systems from stat.c in coreutils.
1897 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
1899         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
1900         * tests/test-verify.c (main): Initialize state variable.
1901         Reported by Bruno Haible for GCC 5.4.0.
1903 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1905         dfa.h: support inclusion from C++
1906         * lib/dfa.h: Allow multiple inclusion, and inclusion from
1907         C++ code.  The latter was suggested by Arnold Robbins.
1909 2020-11-01  Bruno Haible  <bruno@clisp.org>
1911         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
1912         * tests/test-ssfmalloc.c: Include <limits.h>.
1913         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
1915 2020-11-01  Bruno Haible  <bruno@clisp.org>
1917         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
1918         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
1920 2020-11-01  Jim Meyering  <meyering@fb.com>
1922         dfa-tests: test for today's invalid-merge fix
1923         * tests/test-dfa-invalid-merge.sh: New file.
1924         * modules/dfa-tests (Files): Add it.
1925         (TESTS): Add it.
1927 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1929         dfa: retain sequences of similar nodes in optimization
1930         DFA was merging similar nodes when it should not.  For example,
1931         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
1932         is not merged.  Problem reported by Gonzalo Padrino in
1933         https://bugs.gnu.org/44351
1934         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
1935         optimization.
1937 2020-11-01  Jim Meyering  <meyering@fb.com>
1939         test-dfa-match-aux.c: accept EREs, not BREs
1940         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
1941         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
1943 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
1945         verify tests: avoid -Wmissing-declarations warnings
1946         * tests/test-verify.c (test_assume_expressions): Add declaration.
1947         (test_assume_optimization): Likewise.
1948         (test_assume_noreturn): Likewise.
1949         (main): Move down after all other definitions.  While at it, also
1950         call test_assume_expressions and test_assume_optimization as a
1951         runtime check.
1953 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1955         sys_stat: update comments for S_IRWXUGO, S_IXUGO
1956         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
1957         Perhaps these macros should be removed, as they’re not in either
1958         POSIX or GNU.  They could be moved to stat-macros.h, which would
1959         be cleaner in some sense.
1961 2020-10-25  Bruno Haible  <bruno@clisp.org>
1963         ssfmalloc tests: Small tweaks.
1964         * tests/test-ssfmalloc.c: Add comments.
1965         (alloc_pages): Don't require PROT_EXEC bits.
1966         (block_sizes): Add more small sizes, for better coverage of
1967         ssfmalloc-bitmap.h.
1969         ssfmalloc tests: Portability to Minix.
1970         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
1971         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
1972         * m4/mmap-anon.m4: Update comment.
1974         ssfmalloc: Portability to AIX.
1975         * modules/ssfmalloc (Include): Add ssfmalloc.h.
1976         (Link): New section.
1977         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
1978         $(LIBTHREAD).
1980         ssfmalloc: Portability to Cygwin.
1981         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
1982         (pg_offset_t): Define depending on PAGESIZE_MAX.
1983         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
1984         (PAGESIZE_MAX): New macro.
1986         ssfmalloc: Fix buffer overrun in bitmap search.
1987         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
1988         word *words_end.
1990 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1992         doc: mention ‘restrict’ and C++
1993         * doc/gnulib-readme.texi (C99 features assumed): Document
1994         that ‘restrict’ should be avoided in C++ code.
1996 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1998         selinux-at, selinux-h: port to SELinux 3.1
1999         The new release finally deprecated the typedef 'security_context_t',
2000         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
2001         Use the simpler 'char *' instead.
2002         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
2003         (lgetfilecon): Likewise.
2004         (fgetfilecon): Likewise.
2005         (map_to_failure): Likewise.
2006         (rpl_getfilecon): Likewise.
2007         (rpl_lgetfilecon): Likewise.
2008         (rpl_fgetfilecon): Likewise.
2009         * lib/se-selinux.in.h (security_context_t): Remove typedef.
2010         (getcon): Adjust type of context parameter.
2011         (freecon): Likewise.
2012         (getfscreatecon): Likewise.
2013         (setfscreatecon): Likewise.
2014         (matchpathcon): Likewise.
2015         (getfilecon): Likewise.
2016         (lgetfilecon): Likewise.
2017         (fgetfilecon): Likewise.
2018         (setfilecon): Likewise.
2019         (lsetfilecon): Likewise.
2020         (fsetfilecon): Likewise.
2021         (security_check_context): Likewise.
2022         (security_check_context_raw): Likewise.
2023         (setexeccon): Likewise.
2024         (security_compute_create): Likewise.
2025         * lib/selinux-at.c (getfileconat): Likewise.
2026         (lgetfileconat): Likewise.
2027         (setfileconat): Likewise.
2028         (lsetfileconat): Likewise.
2029         * lib/selinux-at.h: Likewise.
2031 2020-10-19  Bruno Haible  <bruno@clisp.org>
2033         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
2034         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
2035         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
2036         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
2037         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
2038         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
2039         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
2041 2020-10-18  Bruno Haible  <bruno@clisp.org>
2043         ssfmalloc: Add tests.
2044         * tests/test-ssfmalloc.c: New file.
2045         * modules/ssfmalloc-tests: New file.
2047         ssfmalloc: New module.
2048         * lib/ssfmalloc.h: New file.
2049         * lib/ssfmalloc-bitmap.h: New file.
2050         * modules/ssfmalloc: New file.
2052 2020-10-18  Bruno Haible  <bruno@clisp.org>
2054         wchar: Fix configure test result on some versions of AIX.
2055         Reported by Clément Chigot <clement.chigot@atos.net> in
2056         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
2057         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
2058         systems.
2060 2020-10-18  Bruno Haible  <bruno@clisp.org>
2062         time: Fix warning about asctime when asctime is not used.
2063         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
2064         invocation.
2066 2020-10-18  Bruno Haible  <bruno@clisp.org>
2068         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
2069         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
2070         '_GL_ATTRIBUTE_CONST'.
2071         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
2072         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
2073         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2074         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
2075         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
2076         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
2077         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
2079 2020-10-18  Bruno Haible  <bruno@clisp.org>
2081         obstack: Fix a clang warning.
2082         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
2084 2020-10-16  Bruno Haible  <bruno@clisp.org>
2086         hash: Rename hash_delete to hash_remove.
2087         * lib/hash.h (hash_remove): Renamed from hash_delete.
2088         (hash_delete): New declaration.
2089         * lib/hash.c (hash_remove): Renamed from hash_delete.
2090         (hash_delete): New function.
2091         * tests/test-hash.c (main): Update.
2092         * lib/fts-cycle.c (leave_dir): Likewise.
2093         * NEWS: Mention the change.
2095 2020-10-16  Bruno Haible  <bruno@clisp.org>
2097         hash, xhash: Make usable from C++.
2098         * lib/hash.h: Add extern "C".
2100 2020-10-16  Bruno Haible  <bruno@clisp.org>
2102         hash, xhash: Move comments to the .h file.
2103         * lib/hash.c: Move comments meant for the user from here...
2104         * lib/xhash.c: ... and here...
2105         * lib/hash.h: ... to here.
2107 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
2109         Don't declare an intention to modify the return value of strerror.
2110         * tests/test-perror2.c (main): Assign the return value of strerror to a
2111         'const char *' variable.
2113 2020-10-11  Bruno Haible  <bruno@clisp.org>
2115         *printf: Avoid "expanded before it was required" warning.
2116         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
2117         AC_DEFUN_ONCE.
2119 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
2121         getprogname: Add support for OpenServer 6 and UnixWare 7.
2122         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
2123         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
2125 2020-10-11  Bruno Haible  <bruno@clisp.org>
2127         tests: Avoid a name clash on UnixWare.
2128         Reported by Tim Rice <tim@multitalents.net> in
2129         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
2130         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
2132 2020-10-11  Bruno Haible  <bruno@clisp.org>
2134         stdioext: Update comments regarding UnixWare.
2135         Reported by Tim Rice <tim@multitalents.net> in
2136         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2137         * lib/fbufmode.c: Update comments.
2138         * lib/fflush.c: Likewise.
2139         * lib/fpending.c: Likewise.
2140         * lib/fpurge.c: Likewise.
2141         * lib/freadable.h: Likewise.
2142         * lib/freadable.c: Likewise.
2143         * lib/freadahead.c: Likewise.
2144         * lib/freading.h: Likewise.
2145         * lib/freading.c: Likewise.
2146         * lib/freadptr.c: Likewise.
2147         * lib/freadseek.c: Likewise.
2148         * lib/fseeko.c: Likewise.
2149         * lib/fseterr.c: Likewise.
2150         * lib/fwritable.h: Likewise.
2151         * lib/fwritable.c: Likewise.
2152         * lib/fwriting.h: Likewise.
2153         * lib/fwriting.c: Likewise.
2155 2020-10-11  Bruno Haible  <bruno@clisp.org>
2157         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
2158         Reported by Tim Rice <tim@multitalents.net> in
2159         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2160         Uses the info from
2161         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
2162         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
2164 2020-10-11  Bruno Haible  <bruno@clisp.org>
2166         stdioext: Avoid compilation errors on UnixWare 7.
2167         Reported by Tim Rice <tim@multitalents.net> in
2168         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
2169         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
2170         * lib/fpurge.c: Likewise.
2171         * lib/freadable.h: Likewise.
2172         * lib/freading.h: Likewise.
2173         * lib/fwritable.h: Likewise.
2174         * lib/fwriting.h: Likewise.
2175         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
2176         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2177         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
2178         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
2179         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
2180         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
2182 2020-10-11  Bruno Haible  <bruno@clisp.org>
2184         stdioext: Update comments regarding Cygwin.
2185         * lib/fpending.c: Update comments.
2186         * lib/fpurge.c: Likewise.
2187         * lib/freadable.h: Likewise.
2188         * lib/freadable.c: Likewise.
2189         * lib/freading.h: Likewise.
2190         * lib/freading.c: Likewise.
2191         * lib/fwritable.h: Likewise.
2192         * lib/fwritable.c: Likewise.
2193         * lib/fwriting.h: Likewise.
2194         * lib/fwriting.c: Likewise.
2196 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
2198         Fix "warning: implicit declaration of function 'pthread_sigmask'".
2199         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
2200         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
2202 2020-10-10  Bruno Haible  <bruno@clisp.org>
2204         *-list, *-oset, *-omap: Avoid possible compiler warnings.
2205         Reported by Marc Nieper-Wißkirchen in
2206         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
2207         * lib/gl_anylinked_list2.h (gl_linked_iterator,
2208         gl_linked_iterator_from_to): Mark as 'pure'.
2209         (gl_linked_iterator_free): Mark as 'const'.
2210         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
2211         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
2212         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
2213         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
2214         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
2215         (gl_tree_iterator_free): Mark as 'const'.
2216         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
2217         'pure'.
2218         (gl_tree_iterator_free): Mark as 'const'.
2219         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
2220         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
2221         (gl_tree_iterator_free): Mark as 'const'.
2222         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
2223         compare_position_threshold): Mark as 'pure'.
2224         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
2225         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
2226         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
2227         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
2228         'pure'.
2229         (gl_array_iterator_free): Mark as 'const'.
2230         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
2231         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
2232         (gl_array_iterator_free): Mark as 'const'.
2233         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
2234         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
2235         gl_array_iterator_atleast): Mark as 'pure'.
2236         (gl_array_iterator_free): Mark as 'const'.
2237         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
2238         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
2239         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
2240         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
2241         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
2242         gl_carray_sortedlist_search): Mark as 'pure'.
2243         (gl_carray_iterator_free): Mark as 'const'.
2245 2020-10-10  Bruno Haible  <bruno@clisp.org>
2247         rbtree-list: Avoid possible compiler warnings.
2248         This mirrors the change of avltree-list on 2014-09-16.
2249         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
2250         declaration. Add cast to void for ignored value of check_invariants.
2252 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2254         stack: New module.
2255         * MODULES.html.sh: Add entry for the stack module.
2256         * modules/stack: New file.
2257         * modules/stack-tests: New file.
2258         * lib/stack.h: New file.
2259         * tests/test-stack.c: New file.
2261 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2263         attribute: improve const, pure doc
2264         Problem reported by Marc Nieper-Wißkirchen in:
2265         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
2266         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
2267         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
2269 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2271         thread: pacify GCC on Solaris 10
2272         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
2273         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
2274         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
2275         where pthread_t is unsigned int.
2277 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2279         c-stack: avoid AS_IF
2280         Problem reported by Bruno Haible in:
2281         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
2282         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
2284         c-stack: pacify GCC 9.3.1 when using libsigsegv
2285         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
2287 2020-10-04  Bruno Haible  <bruno@clisp.org>
2289         localename: Fix a couple of "unused parameter" warnings.
2290         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
2291         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
2292         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
2293         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
2294         parameter list.
2296 2020-10-04  Bruno Haible  <bruno@clisp.org>
2298         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
2299         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
2300         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
2301         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
2302         HAVE_SNPRINTF_TRUNCATION_C99.
2303         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
2304         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
2306 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2308         c-stack: streamline Solaris configuration
2309         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
2310         the code is used only if a test for sigaltstack worked
2311         in some other way.
2312         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
2313         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
2314         heuristic does not work).
2315         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
2316         we no longer require the libsigsegv module.
2317         (Depends-on): Depend on havelib, not libsigsegv.
2319         c-stack: stop using SIGSTKSZ
2320         It’s been proposed to stop making SIGSTKSZ an integer constant:
2321         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
2322         Also, using SIGSTKSZ in #if did not conform to current POSIX.
2323         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
2324         * lib/c-stack.c (SIGSTKSZ): Remove.
2325         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
2326         All uses changed.
2328         c-stack: fix libsigsegv typo
2329         Problem reported by Bruno Haible in:
2330         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
2331         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
2332         to be used only on Solaris (exactly where it is not needed!).
2334 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
2336         MODULES.html.sh: Fix typo.
2337         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
2339 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
2341         version-etc: pacify Oracle Studio 12.6
2342         Without this patch, it complains: "version-etc.h", line 64:
2343         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
2344         pedantic mode.
2345         * lib/version-etc.h (version_etc): Port to C89 macro rules.
2347 2020-09-27  Bruno Haible  <bruno@clisp.org>
2349         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
2350         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2351         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2352         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
2353         ourselves; don't use AC_DECL_SYS_SIGLIST.
2355 2020-09-27  Bruno Haible  <bruno@clisp.org>
2357         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
2358         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2359         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2360         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
2361         instead of _AC_COMPUTE_INT.
2363 2020-09-27  Bruno Haible  <bruno@clisp.org>
2365         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
2366         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2367         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2368         Based on a patch by Paul Eggert.
2369         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
2370         test STDC_HEADERS. Assume <stdlib.h> exists.
2371         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
2373 2020-09-27  Bruno Haible  <bruno@clisp.org>
2375         Enable testing of prereleases of Autoconf 2.70.
2376         Suggested by Paul Eggert in
2377         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
2378         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
2379         >= 2.70.
2380         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
2381         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
2382         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
2384 2020-09-27  Bruno Haible  <bruno@clisp.org>
2386         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
2387         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2388         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2389         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
2390         AC_PROG_CC, depending on the Autoconf version.
2392 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
2394         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
2395         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
2396         of AC_HELP_STRING.
2397         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
2399 2020-09-27  Bruno Haible  <bruno@clisp.org>
2401         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
2402         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2403         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2404         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
2406 2020-09-27  Bruno Haible  <bruno@clisp.org>
2408         extensions: Simplify last commit.
2409         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
2410         AC_GNU_SOURCE ever.
2412 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2414         extensions: require AC_GNU_SOURCE only for <=2.63
2415         Problem reported by Gavin Smith in:
2416         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
2417         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
2418         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
2419         shouldn’t be needed after that, and Autoconf 2.70 complains about
2420         it being obsolete.
2422 2020-09-26  Bruno Haible  <bruno@clisp.org>
2424         regex-tests: Make test more robust.
2425         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
2426         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
2428 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2430         regex-tests: fix possible Turkish false-alarm
2431         * modules/regex-tests (Depends-on): Add wctype-h.
2432         * tests/test-regex.c: Include wctype.h.
2433         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
2434         as the Turkish regex test assumes this.
2436         regex-tests: fix test and add debug output
2437         Perhaps this will fix the recent grep test failure reported at:
2438         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
2439         At least, the debug output should help narrow down the failure.
2440         * tests/test-regex.c: Include stdarg.h, stdio.h.
2441         (exit_status): New var.
2442         (report_error): New function.
2443         (main): Use it to report failures to stdout instead of merely
2444         exiting with some nonzero status.  The status info alone isn’t
2445         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
2446         regex before calling re_compile_pattern, fixing a portability bug.
2448         regex: no longer match glibc
2449         * config/srclist.txt: Comment out regex_internal.c for now.
2451 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2453         regex: fix ignore-case Turkish bug
2454         * lib/regex_internal.c (build_wcs_upper_buffer):
2455         Do not assume that converting single-byte character to upper
2456         yields a single-byte character.  This is not true for Turkish,
2457         where towupper (L'i') yields L'İ', which is not single-byte.
2458         * tests/test-regex.c (main): Test for this bug.
2460         regex: port to weird isascii platforms
2461         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
2463 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2465         dfa: make dfasupported a global function
2466         * lib/dfa.c (dfasupported): Rename, and make it global.
2467         Update caller.
2468         * lib/dfa.h (dfasupported): Add prototype.
2470 2020-09-20  Bruno Haible  <bruno@clisp.org>
2472         canonicalize: Add support for UNC file names on native Windows.
2473         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
2474         <https://savannah.gnu.org/bugs/?59079>.
2475         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
2476         extend the prefix to include the server.
2478 2020-09-20  Bruno Haible  <bruno@clisp.org>
2480         supersede: Fix test failures on native Windows.
2481         * lib/supersede.c (open_supersede): Handle non-regular files on native
2482         Windows like on Solaris.
2483         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
2485 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2487         test-stdalign: test Oracle Studio better
2488         * doc/posix-headers/stdalign.texi (stdalign.h):
2489         * tests/test-stdalign.c (main):
2490         Sun Studio Bug #2125432 seems to be fixed.
2492         c-stack: output diagnostic in single 'write'
2493         * lib/c-stack.c (die): In the typical case, use just one 'write'
2494         syscall to output the diagnostic, as this lessens interleaving.
2495         (die, c_stack_action): Assume C99.
2496         * modules/c-stack (Depends-on): Add c99, mempcpy.
2498         c-stack: improve checking if !libsigsegv
2499         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
2500         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
2501         unlikely pointer overflow.  Also, fix some obsolete code and typos.
2502         I found these problems while looking into this bug report:
2503         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
2504         * lib/c-stack.c: Include c-stack.h first, to test interface.
2505         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
2506         max_align_t, intprops.h for INT_ADD_WRAPV.
2507         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
2508         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
2509         for libsigsegv 2.8 and earlier since the bug should be fixed
2510         after that.
2511         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
2512         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
2513         Assume sprintf returns byte count; this assumption is safe now.
2514         (page_size): New static volatile variable, since sysconf isn’t
2515         documented to be async-signal-safe on Solaris.  This variable is
2516         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
2517         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
2518         SIGINFO_WORKS).
2519         (segv_handler): Use it if present.  Never report null pointer
2520         dereference as a stack overflow.  Check for (unlikely) unsigned
2521         and/or pointer overflow.
2522         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2523         Rename cache variables to gl_cv_sys_stack_overflow_works
2524         and gl_cv_sys_xsi_stack_overflow_heuristic.
2525         All uses changed.
2526         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
2527         c-stack no longer uses STACK_DIRECTION.
2528         Do not check for unistd.h, since we depend on unistd.
2529         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
2530         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
2531         stdbool, stddef.
2533 2020-09-20  Bruno Haible  <bruno@clisp.org>
2535         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
2536         * m4/musl.m4: Revert 2020-09-19 patch.
2537         * m4/setlocale_null.m4: Likewise.
2538         * modules/setlocale-null: Likewise.
2540 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
2541             Bruno Haible  <bruno@clisp.org>
2543         relocatable-prog: Fix for multiple relocatable library directories.
2544         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
2545         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
2546         being attached to a single one.
2548 2020-09-19  Jim Meyering  <meyering@fb.com>
2550         test-verify.c: avoid -Wshadow warnings
2551         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
2552         (enum): Capitalize member names. Adjust uses.
2554 2020-09-19  Bruno Haible  <bruno@clisp.org>
2556         havelib: Avoid linking with libc.a on GNU systems.
2557         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
2558         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
2559         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
2560         dependency_libs value of a .la file, ignore '-lc' options on GNU
2561         systems.
2563 2020-09-19  Bruno Haible  <bruno@clisp.org>
2565         Fix recognition of musl libc on Alpine Linux 3.10.
2566         Reported by Jeffrey Walton <noloader@gmail.com> in
2567         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
2568         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
2569         (gl_MUSL_LIBC): Require it.
2570         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
2571         * modules/setlocale-null (Files): Add m4/musl.m4.
2573 2020-09-19  Bruno Haible  <bruno@clisp.org>
2575         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
2576         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
2577         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
2578         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
2579         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
2580         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
2581         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
2582         or <threads.h>.
2583         (ITEMS, MAX_RESULT_LEN): New macros.
2584         (nl_langinfo_unlocked): New function.
2585         (gl_get_nl_langinfo_lock): New declaration.
2586         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
2587         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
2588         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
2589         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
2590         REPLACE_NL_LANGINFO.
2591         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
2592         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
2593         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
2594         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
2595         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
2597 2020-09-18  Bruno Haible  <bruno@clisp.org>
2599         fsusage, getaddrinfo: Produce more regular configure output.
2600         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
2601         corresponding AC_MSG_RESULT.
2602         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
2604 2020-09-18  Bruno Haible  <bruno@clisp.org>
2606         Add back gl_SILENT.
2607         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
2609 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2611         c-stack-tests: fix -fsanitize=undefined false alarm
2612         * tests/test-c-stack2.sh: Skip the test-harness self-test
2613         if ‘gcc -fsanitize=undefined’ is in use.
2615 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2617         signalblocking: simplify and remove gl_SILENT
2618         gl_SILENT was problematic because if a trap was sprung, stderr
2619         generated during the trap was lost.  Avoid the problem by
2620         removing the need for gl_SILENT.
2621         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
2622         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
2623         Simplify, avoiding the need for gl_SILENT while preserving the
2624         ability of the user to override the value of the cache variable,
2625         now ac_cv_func_sigprocmask.
2627 2020-09-17  Bruno Haible  <bruno@clisp.org>
2629         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
2630         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
2631         (gl_SILENT): Use 'exec', not a compound statement, to redirect
2632         AS_MESSAGE_FD.
2634 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2636         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
2637         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
2638         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
2639         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
2640         Define to 0.
2641         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
2642         Do not use __builtin_mul_overflow_p.
2644         libc-config: port __THROW to Ubuntu 4
2645         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
2646         for GCC 3.3.  Problem reported by Jeffrey Walton in:
2647         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
2648         The GCC 3.3.4 documentation says the attribute should work, but
2649         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
2650         little point or desire to research this circa-2004 platform further,
2651         so just avoid the attribute there.
2653 2020-09-17  Jim Meyering  <meyering@fb.com>
2655         test-dfa-match.sh: port timeout work-around to newer Busybox
2656         * tests/test-dfa-match.sh: Update timeout -t portability test to
2657         accommodate Busybox 1.30.0 and newer.
2659 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2661         fnmatch: adjust to match glibc fix
2662         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
2663         This does not affect Gnulib; it merely keeps Gnulib and glibc
2664         closer together, to help with any eventual merge, by incorporating
2665         a recent glibc patch.  The patch and the following commentary is
2666         by Andreas Schwab.
2667         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
2668         contains the index into the extra array, whereas wextra points
2669         into the extra array at this index, containing the length of the
2670         following collating sequence in the wide character representation.
2672 2020-09-16  Bruno Haible  <bruno@clisp.org>
2674         stat, fstat: Fix compilation error with old mingw headers.
2675         Reported by Eli Zaretskii <eliz@gnu.org> in
2676         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2677         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
2678         define it.
2680 2020-09-16  Bruno Haible  <bruno@clisp.org>
2682         stat, fstat: Fix when compiling for versions older than Windows Vista.
2683         Reported by Eli Zaretskii <eliz@gnu.org> in
2684         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2685         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
2686         that was originally set before we redefined it.
2687         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
2688         (gl_PREREQ_STAT): Require it.
2689         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
2691 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2693         dfa: remove dfa-heap-overrun workaround
2694         * lib/dfa.c (reorder_tokens): Go back to a single pass that
2695         both sets map[*] and does other things.  This reverts
2696         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
2697         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
2698         fixed the underlying problem.
2700 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2702         dfa: avoid use of uninitialized constraint
2703         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
2704         to zero here.
2705         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
2706         use of an uninitialized constraint by later code when ! (flags[i]
2707         & OPT_QUEUED) means merge_nfa_state was not called to initialize
2708         the constraint.  Problem found by running 'valgrind src/grep -E
2709         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
2711         dfa: assume C99 in reorder_tokens
2712         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
2714         dfa: fix dfa-heap-overrun failure
2715         * lib/dfa.c (reorder_tokens): When setting
2716         map[d->follows[i].elems[j].index], instead of incorrectly assuming
2717         that (i < d->follows[i].elems[j].index), use two loops, one to set
2718         the map array and the other to use it.  The incorrect assumption
2719         caused some elements to be missed, and this in turn caused grep's
2720         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
2721         with GCC.  I found this bug while investigating
2722         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
2723         and I think the bug also occurs on GNU/Linux but with more-subtle
2724         symptoms.  The bug predates the recent dfa.c changes; perhaps the
2725         recent changes make the bug more likely.
2727 2020-09-13  Bruno Haible  <bruno@clisp.org>
2729         parse-datetime: Make the build rule work with parallel 'make'.
2730         Reported by Daiki Ueno <ueno@gnu.org> in
2731         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
2732         * modules/parse-datetime (Makefile.am): Use a phony target and the
2733         general idiom for rules that produce multiple files.
2735 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
2737         getpass: Check for nonnull prompt argument while avoiding warnings.
2738         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
2739         (getpass) [!_WIN32]: Print prompt only if nonnull.
2741 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2743         dfa: epsilon-closure tweaks (Bug#40634)
2744         Rename BACKWORD to BACKWARD consistently.
2745         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
2746         (addtok_mb): Redo slightly to make it act more like a state machine.
2747         Check depth only when it increases.
2748         (epsclosure): Let the switch test the tokens.
2749         (dfaanalyze): Cache tindex.  Simplify position loops.
2750         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
2751         only if it is not null, since we're testing that anyway.
2752         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
2754 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2756         dfa: use backward set in removal of epsilon closure
2757         When removing in epsilon closure, the code searched all nodes
2758         sequentially, and this was slow for some cases.  Build a backward
2759         set before search, and only check previous position with the set.
2760         Problem reported in <https://bugs.gnu.org/40634>.
2761         * lib/dfa.c (struct dfa): New member 'epsilon'.
2762         (addtok_mb): Check whether a pattern has epsilon node or not.
2763         (epsclosure): New arg BACKWORD; caller changed.  When removing
2764         epsilon node and reconnecting, check only previous positions.
2765         Treat BEG as if it were character.
2766         (dfaanalyze): Build backward set.
2768 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2770         canonicalize: fix pointer indexing bugs
2771         Problem reported by Florian Weimer in:
2772         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
2773         * lib/canonicalize-lgpl.c (__realpath):
2774         * lib/canonicalize.c (canonicalize_filename_mode):
2775         Do not generate a pointer past the end of the array.
2776         * lib/canonicalize.c (canonicalize_filename_mode):
2777         Do not use a pointer after passing it to realloc.
2779 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2781         tempname: help merge with glibc
2782         Inspired by draft patches by Adhemerval Zanella in:
2783         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
2784         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
2785         * lib/tempname.c: Include stdalign.h, time.h.
2786         If _LIBC, do not include random-bits.h.
2787         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
2788         (RANDOM_BITS): Remove, replacing with ...
2789         (random_bits): ... this new static function.  All uses changed.
2790         Add entropy each time if getrandom is not supported.
2791         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
2792         Assume 64-bit support a la C99.
2793         (try_tempname_len): Take advantage of ASLR when initializing
2794         random value.
2795         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
2797         getcwd: merge recent glibc changes
2798         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
2799         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
2801 2020-09-06  Bruno Haible  <bruno@clisp.org>
2803         attribute: Clarify which file to include.
2804         * modules/attribute (Include): Add "attribute.h".
2806 2020-09-06  Bruno Haible  <bruno@clisp.org>
2808         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
2809         * lib/pipe-filter-ii.c: Include <process.h>.
2810         * lib/pipe-filter-gi.c: Likewise.
2812 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2814         verify: avoid __builtin_assume
2815         Our latest attempt to use Clang’s __builtin_assume caused a crash
2816         in GNU Emacs that we spent quite some time tracking down as being
2817         caused by the switch to __builtin_assume.  It’s not known whether
2818         the crash is due is a Clang bug or a portability bug in GNU Emacs.
2819         For now, play it safe and avoid __builtin_assume.
2820         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
2821         (assume): Simplify by not trying to use Clang’s __builtin_assume.
2823 2020-09-05  Bruno Haible  <bruno@clisp.org>
2825         Fix several "warning: no previous prototype for function".
2826         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
2827         in front of the declaration of the lookup function in
2828         unicase/locale-languages.h.
2829         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
2830         unictype/bidi_byname.h.
2831         * modules/unictype/category-byname (Makefile.am): Likewise in
2832         unictype/categ_byname.h.
2833         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
2834         unictype/combiningclass_byname.h.
2835         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
2836         unictype/joininggroup_byname.h.
2837         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
2838         unictype/joiningtype_byname.h.
2839         * modules/unictype/property-byname (Makefile.am): Likewise in
2840         unictype/pr_byname.h.
2841         * modules/unictype/scripts (Makefile.am): Likewise in
2842         unictype/scripts_byname.h.
2843         * modules/uninorm/composition (Makefile.am): Likewise in
2844         uninorm/composition-table.h.
2846 2020-09-05  Bruno Haible  <bruno@clisp.org>
2848         select: Fix "warning: no previous prototype for function".
2849         * lib/select.c: Include <sys/select.h>.
2851 2020-09-05  Bruno Haible  <bruno@clisp.org>
2853         Use module 'c99' when needed for variadic macros with '...' syntax.
2854         * modules/crypto/sm3 (Depends-on): Add c99.
2856 2020-09-05  Bruno Haible  <bruno@clisp.org>
2858         Use module 'c99' when needed for subobject initializer syntax.
2859         * modules/tempname (Depends-on): Add c99.
2860         * modules/nstrftime-tests (Depends-on): Likewise.
2862 2020-09-05  Bruno Haible  <bruno@clisp.org>
2864         Use module 'c99' when needed for declaration-after-statement syntax.
2865         * modules/backup-rename (Depends-on): Add c99.
2866         * modules/backupfile (Depends-on): Likewise.
2867         * modules/bitset-tests (Depends-on): Likewise.
2868         * modules/bitsetv (Depends-on): Likewise.
2869         * modules/c-strtod (Depends-on): Likewise.
2870         * modules/c-strtold (Depends-on): Likewise.
2871         * modules/clean-temp (Depends-on): Likewise.
2872         * modules/copy-file (Depends-on): Likewise.
2873         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
2874         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
2875         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
2876         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
2877         * modules/crypto/md5-buffer (Depends-on): Likewise.
2878         * modules/crypto/md5-tests (Depends-on): Likewise.
2879         * modules/crypto/sha1-buffer (Depends-on): Likewise.
2880         * modules/crypto/sha1-tests (Depends-on): Likewise.
2881         * modules/crypto/sha256-buffer (Depends-on): Likewise.
2882         * modules/crypto/sha256-tests (Depends-on): Likewise.
2883         * modules/crypto/sha512-buffer (Depends-on): Likewise.
2884         * modules/crypto/sha512-tests (Depends-on): Likewise.
2885         * modules/diffseq (Depends-on): Likewise.
2886         * modules/fatal-signal (Depends-on): Likewise.
2887         * modules/fchmodat (Depends-on): Likewise.
2888         * modules/fstrcmp (Depends-on): Likewise.
2889         * modules/fsusage (Depends-on): Likewise.
2890         * modules/fts (Depends-on): Likewise.
2891         * modules/fts-tests (Depends-on): Likewise.
2892         * modules/getumask (Depends-on): Likewise.
2893         * modules/git-merge-changelog (Depends-on): Likewise.
2894         * modules/hash-map (Depends-on): Likewise.
2895         * modules/hash-set (Depends-on): Likewise.
2896         * modules/lchmod (Depends-on): Likewise.
2897         * modules/libgmp-tests (Depends-on): Likewise.
2898         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
2899         * modules/linkedhash-map (Depends-on): Likewise.
2900         * modules/linkedhash-set (Depends-on): Likewise.
2901         * modules/long-options (Depends-on): Likewise.
2902         * modules/mbrtoc32 (Depends-on): Likewise.
2903         * modules/memchr2-tests (Depends-on): Likewise.
2904         * modules/memmem-tests (Depends-on): Likewise.
2905         * modules/memrchr-tests (Depends-on): Likewise.
2906         * modules/mktime-internal (Depends-on): Likewise.
2907         * modules/nstrftime (Depends-on): Likewise.
2908         * modules/opendirat (Depends-on): Likewise.
2909         * modules/parse-datetime (Depends-on): Likewise.
2910         * modules/quotearg-simple-tests (Depends-on): Likewise.
2911         * modules/same (Depends-on): Likewise.
2912         * modules/supersede (Depends-on): Likewise.
2913         * modules/supersede-tests (Depends-on): Likewise.
2914         * modules/time_rz (Depends-on): Likewise.
2915         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2916         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
2917         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
2918         * modules/xalloc (Depends-on): Likewise.
2919         * modules/xnanosleep (Depends-on): Likewise.
2921 2020-09-05  Bruno Haible  <bruno@clisp.org>
2923         Fix "warning: array initialized from parenthesized string constant".
2924         * tests/test-memmem.c (main): Remove parentheses around string constant.
2925         * tests/test-c-strcasestr.c (main): Likewise.
2926         * tests/test-strcasestr.c (main): Likewise.
2928 2020-09-05  Bruno Haible  <bruno@clisp.org>
2930         argmatch tests: Fix ISO C compliance warning.
2931         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
2932         invocation.
2934 2020-09-05  Bruno Haible  <bruno@clisp.org>
2936         uniname/uniname: Fix -Wshadow warning.
2937         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
2938         * modules/uniname/uniname (Depends-on): Add c99.
2940 2020-09-05  Bruno Haible  <bruno@clisp.org>
2942         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
2943         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
2944         argument to size_t.
2945         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
2946         n to size_t.
2948 2020-09-05  Bruno Haible  <bruno@clisp.org>
2950         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
2951         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
2952         u32_uctomb): Change type of last argument to ptrdiff_t.
2953         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
2954         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2955         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
2956         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
2957         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
2959 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2961         manywarnings: remove -Wchkp and -Wabi from C++ too
2962         Suggested by Reuben Thomas in:
2963         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
2964         At some point somebody should merge the many other manywarnings-c.m4
2965         changes into manywarnings-c++.m4 too, e.g.,
2966         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
2967         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2968         Remove -Wchkp, -Wabi.
2970 2020-08-30  Bruno Haible  <bruno@clisp.org>
2972         strerrorname_np: Add tests.
2973         * tests/test-strerrorname_np.c: New file.
2974         * modules/strerrorname_np-tests: New file.
2976         strerrorname_np: New module.
2977         * lib/string.in.h (strerrorname_np): New declaration.
2978         * lib/strerrorname_np.c: New file.
2979         * m4/strerrorname_np.m4: New file.
2980         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
2981         is declared.
2982         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
2983         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2984         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
2985         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2986         * modules/strerrorname_np: New file.
2987         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
2988         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
2989         the glibc 2.32 bug.
2991 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2993         perror, strerror_r: remove unportable tests
2994         Problem reported by Florian Weimer in:
2995         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
2996         * tests/test-perror2.c (main):
2997         * tests/test-strerror_r.c (main): Omit unportable tests.
2999 2020-08-26  Bruno Haible  <bruno@clisp.org>
3001         stdint, wchar, wctype-h: Change configure message.
3002         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
3003         enough..." instead of "checking whether wint_t is too small...".
3005 2020-08-26  Bruno Haible  <bruno@clisp.org>
3007         time_rz: Change configure message.
3008         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
3009         near extrema..." instead of "checking whether localtime loops forever
3010         near extrema...".
3012 2020-08-26  Bruno Haible  <bruno@clisp.org>
3014         stdint: Change configure message.
3015         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
3016         without ISO C predefines..." instead of "checking whether stdint.h
3017         predates C++11...".
3019 2020-08-26  Bruno Haible  <bruno@clisp.org>
3021         socketlib: Change configure message.
3022         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
3023         instead of "checking if we need to call WSAStartup in winsock2.h and
3024         -lws2_32...".
3026 2020-08-26  Bruno Haible  <bruno@clisp.org>
3028         include_next: Change configure message.
3029         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
3030         code line length is unlimited..." instead of "checking whether system
3031         header files limit the line length...".
3033 2020-08-26  Bruno Haible  <bruno@clisp.org>
3035         getcwd: Change configure message.
3036         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
3037         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
3038         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
3040 2020-08-26  Bruno Haible  <bruno@clisp.org>
3042         chdir-long: Change configure message.
3043         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
3044         system supports file names of any length..." instead of "checking
3045         whether this system has an arbitrary file name length limit...".
3046         Set gl_cv_have_unlimited_file_name_length instead of
3047         gl_cv_have_arbitrary_file_name_length_limit.
3048         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
3050 2020-08-26  Bruno Haible  <bruno@clisp.org>
3052         ceill: Change configure message.
3053         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
3054         instead of "checking whether ceill() breaks with small values...".
3056 2020-08-26  Bruno Haible  <bruno@clisp.org>
3058         iconv: Change configure message.
3059         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
3060         with its POSIX signature..." instead of "checking for iconv
3061         declaration...". Remove K&R C support.
3063 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
3065         getcwd: help the merge back into glibc
3066         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
3067         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
3068         The idea is to make it easier for Gnulib lib/getcwd.c to match
3069         glibc io/getcwd-generic.c.
3070         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
3071         Include not-cancel.h.
3072         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
3073         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
3074         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
3075         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
3076         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
3077         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
3078         (__getcwd_generic): Rename from __getcwd.
3079         Use the abovementioned macros for consistency with glibc.
3080         (weak_alias): Remove.
3082 2020-08-25  Bruno Haible  <bruno@clisp.org>
3084         verify: Avoid warnings when assume(0) is used.
3085         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
3086         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
3087         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
3088         the constant 0.
3089         * tests/test-verify.c (f): New function.
3090         (state): New type.
3091         (test_assume_expressions, test_assume_optimization,
3092         test_assume_noreturn): New functions.
3094 2020-08-25  Bruno Haible  <bruno@clisp.org>
3096         fstrcmp: Clarification regarding NOTE_ORDERED.
3097         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
3099 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3101         diffseq: new option NOTE_ORDERED
3102         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
3103         * NEWS: Mention this.
3104         * lib/diffseq.h (NOTE_ORDERED): New macro.
3105         (IF_LINT2): Remove; no longer needed.
3106         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
3107         subproblem and iterate to do the larger.
3109 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3111         sys_types: let Autoconf 2.70 do pid_t
3112         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
3113         only for Autoconf versions 2.69 and earlier, since 2.70
3114         will be fixed.
3116 2020-08-23  Bruno Haible  <bruno@clisp.org>
3118         tests: Don't assume that pid_t fits in an 'int'.
3119         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
3120         of 'int'.
3121         * tests/test-nonblocking-socket-main.c (main): Likewise.
3123         sys_types: Fix definition of pid_t on 64-bit MSVC.
3124         * m4/pid_t.m4: New file.
3125         * modules/sys_types (Files): Add it.
3126         * modules/dirent (Files): Likewise.
3127         * modules/fcntl-h (Files): Likewise.
3128         * modules/sched (Files): Likewise.
3129         * modules/signal-h (Files): Likewise.
3130         * modules/spawn (Files): Likewise.
3131         * modules/sys_stat (Files): Likewise.
3132         * modules/sys_wait (Files): Likewise.
3133         * modules/termios (Files): Likewise.
3134         * modules/unistd (Files): Likewise.
3136 2020-08-23  Bruno Haible  <bruno@clisp.org>
3138         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
3139         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
3140         program.
3142 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3144         intprops: be consistent about +X vs X+0
3145         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
3147         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
3148         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
3149         is a bit-field, on older GCC or non-GCC compilers where we do
3150         things ourselves instead of using __builtin_mul_overflow.
3151         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
3152         to applying sizeof to a bit-field.
3153         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
3154         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
3156 2020-08-23  Bruno Haible  <bruno@clisp.org>
3158         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
3159         Reported by Jörg Sonnenberger <joerg@netbsd.org>
3160         via Thomas Klausner <tk@giga.or.at> in
3161         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
3162         * lib/supersede.c (open_supersede): When opening an existing non-regular
3163         file on Solaris, use O_CREAT although it should not be necessary.
3165 2020-08-23  Bruno Haible  <bruno@clisp.org>
3167         verify: Make assume work on bit field expressions (regr. 2020-08-22).
3168         Reported by Benno Schulenberg <bensberg@telfort.nl> in
3169         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
3170         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
3171         variable.
3173 2020-08-23  Bruno Haible  <bruno@clisp.org>
3175         libc-config: Improve comments.
3176         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
3177         cannot use clang's __diagnose_if__ here.
3179 2020-08-22  Bruno Haible  <bruno@clisp.org>
3181         verify: Do use __builtin_assume on clang.
3182         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
3183         variable in a statement expression.
3185 2020-08-22  Bruno Haible  <bruno@clisp.org>
3187         sig2str: Add more signals.
3188         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
3190 2020-08-22  Bruno Haible  <bruno@clisp.org>
3192         doc: Update for OpenBSD 6.0, 6.7.
3193         * doc/*/*.texi: Update.
3194         * m4/printf.m4: Update comments and cross-compilation guesses.
3195         * m4/ceill.m4: Update comments.
3196         * m4/getcwd-abort-bug.m4: Likewise.
3197         * m4/ilogb.m4: Likewise.
3198         * m4/ilogbf.m4: Likewise.
3199         * m4/langinfo_h.m4: Likewise.
3200         * m4/modf.m4: Likewise.
3201         * m4/modff.m4: Likewise.
3203 2020-08-22  Bruno Haible  <bruno@clisp.org>
3205         doc: Mention sig2str module.
3206         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
3208 2020-08-21  Bruno Haible  <bruno@clisp.org>
3210         sigdescr_np: Add tests.
3211         * tests/test-sigdescr_np.c: New file.
3212         * modules/sigdescr_np-tests: New file.
3214         sigdescr_np: New module.
3215         * lib/string.in.h (sigdescr_np): New declaration.
3216         * lib/sigdescr_np.c: New file.
3217         * m4/sigdescr_np.m4: New file.
3218         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
3219         declared.
3220         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
3221         HAVE_SIGDESCR_NP.
3222         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
3223         HAVE_SIGDESCR_NP.
3224         * modules/sigdescr_np: New file.
3225         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
3226         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
3228 2020-08-20  Bruno Haible  <bruno@clisp.org>
3230         sigabbrev_np: Add tests.
3231         * tests/test-sigabbrev_np.c: New file.
3232         * modules/sigabbrev_np-tests: New file.
3234         sigabbrev_np: New module.
3235         * lib/string.in.h (sigabbrev_np): New declaration.
3236         * lib/sigabbrev_np.c: New file.
3237         * m4/sigabbrev_np.m4: New file.
3238         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
3239         declared.
3240         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
3241         HAVE_SIGABBREV_NP.
3242         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
3243         HAVE_SIGABBREV_NP.
3244         * modules/sigabbrev_np: New file.
3245         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
3246         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
3248 2020-08-20  Bruno Haible  <bruno@clisp.org>
3250         stdalign tests: Skip test with AIX xlclang.
3251         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
3253 2020-08-20  Bruno Haible  <bruno@clisp.org>
3255         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
3256         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
3257         workaround as for GCC versions < 4.9.
3259 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3261         Sync up ProjectQuirks comments and documentation
3262         Transform the ProjectQuirks comments into a docstring so that it can
3263         be accessed from python as ProjectQuirks.__doc__ and harmonize
3264         descriptions with the documentation.
3265         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
3266         Transform comments into a docstring.
3267         * doc/vcs-to-changelog.texi: Sync up description with comments.
3269         Split ProjectQuirks out into its own file
3270         ProjectQuirks is used by external quirks files and importing it from
3271         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
3272         is cleaner to put it in its own file anyway.
3273         * build-aux/vcstocl/projectquirks.py: A new file...
3274         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
3275         we move ProjectQuirks and import the file.
3277 2020-08-19  Bruno Haible  <bruno@clisp.org>
3279         uchar: Fix compilation errors in C++ mode on macOS.
3280         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
3281         system header file before attempting to use 'char16_t' and 'char32_t'.
3283 2020-08-19  Bruno Haible  <bruno@clisp.org>
3285         ansi-c++-opt: Work around an autoconf macro reordering problem.
3286         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
3287         section.
3289 2020-08-19  Bruno Haible  <bruno@clisp.org>
3291         math C++ tests: Fix compilation error in with GCC 10.
3292         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
3293         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
3294         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3296 2020-08-19  Bruno Haible  <bruno@clisp.org>
3298         uchar: Fix compilation errors in C++ mode on OpenBSD.
3299         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
3300         CXX_HAS_UCHAR_TYPES is 1.
3301         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
3302         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
3303         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
3305 2020-08-19  Bruno Haible  <bruno@clisp.org>
3307         Fix compilation errors in C++ mode on OpenBSD.
3308         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
3309         OpenBSD with clang, use the approach without C preprocessor macro.
3311 2020-08-18  Bruno Haible  <bruno@clisp.org>
3313         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
3314         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
3315         AC_LANG_POP.
3317 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3319         verify: avoid __built_assume on Clang
3320         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
3321         Clang 9 incorrectly diagnoses arguments as having side effects
3322         even when they do not.  I guess Clang 9 considers any function
3323         call as if it had a side effect here.
3325         libc-config: avoid Clang’s __diagnose_if__
3326         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
3327         For now, do not use __diagnose_if__ here, as this fails
3328         on Fedora 31 with Clang 9.0.1, with diagnostic
3329         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
3330         size than length of destination buffer
3331         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
3332         for functions that are not called?
3334         careadlinkat: speedup for GCC 10 with GCC_LINT
3335         Inspired by a suggestion by Bruno Haible in:
3336         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
3337         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
3338         (readlink_stk): New function, with most of the old careadlinkat
3339         contents and with a new STACK_BUF arg.  Inline it in GCC 10
3340         if GCC_LINT.
3341         (careadlinkat): Use the new function for everything but the
3342         stack buffer.
3344         * build-aux/gcc-warning.spec: Update comments.
3346 2020-08-17  Bruno Haible  <bruno@clisp.org>
3348         Assume autoconf >= 2.64.
3349         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
3351 2020-08-17  Bruno Haible  <bruno@clisp.org>
3353         Revert autoupdate's revert.
3354         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
3356 2020-08-17  Bruno Haible  <bruno@clisp.org>
3358         uchar C++ tests: Fix build error on FreeBSD 12.
3359         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
3360         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
3361         <cuchar> does not exist.
3363 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3365         time_rz: remove unused functions
3366         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
3368         time_rz: fix issues with mktime_z failures
3369         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
3370         Use a cheaper tm_yday test for failed mktime.
3372 2020-08-16  Bruno Haible  <bruno@clisp.org>
3374         intprops test: Strengthen on clang.
3375         * tests/test-intprops.c (VERIFY): Use verify_stmt.
3377 2020-08-16  Bruno Haible  <bruno@clisp.org>
3379         nstrftime: Guide inlining also on clang.
3380         * lib/nstrftime.c (iso_week_days): Inline also on clang.
3382 2020-08-16  Bruno Haible  <bruno@clisp.org>
3384         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
3385         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
3387 2020-08-16  Bruno Haible  <bruno@clisp.org>
3389         log2l: Disable MSVC workaround on clang.
3390         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
3392 2020-08-16  Bruno Haible  <bruno@clisp.org>
3394         argp: Emit a warning also with clang.
3395         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
3396         clang.
3398 2020-08-16  Bruno Haible  <bruno@clisp.org>
3400         libc-config: Enable __REDIRECT macro also on clang.
3401         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
3402         __ASMNAME2): Define on clang like on GCC.
3404 2020-08-16  Bruno Haible  <bruno@clisp.org>
3406         regex: Use initializer shorthand syntax also with clang.
3407         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
3408         with clang.
3410 2020-08-16  Bruno Haible  <bruno@clisp.org>
3412         regex: Use space optimization also with clang.
3413         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
3414         with clang.
3416 2020-08-16  Bruno Haible  <bruno@clisp.org>
3418         Use _Static_assert and static_assert primitives when present on clang.
3419         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
3420         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
3421         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
3423 2020-08-16  Bruno Haible  <bruno@clisp.org>
3425         Use 'throw ()' for optimization in C++ mode also on clang.
3426         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
3427         * lib/getopt-cdefs.in.h (__THROW): Likewise.
3428         * lib/md5.h (__THROW): Likewise.
3430 2020-08-16  Bruno Haible  <bruno@clisp.org>
3432         absolute-header: Add support for clang.
3433         * modules/absolute-header (Makefile.am): Include '__clang__' in the
3434         HAVE_INCLUDE_NEXT expression.
3436 2020-08-16  Bruno Haible  <bruno@clisp.org>
3438         Fix "warning: implicitly declaring library function 'strcasecmp'".
3439         * lib/argp-help.c: Include <strings.h>.
3441 2020-08-16  Bruno Haible  <bruno@clisp.org>
3443         stdio: Don't break attribute 'scanf' on clang.
3444         * lib/stdio.in.h (scanf): Treat clang like GCC.
3446 2020-08-16  Bruno Haible  <bruno@clisp.org>
3448         Use __restrict also on clang.
3449         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
3450         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
3451         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
3453 2020-08-16  Bruno Haible  <bruno@clisp.org>
3455         pthread-spin: Use GCC built-ins also on clang.
3456         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
3457         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
3458         also on clang.
3460 2020-08-16  Bruno Haible  <bruno@clisp.org>
3462         asyncsafe-spin tests: Update.
3463         * tests/test-asyncsafe-spin2.c: Update to match the change in
3464         lib/asyncsafe-spin.c from 2020-08-11.
3466 2020-08-16  Bruno Haible  <bruno@clisp.org>
3468         setenv: Use tree code also with clang.
3469         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
3471 2020-08-16  Bruno Haible  <bruno@clisp.org>
3473         math: Optimize signbit also on clang.
3474         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
3475         on clang.
3477 2020-08-16  Bruno Haible  <bruno@clisp.org>
3479         avltreehash-list, rbtreehash-list: Optimize also on clang.
3480         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
3481         __builtin_expect also on clang.
3483 2020-08-16  Bruno Haible  <bruno@clisp.org>
3485         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
3486         * lib/socket.c: Use WSASocketW, not WSASocketA.
3488         Fix "warning: format specifies type 'unsigned long'".
3489         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
3490         argument to match the format directive.
3492         Fix "warning: no case matching constant switch condition '0'".
3493         * tests/test-fcntl.c (check_flags): Add a 'default' case.
3495         Fix "warning: integer overflow in expression".
3496         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
3497         remove a 'long' overflow.
3499         Fix "warning: "getpagesize" redefined".
3500         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
3501         macro.
3503         Fix "warning: implicitly declaring library function 'strncasecmp'".
3504         * lib/strptime.c: Include <strings.h>.
3506         Fix "warning: 'snprintf' macro redefined".
3507         * lib/strerror_r.c (snprintf): Undefine before redefining.
3509         Fix "warning: address of array 'locale' will always evaluate to 'true'".
3510         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
3512         Fix "warning: '__stat64' macro redefined".
3513         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
3515         Fix "warning: 'format' attribute argument not supported: rpl_printf".
3516         * lib/stdio.in.h (printf): Treat clang like GCC.
3518         Fix "warning: attribute declaration must precede definition" with clang.
3519         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
3520         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
3521         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
3522         on non-glibc systems.
3523         * lib/netdb.in.h (gai_strerror): Likewise.
3524         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
3525         * lib/sys_stat.in.h (fstat): Likewise.
3526         * lib/utime.in.h (utime): Likewise.
3528         Fix undesired warnings.
3529         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
3530         clang.
3532 2020-08-16  Bruno Haible  <bruno@clisp.org>
3534         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
3535         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
3536         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
3537         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
3538         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
3540 2020-08-16  Bruno Haible  <bruno@clisp.org>
3542         Don't use Autoconf quadrigraphs.
3543         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
3544         Autoconf quadrigraph.
3545         * m4/free.m4 (gl_FUNC_FREE): Likewise.
3546         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
3547         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
3548         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
3549         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
3550         * m4/math_h.m4 (gl_MATH_H): Likewise.
3551         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3553 2020-08-16  Bruno Haible  <bruno@clisp.org>
3555         Fix quoting of AC_LANG_PROGRAM arguments.
3556         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
3557         arguments through [[...]].
3558         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
3559         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3560         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3561         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
3562         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
3563         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3564         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
3565         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3566         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3567         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3568         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3569         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
3570         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3572 2020-08-16  Bruno Haible  <bruno@clisp.org>
3574         Assume autoconf >= 2.64.
3575         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
3576         * DEPENDENCIES: Require Autoconf 2.64 or newer.
3577         * NEWS: Mention the changed requirement.
3578         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
3579         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
3580         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
3581         variables.
3582         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3583         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3584         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3585         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
3586         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
3587         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
3588         Likewise.
3589         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
3590         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
3591         * m4/configmake.m4: Update comment.
3593 2020-08-16  Bruno Haible  <bruno@clisp.org>
3595         sys_ioctl: Simplify.
3596         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
3597         AC_INCLUDES_DEFAULT.
3599 2020-08-16  Bruno Haible  <bruno@clisp.org>
3601         Fix quoting of AC_LANG_SOURCE arguments.
3602         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
3603         GL_NOCRASH expansion.
3604         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
3605         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3606         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3607         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3608         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3610 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3612         nstrftime: be more predictable about errno
3613         This aligns nstrftime better with draft POSIX 202x strftime.
3614         * lib/nstrftime.c: Include errno.h.
3615         (width_add, __strftime_internal): Set errno on failure,
3616         and preserve it on success.  Check for mktime_z failure.
3617         * modules/nstrftime (Depends-on): Add errno.
3618         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
3619         * tests/test-nstrftime.c: Include intprops.h, limits.h.
3620         (errno_test): New test function.
3621         (main): Call it.
3623 2020-08-15  Bruno Haible  <bruno@clisp.org>
3625         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
3626         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
3627         from dependency analysis first.
3629 2020-08-15  Bruno Haible  <bruno@clisp.org>
3631         Determine asm output option and filename suffix for MSVC/clang.
3632         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
3633         clang-cl.
3635 2020-08-15  Bruno Haible  <bruno@clisp.org>
3637         doc: Update for MSVC/clang.
3638         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
3639         that MSVC 14 does not have.
3641 2020-08-15  Bruno Haible  <bruno@clisp.org>
3643         Revert autoupdate's revert.
3644         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
3646 2020-08-15  Bruno Haible  <bruno@clisp.org>
3648         frexpl: Fix configuration test result on MSVC.
3649         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
3650         zero.
3652 2020-08-15  Bruno Haible  <bruno@clisp.org>
3654         Support compiling without -loldnames on native Windows.
3655         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
3656         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
3657         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3658         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3659         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3660         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3661         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
3662         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
3663         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3664         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
3665         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3666         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
3667         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3668         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
3669         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
3670         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3671         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3672         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3673         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
3674         Likewise.
3675         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
3676         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3677         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
3678         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3679         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3680         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3681         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
3682         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3683         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3684         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
3685         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3686         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
3687         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3688         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3689         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
3690         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3691         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3692         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3693         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3694         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3695         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3696         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3697         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3698         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3699         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3700         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3701         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3702         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
3703         test for getcwd.
3704         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
3705         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
3706         with GL_MDA_DEFINES.
3707         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
3708         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
3709         prefixed symbol.
3710         * lib/search.in.h (lfind, lsearch): Likewise.
3711         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
3712         Likewise.
3713         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
3714         * lib/string.in.h (memccpy, strdup): Likewise.
3715         * lib/sys_stat.in.h (chmod, umask): Likewise.
3716         * lib/time.in.h (tzset): Likewise.
3717         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
3718         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
3719         read, rmdir, swab, unlink, write): Likewise.
3720         * lib/utime.in.h (utime): Likewise.
3721         * lib/wchar.in.h (wcsdup): Likewise.
3722         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
3723         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
3724         rpl_-prefixed macro.
3725         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
3726         * lib/close.c (close_nothrow): On native Windows, use _close.
3727         * lib/creat.c (orig_creat): On native Windows, use _creat.
3728         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
3729         * lib/dup2.c (dup2_nothrow): Use _dup2.
3730         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
3731         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
3732         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
3733         * lib/open.c (orig_open): On native Windows, use _open.
3734         * lib/read.c (read_nothrow): Use _read.
3735         * lib/rmdir.c: On native Windows, use _rmdir.
3736         * lib/unlink.c: On native Windows, use _unlink.
3737         * lib/write.c (write_nothrow): Use _write.
3738         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
3739         undefined symbol.
3740         * lib/sys_socket.in.h (close): Likewise.
3741         * lib/sys_time.in.h (close): Likewise.
3742         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
3744 2020-08-15  Bruno Haible  <bruno@clisp.org>
3746         Fix "unknown pragma ignored" warnings with clang on native Windows.
3747         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
3748         * lib/cbrtf.c: Likewise.
3749         * lib/ceil.c: Likewise.
3750         * lib/floor.c: Likewise.
3751         * lib/fma.c: Likewise.
3752         * lib/fmod.c: Likewise.
3753         * lib/rint.c: Likewise.
3754         * lib/round.c: Likewise.
3755         * lib/trunc.c: Likewise.
3756         * tests/test-ceil2.c: Likewise.
3757         * tests/test-ceilf2.c: Likewise.
3758         * tests/test-floor2.c: Likewise.
3759         * tests/test-floorf2.c: Likewise.
3760         * tests/test-trunc2.c: Likewise.
3761         * tests/test-truncf2.c: Likewise.
3762         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3763         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3765 2020-08-15  Bruno Haible  <bruno@clisp.org>
3767         Fix compilation errors in C++ mode with clang on native Windows.
3768         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
3769         non-glibc systems.
3770         * lib/sched.in.h (sched_yield): Likewise.
3772 2020-08-14  Bruno Haible  <bruno@clisp.org>
3774         stdnoreturn: Work around problem with MSVC/clang.
3775         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
3776         system header after <stdnoreturn.h>.
3777         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
3779 2020-08-14  Bruno Haible  <bruno@clisp.org>
3781         utime-h: Generate an utime.h file always.
3782         * modules/utime-h (Makefile.am): Generate utime.h always.
3783         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
3784         GL_GENERATE_UTIME_H.
3786 2020-08-14  Bruno Haible  <bruno@clisp.org>
3788         mktime, mktime-internal: Remove obsolete code.
3789         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
3791 2020-08-14  Bruno Haible  <bruno@clisp.org>
3793         getcwd: Remove obsolete code.
3794         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
3795         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3797 2020-08-14  Bruno Haible  <bruno@clisp.org>
3799         tzset: Assume the function exists.
3800         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
3801         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
3802         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
3803         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
3804         HAVE_TZSET.
3805         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
3806         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
3808         nstrftime: Assume tzset exists.
3809         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
3810         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
3811         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
3813         mktime, mktime-internal: Assume tzset exists.
3814         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
3815         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
3817 2020-08-14  Bruno Haible  <bruno@clisp.org>
3819         strdup: Assume the function exists.
3820         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
3821         whether strdup exists.
3822         * modules/strdup (Files): Remove lib/strdup.c.
3823         (configure.ac): Don't compile strdup.c.
3824         * modules/strdup-posix (Depends-on, configure.ac): Don't test
3825         ac_cv_func_strdup.
3826         * doc/posix-functions/strdup.texi: Update.
3827         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
3828         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
3829         (Depends-on): Remove unistr/u8-strlen.
3831 2020-08-13  Bruno Haible  <bruno@clisp.org>
3833         sys_random: Work around an uClibc bug.
3834         Reported by akater <nuclearspace@gmail.com>
3835         via Stefan Kangas <stefan@marxist.se>
3836         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
3837         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
3838         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
3839         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
3840         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
3842 2020-08-12  Bruno Haible  <bruno@clisp.org>
3844         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
3845         Reported by Florian Weimer in
3846         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
3847         * lib/gen-uni-tables.c (output_predicate): Change the element type of
3848         the level3 array to 'unsigned int'.
3849         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
3850         * lib/unictype/categ_*.h: Regenerated.
3851         * lib/unictype/ctype_*.h: Regenerated.
3852         * lib/unictype/pr_*.h: Regenerated.
3853         * lib/unictype/sy_*.h: Regenerated.
3854         * lib/unicase/cased.h: Regenerated.
3855         * lib/unicase/ignorable.h: Regenerated.
3857 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3859         stdint: port intptr_t to more-recent MinGW
3860         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
3861         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
3862         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
3863         Apparently those two macros were removed in mingwrt-3.22
3864         dated 2016-07-14.
3866 2020-08-12  Bruno Haible  <bruno@clisp.org>
3868         thread-optim: Export function-like macros only.
3869         Suggested by Paul Eggert.
3870         * lib/thread-optim.h (gl_multithreaded): New macro.
3871         (IF_MT_DECL, IF_MT): Remove macros.
3872         * doc/multithread.texi (Multithreading Optimizations): Add a small
3873         example.
3874         * lib/fatal-signal.c: Update all uses.
3875         * lib/clean-temp.c: Likewise.
3876         * lib/localename.c: Likewise.
3877         * modules/localename (Depends-on): Add stdbool.
3879 2020-08-12  Bruno Haible  <bruno@clisp.org>
3881         Revert autoupdate's revert.
3882         * config/srclist.txt: Mark regex.h as needing sync with glibc.
3884 2020-08-11  Bruno Haible  <bruno@clisp.org>
3886         thread-optim: Fix a compiler warning.
3887         * lib/thread-optim.h (IF_MT_DECL): Define differently.
3889 2020-08-11  Bruno Haible  <bruno@clisp.org>
3891         Use __restrict also on clang.
3892         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
3893         (__restrict_arr): On clang, define like on GCC.
3894         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
3895         (_Restrict_arr_): Use _Restrict_ also on clang.
3896         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
3897         (_Restrict_arr_): Use _Restrict_ also on clang.
3899 2020-08-11  Bruno Haible  <bruno@clisp.org>
3901         Use flexible array syntax also on clang.
3902         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
3903         define like for GCC 3.
3905 2020-08-11  Bruno Haible  <bruno@clisp.org>
3907         fcntl: On native Windows, use _setmode, not setmode.
3908         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
3909         * lib/binary-io.h: Update comment.
3910         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
3911         * tests/test-dup2.c: Likewise.
3912         * tests/test-dup-safer.c: Likewise.
3913         * tests/test-fcntl.c: Likewise.
3915 2020-08-11  Bruno Haible  <bruno@clisp.org>
3917         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
3918         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
3919         * lib/spawn-pipe.c (create_pipe): Likewise.
3920         * tests/test-nonblocking-pipe-main.c (main): Likewise.
3921         * tests/test-nonblocking-socket-main.c (main): Likewise.
3922         * lib/wait-process.c: Update comment.
3923         * doc/posix-functions/fork.texi: Update.
3925 2020-08-11  Bruno Haible  <bruno@clisp.org>
3927         asyncsafe-spin: Use GCC built-ins also on clang.
3928         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
3929         the newer GCC built-ins also on clang.
3931 2020-08-11  Bruno Haible  <bruno@clisp.org>
3933         Use expression statements also on clang.
3934         * lib/cdefs.h (__extension__): Don't define to empty on clang.
3935         * lib/obstack.h (__extension__): Likewise.
3936         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
3937         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
3938         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
3939         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
3940         obstack_finish, obstack_free): Enable as optimized macros also on clang.
3941         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
3943 2020-08-10  Bruno Haible  <bruno@clisp.org>
3945         Use many __attribute__s with clang.
3946         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
3947         on clang.
3948         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
3949         New macros.
3950         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
3951         on clang.
3952         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
3953         also on older clang versions.
3954         (__attribute__): Don't define to empty on clang.
3955         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
3956         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
3957         (__attribute_const__): Use __attribute__ __const__ also on clang.
3958         (__attribute_used__): Use __attribute__ __used__ also on clang.
3959         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
3960         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
3961         clang.
3962         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
3963         clang.
3964         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
3965         also on clang.
3966         (__nonnull): Use __attribute__ __nonnull__ also on clang.
3967         (__attribute_warn_unused_result__): Use __attribute__
3968         __warn_unused_result__ also on clang.
3969         (__always_inline): Use __attribute__ __always_inline__ also on clang.
3970         (__attribute_artificial__): Use __attribute__ __artificial__ also on
3971         clang >= 7.
3972         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
3973         clang versions.
3974         (_Noreturn): Don't redefine on clang >= 3.5.
3975         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
3976         also on clang.
3977         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
3978         on clang.
3979         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3980         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3981         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3982         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
3983         also on clang.
3984         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3985         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
3986         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
3987         also on clang.
3988         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
3989         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
3990         __attribute__ __noreturn__ also on clang.
3991         * lib/obstack.h (__attribute_noreturn__): Likewise.
3992         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
3993         clang.
3994         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
3995         always_inline also on clang.
3996         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
3997         clang.
3999 2020-08-10  Bruno Haible  <bruno@clisp.org>
4001         c-ldtoastr tests: Fix test failure.
4002         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
4003         is longer than 'double'.
4005 2020-08-10  Bruno Haible  <bruno@clisp.org>
4007         Revert autoupdate's revert.
4008         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
4010 2020-08-09  Bruno Haible  <bruno@clisp.org>
4012         string: Fix build error in C++ mode with clang (regression from today).
4013         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
4014         parameters, one for GCC, one for clang.
4015         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
4016         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
4017         as return type.
4019 2020-08-09  Bruno Haible  <bruno@clisp.org>
4021         ftruncate: Use _chsize, not chsize.
4022         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
4023         * lib/ftruncate.c: Test HAVE__CHSIZE.
4024         (chsize_nothrow): Use _chsize, not chsize.
4026 2020-08-09  Bruno Haible  <bruno@clisp.org>
4028         Silence warnings from clang 10 with -Wimplicit-fallthrough.
4029         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
4030         clang >= 10.
4031         * lib/fnmatch.c (FALLTHROUGH): Likewise.
4032         * lib/fts.c (FALLTHROUGH): Likewise.
4033         * tests/macros.h (FALLTHROUGH): Likewise.
4034         * lib/regex_internal.h (FALLTHROUGH): Likewise.
4035         * config/srclist.txt: Mark it as needing sync with glibc.
4037 2020-08-09  Bruno Haible  <bruno@clisp.org>
4039         stdbool tests: Enable the stricter tests also on clang.
4040         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
4041         (e): Enable the address-to-bool conversion test also on clang.
4043 2020-08-09  Bruno Haible  <bruno@clisp.org>
4045         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
4046         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
4048 2020-08-09  Bruno Haible  <bruno@clisp.org>
4050         Use attribute __aligned__ with clang.
4051         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
4052         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
4054 2020-08-09  Bruno Haible  <bruno@clisp.org>
4056         Use __alignof__ with clang.
4057         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
4058         on clang.
4059         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
4060         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
4061         clang.
4062         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
4063         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
4064         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
4065         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
4067 2020-08-09  Bruno Haible  <bruno@clisp.org>
4069         ignore-value: Simplify on clang.
4070         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
4071         workaround.
4073 2020-08-09  Bruno Haible  <bruno@clisp.org>
4075         Use __typeof__ with clang.
4076         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
4077         "clang -std=gnu99".
4078         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
4079         * tests/test-stdint.c (verify_same_types): Enable the check also on
4080         clang.
4082 2020-08-09  Bruno Haible  <bruno@clisp.org>
4084         Add ability to emit user-defined warnings and errors with clang.
4085         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
4086         _GL_ATTRIBUTE_WARNING using an attribute for clang.
4087         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
4088         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
4089         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
4090         attribute for clang.
4092 2020-08-09  Bruno Haible  <bruno@clisp.org>
4094         intprops: Fix typo in comment.
4095         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
4097 2020-08-09  Bruno Haible  <bruno@clisp.org>
4099         Use __builtin_signbit* with clang.
4100         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
4101         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
4102         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
4104         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4105         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
4106         not REPLACE_SIGNBIT_USING_GCC.
4108 2020-08-09  Bruno Haible  <bruno@clisp.org>
4110         Use __builtin_isnan with clang.
4111         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4112         not __builtin_isnanf. Also on clang.
4113         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
4114         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
4115         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
4116         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
4117         built-in.
4118         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4119         not __builtin_isnanl. Also on clang.
4120         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
4121         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
4122         * lib/math.in.h (__has_builtin): Remove macro.
4123         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
4124         __builtin_isnanf. Also on clang.
4125         (isnand, gl_isnan_d): With clang, use the GCC built-in.
4126         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
4127         __builtin_isnanl. Also on clang.
4128         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
4129         on clang.
4131 2020-08-09  Bruno Haible  <bruno@clisp.org>
4133         thread-optim: Fix logic error.
4134         Reported by Paul Eggert.
4135         * lib/thread-optim.h (IF_MT): Fix logic error.
4137 2020-08-08  Bruno Haible  <bruno@clisp.org>
4139         localename: Use module 'thread-optim'.
4140         * lib/localename.c: Include thread-optim.h.
4141         (struniq): Use IF_MT macro.
4142         * modules/localename (Depends-on): Add thread-optim.
4144         clean-temp: Use module 'thread-optim'.
4145         * lib/clean-temp.c: Include thread-optim.h.
4146         (register_temporary_file, unregister_temporary_file, create_temp_dir,
4147         register_temp_file, unregister_temp_file, register_temp_subdir,
4148         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
4149         close_temp, fclose_variant_temp): Use IF_MT macro.
4150         * modules/clean-temp (Depends-on): Add thread-optim.
4152         fatal-signal: Use module 'thread-optim'.
4153         * lib/fatal-signal.c: Include thread-optim.h.
4154         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
4155         macro.
4156         * modules/fatal-signal (Depends-on): Add thread-optim.
4158 2020-08-08  Bruno Haible  <bruno@clisp.org>
4160         New module 'thread-optim'.
4161         * lib/thread-optim.h: New file.
4162         * modules/thread-optim: New file.
4163         * doc/multithread.texi (Multithreading Optimizations): New section.
4165 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
4167         doc: more updates for glibc 2.32
4168         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
4169         * doc/posix-functions/fchmodat.texi: Update.
4171 2020-08-07  Bruno Haible  <bruno@clisp.org>
4173         doc: Update for glibc 2.32.
4174         * doc/glibc-functions/__libc_single_threaded.texi: New file.
4175         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
4176         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
4177         * doc/glibc-functions/sigabbrev_np.texi: New file.
4178         * doc/glibc-functions/sigdescr_np.texi: New file.
4179         * doc/glibc-functions/strerrordesc_np.texi: New file.
4180         * doc/glibc-functions/strerrorname_np.texi: New file.
4181         * doc/gnulib.texi: Include them.
4182         (Glibc sys/single_threaded.h): New section.
4183         * doc/pastposix-functions/h_errno.texi: Update.
4184         * doc/posix-functions/*.texi: Likewise.
4185         * doc/glibc-functions/*.texi: Likewise.
4187 2020-08-07  Bruno Haible  <bruno@clisp.org>
4189         alloca: No need to compile alloca.c with clang.
4190         * lib/alloca.c: Skip all code with clang.
4192         Use __builtin_alloca with clang.
4193         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
4195 2020-08-06  Bruno Haible  <bruno@clisp.org>
4197         Use __builtin_assume with clang.
4198         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
4199         (assume): Use __builtin_assume when available.
4201 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4203         libgmp: add <gmp/gmp.h> support
4204         * m4/libgmp.m4 (gl_LIBGMP):
4205         * modules/libgmp (configure.ac, Makefile.am):
4206         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
4207         ‘#include <gmp.h>’.
4209 2020-08-06  Bruno Haible  <bruno@clisp.org>
4211         Consider that clang defines __OPTIMIZE__ like GCC does.
4212         * lib/streq.h: Define the inline functions also on clang.
4213         * lib/c-strcaseeq.h: Likewise.
4214         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
4215         the GCC workaround to clang.
4217 2020-08-06  Bruno Haible  <bruno@clisp.org>
4219         safe-alloc: Remove unused code.
4220         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
4222 2020-08-06  Bruno Haible  <bruno@clisp.org>
4224         Use __builtin_expect with clang everywhere.
4225         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
4226         also on clang.
4228 2020-08-05  Bruno Haible  <bruno@clisp.org>
4230         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
4231         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
4232         built-in also on clang.
4233         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
4234         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
4236 2020-08-05  Bruno Haible  <bruno@clisp.org>
4238         Use __builtin_clz{,l,ll} with clang, also on Windows.
4239         * lib/integer_length.c: With clang, use the GCC built-in, not
4240         <intrin.h>.
4241         * lib/integer_length_l.c: Likewise.
4242         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
4243         also on clang.
4244         * lib/vasnprintf.c (divide): Likewise.
4246 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
4248         Update srclist.txt as per recent glibc changes
4249         * config/srclist.txt: Uncomment lines to reflect recent merges
4250         from Gnulib to glibc.
4252 2020-08-03  Bruno Haible  <bruno@clisp.org>
4254         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4255         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
4257 2020-08-03  Bruno Haible  <bruno@clisp.org>
4259         integer_length_ll: Optimize for MSVC in 64-bit mode.
4260         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4261         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4263 2020-08-03  Bruno Haible  <bruno@clisp.org>
4265         integer_length_ll: Optimize for MSVC in 32-bit mode.
4266         * lib/integer_length_l.c: Include <intrin.h>.
4267         (integer_length): Define as inline function, like in
4268         lib/integer_length.c.
4270 2020-08-03  Bruno Haible  <bruno@clisp.org>
4272         integer_length: Optimize for MSVC.
4273         * lib/integer_length.c: Include <intrin.h>.
4274         (integer_length): With MSVC, use the _BitScanReverse built-in.
4276 2020-08-03  Bruno Haible  <bruno@clisp.org>
4278         ffsll: Optimize for MSVC in 64-bit mode.
4279         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4280         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4281         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
4283 2020-08-03  Bruno Haible  <bruno@clisp.org>
4285         ffsll: Optimize for MSVC in 32-bit mode.
4286         * lib/ffsl.h: Include <intrin.h>.
4287         (ffs): Define as inline function, like in lib/ffs.c.
4289 2020-08-03  Bruno Haible  <bruno@clisp.org>
4291         ffs: Optimize for MSVC.
4292         * lib/ffs.c: Include <intrin.h>.
4293         (ffs): With MSVC, use the _BitScanForward built-in.
4295 2020-08-03  Bruno Haible  <bruno@clisp.org>
4297         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
4298         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
4299         variable.
4301 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
4303         fopen: Avoid undesired interactions with glibc headers.
4304         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
4305         __need_FILE, as the latter does not work with glibc.
4307 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4309         fcntl: document some F_SETLK errno variations
4310         * doc/posix-functions/fcntl.texi (fcntl): Document
4311         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
4313 2020-08-02  Bruno Haible  <bruno@clisp.org>
4315         oset: Add an 'iterator_atleast' operation.
4316         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
4317         extracted from gl_array_search_atleast.
4318         (gl_array_search_atleast): Use it.
4319         (gl_array_iterator_atleast): New function.
4320         (gl_array_oset_implementation): Use it.
4321         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
4322         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
4323         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
4324         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
4325         member.
4326         (gl_oset_iterator_atleast): New function.
4327         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
4328         (gl_OSet::iterator): Add another auxiliary constructor.
4329         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
4330         New functions.
4331         (main): Test also gl_oset_iterator_atleast.
4332         * tests/test-avltree_oset.c (is_at_least): New function.
4333         (main): Test also gl_oset_iterator_atleast.
4334         * tests/test-rbtree_oset.c (is_at_least): New function.
4335         (main): Test also gl_oset_iterator_atleast.
4336         * tests/test-oset-c++.cc (is_at_most): New function.
4337         (main): Test also gl_OSet::begin_atleast.
4339 2020-08-02  Bruno Haible  <bruno@clisp.org>
4341         oset-c++, omap-c++: Remove restriction for search_atleast method.
4342         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
4343         a different type than the element.
4344         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
4345         a different type than the key.
4347 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4349         gnumakefile: say ‘$(MAKE)’ not ‘make’
4350         * top/GNUmakefile (abort-due-to-no-makefile):
4351         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
4352         This change is backported from Autoconf.
4354 2020-08-01  Bruno Haible  <bruno@clisp.org>
4356         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4357         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
4358         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4359         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
4360         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
4361         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
4363 2020-08-01  Bruno Haible  <bruno@clisp.org>
4365         libtextstyle-optional: Update tests.
4366         * modules/libtextstyle-optional-tests (configure.ac): Invoke
4367         gl_LIBTEXTSTYLE_OPTIONAL.
4369 2020-08-01  Bruno Haible  <bruno@clisp.org>
4371         parse-datetime: Fix wrong #line statements.
4372         * modules/parse-datetime (Makefile.am): Correct #line statements also in
4373         parse-datetime-gen.h.
4375 2020-08-01  Bruno Haible  <bruno@clisp.org>
4377         libtextstyle[-optional]: Allow requesting a minimum version.
4378         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
4379         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
4380         gl_LIBTEXTSTYLE_SEARCH): New macros.
4381         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
4382         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
4383         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
4384         * modules/libtextstyle-optional (configure.ac): Don't invoke
4385         gl_LIBTEXTSTYLE_OPTIONAL.
4386         * NEWS: Mention the changes.
4388 2020-07-31  Bruno Haible  <bruno@clisp.org>
4390         _GL_CMP: Improve documentation.
4391         Reported by Paul Eggert in
4392         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
4393         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
4394         passed.
4396 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4398         largefile: sync with Autoconf master
4399         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
4400         Avoid undefined behavior on platforms where off_t is 32 bits.
4401         See: https://bugs.debian.org/742780
4403         alloca: sync with Autoconf master
4404         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4405         Do not define if Autoconf 2.70 or later, since Autoconf master
4406         now matches us.
4408 2020-07-30  Bruno Haible  <bruno@clisp.org>
4410         unicodeio: Add comment.
4411         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
4412         different iconv behaviours.
4414 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4416         Work around some Oracle Studio attribute bugs
4417         These were discovered when building bleeding-edge Emacs with
4418         Oracle Studio.
4419         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
4420         Port to Oracle Studio 12.6, which mishandles __attribute__
4421         ((__cold__)) and __attribute__ ((__may_alias__)) even though
4422         __has_attribute says they work.
4424 2020-07-29  Bruno Haible  <bruno@clisp.org>
4426         unicodeio: Fix wrong result on musl libc.
4427         Reported by A. Wilcox <awilfox@adelielinux.org> in
4428         <https://www.openwall.com/lists/musl/2020/07/29/2>.
4429         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
4430         on musl libc.
4431         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
4432         * modules/unicodeio (Files): Add m4/musl.m4.
4434 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4436         fsusage, regex, stat-size: remove Cray support
4437         As near as I can make out this is actually support for UNICOS/mp,
4438         last released 2005, and Cray hasn’t supported that for years.
4439         * config/srclist.txt: Comment out regex.h for now.
4440         * lib/fsusage.c (get_fs_usage):
4441         * lib/regex.h (re_comp, re_exec):
4442         * lib/stat-size.h (ST_NBLOCKSIZE):
4443         Don’t worry about _CRAY.
4445 2020-07-29  Bruno Haible  <bruno@clisp.org>
4447         parse-datetime: Fix compilation error with bison 3.7.
4448         * modules/parse-datetime (Makefile.am): Create a generated header file
4449         parse-datetime-gen.h in the source directory. Correct #include and
4450         #line statements during preprocessing.
4452 2020-07-28  Bruno Haible  <bruno@clisp.org>
4454         fopen-gnu: Create files correctly (regression from 2020-05-24).
4455         * lib/fopen.c (rpl_open): Pass a third argument to open().
4457 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4459         xalloc-die: don’t depend on xalloc
4460         This removes a circular dependency, as xalloc depends on xalloc-die.
4461         * modules/xalloc-die (Files): Add lib/xalloc.h.
4462         (Depends-on): Remove xalloc.
4463         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
4465         dfa-tests: port to MSVC
4466         Problem reported by Gisle Vanem in:
4467         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
4468         Also, remove an unnecessary dependency on getprogname.
4469         * modules/dfa-tests (Depends-on): Remove getprogname.
4470         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
4471         (exit_status): New static var.
4472         (dfawarn): Set it instead of exiting.
4473         Do not declare as _Noreturn, to pacify MSVC.
4474         (main): Return exit_status.
4476 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4478         argz: pacify MSVC
4479         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
4480         Problem reported by Gisle Vanem.
4482         libgmp: remove dependency on havelib
4483         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
4484         use the more-traditional AC_SEARCH_LIBS approach.
4485         This should work better with GNU Emacs configuration,
4486         which uses pkg-config instead of a havelib-style approach.
4487         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
4488         * modules/libgmp (Depends-on): Remove havelib.
4490         libgmp: remove HAVE_GMP, LIB_GMP
4491         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
4492         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
4494 2020-07-26  Bruno Haible  <bruno@clisp.org>
4496         inttypes: Remove support for AIX 4.
4497         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
4498         * m4/inttypes-pri.m4: Remove file.
4499         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
4500         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
4501         * modules/inttypes-incomplete (Makefile.am): Don't substitute
4502         PRI_MACROS_BROKEN.
4503         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
4505 2020-07-26  Bruno Haible  <bruno@clisp.org>
4507         gettimeofday: Remove workaround for Mac OS X 10.0.
4508         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
4509         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
4510         * lib/gettimeofday.c: Don't include localtime-buffer.h.
4511         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4512         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4513         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
4514         * modules/localtime-buffer: Remove file.
4515         * lib/localtime-buffer.h: Remove file.
4516         * lib/localtime-buffer.c: Remove file.
4517         * m4/localtime-buffer.m4: Remove file.
4518         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
4520 2020-07-26  Bruno Haible  <bruno@clisp.org>
4522         tzset: Remove workaround for Solaris 2.6.
4523         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
4524         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
4525         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
4526         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
4527         * lib/localtime-buffer.c: Likewise.
4528         * lib/localtime.c: Likewise.
4529         * lib/tzset.c: Don't include localtime-buffer.h.
4530         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
4531         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
4532         is 1.
4533         * modules/tzset (Depends-on): Remove localtime-buffer.
4535 2020-07-26  Bruno Haible  <bruno@clisp.org>
4537         expl: Simplify autoconf test.
4538         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
4539         with small values..." test into the "checking whether expl works..."
4540         test.
4542 2020-07-26  Bruno Haible  <bruno@clisp.org>
4544         alloca: Remove Cray-2 and Cray Y-MP support.
4545         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
4546         Enable also on Autoconf >= 2.69.
4547         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
4548         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
4549         i00afunc): Remove.
4551 2020-07-25  Bruno Haible  <bruno@clisp.org>
4553         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
4554         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
4556 2020-07-25  Bruno Haible  <bruno@clisp.org>
4558         sigprocmask: Small autoconf macro improvement.
4559         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
4560         user to override the value of gl_cv_func_sigprocmask.
4561         * m4/gnulib-common.m4 (gl_SILENT): New macro.
4563 2020-07-25  Bruno Haible  <bruno@clisp.org>
4565         Small autoconf macro improvements.
4566         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
4567         override the value of gl_cv_func_working_mktime.
4568         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
4569         compiler produces multi-arch binaries..." in the configure output.
4570         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
4571         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
4573 2020-07-25  Bruno Haible  <bruno@clisp.org>
4575         doc: Update for NetBSD 7.1, 8.0, 9.0.
4576         * doc/*/*.texi: Update.
4577         * m4/exp2l.m4: Update comments.
4578         * m4/expl.m4: Likewise.
4579         * m4/ilogb.m4: Likewise.
4580         * m4/ilogbf.m4: Likewise.
4581         * m4/log10l.m4: Likewise.
4582         * m4/logl.m4: Likewise.
4583         * m4/printf.m4: Likewise.
4584         * m4/rintl.m4: Likewise.
4585         * m4/wcwidth.m4: Likewise.
4587 2020-07-24  Bruno Haible  <bruno@clisp.org>
4589         doc: Update for Mac OS X 10.13.
4590         * doc/*/*.texi: Update.
4591         * m4/expm1l.m4: Update comments.
4592         * m4/getgroups.m4: Likewise.
4593         * m4/getlogin_r.m4: Likewise.
4594         * m4/linkat.m4: Likewise.
4595         * m4/printf.m4: Likewise.
4597 2020-07-24  Bruno Haible  <bruno@clisp.org>
4599         doc: Update for Cygwin 2.9.0.
4600         * doc/*/*.texi: Update.
4602 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4604         parse-datetime: modernize doc
4605         * doc/parse-datetime.texi: Use more-current examples.
4606         Don’t lead with 32-bit time_t, as it’s on its way out.
4607         Capitalize “Epoch” to be consistent with POSIX.
4609         timespec: remove dependence on ‘verify’
4610         * lib/timespec.h: Do not include verify.h; no longer needed.
4611         * modules/timespec (Depends-on): Remove ‘verify’.
4613         Optimize a few more three-valued comparisons
4614         * lib/timespec.h (timespec_cmp, timespec_sign):
4615         * lib/utimecmp.c (utimecmpat):
4616         Avoid conditional branches by using _GL_CMP.
4618         Fix _GL_CMP parenthesization typo
4619         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
4621 2020-07-24  Bruno Haible  <bruno@clisp.org>
4623         dfa: Revert breaking gawk.
4624         Reported by Arnold Robbins <arnold@skeeve.com>.
4625         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
4627 2020-07-23  Bruno Haible  <bruno@clisp.org>
4629         Optimize three-valued comparison between integers.
4630         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
4631         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
4632         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
4633         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
4634         * lib/dfa.c (compare): Likewise.
4635         * lib/fts.c (fts_compare_ino): Likewise.
4636         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
4637         * lib/mbscasecmp.c (mbscasecmp): Likewise.
4638         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
4639         * lib/memcasecmp.c (memcasecmp): Likewise.
4640         * lib/memcmp2.c (memcmp2): Likewise.
4641         * lib/savedir.c (direntry_cmp_inode): Likewise.
4642         * lib/strcasecmp.c (strcasecmp): Likewise.
4643         * lib/strncasecmp.c (strncasecmp): Likewise.
4644         * lib/unistr/u-cmp2.h (FUNC): Likewise.
4646 2020-07-23  Bruno Haible  <bruno@clisp.org>
4648         lchmod: Use /proc on Cygwin.
4649         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
4651 2020-07-23  Ken Brown  <kbrown@cornell.edu>
4653         fchmodat: Use /proc on Cygwin
4654         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
4656 2020-07-21  Bruno Haible  <bruno@clisp.org>
4658         aligned-malloc: Optionally use aligned_alloc.
4659         * lib/aligned-malloc.h: Verify the alignment.
4660         (aligned_malloc): Use aligned_alloc as an alternative.
4661         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
4662         * doc/posix-functions/aligned_alloc.texi: Mention the modules
4663         'aligned-malloc' and 'pagealign_alloc'.
4665 2020-07-21  Bruno Haible  <bruno@clisp.org>
4667         aligned-malloc: Add tests.
4668         * tests/test-aligned-malloc.c: New file.
4669         * modules/aligned-malloc-tests: New file.
4671         aligned-malloc: New module.
4672         * lib/aligned-malloc.h: New file.
4673         * m4/malloc-align.m4: New file.
4674         * modules/aligned-malloc: New file.
4675         * doc/posix-functions/posix_memalign.texi: Mention the new module.
4676         * doc/glibc-functions/memalign.texi: Likewise.
4678 2020-07-21  Bruno Haible  <bruno@clisp.org>
4680         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
4681         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
4682         sure PRIPTR_PREFIX is defined to "ll", not "l".
4684 2020-07-21  Bruno Haible  <bruno@clisp.org>
4686         printf-posix: Make an autoconf test more future-proof.
4687         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
4688         using uintptr_t.
4690 2020-07-20  Bruno Haible  <bruno@clisp.org>
4692         list, oset, omap: Relicense some of the container modules under LGPLv2+.
4693         * modules/list (License): Change to LGPLv2+.
4694         * modules/array-list (License): Likewise.
4695         * modules/carray-list (License): Likewise.
4696         * modules/linked-list (License): Likewise.
4697         * modules/avltree-list (License): Likewise.
4698         * modules/rbtree-list (License): Likewise.
4699         * modules/oset (License): Likewise.
4700         * modules/array-oset (License): Likewise.
4701         * modules/avltree-oset (License): Likewise.
4702         * modules/rbtree-oset (License): Likewise.
4703         * modules/omap (License): Likewise.
4704         * modules/array-omap (License): Likewise.
4705         * modules/avltree-omap (License): Likewise.
4706         * modules/rbtree-omap (License): Likewise.
4708 2020-07-20  Bruno Haible  <bruno@clisp.org>
4710         oset: Add an 'update' operation.
4711         * lib/gl_array_oset.c (gl_array_update): New function.
4712         (gl_array_oset_implementation): Use it.
4713         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4714         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4715         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
4716         extracted from gl_tree_nx_add_before.
4717         (gl_tree_nx_add_before): Invoke it.
4718         (gl_tree_add_node_after): New function, extracted from
4719         gl_tree_nx_add_after.
4720         (gl_tree_nx_add_after): Invoke it.
4721         (gl_tree_remove_node_no_free): New function, extracted from
4722         gl_tree_remove_node.
4723         (gl_tree_remove_node): Invoke it.
4724         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
4725         extracted from gl_tree_nx_add_before.
4726         (gl_tree_nx_add_before): Invoke it.
4727         (gl_tree_add_node_after): New function, extracted from
4728         gl_tree_nx_add_after.
4729         (gl_tree_nx_add_after): Invoke it.
4730         (gl_tree_remove_node_no_free): New function, extracted from
4731         gl_tree_remove_node.
4732         (gl_tree_remove_node): Invoke it.
4733         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
4734         from gl_tree_iterator_next.
4735         (gl_tree_iterator_next): Invoke it.
4736         (gl_tree_prev_node, gl_tree_update): New functions.
4737         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4738         (gl_avltree_oset_implementation): Use gl_tree_update.
4739         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4740         (gl_rbtree_oset_implementation): Use gl_tree_update.
4741         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
4742         (gl_oset_update): New function.
4743         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
4744         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
4745         * modules/rbtree-oset (configure.ac): Likewise.
4746         * tests/test-oset-update.h: New file.
4747         * tests/test-array_oset.c: Include test-oset-update.h.
4748         (main): Invoke test_update.
4749         * tests/test-avltree_oset.c: Likewise.
4750         * tests/test-rbtree_oset.c: Likewise.
4751         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
4752         * modules/avltree-oset-tests (Files): Likewise.
4753         * modules/rbtree-oset-tests (Files): Likewise.
4754         * tests/test-oset-c++.cc (action): New function.
4755         (main): Test the 'update' member function.
4757 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4759         md5, sha1, sha256, sha512: pacify Autoconf 2.70
4760         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
4761         shell if, so that the argument to AC_CHECK_HEADERS is
4762         a simple string that does not require shell evaluation.
4763         This fixes a warning generated by Autoconf 2.69b.
4765 2020-07-12  Bruno Haible  <bruno@clisp.org>
4767         libgmp: Avoid warning when --without-libgmp is used.
4768         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
4769         GCC >= 8, not for GCC >= 4.6.
4771 2020-07-12  Bruno Haible  <bruno@clisp.org>
4773         libgmp: Link to the correct shared library.
4774         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
4775         * modules/libgmp (Depends-on): Add havelib.
4776         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
4777         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
4779 2020-07-12  Bruno Haible  <bruno@clisp.org>
4781         libgmp tests: Add some safety checks.
4782         * modules/libgmp-tests (Depends-on): Add verify.
4783         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
4784         (main): Verify that gmp.h and libgmp versions match.
4786 2020-07-10  Bruno Haible  <bruno@clisp.org>
4788         unicodeio: Fix wrong result on NetBSD.
4789         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4790         characters also on NetBSD.
4792 2020-07-09  Bruno Haible  <bruno@clisp.org>
4794         unicodeio: Fix wrong result on Solaris 11.
4795         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
4796         via Akim Demaille <akim.demaille@gmail.com> in
4797         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
4798         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4799         characters on Solaris.
4800         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
4801         UTF-8 output or the specified fallback.
4803 2020-07-08  Bruno Haible  <bruno@clisp.org>
4805         unicodeio: Add tests.
4806         * tests/test-unicodeio.c: New file.
4807         * tests/test-unicodeio1.sh: New file.
4808         * tests/test-unicodeio2.sh: New file.
4809         * tests/test-unicodeio3.sh: New file.
4810         * modules/unicodeio-tests: New file.
4812 2020-07-08  Bruno Haible  <bruno@clisp.org>
4814         unicodeio: Document link requirements.
4815         * modules/unicodeio (Link): New section.
4817 2020-07-07  Bruno Haible  <bruno@clisp.org>
4819         doc: Remove support for some very old platforms.
4820         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
4821         * doc/posix-functions/memcpy.texi: Likewise.
4822         * doc/posix-functions/memmove.texi: Likewise.
4823         * doc/posix-functions/memset.texi: Likewise.
4824         * doc/posix-functions/getcwd.texi: Likewise.
4826         memchr: Remove support for some very old platforms.
4827         * m4/memchr-obsolete.m4: Remove file.
4828         * modules/memchr-obsolete: Remove file.
4829         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
4830         absent. Don't define HAVE_MEMCHR.
4831         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
4832         * modules/memchr (Depends-on): Remove memchr-obsolete.
4833         (configure.ac): Assume HAVE_MEMCHR is 1.
4834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4835         HAVE_MEMCHR.
4836         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
4837         * doc/posix-functions/memchr.texi: Don't mention module
4838         'memchr-obsolete'.
4839         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4840         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4841         * modules/strnlen (Depends-on): Remove memchr-obsolete.
4843         dup2: Remove support for some very old platforms.
4844         * m4/dup2-obsolete.m4: Remove file.
4845         * modules/dup2-obsolete: Remove file.
4846         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
4847         Don't define HAVE_DUP2.
4848         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
4849         * lib/dup2.c: Likewise.
4850         * modules/dup2 (Depends-on, configure.ac): Likewise.
4851         (Depends-on): Remove dup2-obsolete.
4852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
4853         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
4854         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
4856 2020-07-07  Bruno Haible  <bruno@clisp.org>
4858         canonicalize: Trim module dependencies.
4859         * lib/hash-triple.h: Group declarations.
4860         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
4861         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
4862         (STREQ): Remove macro.
4863         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
4864         * modules/hash-triple-simple: New file, based on modules/hash-triple.
4865         * modules/hash-triple (Files): Remove lib/hash-triple.h.
4866         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
4867         * modules/canonicalize (Depends-on): Remove hash-triple. Add
4868         hash-triple-simple.
4869         * modules/file-set (Depends-on): Likewise.
4871 2020-07-07  Bruno Haible  <bruno@clisp.org>
4873         Clarify dependencies to double-slash-root.
4874         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
4875         (Depends-on): Add double-slash-root.
4876         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
4877         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
4879 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4881         libgmp: new module
4882         The idea is to let programs simply include <gmp.h>, and
4883         so long as they live within the mini-gmp subset they need
4884         not worry about whether the GMP libraries are installed.
4885         * MODULES.html.sh: Mention it.
4886         * config/srclist.txt: Mention files copied from GMP source.
4887         * config/srclistvars.sh (GMP): New var.
4888         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
4889         * modules/libgmp-tests, tests/test-libgmp.c: New files.
4890         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
4892 2020-07-05  Bruno Haible  <bruno@clisp.org>
4894         mkancesdirs: Trim module dependencies.
4895         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
4896         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
4898 2020-07-05  Bruno Haible  <bruno@clisp.org>
4900         getprogname: Trim module dependencies.
4901         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
4902         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
4903         basename-lgpl.
4905 2020-07-05  Bruno Haible  <bruno@clisp.org>
4907         filenamecat-lgpl: Trim module dependencies.
4908         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
4909         dirname.h.
4910         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
4911         basename-lgpl, filename.
4913 2020-07-05  Bruno Haible  <bruno@clisp.org>
4915         backupfile, backup-rename: Trim module dependencies.
4916         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
4917         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
4918         basename-lgpl.
4919         * modules/backup-rename (Depends-on): Likewise.
4921 2020-07-05  Bruno Haible  <bruno@clisp.org>
4923         argp: Trim module dependencies.
4924         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
4925         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
4927 2020-07-05  Bruno Haible  <bruno@clisp.org>
4929         basename-lgpl: New module.
4930         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
4931         lib/basename-lgpl.c.
4932         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
4933         <stdbool.h>, filename.h.
4934         (last_component): Rename a local variable.
4935         * lib/dirname.h: Include basename-lgpl.h.
4936         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
4937         (last_component, base_len): Remove declarations.
4938         * modules/basename-lgpl: New file.
4939         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
4940         (Depends-on): Add basename-lgpl. Remove double-slash-root.
4941         (Makefile.am): Don't compile basename-lgpl.c.
4942         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
4943         not 'dirname'.
4945 2020-07-05  Bruno Haible  <bruno@clisp.org>
4947         dirname, dirname-lgpl: Simplify.
4948         * m4/dirname.m4: Remove file.
4949         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
4950         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
4951         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
4953 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
4955         tests: avoid shadowing warning
4956         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
4958 2020-07-05  Bruno Haible  <bruno@clisp.org>
4960         supersede: Add tests.
4961         * tests/test-supersede.c: New file.
4962         * tests/test-supersede-open.h: New file.
4963         * tests/test-supersede-fopen.h: New file.
4964         * modules/supersede-tests: New file.
4966         supersede: New module.
4967         * lib/supersede.h: New file.
4968         * lib/supersede.c: New file.
4969         * m4/supersede.m4: New file.
4970         * modules/supersede: New file.
4972 2020-07-05  Bruno Haible  <bruno@clisp.org>
4974         Add some copyright headers.
4975         * lib/dev-ino.h: Add copyright header.
4976         * lib/di-set.h: Likewise.
4977         * lib/fchown-stub.c: Likewise.
4978         * lib/file-set.h: Likewise.
4979         * lib/hash-triple.h: Likewise.
4980         * lib/idcache.h: Likewise.
4981         * lib/ino-map.h: Likewise.
4982         * lib/mkancesdirs.h: Likewise.
4983         * lib/scratch_buffer.h: Likewise.
4984         * lib/se-context.in.h: Likewise.
4985         * lib/stdopen.h: Likewise.
4986         * lib/userspec.h: Likewise.
4988 2020-07-04  Bruno Haible  <bruno@clisp.org>
4990         getrandom: Relicense under LGPLv2+.
4991         Paul Eggert's approval is in
4992         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
4993         * modules/getrandom (License): Change to LGPLv2+.
4995 2020-07-04  Bruno Haible  <bruno@clisp.org>
4997         getumask: Add tests.
4998         * tests/test-getumask.c: New file.
4999         * modules/getumask-tests: New file.
5001         getumask: New module.
5002         * lib/sys_stat.in.h (getumask): New declaration.
5003         * lib/getumask.c: New file.
5004         * m4/getumask.m4: New file.
5005         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
5006         declared.
5007         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
5008         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
5009         HAVE_GETUMASK.
5010         * modules/getumask: New file.
5011         * tests/test-sys_stat-c++.cc (getumask): Check signature.
5012         * doc/glibc-functions/getumask.texi: New file.
5013         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
5015 2020-07-04  Bruno Haible  <bruno@clisp.org>
5017         clean-temp: Add support for temporary files with given mode.
5018         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
5019         * lib/clean-temp.c (struct try_create_file_params): New type.
5020         (try_create_file): New function.
5021         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
5022         gen_tempname.
5024 2020-07-04  Bruno Haible  <bruno@clisp.org>
5026         clean-temp: Document limitations.
5027         * lib/clean-temp.h: Document limitations.
5029 2020-07-04  Bruno Haible  <bruno@clisp.org>
5031         clean-temp: Add support for temporary files with unpredictable names.
5032         * lib/clean-temp.h (gen_register_open_temp): New declaration.
5033         * lib/clean-temp.c: Include tempname.h.
5034         (gen_register_open_temp): New function.
5035         * modules/tempname (configure.ac): Define a module indicator.
5037 2020-07-04  Bruno Haible  <bruno@clisp.org>
5039         clean-temp: Add support for temporary files anywhere in the file system.
5040         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
5041         cleanup_temporary_file): New declarations.
5042         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
5043         variables.
5044         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
5045         (dir_cleanup_list): Renamed from cleanup_list.
5046         (cleanup_action): Process the file_cleanup_list as well.
5047         (do_init_clean_temp): New function.
5048         (clean_temp_once): New variable.
5049         (init_clean_temp): New function.
5050         (create_temp_dir): Invoke it.
5051         (register_temporary_file, unregister_temporary_file,
5052         cleanup_temporary_file): New functions.
5053         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
5054         argument.
5056 2020-07-04  Bruno Haible  <bruno@clisp.org>
5058         clean-temp: Improve comments.
5059         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
5060         fwriteerror_temp, close_stream_temp): Clarify intended use.
5061         * lib/clean-temp.c: Likewise.
5063 2020-07-04  Bruno Haible  <bruno@clisp.org>
5065         clean-temp: Make multithread-safe, part 2.
5066         * lib/fatal-signal.h: Include <signal.h>.
5067         (get_fatal_signal_set): New declaration.
5068         * lib/fatal-signal.c (get_fatal_signal_set): New function.
5069         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
5070         (struct closeable_fd): New type.
5071         (fatal_signal_set): New variable.
5072         (init_fatal_signal_set): New function.
5073         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
5074         (cleanup_action): Invoke asyncsafe_close instead of close.
5075         (create_temp_dir): Invoke init_fatal_signal_set.
5076         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
5077         element.
5078         (unregister_fd): Remove function.
5079         (close_temp): Cleanup descriptors list on the fly. Invoke
5080         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
5081         (fclose_variant_temp): New function.
5082         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
5083         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
5085 2020-07-04  Bruno Haible  <bruno@clisp.org>
5087         clean-temp: Make multithread-safe, part 1.
5088         * lib/clean-temp.c: Include glthread/lock.h.
5089         (cleanup_list_lock): New variable.
5090         (register_temp_file, unregister_temp_file, register_temp_subdir,
5091         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
5092         (create_temp_dir): Likewise. Don't free the old array.
5093         (descriptors_lock): New variable.
5094         (register_fd, unregister_fd): Use it.
5095         * modules/clean-temp (Depends-on): Add lock.
5097 2020-07-04  Bruno Haible  <bruno@clisp.org>
5099         fatal-signal: Make multithread-safe.
5100         * lib/fatal-signal.c (init_fatal_signals): Add comment.
5101         (do_init_fatal_signal_set): New function, extracted from
5102         init_fatal_signal_set.
5103         (fatal_signal_set_once): New variable.
5104         (init_fatal_signal_set): Use gl_once.
5106 2020-07-03  Bruno Haible  <bruno@clisp.org>
5108         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
5109         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
5110         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
5111         <bcrypt.h>.
5113 2020-07-03  Bruno Haible  <bruno@clisp.org>
5115         dfa tests: Follow common file naming conventions.
5116         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
5117         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
5118         * tests/test-dfa-invalid-char-class.sh: Renamed from
5119         tests/dfa-invalid-char-class.sh. Update.
5120         * modules/dfa-tests (Files, Makefile.am): Update.
5122 2020-07-03  Bruno Haible  <bruno@clisp.org>
5124         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
5125         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
5126         the GCC extended asm syntax also for the Sun Studio 12 compilers.
5128 2020-07-03  Bruno Haible  <bruno@clisp.org>
5130         asyncsafe-spin: Reduce code duplication.
5131         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
5132         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
5133         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
5135 2020-07-03  Bruno Haible  <bruno@clisp.org>
5137         lchmod: Simplify after 2020-02-22 change.
5138         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
5140 2020-07-03  Bruno Haible  <bruno@clisp.org>
5142         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
5143         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
5145 2020-07-03  Bruno Haible  <bruno@clisp.org>
5147         dfa: Make sure the compiler does not barf on 'inline'.
5148         * modules/dfa (configure.ac): Require AC_C_INLINE.
5150 2020-07-03  Bruno Haible  <bruno@clisp.org>
5152         bitset: Make sure the compiler does not barf on 'inline'.
5153         * modules/bitset (configure.ac): New section.
5155 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5157         manywarnings: improve port to GCC 10.1
5158         * build-aux/gcc-warning.spec: Also list warnings that are default
5159         or are enabled by already-given flags.  This lets us speed up
5160         checking for attributes, and makes the generated compilation
5161         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
5162         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
5163         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
5164         to shell variables that may have long values.
5165         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
5166         consequences of other flags, to speed up checking and
5167         shorten commands.
5169         tests: pacify gcc -fanalyzer on zerosize_ptr
5170         * tests/test-memcasecmp.c (main):
5171         * tests/test-memchr.c (main):
5172         * tests/test-memchr2.c (main):
5173         * tests/test-memcmp.c (main):
5174         * tests/test-memmem.c (main):
5175         * tests/test-memrchr.c (main):
5176         * tests/unistr/test-chr.h (main):
5177         * tests/unistr/test-cmp.h (test_cmp):
5178         Check whether zerosize_ptr returns NULL before using it.
5179         This pacifies GCC 10.1’s new fanalyzer option, and matches
5180         other uses of zerosize_ptr.
5182 2020-07-01  Bruno Haible  <bruno@clisp.org>
5184         asyncsafe-spin: Add tests.
5185         * tests/test-asyncsafe-spin1.c: New file.
5186         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
5187         tests/test-pthread-spin.c.
5188         * modules/asyncsafe-spin-tests: New file.
5190 2020-07-01  Bruno Haible  <bruno@clisp.org>
5192         asyncsafe-spin: New module.
5193         * lib/asyncsafe-spin.h: New file.
5194         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
5195         * modules/asyncsafe-spin: New file.
5197 2020-07-01  Bruno Haible  <bruno@clisp.org>
5199         windows-spin: Fix race condition on multiprocessor systems.
5200         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
5202 2020-07-01  Bruno Haible  <bruno@clisp.org>
5204         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
5205         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5206         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
5207         an implementation based on other GCC built-ins.
5209 2020-07-01  Bruno Haible  <bruno@clisp.org>
5211         pthread-spin: Optimize fallback for GCC versions >= 4.7.
5212         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5213         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
5214         lock byte.
5216 2020-07-01  Bruno Haible  <bruno@clisp.org>
5218         pthread-spin: Add error checking.
5219         * lib/pthread-spin.c: Include <stdbool.h>.
5220         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
5221         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
5222         the unlocks.
5223         * modules/pthread-spin (Depends-on): Add stdbool.
5225 2020-07-01  Bruno Haible  <bruno@clisp.org>
5227         pthread-spin: Add tests.
5228         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
5229         * modules/pthread-spin-tests: New file.
5231 2020-07-01  Bruno Haible  <bruno@clisp.org>
5233         tests: Reduce code duplication.
5234         * tests/atomic-int-posix.h: New file, extracted from
5235         tests/test-pthread-mutex.c.
5236         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
5237         * tests/test-pthread-rwlock.c: Likewise.
5238         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
5239         * modules/pthread-rwlock-tests (Files): Likewise.
5241 2020-07-01  Bruno Haible  <bruno@clisp.org>
5243         tests: Refactor.
5244         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
5245         * tests/test-mtx.c: Include it. Remove the corresponding code.
5246         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
5248 2020-07-01  Bruno Haible  <bruno@clisp.org>
5250         tests: Refactor.
5251         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
5252         * tests/test-lock.c: Include it. Remove the corresponding code.
5253         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
5255 2020-06-29  Bruno Haible  <bruno@clisp.org>
5257         sys_socket: Don't define socklen_t if it is already defined on mingw.
5258         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
5259         <https://savannah.gnu.org/bugs/?57725>,
5260         by Rahul Das <bokul_4u@yahoo.com> in
5261         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
5262         and by Eli Zaretskii <eliz@gnu.org> in
5263         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
5264         * lib/sys_socket.in.h (socklen_t): Remove definition.
5266 2020-06-29  Bruno Haible  <bruno@clisp.org>
5268         alloca-opt: Fix warning on mingw.
5269         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
5270         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
5271         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
5272         whether alloca is defined.
5274 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5276         getrandom: do not depend on ‘open’ on mingw
5277         Similarly for at-internal, getloadavg.  These modules do not call
5278         the ‘open’ function when they are compiled on mingw.  On mingw,
5279         this avoids having to compile open.c when building Emacs, which
5280         does its own thing with ‘open’.
5281         * modules/at-internal, modules/getloadavg, modules/getrandom:
5282         (Depends-on): Don’t depend on ‘open’ on mingw.
5283         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
5284         * modules/getloadavg (Depends-on):
5285         Depend on intprops, open, stdbool, stdlib only if compiling
5286         getloadavg.c.
5288 2020-06-28  Bruno Haible  <bruno@clisp.org>
5290         doc: Add a note about sigprocmask vs. pthread_sigmask.
5291         * doc/posix-functions/sigprocmask.texi: Add note.
5293 2020-06-28  Bruno Haible  <bruno@clisp.org>
5295         getrandom: Fix compilation errors on older versions of mingw.
5296         Reported by Eli Zaretskii <eliz@gnu.org> in
5297         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
5298         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
5299         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
5300         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
5301         BCryptGenRandom ourselves.
5303 2020-06-28  Bruno Haible  <bruno@clisp.org>
5305         clean-temp: Fix wrong errno in error message.
5306         * lib/clean-temp.c (create_temp_dir): Save errno around
5307         unblock_fatal_signals call.
5309 2020-06-27  Bruno Haible  <bruno@clisp.org>
5311         fatal-signal: Make multithread-safe.
5312         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
5314 2020-06-27  Bruno Haible  <bruno@clisp.org>
5316         clean-temp: Don't force deletion of temporary files on native Windows.
5317         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
5318         argument.
5319         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
5320         * NEWS: Mention the change.
5321         * lib/javacomp.c (write_temp_file): Update.
5323 2020-06-27  Bruno Haible  <bruno@clisp.org>
5325         fatal-signal: Make multithread-safe.
5326         * lib/fatal-signal.c: Include glthread/lock.h.
5327         (at_fatal_signal_lock): New variable.
5328         (at_fatal_signal): Use it.
5329         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
5330         (block_fatal_signals, unblock_fatal_signals): Use them.
5331         * modules/fatal-signal (Depends-on): Add lock.
5333 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
5335         getloadavg: don’t depend on fopen-gnu
5336         This is for Emacs, which does not need fopen-gnu for anything else,
5337         and which would need it only on a NetBSD platform where getloadavg
5338         does not work (does that even happen?).
5339         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
5340         * modules/getloadavg (Depends-on): Remove fopen-gnu.
5342         * tests/test-getloadavg.c (main): Fix typo.
5344 2020-06-27  Bruno Haible  <bruno@clisp.org>
5346         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
5347         * modules/tempname (Link): New section.
5348         * modules/mkdtemp (Link): Likewise.
5349         * modules/clean-temp (Link): Likewise.
5350         * modules/mkstemp (Link): Likewise.
5351         * modules/stdlib-safer (Link): Likewise.
5352         * modules/mkstemps (Link): Likewise.
5353         * modules/mkostemp (Link): Likewise.
5354         * modules/mkostemps (Link): Likewise.
5355         * modules/tmpfile (Link): Likewise.
5356         * modules/tmpfile-safer (Link): Likewise.
5357         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
5358         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
5359         $(LIB_GETRANDOM).
5360         * NEWS: Mention the changes.
5362 2020-06-27  Bruno Haible  <bruno@clisp.org>
5364         fopen-gnu: Simplify code.
5365         * lib/fopen.c: Include <stdbool.h>.
5366         (rpl_fopen): Use a single variable open_flags instead of
5367         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
5368         * modules/fopen (Depends-on): Add stdbool.
5370 2020-06-26  Bruno Haible  <bruno@clisp.org>
5372         canonicalize: Improve documentation.
5373         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
5374         return convention.
5376 2020-06-26  Bruno Haible  <bruno@clisp.org>
5378         xgetcwd: Improve documentation.
5379         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
5381 2020-06-26  Bruno Haible  <bruno@clisp.org>
5383         getcwd: Improve documentation.
5384         * lib/getcwd.c (__getcwd): Document the failure return convention.
5386 2020-06-26  Bruno Haible  <bruno@clisp.org>
5388         fchdir: Improve documentation.
5389         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
5390         convention.
5392 2020-06-26  Bruno Haible  <bruno@clisp.org>
5394         filenamecat-lgpl: Set errno upon failure.
5395         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
5396         return convention.
5397         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
5399 2020-06-26  Bruno Haible  <bruno@clisp.org>
5401         areadlink-with-size: Set errno upon failure.
5402         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
5403         fails.
5404         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
5406 2020-06-26  Bruno Haible  <bruno@clisp.org>
5408         copy-file: Shrink dependencies.
5409         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
5410         qcopy-acl.
5412 2020-06-26  Bruno Haible  <bruno@clisp.org>
5414         doc: Mention declaration fixes implemented by some modules.
5415         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
5416         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
5417         declaration appear in <unistd.h>.
5418         * doc/posix-functions/dup.texi: Likewise.
5419         * doc/posix-functions/dup2.texi: Likewise.
5420         * doc/posix-functions/gethostname.texi: Likewise.
5421         * doc/posix-functions/isatty.texi: Likewise.
5422         * doc/posix-functions/lseek.texi: Likewise.
5423         * doc/posix-functions/unlink.texi: Likewise.
5424         * doc/posix-functions/read.texi: Mention the module 'read'.
5425         * doc/posix-functions/write.texi: Mention the effects of the module
5426         'write'.
5428 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
5430         c-dtoastr, c-ldtoastr: new modules
5431         These modules provide the same functionality as the modules
5432         dtoastr and ldtoastr except for the formatting taking place in the
5433         C locale.
5434         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
5435         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
5436         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
5437         defined.  Use c_snprintf and c_strtod/c_strtold instead of
5438         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
5439         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
5440         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
5441         modules/c-ldtoastr-tests: New files.
5442         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
5443         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
5445 2020-06-21  Bruno Haible  <bruno@clisp.org>
5447         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
5448         * lib/tzset.c: Include <stdlib.h>, <string.h>.
5450 2020-06-16  Bruno Haible  <bruno@clisp.org>
5452         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
5453         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
5455 2020-06-16  Bruno Haible  <bruno@clisp.org>
5457         thread, thrd: Avoid a compiler warning.
5458         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
5460 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
5462         windows-thread: Avoid a compiler warning.
5463         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
5464         void.
5465         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
5467 2020-06-15  Bruno Haible  <bruno@clisp.org>
5469         unictype/joininggroup-name: Fix warning on 64-bit mingw.
5470         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
5471         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
5472         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
5473         first.
5475 2020-06-06  Bruno Haible  <bruno@clisp.org>
5477         calloc-gnu tests: Avoid a test failure with clang.
5478         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
5479         'volatile', to defeat compiler optimizations.
5481 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5483         getloadavg: fix double-increment bug
5484         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
5485         Linux without glibc, Android, Cygwin.  This fixes a bug I
5486         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
5487         Problem and fix reported by Semen Verchenko in:
5488         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
5490         tempname: use getrandom, not getentropy
5491         This removes a dependency, as getentropy depends on getrandom.
5492         * lib/tempname.c: Include sys/random.h instead of unistd.h.
5493         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
5494         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
5496 2020-06-01  Bruno Haible  <bruno@clisp.org>
5498         doc: New chapter 'Multithreading'.
5499         * doc/multithread.texi: New file.
5500         * doc/gnulib.texi: Include it.
5502 2020-06-01  Bruno Haible  <bruno@clisp.org>
5504         doc: Move 'Running self-tests under valgrind' section.
5505         * doc/gnulib.texi (Build Infrastructure Modules): Include
5506         valgrind-tests.texi here...
5507         (Miscellaneous Notes): ... not here.
5509 2020-06-01  Bruno Haible  <bruno@clisp.org>
5511         doc: Move 'Visual Studio Compatibility' section.
5512         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
5513         here...
5514         (Build Infrastructure Modules): ... not here.
5516 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5518         doc: improve randomness discussion
5519         Inspired by comments from Jeffrey Walton in:
5520         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
5521         * doc/glibc-functions/getentropy.texi (getentropy):
5522         * doc/glibc-functions/getrandom.texi (getrandom):
5523         Improve discussion of problems with "random" data,
5524         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
5526 2020-06-01  Bruno Haible  <bruno@clisp.org>
5528         doc: Fix Texinfo syntax error.
5529         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
5531 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
5533         doc: Change '.' to '@.' where appropriate.
5534         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
5535         * doc/glibc-functions/fstatfs.texi: Likewise.
5536         * doc/glibc-functions/fts_children.texi: Likewise.
5537         * doc/glibc-functions/fts_read.texi: Likewise.
5538         * doc/glibc-functions/getdirentries.texi: Likewise.
5539         * doc/glibc-functions/mkostemp.texi: Likewise.
5540         * doc/glibc-functions/mkostemps.texi: Likewise.
5541         * doc/glibc-functions/mkstemps.texi: Likewise.
5542         * doc/glibc-functions/preadv.texi: Likewise.
5543         * doc/glibc-functions/pwritev.texi: Likewise.
5544         * doc/glibc-functions/sendfile.texi: Likewise.
5545         * doc/glibc-functions/statfs.texi: Likewise.
5546         * doc/gnulib-intro.texi: Likewise.
5547         * doc/gnulib-tool.texi: Likewise.
5548         * doc/intprops.texi: Likewise.
5549         * doc/lib-symbol-visibility.texi: Likewise.
5550         * doc/licenses-texi.texi: Likewise.
5551         * doc/pastposix-functions/bcmp.texi: Likewise.
5552         * doc/pastposix-functions/bcopy.texi: Likewise.
5553         * doc/pastposix-functions/bzero.texi: Likewise.
5554         * doc/pastposix-functions/ecvt.texi: Likewise.
5555         * doc/pastposix-functions/fcvt.texi: Likewise.
5556         * doc/pastposix-functions/ftime.texi: Likewise.
5557         * doc/pastposix-functions/gcvt.texi: Likewise.
5558         * doc/pastposix-functions/getwd.texi: Likewise.
5559         * doc/pastposix-functions/index.texi: Likewise.
5560         * doc/pastposix-functions/mktemp.texi: Likewise.
5561         * doc/pastposix-functions/rindex.texi: Likewise.
5562         * doc/pastposix-functions/wcswcs.texi: Likewise.
5563         * doc/posix-functions/aio_cancel.texi: Likewise.
5564         * doc/posix-functions/aio_error.texi: Likewise.
5565         * doc/posix-functions/aio_fsync.texi: Likewise.
5566         * doc/posix-functions/aio_read.texi: Likewise.
5567         * doc/posix-functions/aio_return.texi: Likewise.
5568         * doc/posix-functions/aio_suspend.texi: Likewise.
5569         * doc/posix-functions/aio_write.texi: Likewise.
5570         * doc/posix-functions/creat.texi: Likewise.
5571         * doc/posix-functions/ctime.texi: Likewise.
5572         * doc/posix-functions/daylight.texi: Likewise.
5573         * doc/posix-functions/fgetpos.texi: Likewise.
5574         * doc/posix-functions/fopen.texi: Likewise.
5575         * doc/posix-functions/freopen.texi: Likewise.
5576         * doc/posix-functions/fseeko.texi: Likewise.
5577         * doc/posix-functions/fsetpos.texi: Likewise.
5578         * doc/posix-functions/fstatat.texi: Likewise.
5579         * doc/posix-functions/fstatvfs.texi: Likewise.
5580         * doc/posix-functions/ftello.texi: Likewise.
5581         * doc/posix-functions/ftruncate.texi: Likewise.
5582         * doc/posix-functions/getrlimit.texi: Likewise.
5583         * doc/posix-functions/lio_listio.texi: Likewise.
5584         * doc/posix-functions/localtime.texi: Likewise.
5585         * doc/posix-functions/lseek.texi: Likewise.
5586         * doc/posix-functions/mkstemp.texi: Likewise.
5587         * doc/posix-functions/mktime.texi: Likewise.
5588         * doc/posix-functions/open.texi: Likewise.
5589         * doc/posix-functions/openat.texi: Likewise.
5590         * doc/posix-functions/opendir.texi: Likewise.
5591         * doc/posix-functions/pread.texi: Likewise.
5592         * doc/posix-functions/pwrite.texi: Likewise.
5593         * doc/posix-functions/readdir.texi: Likewise.
5594         * doc/posix-functions/readdir_r.texi: Likewise.
5595         * doc/posix-functions/scandir.texi: Likewise.
5596         * doc/posix-functions/seekdir.texi: Likewise.
5597         * doc/posix-functions/setrlimit.texi: Likewise.
5598         * doc/posix-functions/statvfs.texi: Likewise.
5599         * doc/posix-functions/strftime.texi: Likewise.
5600         * doc/posix-functions/telldir.texi: Likewise.
5601         * doc/posix-functions/timezone.texi: Likewise.
5602         * doc/posix-functions/tmpfile.texi: Likewise.
5603         * doc/posix-functions/truncate.texi: Likewise.
5604         * doc/posix-functions/tzname.texi: Likewise.
5605         * doc/posix-functions/wcsftime.texi: Likewise.
5606         * doc/windows-sockets.texi: Likewise.
5608 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5610         getrandom-tests: do not assume GRND_RANDOM yields short read
5611         * tests/test-getrandom.c (main): Omit assertion that
5612         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
5613         when b’s size is 100000.  This assertion fails with Linux kernel
5614         5.6.13, as that kernel ignores the GRND_RANDOM flag.
5615         The separate blocking pool is going away in the Linux kernel, and
5616         they’ve added a flag GRND_INSECURE instead; see:
5617         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
5618         The assertion was iffy anyway; what’s to prevent a kernel from
5619         lazily filling a large buffer with random bytes?
5621         read-file-test: pacify --enable-gcc-warnings
5622         * tests/test-read-file.c (test_read_file): Now static.
5624         tempname: merge from glibc and coreutils
5625         Also, merge in Gnulib’s more-recent methods of making it easier
5626         to share between Gnulib and glibc, and fix a few randomness
5627         glitches.
5628         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
5629         (__set_errno): Remove; libc-config.h does that for us.
5630         Do not include <sys/time.h>.
5631         (__secure_getenv) [_LIBC]: New macro.
5632         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
5633         (RANDOM_BITS): Rewrite.
5634         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
5635         (random_value): New typedef.
5636         (try_file, try_dir, try_nocreate): Move up.
5637         (gen_tempname_len, try_tempname_len): New functions.
5638         (gen_tempname_len): Use a constant array rather than a switch.
5639         (try_tempname_len): Don’t assume string length fits in int.
5640         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
5641         has enough entropy (it’s a bit short).
5642         (__gen_tempname): Rewrite in terms of gen_tempname_len.
5643         (__try_tempname): Rewrite in terms of try_tempname_len.
5644         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
5645         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
5646         Add getentropy, libc-config.
5648 2020-05-31  Bruno Haible  <bruno@clisp.org>
5650         getrandom, getentropy: Mention the crypto/gc-random module.
5651         Suggested by Simon Josefsson in
5652         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
5653         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
5654         crypto/gc-random module.
5655         * doc/glibc-functions/getentropy.texi: Likewise.
5657 2020-05-31  Bruno Haible  <bruno@clisp.org>
5659         getentropy: Enhance tests.
5660         * tests/test-getentropy.c (main): Add one more test.
5661         * tests/test-unistd-c++.cc: Check the signature of getentropy.
5663 2020-05-31  Bruno Haible  <bruno@clisp.org>
5665         getentropy: Work around a macOS and Solaris problem.
5666         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
5667         'getentropy' module.
5668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5669         UNISTD_H_HAVE_SYS_RANDOM_H.
5670         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
5671         UNISTD_H_HAVE_SYS_RANDOM_H.
5672         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
5673         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
5674         problem. List more platforms.
5676 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5678         fnmatch: merge from glibc
5679         Also, merge in Gnulib’s more-recent methods of making it easier
5680         to share between Gnulib and glibc.
5681         * lib/fnmatch.c: Reorder includes to match glibc better.
5682         Include libc-config.h instead of config.h.
5683         Include alloca.h only if _LIBC || HAVE_ALLOCA.
5684         Do not include "../locale/elem-hash.h" if _LIBC.
5685         Define macros for btowc, etc. if _LIBC.  All uses simplified.
5686         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
5687         Include intprops.h, since glibc has it now.
5688         (SIZE_MAX): Remove; use (size_t) -1 instead.
5689         Omit the "Comment out all this code" ifdef, since Gnulib
5690         has never really needed it.
5691         (STREQ): Remove; no longer used.
5692         (__libc_use_alloca, alloca, alloca_account): Define as
5693         needed if !_LIBC.
5694         (ISWCTYPE): Remove; all uses replaced by iswctype.
5695         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
5696         (internal_function): Remove.  All uses removed.
5697         (STRUCT): New macro.
5698         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
5699         (WMEMCMP): New macro.
5700         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
5701         and <locale/weightwc.h>.
5702         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
5703         __builtin_expect.  Check for integer overflow more
5704         systematically.  Account for alloca storage better when
5705         recursive.  Use strnlen instead of strlen for efficiency.
5706         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
5707         (struct STRUCT): New type.
5708         (FCT, EXT): New ENDS and ALLOCA_USED args.
5709         All callers changed.
5710         (FCT): Prefer __glibc_unlikely to __builtin_expect.
5711         Simplify by assuming WIDE_CHAR_SUPPORT.
5712         Copy _LIBC code from glibc without worrying Gnulib compatibility.
5713         Cast cold to UCHAR to avoid signedness warning.
5714         (END): Check for invalid pattern.
5715         (EXT): Improve alloca/malloc checking (taken from glibc),
5716         and improve it some more by using intprops.h and checking
5717         for integer overflow and using bool for booleans.
5718         * lib/libc-config.h (compat_symbol): New macro.
5719         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
5720         acceptable to non-GCC when a trailing semicolon is added.
5721         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
5722         libc-config, strnlen.  Remove alloca.
5724 2020-05-31  Bruno Haible  <bruno@clisp.org>
5726         getrandom: Doc and test tweaks.
5727         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
5728         it sets errno when failing.
5729         * tests/test-getrandom.c (main): Disable the high-quality check on those
5730         platforms on which it fails.
5731         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
5732         Cygwin to the list of platforms that don't have the function. Add a note
5733         about the quality of the result.
5734         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
5735         declaration; this is fixed by module 'getrandom'.
5737 2020-05-31  Bruno Haible  <bruno@clisp.org>
5739         getrandom: Add support for native Windows.
5740         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
5741         <wincrypt.h>.
5742         (CRYPT_VERIFY_CONTEXT): New macro.
5743         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
5744         'A'.
5745         (GetProcAddress): New macro.
5746         (BCryptGenRandomFuncType): New type.
5747         (BCryptGenRandomFunc, initialized): New variables.
5748         (initialize): New function.
5749         (getrandom): On native Windows, use <bcrypt.h> API when available, and
5750         <wincrypt.h> API as fallback.
5751         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
5752         * modules/getrandom (Link): New section.
5753         * modules/getentropy (Link): Likewise.
5754         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
5755         $(LIB_GETRANDOM).
5756         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
5757         $(LIB_GETRANDOM).
5758         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
5759         against $(LIB_GETRANDOM).
5760         * doc/glibc-functions/getrandom.texi: Mention the native Windows
5761         support.
5763 2020-05-31  Bruno Haible  <bruno@clisp.org>
5765         getrandom: Simplify the determination of the random number devices.
5766         Suggested by Paul Eggert in
5767         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
5768         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
5769         macros.
5770         * modules/getrandom (Depends-on): Remove crypto/gc-random.
5772 2020-05-31  Bruno Haible  <bruno@clisp.org>
5774         crypto/gc-random: Fix list of crypto devices for Solaris.
5775         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
5777 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
5779         list: fix GCC warnings
5780         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
5781         (gl_tree_next_node, gl_tree_node_nx_set_value)
5782         (gl_tree_previous_node, gl_tree_next_node):
5783         Mark unused arguments.
5784         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
5785         * lib/gl_anylinked_list2.h (gl_linked_node_value)
5786         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
5788         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
5789         the same variable name in nested scopes.
5791 2020-05-31  Bruno Haible  <bruno@clisp.org>
5793         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
5794         Reported by Akim Demaille in
5795         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
5796         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
5797         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
5798         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
5799         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
5800         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
5802 2020-05-30  Bruno Haible  <bruno@clisp.org>
5804         wmemchr: Relicense under LGPLv2+.
5805         * modules/wmemchr (License): Set to LGPLv2+.
5807 2020-05-30  Bruno Haible  <bruno@clisp.org>
5809         wmempcpy: New module.
5810         Reported by Paul Eggert in
5811         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
5812         * lib/wchar.in.h (wmempcpy): New declaration.
5813         * lib/wmempcpy.c: New file.
5814         * m4/wmempcpy.m4: New file.
5815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
5816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
5817         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
5818         HAVE_WMEMPCPY.
5819         * modules/wmempcpy: New file.
5820         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
5821         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
5822         * modules/mempcpy (Description): Fix typo.
5824 2020-05-30  Bruno Haible  <bruno@clisp.org>
5826         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
5827         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
5829 2020-05-30  Bruno Haible  <bruno@clisp.org>
5831         sys_random: Work around macOS bug.
5832         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
5833         <stdlib.h> before <sys/random.h>.
5834         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
5835         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
5836         first.
5837         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
5839 2020-05-30  Bruno Haible  <bruno@clisp.org>
5841         getrandom: Override incompatible system function on Solaris 11.
5842         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
5843         * lib/getrandom.c (getrandom): When the system has getrandom, just
5844         invoke it.
5845         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
5846         system's getrandom function's prototype is not the expected one.
5847         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
5848         REPLACE_GETRANDOM.
5849         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
5850         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
5851         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
5852         EAGAIN.
5853         * doc/glibc-functions/getrandom.texi: Mention the new module and the
5854         Solaris problem.
5856 2020-05-30  Bruno Haible  <bruno@clisp.org>
5858         sys_random: Add C++ tests.
5859         * tests/test-sys_random-c++.cc: New file.
5860         * modules/sys_random-c++-tests: New file.
5861         * modules/sys_random-tests (Depends-on): Depend on it.
5863         sys_random: Add tests.
5864         * tests/test-sys_random.c: New file.
5865         * modules/sys_random-tests: New file.
5867         sys_random: New module.
5868         * lib/sys_random.in.h: Use the common idioms for overridable header
5869         files.
5870         * m4/sys_random_h.m4: New file.
5871         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
5872         * modules/sys_random: New file.
5873         * modules/getrandom (Files): Remove lib/sys_random.in.h.
5874         (Depends-on): Add sys_random.
5875         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
5876         gl_UNISTD_MODULE_INDICATOR.
5877         (Makefile.am): Don't generate sys/random.h here.
5878         * doc/glibc-headers/sys_random.texi: New file.
5879         * doc/gnulib.texi: Include it.
5881 2020-05-30  Bruno Haible  <bruno@clisp.org>
5883         unistd: Remove conflicting declaration of getrandom().
5884         * lib/unistd.in.h (getrandom): Remove declaration.
5885         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
5886         declared.
5887         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
5888         HAVE_GETRANDOM.
5889         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
5890         HAVE_GETRANDOM.
5892 2020-05-30  Bruno Haible  <bruno@clisp.org>
5894         getrandom: Add tests.
5895         * tests/test-getrandom.c: New file.
5896         * modules/getrandom-tests: New file.
5898 2020-05-30  Bruno Haible  <bruno@clisp.org>
5900         crypto/gc-random: Fix link error on MSVC.
5901         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
5902         * modules/crypto/gc-random (Link): New section.
5903         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
5904         $(LIB_GC_RANDOM).
5906 2020-05-30  Bruno Haible  <bruno@clisp.org>
5908         Don't assume that UNICODE is not defined.
5909         Many Windows API functions are defined differently (redirecting to a
5910         function with suffix 'W') if the application defines the macro UNICODE
5911         than by default (redirecting to a function with suffix 'A').
5912         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
5913         variant with suffix 'A'.
5914         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
5915         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
5916         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
5917         * lib/getlogin.c (GetUserName): Likewise.
5918         * lib/getlogin_r.c (GetUserName): Likewise.
5919         * lib/gettimeofday.c (LoadLibrary): Likewise.
5920         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
5921         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
5922         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
5923         * lib/mountlist.c (GetDriveType): Likewise.
5924         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
5925         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
5926         Likewise.
5927         * lib/physmem.c (GetModuleHandle): Likewise.
5928         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5929         PeekMessage, DispatchMessage): Likewise.
5930         * lib/progreloc.c (GetModuleFileName): Likewise.
5931         * lib/putenv.c (SetEnvironmentVariable): Likewise.
5932         * lib/read.c (GetNamedPipeHandleState): Likewise.
5933         * lib/readdir.c (FindNextFile): Likewise.
5934         * lib/relocatable.c (GetModuleFileName): Likewise.
5935         * lib/rename.c (MoveFileEx): Likewise.
5936         * lib/rewinddir.c (FindFirstFile): Likewise.
5937         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5938         PeekMessage, DispatchMessage): Likewise.
5939         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
5940         * lib/socket.c (WSASocket): Likewise.
5941         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
5942         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
5943         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
5944         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
5945         * lib/tmpdir.c (GetTempPath): Likewise.
5946         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
5947         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
5948         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
5949         * lib/windows-cond.c (CreateEvent): Likewise.
5950         * lib/windows-rwlock.c (CreateEvent): Likewise.
5951         * lib/windows-timedmutex.c (CreateEvent): Likewise.
5952         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
5953         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
5954         * lib/write.c (GetNamedPipeHandleState): Likewise.
5956 2020-05-30  Bruno Haible  <bruno@clisp.org>
5958         physmem: Fix compilation errors on MSVC.
5959         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
5960         * modules/physmem (Depends-on): Add unistd.
5962 2020-05-29  Bruno Haible  <bruno@clisp.org>
5964         gnulib-tool: Fix link errors with a particular set of modules on mingw.
5965         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
5966         LDADD a second time, after the second occurrence of libtests.a.
5967         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
5969 2020-05-29  Bruno Haible  <bruno@clisp.org>
5971         fnmatch: Rely on more gnulib modules.
5972         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
5973         wmempcpy, mempcpy.
5974         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
5975         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
5976         HAVE_MEMPCPY are all 1.
5977         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
5978         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
5980 2020-05-29  Bruno Haible  <bruno@clisp.org>
5982         Avoid dynamic lookup of Windows API functions when possible.
5983         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
5984         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
5985         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
5986         (use_win32_p): Define differently.
5987         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
5988         CreateHardLinkFunc, initialized, initialize): Don't define in a build
5989         for Windows XP or higher.
5991 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5993         read-file: disable buffering if RF_SENSITIVE is set
5994         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
5995         Suggested by Glenn Strauss.
5996         (fread_file): Suggest calling setvbuf before calling this
5997         function.  Suggested by Bruno Haible.
5999 2020-05-29  Bruno Haible  <bruno@clisp.org>
6001         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
6002         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
6003         program.
6004         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
6005         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
6006         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
6007         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
6009 2020-05-29  Bruno Haible  <bruno@clisp.org>
6011         Fix compilation error on native Windows (regression from 2020-05-28).
6012         Reported by Daiki Ueno.
6013         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
6014         macro when not using dynamic loading.
6015         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
6016         QueryFullProcessImageNameFunc): Likewise.
6017         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
6018         GetFinalPathNameByHandleFunc): Likewise.
6020 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6022         fopen-gnu-tests: fix "\x" escape usage
6023         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
6025 2020-05-28  Bruno Haible  <bruno@clisp.org>
6027         Avoid dynamic loading of Windows API functions when possible.
6028         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6029         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
6030         * lib/gettimeofday.c (GetProcAddress,
6031         GetSystemTimePreciseAsFileTimeFuncType,
6032         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
6033         define in a build for Windows 8 or higher.
6034         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
6035         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
6036         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
6037         in a build for Windows Vista or higher.
6038         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
6039         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
6040         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
6042 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
6044         explicit_bzero-tests: improve -Wmissing-declarations pacification
6045         * tests/test-explicit_bzero.c: Now noinline.
6046         Suggested by Bruno Haible in:
6047         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
6049 2020-05-28  Bruno Haible  <bruno@clisp.org>
6051         Fix build errors due to read-file changes (regression from 2020-05-27).
6052         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
6053         invocation.
6054         * tests/test-sameacls.c (main): Likewise.
6055         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
6056         read_binary_file.
6057         * tests/test-pipe-filter-ii1.c (main): Likewise.
6059 2020-05-28  Bruno Haible  <bruno@clisp.org>
6061         fts: Make more robust in multithreaded applications.
6062         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
6063         * modules/fts (Depends-on): Add 'open'.
6065 2020-05-28  Bruno Haible  <bruno@clisp.org>
6067         relocatable-prog: Make more robust in multithreaded applications.
6068         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
6069         relocatable-prog-wrapper.
6070         (find_executable): Pass an O_CLOEXEC flag to open().
6071         * modules/relocatable-prog (Depends-on): Add 'open'.
6073 2020-05-28  Bruno Haible  <bruno@clisp.org>
6075         getloadavg: Make more robust in multithreaded applications.
6076         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
6077         Simplify use of O_CLOEXEC.
6078         * modules/getloadavg (Depends-on): Add 'open'.
6080 2020-05-28  Bruno Haible  <bruno@clisp.org>
6082         vma-iter: Make more robust in multithreaded applications.
6083         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
6084         open().
6085         * modules/vma-iter (Depends-on): Add 'open'.
6087 2020-05-28  Bruno Haible  <bruno@clisp.org>
6089         truncate: Make more robust in multithreaded applications.
6090         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
6092 2020-05-28  Bruno Haible  <bruno@clisp.org>
6094         pagealign_alloc: Make more robust in multithreaded applications.
6095         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
6096         open().
6097         * modules/pagealign_alloc (Depends-on): Add 'open'.
6099 2020-05-28  Bruno Haible  <bruno@clisp.org>
6101         openat: Make more robust in multithreaded applications.
6102         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
6104 2020-05-28  Bruno Haible  <bruno@clisp.org>
6106         at-internal: Make more robust in multithreaded applications.
6107         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
6108         open().
6110 2020-05-28  Bruno Haible  <bruno@clisp.org>
6112         mountlist: Make more robust in multithreaded applications.
6113         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
6114         open().
6115         * modules/mountlist (Depends-on): Add 'open'.
6117 2020-05-28  Bruno Haible  <bruno@clisp.org>
6119         login_tty: Make more robust in multithreaded applications.
6120         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
6121         * modules/login_tty (Depends-on): Add 'open'.
6123 2020-05-28  Bruno Haible  <bruno@clisp.org>
6125         javacomp: Make more robust in multithreaded applications.
6126         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
6127         open().
6128         * modules/javacomp (Depends-on): Add 'open'.
6130 2020-05-28  Bruno Haible  <bruno@clisp.org>
6132         getprogname: Make more robust in multithreaded applications.
6133         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
6134         * modules/getprogname (Depends-on): Add 'open'.
6136 2020-05-28  Bruno Haible  <bruno@clisp.org>
6138         get_progname_of: Make more robust in multithreaded applications.
6139         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
6140         open().
6141         * modules/get_progname_of (Depends-on): Add 'open'.
6143 2020-05-28  Bruno Haible  <bruno@clisp.org>
6145         get_ppid_of: Make more robust in multithreaded applications.
6146         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
6147         * modules/get_ppid_of (Depends-on): Add 'open'.
6149 2020-05-28  Bruno Haible  <bruno@clisp.org>
6151         get-rusage-as: Make more robust in multithreaded applications.
6152         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
6153         flag to open().
6154         * modules/get-rusage-as (Depends-on): Add 'open'.
6156 2020-05-28  Bruno Haible  <bruno@clisp.org>
6158         crypto/gc: Make more robust in multithreaded applications.
6159         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
6160         * modules/crypto/gc (Depends-on): Add 'open'.
6162 2020-05-28  Bruno Haible  <bruno@clisp.org>
6164         copy-file: Make more robust in multithreaded applications.
6165         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
6166         open().
6168 2020-05-28  Bruno Haible  <bruno@clisp.org>
6170         chown: Make more robust in multithreaded applications.
6171         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
6173 2020-05-28  Bruno Haible  <bruno@clisp.org>
6175         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
6176         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
6178 2020-05-28  Daiki Ueno  <ueno@gnu.org>
6180         fopen-gnu: make 'b' flag can be used with 'e' on Windows
6181         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
6182         specified on Windows.
6183         * tests/test-fopen-gnu.c (DATA): New define.
6184         (main): Add test for reading binary files with an 'e' flag.
6186 2020-05-27  Bruno Haible  <bruno@clisp.org>
6188         Don't assume that UNICODE is not defined.
6189         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
6190         differently if the application defines the macro UNICODE.
6191         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6192         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
6193         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
6194         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
6195         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
6197 2020-05-27  Bruno Haible  <bruno@clisp.org>
6199         Improve pattern for defining _WIN32_WINNT.
6200         Newer versions of the Windows API may not only add, but also remove API
6201         functions. Therefore, when the user is e.g. building for Windows 10, we
6202         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
6203         use of APIs that were present in Windows 8 but removed in Windows 10.
6204         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
6205         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
6206         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
6207         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6208         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
6210 2020-05-27  Bruno Haible  <bruno@clisp.org>
6212         javacomp: Make more robust in multithreaded applications.
6213         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
6214         * modules/javacomp (Depends-on): Add fopen-gnu.
6216 2020-05-27  Bruno Haible  <bruno@clisp.org>
6218         mountlist: Make more robust in multithreaded applications.
6219         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
6220         to fopen.
6221         * modules/mountlist (Depends-on): Add fopen-gnu.
6223 2020-05-27  Bruno Haible  <bruno@clisp.org>
6225         sethostname: Make more robust in multithreaded applications.
6226         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
6227         * modules/sethostname (Depends-on): Add fopen-gnu.
6229 2020-05-27  Bruno Haible  <bruno@clisp.org>
6231         readutmp: Make more robust in multithreaded applications.
6232         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
6233         * modules/readutmp (Depends-on): Add fopen-gnu.
6235 2020-05-27  Bruno Haible  <bruno@clisp.org>
6237         getpass: Make more robust in multithreaded applications.
6238         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
6239         * modules/getpass (Depends-on): Add fopen-gnu.
6241 2020-05-27  Bruno Haible  <bruno@clisp.org>
6243         getloadavg: Make more robust in multithreaded applications.
6244         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
6245         * modules/getloadavg (Depends-on): Add fopen-gnu.
6247 2020-05-27  Bruno Haible  <bruno@clisp.org>
6249         exclude: Make more robust in multithreaded applications.
6250         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
6251         * modules/exclude (Depends-on): Add fopen-gnu.
6253 2020-05-27  Bruno Haible  <bruno@clisp.org>
6255         bitset: Make more robust in multithreaded applications.
6256         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
6257         'e' flag to fopen.
6258         * modules/bitset (Depends-on): Add fopen-gnu.
6260 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6262         read-file: add RF_SENSITIVE flag
6263         * lib/read-file.h (RF_SENSITIVE): New define.
6264         * lib/read-file.c (fread_file, read_file): Take into account of
6265         RF_SENSITIVE flag.
6266         * modules/read-file (Depends-on): Add explicit_bzero.
6267         This adds an alternative behavior of those functions to explicitly
6268         clear the internal memory block when it becomes unused.  This is
6269         useful for reading sensitive information from a file.
6271 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6273         read-file: add flags to modify reading behavior
6274         * lib/read-file.h (RF_BINARY): New define.
6275         (fread_file, read_file): Take FLAGS argument.
6276         (read_binary_file): Remove.
6277         * lib/read-file.c (internal_read_file): Merge into ...
6278         (read_file): ... here.
6279         * modules/read-file-tests (Files): Add "tests/macros.h".
6280         * tests/test-read-file.c (main): Refactor using ASSERT macro.
6281         * NEWS: Mention this change.
6283 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
6285         doc/gnulib-intro.texi: add missing "to" in sentence
6286         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
6287         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
6288         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
6290 2020-05-26  Bruno Haible  <bruno@clisp.org>
6292         count-one-bits: Fix MSVC specific code.
6293         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6294         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
6295         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
6296         using GCC.
6297         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
6298         (__popcnt64): In 32-bit mode, define as an inline function.
6299         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
6301 2020-05-26  Bruno Haible  <bruno@clisp.org>
6303         argz: Avoid name clashes through argz.h.
6304         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6305         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
6306         * lib/argz.h: Don't use __ prefixed identifiers.
6307         (const): Remove definition.
6308         (argz_next): Remove inline definitions.
6310 2020-05-26  Daiki Ueno  <ueno@gnu.org>
6312         read-file: make use of fopen-gnu
6313         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
6314         (read_binary_file): Likewise.
6315         * modules/read-file (Depends-on): Add fopen-gnu.
6317 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6319         getentropy, getrandom: new modules
6320         * MODULES.html.sh (func_all_modules):
6321         * lib/unistd.in.h (getentropy, getrandom):
6322         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
6323         * modules/unistd (unistd.h):
6324         Add support for getentropy, getrandom.
6325         * doc/glibc-functions/getentropy.texi (getentropy):
6326         * doc/glibc-functions/getrandom.texi (getrandom):
6327         These are now fixed on some platforms.
6328         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
6329         * m4/getentropy.m4, m4/getrandom.m4:
6330         * modules/getentropy, modules/getentropy-tests:
6331         * modules/getrandom, modules/getrandom-tests:
6332         * tests/test-getentropy.c, tests/test-getrandom.c:
6333         New files.
6335 2020-05-25  Bruno Haible  <bruno@clisp.org>
6337         Add missing C99 dependencies.
6338         Reported by Paul Smith <psmith@gnu.org> in
6339         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
6340         * modules/assert (Depends-on): Add c99.
6341         * modules/filenamecat-lgpl (Depends-on): Likewise.
6342         * modules/libc-config (Depends-on): Likewise.
6343         * modules/mktime (Depends-on): Likewise.
6344         * modules/random_r (Depends-on): Likewise.
6345         * modules/regex (Depends-on): Likewise.
6346         * modules/scratch_buffer (Depends-on): Likewise.
6347         * modules/timespec-add (Depends-on): Likewise.
6348         * modules/timespec-sub (Depends-on): Likewise.
6349         * modules/verify (Depends-on): Likewise.
6351 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6353         explicit_bzero-tests: pacify -Wmissing-declarations
6354         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
6355         Now static.
6357 2020-05-24  Bruno Haible  <bruno@clisp.org>
6359         fopen-gnu: Add tests.
6360         * tests/test-fopen-gnu.c: New file.
6361         * modules/fopen-gnu-tests: New file.
6363         fopen-gnu: New module.
6364         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
6365         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
6366         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
6367         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
6368         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
6369         * modules/fopen-gnu: New file.
6370         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
6372 2020-05-24  Bruno Haible  <bruno@clisp.org>
6374         open, openat: Really support O_CLOEXEC.
6375         * lib/open.c (open): When have_cloexec is still undecided, do pass a
6376         O_CLOEXEC flag to orig_open.
6377         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
6378         pass a O_CLOEXEC flag to orig_openat.
6379         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
6380         * modules/open-tests (Depends-on): Add fcntl.
6381         * modules/openat-tests (Depends-on): Likewise.
6382         * modules/fcntl-safer-tests (Depends-on): Likewise.
6384 2020-05-24  Bruno Haible  <bruno@clisp.org>
6386         fopen: Fix the trailing slash workaround.
6387         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
6388         write access. Pass the right flags to open().
6389         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
6391 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6393         assure: new macro ‘affirm’
6394         * lib/assure.h: Include verify.h.
6395         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
6396         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
6397         and commentary by Bruno Haible in:
6398         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
6399         * modules/assure (Depends-on:): Add verify.
6401 2020-05-23  Bruno Haible  <bruno@clisp.org>
6403         calloc-gnu: Make test work in non-flat address spaces.
6404         Uses code by Paul Eggert.
6405         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
6406         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
6408 2020-05-23  Bruno Haible  <bruno@clisp.org>
6410         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
6411         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
6412         AC_RUN_IFELSE invocations.
6414 2020-05-23  Bruno Haible  <bruno@clisp.org>
6416         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
6417         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
6418         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
6419         don't have it.
6420         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6421         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
6422         don't have it.
6423         * lib/isnanf-nolibm.h (__has_builtin): New macro.
6424         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6425         it.
6426         * lib/isnanl-nolibm.h (__has_builtin): New macro.
6427         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6428         it.
6429         * lib/math.in.h (__has_builtin): New macro.
6430         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6431         it.
6432         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6433         it.
6434         (isnan): Don't use the builtins on clang versions that don't have
6435         __builtin_isnanf and __builtin_isnanl.
6437 2020-05-23  Bruno Haible  <bruno@clisp.org>
6439         calloc-gnu: Avoid wrong configure results with clang.
6440         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
6441         'volatile', to defeat compiler optimizations.
6443 2020-05-23  Bruno Haible  <bruno@clisp.org>
6445         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
6446         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
6447         'long double' values by reference, with values taken from a statically
6448         allocated array.
6450 2020-05-23  Bruno Haible  <bruno@clisp.org>
6452         findprog-in: Ignore directories.
6453         Reported by Frederick Eaton via Dmitry Goncharov in
6454         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6455         * lib/findprog-in.c (find_in_given_path): When the file found is a
6456         directory, set errno to EACCES and, during a PATH search, continue
6457         searching.
6458         * modules/findprog-in (Depends-on): Add sys_stat, stat.
6460 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6462         verify: document ‘assume’ better
6463         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
6465 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
6467         gendocs: Clarify licenses for templates.
6468         * doc/gendocs_template: Add a GNU All-Permissive license notice
6469         and bump Parent-Version.
6470         * doc/gendocs_template_min: Add a GNU All-Permissive license
6471         notice and copy the explanatory comment about the license notice
6472         at the bottom from gendocs_template.
6474 2020-05-21  Bruno Haible  <bruno@clisp.org>
6476         group-member: Relicense under LGPLv2+.
6477         Jim Meyering's approval is in
6478         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
6479         Paul Eggert's approval is in
6480         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
6481         Eric Blake's approval is in
6482         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
6483         * modules/group-member (License): Change to LGPLv2+.
6485 2020-05-21  Bruno Haible  <bruno@clisp.org>
6487         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
6488         Reported by Tim Rühsen in
6489         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6490         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
6492 2020-05-21  Bruno Haible  <bruno@clisp.org>
6494         regex: Avoid wrong configure results with "clang -fsanitize=leak".
6495         Reported by Tim Rühsen in
6496         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6497         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
6498         before returning with status 0.
6500 2020-05-21  Bruno Haible  <bruno@clisp.org>
6502         glob: Avoid wrong configure results with "clang -fsanitize=leak".
6503         Reported by Tim Rühsen in
6504         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6505         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
6507 2020-05-21  Bruno Haible  <bruno@clisp.org>
6509         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
6510         Reported by Tim Rühsen in
6511         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6512         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
6513         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
6514         respectively.
6516 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
6518         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
6519         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
6521 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6523         ftoastr: fix ifndef typo
6524         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
6526 2020-05-19  Bruno Haible  <bruno@clisp.org>
6528         havelib: Tweak documentation.
6529         * doc/havelib.texi (Searching for Libraries): Fix typo.
6531 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6533         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
6534         This was needed earlier because modules had to import the main script,
6535         but that is no longer true.  Rename the script so that it is
6536         consistent with all other scripts in gnulib and uses hyphens.
6537         * build-aux/vcs_to_changelog.py: Rename to...
6538         * build-aux/vcs-to-changelog.py: ... this.
6539         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
6540         * modules/vcs-to-changelog: Likewise.
6542 2020-05-17  Bruno Haible  <bruno@clisp.org>
6544         Clarify intended usage of the license file modules.
6545         Reported by Asher Gordon <AsDaGo@posteo.net> in
6546         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
6547         * doc/licenses-texi.texi (License Texinfo sources): Mention the
6548         GNU AGPL. Explain the intended usage of the modules.
6549         * modules/fdl (Notice): Discourage use as a module.
6550         * modules/fdl-1.3 (Notice): Likewise.
6552 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
6554         hash: add hash_xinsert
6555         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
6557 2020-05-16  Bruno Haible  <bruno@clisp.org>
6559         findprog-lgpl: Fix link error (existing since 2008-09-02).
6560         * modules/findprog-lgpl (Makefile.am): Arrange to compile
6561         findprog-lgpl.c, not findprog.c.
6562         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
6563         XNMALLOC.
6565 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
6567         c-stack: pacify -Wunused-result when DEBUG
6568         Problem reported by Marc Nieper-Wißkirchen in:
6569         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
6570         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
6571         Explicitly ignore write failures.
6573 2020-05-13  Jim Meyering  <meyering@fb.com>
6575         announce-gen: improve a comment
6576         * build-aux/announce-gen: Improve comment.
6578 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
6580         xalloc: pacify -Wanalyzer-possible-null-argument
6581         Problem reported for GCC 10.1.0 by Bruno Haible in:
6582         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
6583         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
6584         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
6585         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
6587 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6589         careadlinkat: fix GCC 10 workaround
6590         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6591         Massage the code so that it’s closer to what it was before
6592         the GCC 10.1.0 workaround was introduced.  This fixes
6593         a loop when !buffer and the bug workaround is in effect.
6594         Remove unnecessary casts.  Defend in a different way
6595         against (buffer && !buffer_size), by adding at least 1
6596         to buf_size each time through the loop.
6598 2020-05-10  Bruno Haible  <bruno@clisp.org>
6600         doc: Mark HP-UX as unsupported.
6601         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
6603 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6605         careadlinkat: limit GCC workaround
6606         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
6607         10.1.0 and later, since the workaround is pretty bad and the GCC
6608         bug should get fixed.
6610 2020-05-10  Bruno Haible  <bruno@clisp.org>
6612         havelib: Enhance documentation.
6613         * doc/havelib.texi (Searching for Libraries): Mention the bad
6614         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
6616 2020-05-10  Bruno Haible  <bruno@clisp.org>
6618         attribute: Clarify list of attributes.
6619         * lib/attribute.h: Reorder the list of attributes, and group them by
6620         purpose.
6622 2020-05-10  Bruno Haible  <bruno@clisp.org>
6624         string: Fix compilation error in C++ mode.
6625         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
6626         _GL_WARN_ON_USE.
6627         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
6628         instead of _GL_WARN_ON_USE.
6630 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
6632         announce-gen: add support for dist-lzip
6633         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
6635 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6637         manywarnings: port to GCC 10.1
6638         * build-aux/gcc-warning.spec:
6639         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
6640         Add GCC 10.1.0 warnings.
6642         careadlinkat: pacify -Wreturn-local-addr
6643         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6644         Pacify gcc 10’s -Wreturn-local-addr option.
6645         Simplify some of the later code.
6647 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6649         attribute: remove ATTRIBUTE_DEPRECATED
6650         * lib/attribute.h: Improve recently-added comments, mostly
6651         by shortening them (use active voice, etc.).
6652         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
6653         Problem reported by Bruno Haible in:
6654         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
6656 2020-05-09  Bruno Haible  <bruno@clisp.org>
6658         attribute: Add comments.
6659         * lib/attribute.h: Document each macro.
6661 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
6663         bitset: use the attribute module
6664         * modules/bitset: Depend on 'attribute'.
6665         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
6666         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
6667         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
6668         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
6670 2020-05-09  Bruno Haible  <bruno@clisp.org>
6672         c-stack: Fix warning when DEBUG is enabled.
6673         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6674         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
6675         * lib/c-stack.c: Include <stdio.h>.
6677 2020-05-09  Bruno Haible  <bruno@clisp.org>
6679         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
6680         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
6681         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6682         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6683         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6684         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6685         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6686         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6687         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6688         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
6689         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6690         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6691         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6693 2020-05-09  Bruno Haible  <bruno@clisp.org>
6695         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
6696         Reported by Akim Demaille in
6697         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
6698         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
6699         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6700         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6702 2020-05-09  Bruno Haible  <bruno@clisp.org>
6704         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
6705         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
6706         that usually comes from m4/gnulib-common.m4.
6707         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6709 2020-05-09  Bruno Haible  <bruno@clisp.org>
6711         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
6712         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
6713         that usually comes from m4/gnulib-common.m4.
6714         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6715         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6716         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6718 2020-05-09  Bruno Haible  <bruno@clisp.org>
6720         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
6721         * lib/uchar.in.h (char16_t): Define as macro if
6722         GNULIB_OVERRIDES_CHAR16_T.
6723         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
6724         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
6725         (gl_UCHAR_H): Invoke them.
6726         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
6727         GNULIB_OVERRIDES_CHAR32_T.
6728         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
6729         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
6730         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
6731         GNULIB_OVERRIDES_CHAR32_T.
6733 2020-05-09  Bruno Haible  <bruno@clisp.org>
6735         Macro tweaks.
6736         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
6737         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
6739 2020-05-08  Bruno Haible  <bruno@clisp.org>
6741         c32rtomb: Avoid compilation failure on Haiku.
6742         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
6743         inline definitions.
6744         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
6746 2020-05-08  Bruno Haible  <bruno@clisp.org>
6748         mbrtoc32: Avoid compilation failure on Haiku.
6749         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
6750         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
6751         AC_CHECK_FUNCS_ONCE.
6752         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
6754 2020-05-08  Bruno Haible  <bruno@clisp.org>
6756         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
6757         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
6759 2020-05-08  Bruno Haible  <bruno@clisp.org>
6761         list: Update documentation.
6762         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6763         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
6764         * doc/containers.texi (Container data types): Document the new list
6765         operations and their complexity.
6767 2020-05-08  Bruno Haible  <bruno@clisp.org>
6769         ignore-value tests: Use module 'attribute'.
6770         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
6771         * tests/test-ignore-value.c: Include attribute.h.
6772         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
6773         * modules/ignore-value-tests (Depends-on): Add attribute.
6775 2020-05-08  Bruno Haible  <bruno@clisp.org>
6777         uniname/uniname: Use module 'attribute'.
6778         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
6779         * lib/uniname/uninames.h: Regenerated.
6780         * lib/uniname/uniname.c: Include attribute.h.
6781         * modules/uniname/uniname (Depends-on): Add attribute.
6783 2020-05-08  Bruno Haible  <bruno@clisp.org>
6785         c32rtomb: Use module 'attribute'.
6786         * lib/c32rtomb.c: Include attribute.h.
6787         (FALLTHROUGH): Remove macro.
6788         * modules/c32rtomb (Depends-on): Add attribute.
6790 2020-05-08  Bruno Haible  <bruno@clisp.org>
6792         xsize: Use module 'attribute'.
6793         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
6794         * modules/xsize (Depends-on): Add attribute.
6796 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
6798         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
6800         * lib/attribute.h: Minor style fixes.
6802         Fix version-etc glitch on OpenIndiana
6803         Problem reported by Mats Erik Andersson in:
6804         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
6805         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
6806         that now clashes with gnulib-common.h.  All uses changed.
6808 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6810         attribute: new module
6811         This simplifies use of GCC and C2X attributes like ‘deprecated’.
6812         * MODULES.html.sh: Add attribute.
6813         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
6814         * doc/gnulib.texi (Particular Modules): Add Attributes.
6815         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
6816         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
6817         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
6818         * lib/vasnprintf.c:
6819         Include attribute.h, and let it define FALLTHROUGH.
6820         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
6821         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
6822         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
6823         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
6824         This is a copy since Gawk doesn’t use Gnulib.
6825         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
6826         is incompatible with gl_COMMON_BODY’s.  All uses changed.
6827         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
6828         Keep the existing FALLTHROUGH definition since Glibc might use it,
6829         and it does no harm to Gnulib’s FALLTHROUGH.
6830         * lib/fts_.h, lib/inttostr.h:
6831         (__GNUC_PREREQ): Remove; no longer needed.
6832         (__attribute_warn_unused_result__): Remove.  All uses
6833         replaced by _GL_ATTRIBUTE_NODISCARD.
6834         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
6835         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
6836         __attribute__ ((__warn_unused_result__)), for forward
6837         compatibility to C2X.
6838         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
6839         _GL_ATTRIBUTE_NODISCARD.
6840         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
6841         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
6842         replaced by gl_COMMON_BODY’s implementation, which has a
6843         slightly different signature.
6844         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
6845         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
6846         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
6847         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
6848         No doubt all uses should be replaced, at some point.
6849         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
6850         (_Noreturn): Use it.
6851         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
6852         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
6853         (_GL_ATTRIBUTE_COLD)
6854         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
6855         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
6856         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
6857         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
6858         (_GL_ATTRIBUTE_MAYBE_UNUSED)
6859         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
6860         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
6861         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
6862         (_GL_ATTRIBUTE_RETURNS_NONNULL)
6863         (_GL_ATTRIBUTE_SENTINEL): New macros.
6864         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
6865         * modules/fnmatch, modules/freopen-safer, modules/fts:
6866         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
6867         * modules/quotearg, modules/savewd:
6868         * modules/unistdio/u16-u16-vasnprintf:
6869         * modules/unistdio/u16-vasnprintf:
6870         * modules/unistdio/u32-u32-vasnprintf:
6871         * modules/unistdio/u32-vasnprintf:
6872         * modules/unistdio/u8-u8-vasnprintf:
6873         * modules/unistdio/u8-vasnprintf:
6874         * modules/unistdio/ulc-vasnprintf:
6875         * modules/unistr/u8-uctomb, modules/vasnprintf:
6876         (Depends-on:): Add attribute module.
6878 2020-05-03  Bruno Haible  <bruno@clisp.org>
6880         bison: Fix today's commit.
6881         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
6883 2020-05-03  Bruno Haible  <bruno@clisp.org>
6885         list-c++: Add get_first, get_last, set_first, set_last operations.
6886         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
6887         set_first, set_last.
6888         * lib/gl_list.h: Tweak comments.
6890 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
6892         bison: rely on bison's %require to check a version requirement
6893         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
6894         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
6895         enough of not.
6896         So far it is the only know Yacc tool that supports '%require'.
6897         Other yaccs will actually even choke on seeing the -o option after the
6898         input file name.
6899         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
6901 2020-05-02  Bruno Haible  <bruno@clisp.org>
6903         list: Add get_first, get_last, set_first, set_last operations.
6904         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
6905         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
6906         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
6908 2020-05-02  Bruno Haible  <bruno@clisp.org>
6910         list: Remove redundant code for remove_first and remove_last operations.
6911         * lib/gl_list.h (struct gl_list_implementation): Remove fields
6912         remove_first, remove_last.
6913         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
6914         * lib/gl_array_list.c: Revert last change.
6915         * lib/gl_carray_list.c: Likewise.
6916         * lib/gl_anylinked_list2.h: Likewise.
6917         * lib/gl_linked_list.c: Likewise.
6918         * lib/gl_linkedhash_list.c: Likewise.
6919         * lib/gl_anytree_list2.h: Likewise.
6920         * lib/gl_avltree_list.c: Likewise.
6921         * lib/gl_avltreehash_list.c: Likewise.
6922         * lib/gl_rbtree_list.c: Likewise.
6923         * lib/gl_rbtreehash_list.c: Likewise.
6924         * lib/gl_sublist.c: Likewise.
6926 2020-05-02  Bruno Haible  <bruno@clisp.org>
6928         bison-i18n: Add support for cross-compilation.
6929         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
6930         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
6931         via Akim Demaille <akim@lrde.epita.fr>.
6932         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
6933         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
6934         Don't use bison's --print-localedir option when cross-compiling.
6935         Also, fix an error message and a comment.
6937 2020-05-01  Bruno Haible  <bruno@clisp.org>
6939         list: Add remove_first and remove_last operations.
6940         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6941         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
6942         * lib/gl_list.h (struct gl_list_implementation): Add fields
6943         remove_first, remove_last.
6944         (gl_list_remove_first, gl_list_remove_last): New functions.
6945         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
6946         functions, based on gl_array_remove_at.
6947         (gl_array_list_implementation): Implement the new operations.
6948         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
6949         New functions, based on gl_carray_remove_at.
6950         (gl_carray_list_implementation): Implement the new operations.
6951         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
6952         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
6953         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
6954         new operations.
6955         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
6956         Likewise.
6957         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
6958         New functions, based on gl_tree_remove_at.
6959         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
6960         new operations.
6961         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6962         Likewise.
6963         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
6964         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
6965         Likewise.
6966         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
6967         New functions, based on gl_sublist_remove_at.
6968         (gl_sublist_list_implementation): Implement the new operations.
6969         * lib/gl_list.hh (class gl_List): Add methods remove_first,
6970         remove_last.
6971         * tests/test-array_list.c (main): Test also gl_list_remove_first and
6972         gl_list_remove_last.
6973         * tests/test-avltree_list.c (main): Likewise.
6974         * tests/test-avltreehash_list.c (main): Likewise.
6975         * tests/test-carray_list.c (main): Likewise.
6976         * tests/test-linked_list.c (main): Likewise.
6977         * tests/test-linkedhash_list.c (main): Likewise.
6978         * tests/test-rbtree_list.c (main): Likewise.
6979         * tests/test-rbtreehash_list.c (main): Likewise.
6981 2020-05-01  Bruno Haible  <bruno@clisp.org>
6983         parse-datetime: Fix a build failure with an older bison version.
6984         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
6985         parse-datetime.tab.c if a suitable version of bison was not found.
6987 2020-05-01  Bruno Haible  <bruno@clisp.org>
6989         bison: New module.
6990         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
6991         m4/parse-datetime.m4.
6992         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
6993         * modules/bison: New file.
6994         * modules/parse-datetime (Files): Remove m4/bison.m4.
6995         (Depends-on): Add bison.
6997 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
6999         Update users.txt.
7000         * users.txt: Add poke.
7002 2020-04-28  Bruno Haible  <bruno@clisp.org>
7004         posix_spawn_file_actions_addfchdir tests: Enhance test.
7005         * tests/test-posix_spawn5.c: Include findprog.h.
7006         (test): New function, extracted from main.
7007         (main): Invoke it. Also, invoke it with a program name such as
7008         "bin/pwd".
7009         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
7010         findprog.
7012 2020-04-28  Bruno Haible  <bruno@clisp.org>
7014         posix_spawn_file_actions_addchdir tests: Enhance test.
7015         * tests/test-posix_spawn4.c: Include findprog.h.
7016         (test): New function, extracted from main.
7017         (main): Invoke it. Also, invoke it with a program name such as
7018         "bin/pwd".
7019         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
7020         findprog.
7022 2020-04-28  Bruno Haible  <bruno@clisp.org>
7024         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
7025         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
7026         access elements of the wrong union member.
7028 2020-04-27  Bruno Haible  <bruno@clisp.org>
7030         getdate: Remove deprecated module.
7031         * modules/getdate: Remove file.
7032         * doc/getdate.texi: Remove file.
7033         * lib/getdate.h: Remove file.
7034         * NEWS: Mention the removal.
7036 2020-04-27  Bruno Haible  <bruno@clisp.org>
7038         realloc: Remove deprecated module.
7039         * modules/realloc: Remove file.
7040         * NEWS: Mention the removal.
7042 2020-04-27  Bruno Haible  <bruno@clisp.org>
7044         calloc: Remove deprecated module.
7045         * modules/calloc: Remove file.
7046         * NEWS: Mention the removal.
7048 2020-04-27  Bruno Haible  <bruno@clisp.org>
7050         malloc: Remove deprecated module.
7051         * modules/malloc: Remove file.
7052         * NEWS: Mention the removal.
7054 2020-04-27  Bruno Haible  <bruno@clisp.org>
7056         fnmatch-posix: Remove deprecated module.
7057         * modules/fnmatch-posix: Remove file.
7058         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
7059         * NEWS: Mention the removal.
7061 2020-04-27  Bruno Haible  <bruno@clisp.org>
7063         pipe: Remove deprecated module.
7064         * modules/pipe: Remove file.
7065         * lib/pipe.h: Remove file.
7066         * NEWS: Mention the removal.
7068 2020-04-27  Bruno Haible  <bruno@clisp.org>
7070         getopt: Remove deprecated module.
7071         * modules/getopt: Remove file.
7072         * NEWS: Mention the removal.
7074 2020-04-27  Bruno Haible  <bruno@clisp.org>
7076         remove-dest-slash: Remove deprecated module.
7077         * modules/rename-dest-slash: Remove file.
7078         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
7079         Update.
7080         * NEWS: Mention the removal.
7082 2020-04-27  Bruno Haible  <bruno@clisp.org>
7084         unictype/bidicategory-*: Remove deprecated modules.
7085         * modules/unictype/bidicategory-all: Remove file.
7086         * modules/unictype/bidicategory-byname: Remove file.
7087         * modules/unictype/bidicategory-name: Remove file.
7088         * modules/unictype/bidicategory-of: Remove file.
7089         * modules/unictype/bidicategory-test: Remove file.
7090         * MODULES.html.sh (Unicode string functions): Update.
7091         * NEWS: Mention the removals.
7093 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7095         Tune fts for FTS_LOGICAL+FTS_NOSTAT
7096         From a suggestion by Askar Safin in:
7097         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
7098         * lib/fts.c (fts_build): If file types are known, optimize
7099         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
7100         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
7101         non-directories.
7103 2020-04-19  Bruno Haible  <bruno@clisp.org>
7105         vasnprintf: Add support for printing wide characters using escapes.
7106         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
7107         (wctomb_fallback): New function.
7108         (local_wctomb): New function.
7109         (local_wcrtomb): New function or macro.
7110         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
7111         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
7112         %lc.
7114 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
7116         fts: remove NOSTAT_LEAF_OPTIMIZATION
7117         It caused ‘find’ and ‘du’ to dump core, and it was useful
7118         only for obsolescent Linux filesystems anyway.  Problem reported in:
7119         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
7120         Quite possibly there is still a serious underlying fts bug with
7121         tight-loop-check and mutating file systems, but if so this patch
7122         should cause the bug to be triggered less often.
7123         * lib/fts.c (enum leaf_optimization): Remove
7124         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
7125         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
7126         (leaf_optimization): Remove special cases for ReiserFS and XFS.
7127         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
7128         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
7129         Remove.  All uses removed.
7131 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7133         explicit_bzero: Improve code style.
7134         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
7136 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7138         explicit_bzero: On native Windows, use SecureZeroMemory().
7139         * lib/explicit_bzero.c: Include <windows.h>.
7140         (explicit_bzero): On native Windows, use SecureZeroMemory.
7142 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7144         explicit_bzero: Use memset_s() when available.
7145         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
7146         (explicit_bzero): Use memset_s when available.
7147         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
7149 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7151         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
7152         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
7153         free() that overwrite the memory with canaries.
7155 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
7157         bootstrap: recommend git submodule update --init
7158         Reported by Bruno Haible.
7159         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
7160         * build-aux/bootstrap: recommand "git submodule update --init"
7161         rather than "git submodule init".
7163 2020-04-12  Bruno Haible  <bruno@clisp.org>
7165         explicit_bzero: Add tests.
7166         * tests/test-explicit_bzero.c: New file.
7167         * modules/explicit_bzero-tests: New file.
7169 2020-04-11  Bruno Haible  <bruno@clisp.org>
7171         explicit_bzero: Relicense under LGPLv2+.
7172         Approved by Paul Eggert.
7173         * modules/explicit_bzero (License): Change to LGPLv2+.
7175 2020-04-10  Bruno Haible  <bruno@clisp.org>
7177         findprog, relocatable-prog: Ignore directories during PATH search.
7178         Reported by Frederick Eaton via Dmitry Goncharov in
7179         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7181         * lib/findprog.c (find_in_path): When the file found in a PATH element
7182         is a directory, continue searching.
7183         * modules/findprog (Depends-on): Add sys_stat, stat.
7184         * modules/findprog-lgpl (Depends-on): Likewise.
7186         * lib/progreloc.c (maybe_executable): When the file found in a PATH
7187         element is a directory, continue searching.
7188         * lib/relocwrapper.c: Update comments.
7189         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
7190         (configure.ac-early): New section.
7192 2020-04-10  Bruno Haible  <bruno@clisp.org>
7194         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
7195         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7196         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
7197         * MODULES.html.sh: In a git-less tarball, use the date of the first
7198         ChangeLog entry.
7200 2020-04-04  Bruno Haible  <bruno@clisp.org>
7202         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
7203         * m4/gettext.m4: Fix comments regarding the gettext library.
7204         * m4/intl-thread-locale.m4: Likewise.
7205         * m4/intlmacosx.m4: Likewise.
7206         * m4/lcmessage.m4: Likewise.
7207         * m4/nls.m4: Likewise.
7208         * m4/po.m4: Likewise.
7209         * m4/progtest.m4: Likewise.
7211 2020-04-04  Jim Meyering  <meyering@fb.com>
7213         maint: remove a stray inter-word space in a 6x-repeated comment
7214         Induce the changes by running this:
7215           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
7216         * build-aux/announce-gen: Change "by  perl" to "by perl".
7217         * build-aux/gitlog-to-changelog: Likewise.
7218         * build-aux/prefix-gnulib-mk: Likewise.
7219         * build-aux/update-copyright: Likewise.
7220         * build-aux/useless-if-before-free: Likewise.
7221         * tests/test-update-copyright.sh: Likewise.
7223 2020-03-28  Bruno Haible  <bruno@clisp.org>
7225         Use module 'filename' instead of module 'dosname'.
7227         * lib/at-func.c: Include filename.h instead of dosname.h.
7228         * lib/unlinkat.c: Likewise.
7229         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
7230         * modules/areadlinkat-with-size (Depends-on): Likewise.
7231         * modules/faccessat (Depends-on): Likewise.
7232         * modules/fchmodat (Depends-on): Likewise.
7233         * modules/fchownat (Depends-on): Likewise.
7234         * modules/fstatat (Depends-on): Likewise.
7235         * modules/mkdirat (Depends-on): Likewise.
7236         * modules/mkfifoat (Depends-on): Likewise.
7237         * modules/readlinkat (Depends-on): Likewise.
7238         * modules/selinux-at (Depends-on): Likewise.
7239         * modules/symlinkat (Depends-on): Likewise.
7240         * modules/unlinkat (Depends-on): Likewise.
7241         * modules/utimensat (Depends-on): Likewise.
7243         * lib/at-func2.c: Include filename.h instead of dosname.h.
7244         * modules/linkat (Depends-on): Add filename. Remove dosname.
7245         * modules/renameatu (Depends-on): Likewise.
7247         * lib/canonicalize.c: Include filename.h instead of dosname.h.
7248         * lib/canonicalize-lgpl.c: Likewise.
7249         * modules/canonicalize (Depends-on): Add filename.
7250         * modules/canonicalize-lgpl (Depends-on): Likewise.
7252         * lib/dirname.h: Include filename.h instead of dosname.h.
7253         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
7255         * lib/fchdir.c: Include filename.h instead of dosname.h.
7256         * modules/fchdir (Depends-on): Add filename. Remove dosname.
7258         * lib/openat.c: Include filename.h instead of dosname.h.
7259         * modules/openat (Depends-on): Add filename. Remove dosname.
7261         * lib/rmdir.c: Include filename.h instead of dosname.h.
7262         * modules/rmdir (Depends-on): Add filename. Remove dosname.
7264         * lib/savewd.c: Include filename.h instead of dosname.h.
7265         * modules/savewd (Depends-on): Add filename. Remove dosname.
7267         * lib/unlink.c: Include filename.h instead of dosname.h.
7268         * modules/unlink (Depends-on): Add filename. Remove dosname.
7270         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
7271         * lib/relocwrapper.c: Update comments.
7273         * modules/lstat (Depends-on): Remove dosname.
7275 2020-03-28  Bruno Haible  <bruno@clisp.org>
7277         dosname: Redirect to 'filename'.
7278         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7279         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
7280         * lib/dosname.h: Remove all definitions. Just include filename.h.
7281         * modules/dosname (Status, Notice): Mark as deprecated.
7282         (Depends-on): Add 'filename'.
7284 2020-03-28  Bruno Haible  <bruno@clisp.org>
7286         dosname: Change IS_RELATIVE_FILE_NAME.
7287         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
7288         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
7289         * NEWS: Mention the change.
7291 2020-03-28  Bruno Haible  <bruno@clisp.org>
7293         filename: Copy some definitions from module 'dosname'.
7294         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
7295         (HAS_DEVICE): Document macro.
7296         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
7297         (IS_ABSOLUTE_FILE_NAME): Consider
7298         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
7299         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
7300         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
7301         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
7302         IS_PATH_WITH_DIR.
7303         (DllMain): Update.
7304         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
7305         IS_PATH_WITH_DIR.
7306         (find_executable): Update.
7307         * NEWS: Document the deprecations.
7309 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7311         getopt-posix: port __GETOPT_PREFIX to macOS
7312         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
7313         Define to work around a problem with asm on macOS (Bug#40205).
7315 2020-03-22  Bruno Haible  <bruno@clisp.org>
7317         MODULES.html.sh: Add support for reproducible builds.
7318         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7319         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
7320         * MODULES.html.sh: Print the date of the last gnulib commit, not the
7321         current date.
7323 2020-03-22  Bruno Haible  <bruno@clisp.org>
7325         Several modules: Depend on stat.
7326         * modules/acl-permissions (Depends-on): Add stat.
7327         * modules/canonicalize (Depends-on): Likewise.
7328         * modules/file-has-acl (Depends-on): Likewise.
7329         * modules/fstat (Depends-on): Likewise.
7330         * modules/fstatat (Depends-on): Likewise.
7331         * modules/glob (Depends-on): Likewise.
7332         * modules/javacomp (Depends-on): Likewise.
7333         * modules/linkat (Depends-on): Likewise.
7334         * modules/mkdir (Depends-on): Likewise.
7335         * modules/pt_chown (Depends-on): Likewise.
7336         * modules/ptsname_r (Depends-on): Likewise.
7337         * modules/readlinkat (Depends-on): Likewise.
7338         * modules/rename (Depends-on): Likewise.
7339         * modules/renameatu (Depends-on): Likewise.
7340         * modules/tmpdir (Depends-on): Likewise.
7341         * modules/utimens (Depends-on): Likewise.
7342         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
7343         * modules/same (Depends-on): Remove stat.
7345 2020-03-22  Bruno Haible  <bruno@clisp.org>
7347         acl-permissions: Improve autoconf macro.
7348         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
7349         more reliably.
7351 2020-03-22  Bruno Haible  <bruno@clisp.org>
7353         file-has-acl: Fix module description.
7354         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
7355         (Depends-on): Depend on acl-permissions unconditionally.
7357 2020-03-21  Bruno Haible  <bruno@clisp.org>
7359         unlink: Ensure errno also on native Windows.
7360         * modules/unlink (Depends-on): Add malloc-posix.
7362 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
7364         unlink: fix malloc errno typo
7365         Problem reported by Tim Rühsen in:
7366         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
7367         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
7369 2020-03-16  Bruno Haible  <bruno@clisp.org>
7371         *printf-posix: Fix m4 error (regression from 2020-03-08).
7372         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
7373         brackets in AC_COMPILE_IFELSE invocation.
7375 2020-03-08  Bruno Haible  <bruno@clisp.org>
7377         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
7378         * modules/crypto/af_alg (Depends-on): Add fstat.
7379         * modules/renameatu (Depends-on): Likewise.
7380         * modules/same (Depends-on): Likewise.
7381         * modules/term-style-control (Depends-on): Likewise.
7383 2020-03-08  Bruno Haible  <bruno@clisp.org>
7385         *printf-posix: Document why it's overridden on some glibc systems.
7386         Reported by Adrian Bunk <bunk@stusta.de> in
7387         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
7388         * doc/posix-functions/*printf.texi: Document the problem with the %n
7389         directive on some glibc systems.
7390         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
7391         the cross-compilation guesses accordingly.
7393 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7395         open, openat: port to (O_RDWR | O_RDONLY) != 0
7396         Potential portability problem reported by Dan Gohman in:
7397         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
7398         * lib/open.c (open):
7399         * lib/openat.c (rpl_openat):
7400         Don’t assume O_RDONLY is disjoint from O_RDWR.
7402 2020-03-07  Bruno Haible  <bruno@clisp.org>
7404         openat: Fix theoretically possible issue on GNU/Hurd.
7405         Reported by Dan Gohman <sunfish@mozilla.com> in
7406         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
7407         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
7408         ignore the bits that are also set in O_RDONLY.
7410 2020-02-24  Bruno Haible  <bruno@clisp.org>
7412         getloadavg: Don't use /usr/local when cross-compiling on AIX.
7413         Reported by Jens Rehsack <sno@netbsd.org> in
7414         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
7415         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
7416         cross-compiling.
7418 2020-02-24  Bruno Haible  <bruno@clisp.org>
7420         fcntl: Add witness of gnulib override.
7421         Reported by Jens Rehsack <sno@netbsd.org> in
7422         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
7423         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
7424         macros.
7426 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
7428         Update users.txt.
7429         * users.txt: Add datamash, time.
7431 2020-02-23  Bruno Haible  <bruno@clisp.org>
7433         uni*/base: Use 'restrict'.
7434         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
7435         from lib/regex.h.
7436         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
7437         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
7438         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
7439         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
7440         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
7441         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
7442         '_UC_RESTRICT'.
7443         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
7444         u32_conv_to_encoding): Use '_UC_RESTRICT'.
7445         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
7446         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
7447         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
7448         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
7449         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
7450         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
7451         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
7452         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
7453         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
7454         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
7455         '_UC_RESTRICT'.
7456         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
7457         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
7458         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
7459         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
7460         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
7461         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
7462         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
7463         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
7465 2020-02-23  Bruno Haible  <bruno@clisp.org>
7467         glob, spawn: Use improved '_Restrict_' definition.
7468         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
7469         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
7471 2020-02-23  Bruno Haible  <bruno@clisp.org>
7473         crypto/gc: Use 'restrict'.
7474         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
7475         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
7477         crypto/hmac-*: Use 'restrict'.
7478         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
7479         'restrict'.
7480         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
7481         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
7482         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
7483         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
7485         crypto/sm3: Use 'restrict'.
7486         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
7487         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
7489         crypto/*-buffer: Use 'restrict'.
7490         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
7491         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
7493         crypto/sha512-buffer: Use 'restrict'.
7494         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
7495         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
7496         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
7498         crypto/sha256-buffer: Use 'restrict'.
7499         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
7500         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
7501         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
7503         crypto/sha1-buffer: Use 'restrict'.
7504         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
7505         'restrict'.
7506         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
7508         crypto/md5-buffer: Use 'restrict'.
7509         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
7510         'restrict'.
7511         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
7513         crypto/md4: Use 'restrict'.
7514         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
7515         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
7517         crypto/md2: Use 'restrict'.
7518         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
7519         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
7521         crypto/rijndael: Use 'restrict'.
7522         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
7523         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
7524         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
7526         crypto/arctwo: Use 'restrict'.
7527         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
7528         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
7530         crypto/arcfour: Use 'restrict'.
7531         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
7532         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
7534         careadlinkat: Use 'restrict'.
7535         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
7536         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
7537         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
7539         regex-quote: Use 'restrict'.
7540         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
7541         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
7543         system-quote: Use 'restrict'.
7544         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
7545         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
7547         sh-quote: Use 'restrict'.
7548         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
7549         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
7551         quotearg: Use 'restrict'.
7552         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
7553         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
7555         parse-datetime: Use 'restrict'.
7556         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
7557         'restrict'.
7558         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
7560         nstrftime: Use 'restrict'.
7561         * lib/strftime.h (nstrftime): Use 'restrict'.
7562         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
7564         mbstok_r: Use 'restrict'.
7565         * lib/string.in.h (mbstok_r): Use 'restrict'.
7567         xmemcoll: Use 'restrict'.
7568         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
7569         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
7571         memcoll: Use 'restrict'.
7572         * lib/memcoll.h (memcoll): Use 'restrict'.
7573         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
7575         vasnprintf: Use 'restrict'.
7576         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
7577         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
7579         c-vasnprintf: Use 'restrict'.
7580         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
7581         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
7583         c-vsnprintf: Use 'restrict'.
7584         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
7585         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
7587         c-snprintf: Use 'restrict'.
7588         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
7589         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
7591         astrxfrm: Use 'restrict'.
7592         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
7593         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
7595         amemxfrm: Use 'restrict'.
7596         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
7597         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
7599 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7601         fchmodat, lchmod: simplify
7602         It appears that we may have overengineered lchmod and fchmodat,
7603         in that the code was prepared for some hypothetical platforms but
7604         was so complicated that it was hard to understand.  I attempted to
7605         improve the situation by simplifying the code when this
7606         simplification should not hurt on real platforms; we can re-add
7607         complexity later to port to platforms I didn’t know about.
7608         * lib/fchmodat.c (fchmodat):
7609         * lib/lchmod.c (lchmod):
7610         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
7611         around the /proc code that needs it.
7612         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
7613         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
7614         Do not include <config.h> twice.
7615         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
7616         lchmod on any known hosts.
7617         (lchmod): Do not defer to fchmodat, so that the lchmod module
7618         need not depend on the fchmodat module (which is a circular
7619         dependency).  Do not use openat, since ‘open’ suffices.
7620         Coalesce calls to lchmod/chmod.
7621         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
7622         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
7623         * modules/lchmod (Depends-on, configure.ac):
7624         * modules/sys_stat (Depends-on):
7625         Do not worry about replacing lchmod, since that shouldn’t happen.
7626         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
7627         Do not worry about whether lchmod works on non-symlinks,
7628         since every known lchmod works on non-symlinks.
7629         * modules/lchmod (Depends-on):
7630         Remove circular dependency on fchmodat.
7632 2020-02-22  Bruno Haible  <bruno@clisp.org>
7634         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
7635         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
7636         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
7638 2020-02-22  Bruno Haible  <bruno@clisp.org>
7640         Use 'restrict' in all POSIX function declarations.
7641         * lib/iconv.in.h (iconv): Use 'restrict'.
7642         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
7643         * lib/monetary.in.h (strfmon_l): Likewise.
7644         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
7645         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
7646         pthread_mutex_timedlock, pthread_rwlock_init,
7647         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7648         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
7649         * lib/search.in.h (tdelete): Likewise.
7650         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
7651         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
7652         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
7653         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
7654         Likewise.
7655         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
7656         strtoull): Likewise.
7657         * lib/string.in.h (strncat): Likewise.
7658         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
7659         recvfrom): Likewise.
7660         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
7661         * lib/time.in.h (strftime): Likewise.
7662         * lib/unistd.in.h (readlink, readlinkat): Likewise.
7663         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
7664         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
7665         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
7666         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
7667         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
7668         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
7669         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7670         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7671         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7672         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7673         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7675         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7676         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7677         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
7678         other *_h.m4 files.
7679         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
7681 2020-02-22  Bruno Haible  <bruno@clisp.org>
7683         Update NEWS.
7684         * NEWS: Mention the last change.
7686 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7688         chmodat, chownat: new modules
7689         These are split from fchmodat, fchownat.  GNU Emacs needs the
7690         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
7691         lchmodat.  Split the latter two into a new module chmodat.
7692         Similarly for fchownat.  This the same basic idea for why statat
7693         was split from fstatat on 2013-01-23.
7694         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
7695         Rename from FCHMODAT_INLINE.  All uses changed.
7696         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
7697         Rename from FCHOWNAT_INLINE.  All uses changed.
7698         * lib/openat.h:
7699         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
7700         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
7701         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
7702         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
7703         (configure.ac): Remove fchmodat module indicator.
7704         (Makefile.am): Omit chmodat.c.
7705         (Maintainer): Add self.
7706         * modules/fchownat: Similarly, but for chown.
7707         * tests/test-fchownat.c (BASE): Don't define if already defined.
7708         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
7710 2020-02-22  Bruno Haible  <bruno@clisp.org>
7712         users.txt: Add groff.
7713         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
7714         * users.txt: Add groff.
7716 2020-02-22  Bruno Haible  <bruno@clisp.org>
7718         gnulib-tool: Ensure copied files are writable.
7719         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
7720         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
7721         * gnulib-tool (func_ensure_writable): New function.
7722         (func_ln_s, func_hardlink, func_lookup_file, func_import,
7723         func_create_testdir, copy-file): Invoke it after copying a file.
7725 2020-02-22  Bruno Haible  <bruno@clisp.org>
7727         users.txt: Update.
7728         * users.txt: Update URLs to projects that have moved or switched to git.
7729         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
7730         over the summary view. Add gawk.
7732 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7734         largefile: remove _DARWIN_USE_64_BIT_INODE
7735         It’s not needed in currently-supported macOS versions, and was
7736         problematic anyway in MacOS X 10.5 which was the only version that
7737         could use it.  Problem reported by Peter Eisentraut in:
7738         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
7739         * m4/largefile.m4 (AC_SYS_LARGEFILE):
7740         Don’t define _DARWIN_USE_64_BIT_INODE.
7741         This syncs with Autoconf master.
7743         Add ‘extern "C"’ to count-one-bits.h etc.
7744         This ports these .h files to C++.
7745         Problem reported by Simon Marchi in:
7746         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
7747         * lib/count-leading-zeros.h, lib/count-one-bits.h:
7748         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
7750 2020-02-19  Bruno Haible  <bruno@clisp.org>
7752         uninorm/decompose-internal: Avoid "no previous prototype" warning.
7753         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7754         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
7755         * lib/array-mergesort.h: Accept an optional macro definition
7756         STATIC_FROMTO.
7757         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
7759 2020-02-16  Bruno Haible  <bruno@clisp.org>
7761         fchmodat: Make more future-proof.
7762         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
7763         NEED_FCHMODAT_NONSYMLINK_FIX.
7764         (gl_PREREQ_FCHMODAT): New macro.
7765         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
7766         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
7767         without lchmod function.
7768         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
7770 2020-02-16  Bruno Haible  <bruno@clisp.org>
7772         lchmod: Make more future-proof.
7773         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
7774         (gl_PREREQ_LCHMOD): New macro.
7775         * lib/lchmod.c (orig_lchmod): New function.
7776         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
7777         Return EOPNOTSUPP only on Linux and on platforms without lchmod
7778         function.
7779         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
7781         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
7782         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
7784 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7786         xnanosleep: prefer pause, and get remaining time
7787         Problem reported by Vladimir Panteleev in:
7788         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
7789         * lib/xnanosleep.c: Include intprops.h, unistd.h.
7790         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
7791         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
7792         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
7793         * modules/xnanosleep (Depends-on): Add intprops, unistd.
7795 2020-02-16  Bruno Haible  <bruno@clisp.org>
7797         lchmod: Improve cross-compilation guess.
7798         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
7799         cross-compiling, guess depending on the platform.
7801 2020-02-16  Bruno Haible  <bruno@clisp.org>
7803         fstrcmp: Add API to clean up resources.
7804         Reported by Akim Demaille <akim@lrde.epita.fr> in
7805         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
7806         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
7807         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
7809 2020-02-14  Bruno Haible  <bruno@clisp.org>
7811         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
7812         Reported by Christian Biesinger in
7813         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
7814         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
7815         corresponding module is not enabled.
7816         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
7817         prototype if the corresponding module is not enabled.
7819 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
7821         fchmodat, lchmod: port to buggy Linux filesystems
7822         Problem reported by Florian Weimer in:
7823         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
7824         * lib/fchmodat.c (fchmodat):
7825         * lib/lchmod.c (lchmod):
7826         Don’t assume that chmod on the O_PATH-opened fd will do
7827         the right thing on a symbolic link.
7828         * lib/fchmodat.c (fchmodat):
7829         Don’t attempt to special-case
7830         any flag value other than AT_SYMLINK_NOFOLLOW.
7832 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
7834         lchmod: pacify Coverity CID 1491216
7835         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
7836         not complain about unreachable code at the ‘struct stat st;’
7837         declaration.
7839 2020-02-10  Bruno Haible  <bruno@clisp.org>
7841         copysignf: Fix link error on HP-UX with cc.
7842         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
7843         HP-UX, set COPYSIGNF_LIBM to -lm.
7845 2020-02-10  Bruno Haible  <bruno@clisp.org>
7847         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
7848         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
7849         with $(LIB_SEMAPHORE).
7850         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
7851         with $(LIB_SEMAPHORE).
7853 2020-02-10  Bruno Haible  <bruno@clisp.org>
7855         ptsname_r-tests: Avoid unused function warning.
7856         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
7858 2020-02-08  Bruno Haible  <bruno@clisp.org>
7860         lchmod: Add tests.
7861         * tests/test-lchmod.c: New file.
7862         * modules/lchmod-tests: New file.
7864 2020-02-08  Bruno Haible  <bruno@clisp.org>
7866         lchmod: Ensure declaration on HP-UX.
7867         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
7868         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
7870 2020-02-08  Bruno Haible  <bruno@clisp.org>
7872         fchmodat: Strengthen tests.
7873         * tests/test-fchmodat.c (BASE): New macro.
7874         (main): Use it, to avoid conflicts with other unit tests. Verify that
7875         fchmodat changed the file permission bits.
7877 2020-02-08  Bruno Haible  <bruno@clisp.org>
7879         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
7880         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
7881         '#undef __need_system_sys_stat_h'.
7883 2020-02-08  Bruno Haible  <bruno@clisp.org>
7885         fchmodat: Improve cross-compilation guesses.
7886         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
7887         cross-compiling, guess depending on the platform.
7888         * doc/posix-functions/fchmodat.texi: Clarify.
7890 2020-02-08  Bruno Haible  <bruno@clisp.org>
7892         Fix compilation errors in a testdir created with --with-c++-tests.
7893         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
7894         since it does not work any more with g++ >= 4.4.
7896 2020-02-08  Bruno Haible  <bruno@clisp.org>
7898         doc: Update for glibc 2.31.
7899         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
7900         * doc/gnulib.texi: Include it.
7901         * doc/pastposix-functions/h_errno.texi: Update.
7902         * doc/posix-functions/*.texi: Likewise.
7904 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
7906         mountlist: consider smb3 file systems as remote
7907         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
7908         "smb3" as remote.
7910 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7912         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
7913         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
7914         they act like chmod on non-symlinks.
7915         * NEWS:
7916         * doc/glibc-functions/lchmod.texi (lchmod):
7917         * doc/posix-functions/fchmodat.texi (fchmodat):
7918         Mention this.
7919         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
7920         config.h, and undef it after including sys/stat.h the first time.
7921         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
7922         sys/stat.h a second time after defining orig_fchmodat.
7923         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
7924         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
7925         * lib/lchmod.c: New file.
7926         * lib/sys_stat.in.h (fchmodat, lchmod):
7927         Support replacing these functions.
7928         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
7929         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
7930         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
7931         Test that lchmod works on non-symlinks.
7932         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
7933         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
7934         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
7935         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
7936         * modules/lchmod (Files): Add lib/lchmod.c.
7937         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
7938         (configure.ac): Compile lchmod.c if needed.
7939         (lib_SOURCES): Add lchmod.c.
7940         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
7941         and REPLACE_LCHMOD.
7942         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
7943         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
7945 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
7947         mountlist: Consider AFS filesystems as remote
7948         df --local relies on the ME_REMOTE macro to determine if a given
7949         mount entry should be considered "local".  There is special logic
7950         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
7951         kernel's kafs module or AuriStorFS is treated as a local mount.
7952         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
7953         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
7955 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7957         Port _Noreturn to older Clang
7958         Problem reported by Jeffery Walton in:
7959         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
7960         * lib/_Noreturn.h (_Noreturn):
7961         * m4/gnulib-common.m4 (gl_COMMON_BODY):
7962         Assume _Noreturn works in Clang 3.5 and later.
7963         It is documented to work in Clang 3.5:
7964         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
7965         and is not documented in Clang 3.4:
7966         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
7967         Apple sets __clang_version__ to a different value, so use
7968         __apple_build_version__ there.  See:
7969         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
7971 2020-02-04  Pádraig Brady  <P@draigBrady.com>
7973         test-canonicalize: avoid unused function warning
7974         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
7975         with the same guard as that used to protect usage of the null_ptr
7976         function, so that one doesn't get a -Wunused warning.
7977         * tests/test-canonicalize-lgpl.c: Likewise.
7979 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
7981         libc-config: port to Apple’s Clang variant
7982         * lib/libc-config.h (__glibc_clang_prereq):
7983         Port to Apple’s Clang variant, which uses a different
7984         numbering scheme for __clang_major__.
7986 2020-02-02  Bruno Haible  <bruno@clisp.org>
7988         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
7989         * doc/containers.texi: Document these new modules.
7991 2020-02-02  Bruno Haible  <bruno@clisp.org>
7993         omap-c++: Add tests.
7994         * tests/test-omap-c++.cc: New file.
7995         * modules/omap-c++-tests: New file.
7997         omap-c++: New module.
7998         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
7999         * modules/omap-c++: New file.
8001 2020-02-02  Bruno Haible  <bruno@clisp.org>
8003         map-c++: Add tests.
8004         * tests/test-map-c++.cc: New file.
8005         * modules/map-c++-tests: New file.
8007         map-c++: New module.
8008         * lib/gl_map.hh: New file, based on lib/gl_map.h.
8009         * modules/map-c++: New file.
8011 2020-02-02  Bruno Haible  <bruno@clisp.org>
8013         oset-c++: Add tests.
8014         * tests/test-oset-c++.cc: New file.
8015         * modules/oset-c++-tests: New file.
8017         oset-c++: New module.
8018         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
8019         * modules/oset-c++: New file.
8021 2020-02-02  Bruno Haible  <bruno@clisp.org>
8023         set-c++: Add tests.
8024         * tests/test-set-c++.cc: New file.
8025         * modules/set-c++-tests: New file.
8027         set-c++: New module.
8028         * lib/gl_set.hh: New file, based on lib/gl_set.h.
8029         * modules/set-c++: New file.
8031 2020-02-02  Bruno Haible  <bruno@clisp.org>
8033         list-c++: Add tests.
8034         * tests/test-list-c++.cc: New file.
8035         * modules/list-c++-tests: New file.
8037         list-c++: New module.
8038         * lib/gl_list.hh: New file, based on lib/gl_list.h.
8039         * modules/list-c++: New file.
8041 2020-02-02  Bruno Haible  <bruno@clisp.org>
8043         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
8044         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
8045         '_Noreturn'.
8046         * lib/sigpipe-die.h (sigpipe_die): Likewise.
8048 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8050         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
8051         On x86_64 with glibc-2.30, gcc 9.2 is giving:
8052           error: argument 2 value '18446744073709551615'
8053           exceeds maximum object size 9223372036854775807
8054           [-Werror=alloc-size-larger-than=]
8055         The details of this restriction are discussed at:
8056         https://stackoverflow.com/q/42574890/4421
8057         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
8059 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8061         sysctl.h: avoid including on glibc
8062         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
8063         * lib/physmem.c: Likewise.
8065 2020-02-02  Bruno Haible  <bruno@clisp.org>
8067         list, set, oset, map, omap: Avoid imperative voice in documentation.
8068         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
8069         in the specification of functions.
8070         * lib/gl_set.h: Likewise.
8071         * lib/gl_oset.h: Likewise.
8072         * lib/gl_map.h: Likewise.
8073         * lib/gl_omap.h: Likewise.
8074         * lib/gl_*.h: Likewise.
8076 2020-02-01  Bruno Haible  <bruno@clisp.org>
8078         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
8079         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
8080         does.
8082 2020-01-29  Bruno Haible  <bruno@clisp.org>
8084         array-map, hash-map, linkedhash-map: Fix module description.
8085         * modules/array-map (Description): Fix description.
8086         * modules/hash-map (Description): Likewise.
8087         * modules/linkedhash-map (Description): Likewise.
8089 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8091         dfa: do not depend on isblank
8092         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
8093         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
8094         * modules/dfa (Depends-on): Remove isblank.
8095         * modules/isblank: Add a module indicator, for lib/dfa.c.
8097         dfa: do not assume 64-bit int
8098         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
8099         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
8100         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
8101         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
8102         Fall back to 32-bit words.
8103         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
8104         of 4 64-bit args.  All uses changed.
8106 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8108         regex: remove limits-h dependency
8109         * modules/regex (Depends-on): Remove limits-h, since the
8110         code no longer depends on ULONG_WIDTH already being defined.
8112         regex: port to non-GCC pre-IEC-60559
8113         Problem reported by Arnold Robbins in:
8114         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
8115         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
8117 2020-01-25  Bruno Haible  <bruno@clisp.org>
8119         c32isxdigit: Add tests.
8120         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
8121         * tests/test-c32isxdigit.sh: New file.
8122         * modules/c32isxdigit-tests: New file.
8124         c32isxdigit: New module.
8125         * lib/c32isxdigit.c: New file.
8126         * modules/c32isxdigit: New file.
8127         * doc/posix-functions/iswxdigit.texi: Mention the new module.
8129 2020-01-25  Bruno Haible  <bruno@clisp.org>
8131         c32isupper: Add tests.
8132         * tests/test-c32isupper.c: New file.
8133         * tests/test-c32isupper.sh: New file.
8134         * modules/c32isupper-tests: New file.
8136         c32isupper: New module.
8137         * lib/c32isupper.c: New file.
8138         * modules/c32isupper: New file.
8139         * doc/posix-functions/iswupper.texi: Mention the new module.
8141 2020-01-25  Bruno Haible  <bruno@clisp.org>
8143         c32isspace: Add tests.
8144         * tests/test-c32isspace.c: New file.
8145         * tests/test-c32isspace.sh: New file.
8146         * modules/c32isspace-tests: New file.
8148         c32isspace: New module.
8149         * lib/c32isspace.c: New file.
8150         * modules/c32isspace: New file.
8151         * doc/posix-functions/iswspace.texi: Mention the new module.
8153 2020-01-25  Bruno Haible  <bruno@clisp.org>
8155         c32ispunct: Add tests.
8156         * tests/test-c32ispunct.c: New file.
8157         * tests/test-c32ispunct.sh: New file.
8158         * modules/c32ispunct-tests: New file.
8160         c32ispunct: New module.
8161         * lib/c32ispunct.c: New file.
8162         * modules/c32ispunct: New file.
8163         * doc/posix-functions/iswpunct.texi: Mention the new module.
8165 2020-01-25  Bruno Haible  <bruno@clisp.org>
8167         c32isprint: Add tests.
8168         * tests/test-c32isprint.c: New file.
8169         * tests/test-c32isprint.sh: New file.
8170         * modules/c32isprint-tests: New file.
8172         c32isprint: New module.
8173         * lib/c32isprint.c: New file.
8174         * modules/c32isprint: New file.
8175         * doc/posix-functions/iswprint.texi: Mention the new module.
8177 2020-01-25  Bruno Haible  <bruno@clisp.org>
8179         c32islower: Add tests.
8180         * tests/test-c32islower.c: New file.
8181         * tests/test-c32islower.sh: New file.
8182         * modules/c32islower-tests: New file.
8184         c32islower: New module.
8185         * lib/c32islower.c: New file.
8186         * modules/c32islower: New file.
8187         * doc/posix-functions/iswlower.texi: Mention the new module.
8189 2020-01-25  Bruno Haible  <bruno@clisp.org>
8191         c32isgraph: Add tests.
8192         * tests/test-c32isgraph.c: New file.
8193         * tests/test-c32isgraph.sh: New file.
8194         * modules/c32isgraph-tests: New file.
8196         c32isgraph: New module.
8197         * lib/c32isgraph.c: New file.
8198         * modules/c32isgraph: New file.
8199         * doc/posix-functions/iswgraph.texi: Mention the new module.
8201 2020-01-25  Bruno Haible  <bruno@clisp.org>
8203         c32isdigit: Add tests.
8204         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
8205         * tests/test-c32isdigit.sh: New file.
8206         * modules/c32isdigit-tests: New file.
8208         c32isdigit: New module.
8209         * lib/c32isdigit.c: New file.
8210         * modules/c32isdigit: New file.
8211         * doc/posix-functions/iswdigit.texi: Mention the new module.
8213 2020-01-25  Bruno Haible  <bruno@clisp.org>
8215         c32iscntrl: Add tests.
8216         * tests/test-c32iscntrl.c: New file.
8217         * tests/test-c32iscntrl.sh: New file.
8218         * modules/c32iscntrl-tests: New file.
8220         c32iscntrl: New module.
8221         * lib/c32iscntrl.c: New file.
8222         * modules/c32iscntrl: New file.
8223         * doc/posix-functions/iswcntrl.texi: Mention the new module.
8225 2020-01-25  Bruno Haible  <bruno@clisp.org>
8227         c32isblank: Add tests.
8228         * tests/test-c32isblank.c: New file.
8229         * tests/test-c32isblank.sh: New file.
8230         * modules/c32isblank-tests: New file.
8232         c32isblank: New module.
8233         * lib/c32isblank.c: New file.
8234         * modules/c32isblank: New file.
8235         * doc/posix-functions/iswblank.texi: Mention the new module.
8237 2020-01-25  Bruno Haible  <bruno@clisp.org>
8239         c32isalpha: Add tests.
8240         * tests/test-c32isalpha.c: New file.
8241         * tests/test-c32isalpha.sh: New file.
8242         * modules/c32isalpha-tests: New file.
8244         c32isalpha: New module.
8245         * lib/c32isalpha.c: New file.
8246         * modules/c32isalpha: New file.
8247         * doc/posix-functions/iswalpha.texi: Mention the new module.
8249 2020-01-25  Bruno Haible  <bruno@clisp.org>
8251         c32isalnum: Add tests.
8252         * tests/test-c32isalnum.c: New file.
8253         * tests/test-c32isalnum.sh: New file.
8254         * modules/c32isalnum-tests: New file.
8256         c32isalnum: New module.
8257         * lib/c32isalnum.c: New file.
8258         * lib/c32is-impl.h: New file.
8259         * modules/c32isalnum: New file.
8260         * doc/posix-functions/iswalnum.texi: Mention the new module.
8262 2020-01-25  Bruno Haible  <bruno@clisp.org>
8264         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
8265         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
8266         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
8267         c32isupper, c32isxdigit): New declarations.
8268         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
8269         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8270         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8271         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8272         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8273         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
8274         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8275         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8276         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8277         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8278         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
8279         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
8280         c32ispunct, c32isspace, c32isupper, c32isxdigit.
8282 2020-01-25  Bruno Haible  <bruno@clisp.org>
8284         mbchar, wctype: Use the corrected iswxdigit function.
8285         * modules/mbchar (Depends-on): Add iswxdigit.
8286         * modules/wctype (Depends-on): Likewise.
8288         iswxdigit: Add tests.
8289         * tests/test-iswxdigit.c: New file.
8290         * tests/test-iswxdigit.sh: New file.
8291         * modules/iswxdigit-tests: New file.
8293         iswxdigit: New module.
8294         * m4/iswxdigit.m4: New file.
8295         * lib/wctype.in.h (iswxdigit): Potentially override.
8296         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
8297         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
8298         * lib/iswxdigit.c: New file.
8299         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
8300         REPLACE_ISWXDIGIT.
8301         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
8302         REPLACE_ISWXDIGIT.
8303         * modules/iswxdigit: New file.
8304         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
8306 2020-01-25  Bruno Haible  <bruno@clisp.org>
8308         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
8309         Reported by John Donoghue <john.david.donoghue@gmail.com> in
8310         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
8311         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
8312         off_t on mingw, invoke _lseeki64 instead of lseek.
8314 2020-01-25  Bruno Haible  <bruno@clisp.org>
8316         iswdigit tests: Avoid test failure on Cygwin.
8317         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
8318         byte sequence, return 0.
8320         iswdigit: Fix test failure on native Windows.
8321         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
8323         mbchar, wctype: Use the corrected iswdigit function.
8324         * modules/mbchar (Depends-on): Add iswdigit.
8325         * modules/wctype (Depends-on): Likewise.
8327         iswdigit: Add tests.
8328         * tests/test-iswdigit.c: New file.
8329         * tests/test-iswdigit.sh: New file.
8330         * modules/iswdigit-tests: New file.
8332         iswdigit: New module.
8333         * m4/iswdigit.m4: New file.
8334         * lib/wctype.in.h (iswdigit): Potentially override.
8335         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
8336         * lib/iswdigit.c: New file.
8337         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
8338         REPLACE_ISWDIGIT.
8339         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
8340         REPLACE_ISWDIGIT.
8341         * modules/iswdigit: New file.
8342         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
8344 2020-01-25  Bruno Haible  <bruno@clisp.org>
8346         hard-locale tests: Make it easy to reuse the musl test.
8347         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
8348         * modules/hard-locale-tests (Files): Add it.
8349         (configure.ac): Invoke gl_MUSL_LIBC.
8351 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8353         regex: port to Gawk on nonstandard platforms
8354         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
8355         This is useful for Gawk, which does not use the Gnulib stdlib-h
8356         module.  Problem reported by Arnold Robbins in:
8357         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
8359 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8361         regex: fix bug with >=16 subexpressions
8362         * lib/regex_internal.h (struct re_backref_cache_entry):
8363         Use bitset_word_t as the type of eps_reachable_subexps_map,
8364         instead of unsigned short int.  This fixes a bug I introduced
8365         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
8366         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
8367         Remove unused member 'unused'.
8369         regex: simplify definition of BITSET_WORD_BITS
8370         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
8371         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
8372         * lib/regex_internal.h (BITSET_WORD_BITS):
8373         * modules/regex (Depends-on): Add limits-h.
8374         Simplify now that we can use ULONG_WIDTH.
8376 2020-01-20  Bruno Haible  <bruno@clisp.org>
8378         mbrtoc32: Add note about FreeBSD 12.
8379         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
8380         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
8381         affected.
8383 2020-01-20  Bruno Haible  <bruno@clisp.org>
8385         unistr/u8-uctomb: Fix warning.
8386         Reported by Andreas Schwab <schwab@suse.de> in
8387         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
8388         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
8389         (u8_uctomb): Add FALLTHROUGH markers.
8391 2020-01-20  Bruno Haible  <bruno@clisp.org>
8393         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
8394         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
8395         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
8396         (glthread_once): Use it.
8398 2020-01-19  Bruno Haible  <bruno@clisp.org>
8400         threadlib: Disable use of weak symbols on FreeBSD 11.
8401         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8402         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
8403         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
8404         against a bug in FreeBSD 11.
8406 2020-01-19  Bruno Haible  <bruno@clisp.org>
8408         iconv_open: Improve z/OS support.
8409         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
8410         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
8411         Remove mapping for EUC-TW.
8413 2020-01-18  Bruno Haible  <bruno@clisp.org>
8415         Rename ~~gnulib.m4 to zzgnulib.m4.
8416         Suggested by Paul Eggert.
8417         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
8418         * gnulib-tool (func_get_filelist): Update.
8419         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8421 2020-01-18  Bruno Haible  <bruno@clisp.org>
8423         doc: Update license notices.
8424         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
8425         reference to a section or to a "file as part of this distribution".
8427 2020-01-18  Bruno Haible  <bruno@clisp.org>
8429         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
8430         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8431         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
8432         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
8433         AC_EGREP_CPP.
8435 2020-01-18  Bruno Haible  <bruno@clisp.org>
8437         Ensure Automake does not drop ~~gnulib.m4.
8438         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
8439         * m4/gnulib-common.m4 (gl_COMMON): Require it.
8441 2020-01-18  Bruno Haible  <bruno@clisp.org>
8443         Fix major regression from 2020-01-10.
8444         Reported by Paul Eggert in
8445         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
8446         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8447         Don't AC_REQUIRE anything.
8448         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
8449         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
8450         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
8451         use ac_compile instead.
8452         (AC_CHECK_DECL): Remove override.
8453         * m4/~~gnulib.m4: New file.
8454         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
8455         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8457 2020-01-17  Bruno Haible  <bruno@clisp.org>
8458             Paul Eggert  <eggert@cs.ucla.edu>
8460         glob: Fix use-after-free bug.
8461         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8462         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
8463         * lib/glob.c (__glob): Delay freeing dirname until after the use of
8464         end_name.
8466 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8468         vcs-to-changelog: Fix parsing of fndecl without args.
8469         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
8470         for empty arguments.
8472 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8474         vcs-to-changelog: Add documentation.
8475         * doc/vcs-to-changelog.texi: New file.
8476         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
8477         section.
8479 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8481         vcs-to-changelog: Allow loading of custom quirks file.
8482         * build-aux/vcs_to_changelog.py: New commandline option -q.
8484 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8486         vcs-to-changelog: Fix formatting of ChangeLog output.
8487         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
8488         output.
8490 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8492         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
8493         Reported in
8494         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
8495         * build-aux/vcstocl/frontend_c.py: Remove shebang.
8497 2020-01-15  Simon Josefsson  <simon@josefsson.org>
8499         crypto/gc-pbkdf2: New module.
8500         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
8501         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
8502         * lib/gc-pbkdf2.c: New file.
8503         * lib/gc-pbkdf2-sha1.c: Use new interface.
8504         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
8505         * modules/crypto/gc-pbkdf2: New file.
8506         * modules/crypto/gc-pbkdf2-tests: New file.
8507         * tests/test-gc-pbkdf2.c: New file.
8509 2020-01-12  Bruno Haible  <bruno@clisp.org>
8511         c32stombs: Add tests.
8512         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
8513         * tests/test-c32stombs-1.sh: New file, based on
8514         tests/test-c32srtombs-1.sh.
8515         * tests/test-c32stombs-2.sh: New file, based on
8516         tests/test-c32srtombs-2.sh.
8517         * tests/test-c32stombs-3.sh: New file, based on
8518         tests/test-c32srtombs-3.sh.
8519         * tests/test-c32stombs-4.sh: New file, based on
8520         tests/test-c32srtombs-4.sh.
8521         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
8523         c32stombs: New module.
8524         * lib/uchar.in.h (c32stombs): New declaration.
8525         * lib/c32stombs.c: New file.
8526         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
8527         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
8528         * modules/c32stombs: New file.
8529         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
8530         * doc/posix-functions/wcstombs.texi: Mention the new module.
8532 2020-01-11  Jim Meyering  <meyering@fb.com>
8534         perl: require the "warnings" module
8535         * m4/perl.m4: Also "use warnings", so we reject the perl found
8536         on at least one IRIX 6.5 system. Reported by Bruno Haible in
8537         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
8539 2020-01-10  Bruno Haible  <bruno@clisp.org>
8541         Fix major regression from 2020-01-04.
8542         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8543         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
8544         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
8545         AC_DEFUN_ONCE.
8546         (AC_CHECK_DECL): Invoke, not require, it.
8548 2020-01-10  Bruno Haible  <bruno@clisp.org>
8550         c32snrtombs: Add tests.
8551         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
8552         * tests/test-c32snrtombs-1.sh: New file, based on
8553         tests/test-wcsnrtombs1.sh.
8554         * tests/test-c32snrtombs-2.sh: New file, based on
8555         tests/test-wcsnrtombs2.sh.
8556         * tests/test-c32snrtombs-3.sh: New file, based on
8557         tests/test-wcsnrtombs3.sh.
8558         * tests/test-c32snrtombs-4.sh: New file, based on
8559         tests/test-wcsnrtombs4.sh.
8560         * modules/c32snrtombs-tests: New file, based on
8561         modules/wcsnrtombs-tests.
8563         c32snrtombs: New module.
8564         * lib/uchar.in.h (c32snrtombs): New declaration.
8565         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8566         INTERNAL_STATE, WCRTOMB.
8567         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8568         * lib/c32snrtombs.c: New file.
8569         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
8570         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
8571         * modules/c32snrtombs: New file.
8572         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
8573         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
8575 2020-01-09  Bruno Haible  <bruno@clisp.org>
8577         c32srtombs: Add tests.
8578         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
8579         * tests/test-c32srtombs-1.sh: New file, based on
8580         tests/test-wcsrtombs1.sh.
8581         * tests/test-c32srtombs-2.sh: New file, based on
8582         tests/test-wcsrtombs2.sh.
8583         * tests/test-c32srtombs-3.sh: New file, based on
8584         tests/test-wcsrtombs3.sh.
8585         * tests/test-c32srtombs-4.sh: New file, based on
8586         tests/test-wcsrtombs4.sh.
8587         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
8589         c32srtombs: New module.
8590         * lib/uchar.in.h (c32srtombs): New declaration.
8591         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8592         INTERNAL_STATE, WCRTOMB.
8593         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8594         * lib/c32srtombs.c: New file.
8595         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
8596         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
8597         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
8598         * modules/c32srtombs: New file.
8599         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
8600         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
8602 2020-01-08  Bruno Haible  <bruno@clisp.org>
8604         c32tob: Make consistent with mbrtoc32.
8605         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
8606         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
8607         use c32rtomb, not wctob.
8608         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
8609         (Depends-on): Add c32rtomb.
8610         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
8612 2020-01-08  Bruno Haible  <bruno@clisp.org>
8614         c32rtomb: Add tests.
8615         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
8616         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
8617         * tests/test-c32rtomb-w32.c: New file, based on
8618         tests/test-wcrtomb-w32.c.
8619         * tests/test-c32rtomb-w32-1.sh: New file, based on
8620         tests/test-wcrtomb-w32-1.sh.
8621         * tests/test-c32rtomb-w32-2.sh: New file, based on
8622         tests/test-wcrtomb-w32-2.sh.
8623         * tests/test-c32rtomb-w32-3.sh: New file, based on
8624         tests/test-wcrtomb-w32-3.sh.
8625         * tests/test-c32rtomb-w32-4.sh: New file, based on
8626         tests/test-wcrtomb-w32-4.sh.
8627         * tests/test-c32rtomb-w32-5.sh: New file, based on
8628         tests/test-wcrtomb-w32-5.sh.
8629         * tests/test-c32rtomb-w32-6.sh: New file, based on
8630         tests/test-wcrtomb-w32-6.sh.
8631         * tests/test-c32rtomb-w32-7.sh: New file, based on
8632         tests/test-wcrtomb-w32-7.sh.
8633         * modules/c32rtomb-tests: New file.
8635         c32rtomb: New module.
8636         * lib/uchar.in.h (c32rtomb): New declaration.
8637         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
8638         * m4/c32rtomb.m4: New file.
8639         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
8640         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
8641         REPLACE_C32RTOMB.
8642         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
8643         HAVE_C32RTOMB, REPLACE_C32RTOMB.
8644         * modules/c32rtomb: New file.
8645         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
8646         * doc/posix-functions/c32rtomb.texi: Document the new module.
8647         * doc/posix-functions/wcrtomb.texi: Mention the new module.
8649 2020-01-08  Bruno Haible  <bruno@clisp.org>
8651         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
8652         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
8653         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
8654         but is not working.
8655         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
8656         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
8657         differ, use the system's mbrtoc32, adding workarounds.
8658         * modules/mbrtoc32 (Depends-on): Add hard-locale.
8659         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
8660         Windows problem.
8661         * lib/btoc32.c: Include <stdio.h>, <string.h>.
8662         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
8663         use mbrtoc32, not btowc.
8664         * modules/btoc32 (Depends-on): Add mbrtoc32.
8665         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
8666         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
8667         * modules/mbsrtoc32s (Depends-on): Update conditions.
8668         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8669         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
8670         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
8671         * modules/mbsnrtoc32s (Depends-on): Update conditions.
8672         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8674 2020-01-07  Bruno Haible  <bruno@clisp.org>
8676         wcrtomb: Make multithread-safe, except possibly on IRIX.
8677         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
8678         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
8679         WCRTOMB_RETVAL_BUG.
8680         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
8681         wctomb only on IRIX.
8683 2020-01-05  Jim Meyering  <meyering@fb.com>
8685         tests: skip thread-using tests when threading is disabled
8686         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
8687         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
8688         of those, so they are skipped in this case.
8689         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
8690         * tests/test-setlocale_null-mt-all.c (main): Likewise.
8691         * tests/test-setlocale_null-mt-one.c (main): Likewise.
8693 2020-01-05  Bruno Haible  <bruno@clisp.org>
8695         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
8696         Reported by Jim Meyering in
8697         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
8698         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
8699         (GNULIB_defined_ptsname_r): New macro.
8700         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
8701         (main): Disable the NULL argument test if canonicalize_file_name does
8702         not come from gnulib.
8703         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
8704         (main): Disable the NULL argument test if canonicalize_file_name does
8705         not come from gnulib.
8706         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
8707         (test_errors): Disable the NULL argument test if ptsname_r does not come
8708         from gnulib.
8710 2020-01-04  Jim Meyering  <meyering@fb.com>
8712         update-copyright: reenable its always-skipped test
8713         * tests/test-update-copyright.sh: Restore the "-pi" options removed
8714         on 2019-06-15. Without those, an internal preliminary test would
8715         fail, causing this test always to be skipped.
8716         Verify that the test is now run and passes via this:
8717           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
8719 2020-01-05  Bruno Haible  <bruno@clisp.org>
8721         mbstoc32s: Add tests.
8722         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
8723         * tests/test-mbstoc32s-1.sh: New file, based on
8724         tests/test-mbsrtoc32s-1.sh.
8725         * tests/test-mbstoc32s-2.sh: New file, based on
8726         tests/test-mbsrtoc32s-2.sh.
8727         * tests/test-mbstoc32s-3.sh: New file, based on
8728         tests/test-mbsrtoc32s-3.sh.
8729         * tests/test-mbstoc32s-4.sh: New file, based on
8730         tests/test-mbsrtoc32s-4.sh.
8731         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
8733         mbstoc32s: New module.
8734         * lib/uchar.in.h (mbstoc32s): New declaration.
8735         * lib/mbstoc32s.c: New file.
8736         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
8737         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
8738         * modules/mbstoc32s: New file.
8739         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
8740         * doc/posix-functions/mbstowcs.texi: Mention the new module.
8742 2020-01-05  Bruno Haible  <bruno@clisp.org>
8744         Tweak recently added tests.
8745         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
8746         * tests/test-mbsrtoc32s.c: Likewise.
8747         * tests/test-mbsnrtoc32s.c: Likewise.
8749 2020-01-04  Bruno Haible  <bruno@clisp.org>
8751         mbsnrtoc32s: Add tests.
8752         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
8753         * tests/test-mbsnrtoc32s-1.sh: New file, based on
8754         tests/test-mbsnrtowcs1.sh.
8755         * tests/test-mbsnrtoc32s-2.sh: New file, based on
8756         tests/test-mbsnrtowcs2.sh.
8757         * tests/test-mbsnrtoc32s-3.sh: New file, based on
8758         tests/test-mbsnrtowcs3.sh.
8759         * tests/test-mbsnrtoc32s-4.sh: New file, based on
8760         tests/test-mbsnrtowcs4.sh.
8761         * modules/mbsnrtoc32s-tests: New file, based on
8762         modules/mbsnrtowcs-tests.
8764         mbsnrtoc32s: New module.
8765         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
8766         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8767         INTERNAL_STATE, MBRTOWC.
8768         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8769         * lib/mbsnrtoc32s.c: New file.
8770         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
8771         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
8772         * modules/mbsnrtoc32s: New file.
8773         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
8774         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
8776 2020-01-04  Bruno Haible  <bruno@clisp.org>
8778         mbsrtoc32s tests: Enhance test.
8779         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
8780         test strings for UTF-8 and GB18030.
8782 2020-01-04  Bruno Haible  <bruno@clisp.org>
8784         mbsrtoc32s: Fix bug.
8785         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
8786         that SMALL_WCHAR_T is defined.
8788 2020-01-04  Bruno Haible  <bruno@clisp.org>
8790         mbsrtoc32s: Add tests.
8791         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
8792         * tests/test-mbsrtoc32s-1.sh: New file, based on
8793         tests/test-mbsrtowcs1.sh.
8794         * tests/test-mbsrtoc32s-2.sh: New file, based on
8795         tests/test-mbsrtowcs2.sh.
8796         * tests/test-mbsrtoc32s-3.sh: New file, based on
8797         tests/test-mbsrtowcs3.sh.
8798         * tests/test-mbsrtoc32s-4.sh: New file, based on
8799         tests/test-mbsrtowcs4.sh.
8800         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
8802         mbsrtoc32s: New module.
8803         * lib/uchar.in.h (mbsrtoc32s): New declaration.
8804         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8805         INTERNAL_STATE, MBRTOWC.
8806         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8807         * lib/mbsrtoc32s.c: New file.
8808         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
8809         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
8810         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
8811         * modules/mbsrtoc32s: New file.
8812         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
8813         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
8815 2020-01-04  Bruno Haible  <bruno@clisp.org>
8817         mbrtowc, mbrtoc32: Tighten dependendies.
8818         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
8819         REPLACE_MBSTATE_T is 1.
8820         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8821         REPLACE_MBSTATE_T is 0.
8822         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
8823         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
8824         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8825         REPLACE_MBSTATE_T is 0.
8827 2020-01-04  Bruno Haible  <bruno@clisp.org>
8829         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
8830         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
8831         * modules/uchar (Files): Add stdint.m4.
8832         (Makefile.am): Substitute SMALL_WCHAR_T.
8833         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
8835 2020-01-04  Bruno Haible  <bruno@clisp.org>
8837         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
8838         Reported by Martin Storsjö <martin@martin.st> in
8839         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
8840         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8841         New macros.
8842         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
8844 2020-01-04  Bruno Haible  <bruno@clisp.org>
8846         btoc32: Add tests.
8847         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
8848         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
8849         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
8850         * modules/btoc32-tests: New file, based on modules/btowc-tests.
8852         btoc32: New module.
8853         * lib/uchar.in.h (btoc32): New declaration.
8854         * lib/btoc32.c: New file.
8855         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
8856         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
8857         * modules/btoc32: New file.
8858         * tests/test-uchar-c++.cc: Test the signature of btoc32.
8859         * doc/posix-functions/btowc.texi: Mention the new module.
8861 2020-01-03  Bruno Haible  <bruno@clisp.org>
8863         uchar tests: Avoid compilation error with HP cc.
8864         * tests/test-uchar.c: Disable a test when HP cc is in use.
8866 2020-01-03  Bruno Haible  <bruno@clisp.org>
8868         mbrtoc32: Add tests.
8869         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
8870         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
8871         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
8872         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
8873         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
8874         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
8875         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
8876         * tests/test-mbrtoc32-w32-1.sh: New file, based on
8877         tests/test-mbrtowc-w32-1.sh.
8878         * tests/test-mbrtoc32-w32-2.sh: New file, based on
8879         tests/test-mbrtowc-w32-2.sh.
8880         * tests/test-mbrtoc32-w32-3.sh: New file, based on
8881         tests/test-mbrtowc-w32-3.sh.
8882         * tests/test-mbrtoc32-w32-4.sh: New file, based on
8883         tests/test-mbrtowc-w32-4.sh.
8884         * tests/test-mbrtoc32-w32-5.sh: New file, based on
8885         tests/test-mbrtowc-w32-5.sh.
8886         * tests/test-mbrtoc32-w32-6.sh: New file, based on
8887         tests/test-mbrtowc-w32-6.sh.
8888         * tests/test-mbrtoc32-w32-7.sh: New file, based on
8889         tests/test-mbrtowc-w32-7.sh.
8890         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
8892         mbrtoc32: New module.
8893         * lib/uchar.in.h (mbrtoc32): New declaration.
8894         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
8895         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
8896         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
8897         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
8898         REPLACE_MBRTOC32.
8899         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
8900         HAVE_MBRTOC32, REPLACE_MBRTOC32.
8901         * modules/mbrtoc32: New file, based on modules/mbrtowc.
8902         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
8903         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
8904         $(LIB_MBRTOWC).
8905         * doc/posix-functions/mbrtoc32.texi: Document the new module.
8906         * doc/posix-functions/mbrtowc.texi: Mention the new module.
8908 2020-01-03  Bruno Haible  <bruno@clisp.org>
8910         mbrtowc: Refactor to share code with mbrtoc32.
8911         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
8912         * lib/mbrtowc-impl-utf8.h: Likewise.
8913         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
8914         mbrtowc-impl.h.
8915         * modules/mbrtowc (Files): Add the new files.
8917 2020-01-03  Jim Meyering  <meyering@fb.com>
8919         doc: fix time.texi wording
8920         * doc/posix-headers/time.texi (time.h): Typo.
8922 2020-01-03  Bruno Haible  <bruno@clisp.org>
8924         mbrtowc: Refactor locale charset dispatching.
8925         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
8926         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
8927         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
8928         localcharset.h, streq.h.
8929         (enc_t): Remove type.
8930         (locale_enc): Remove function.
8931         (cached_locale_enc): Remove variable.
8932         (locale_enc_cached): Remove function.
8933         (mbrtowc): Invoke locale_encoding_classification.
8934         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
8935         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
8936         lc-charset-dispatch.c.
8937         (configure.ac): Arrange to compile lc-charset-dispatch.c.
8939 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8941         doc: mention 32-bit time_t issue
8942         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8943         * doc/posix-headers/time.texi (time.h): Mention 2038.
8945 2020-01-03  Bruno Haible  <bruno@clisp.org>
8947         mbrtowc: Ensure the mbtowc_lock is unique.
8948         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
8949         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
8950         lib/setlocale_null.c.
8951         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
8952         glthread/lock.h. Include mbtowc-lock.h.
8953         (mbtowc_lock): Remove declaration.
8954         (mbrtowc): Use mbtowc_with_lock.
8955         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
8956         threads.h. Set LIB_MBRTOWC.
8957         (gl_PREREQ_MBTOWC_LOCK): New macro.
8958         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
8959         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
8960         (Depends-on): Remove lock.
8961         (configure.ac): Arrange to compile mbtowc-lock.c.
8962         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
8963         * modules/acl (Link): Likewise.
8964         * modules/argmatch (Link): Likewise.
8965         * modules/backup-rename (Link): Likewise.
8966         * modules/backupfile (Link): Likewise.
8967         * modules/closein (Link): Likewise.
8968         * modules/closeout (Link): Likewise.
8969         * modules/copy-file (Link): Likewise.
8970         * modules/csharpcomp (Link): Likewise.
8971         * modules/csharpexec (Link): Likewise.
8972         * modules/dfa (Link): Likewise.
8973         * modules/exclude (Link): Likewise.
8974         * modules/fnmatch (Link): Likewise.
8975         * modules/fnmatch-gnu (Link): Likewise.
8976         * modules/fnmatch-posix (Link): Likewise.
8977         * modules/glob (Link): Likewise.
8978         * modules/human (Link): Likewise.
8979         * modules/javacomp (Link): Likewise.
8980         * modules/javaexec (Link): Likewise.
8981         * modules/javaversion (Link): Likewise.
8982         * modules/mbfile (Link): Likewise.
8983         * modules/mbiter (Link): Likewise.
8984         * modules/mbmemcasecmp (Link): Likewise.
8985         * modules/mbmemcasecoll (Link): Likewise.
8986         * modules/mbrlen (Link): Likewise.
8987         * modules/mbscasecmp (Link): Likewise.
8988         * modules/mbscasestr (Link): Likewise.
8989         * modules/mbschr (Link): Likewise.
8990         * modules/mbscspn (Link): Likewise.
8991         * modules/mbsinit (Link): Likewise.
8992         * modules/mbslen (Link): Likewise.
8993         * modules/mbsncasecmp (Link): Likewise.
8994         * modules/mbsnlen (Link): Likewise.
8995         * modules/mbsnrtowcs (Link): Likewise.
8996         * modules/mbspbrk (Link): Likewise.
8997         * modules/mbspcasecmp (Link): Likewise.
8998         * modules/mbsrchr (Link): Likewise.
8999         * modules/mbsrtowcs (Link): Likewise.
9000         * modules/mbssep (Link): Likewise.
9001         * modules/mbsspn (Link): Likewise.
9002         * modules/mbsstr (Link): Likewise.
9003         * modules/mbstok_r (Link): Likewise.
9004         * modules/mbswidth (Link): Likewise.
9005         * modules/mbuiter (Link): Likewise.
9006         * modules/mkdir-p (Link): Likewise.
9007         * modules/propername (Link): Likewise.
9008         * modules/quote (Link): Likewise.
9009         * modules/quotearg (Link): Likewise.
9010         * modules/quotearg-simple (Link): Likewise.
9011         * modules/regex-quote (Link): Likewise.
9012         * modules/rpmatch (Link): Likewise.
9013         * modules/sh-quote (Link): Likewise.
9014         * modules/system-quote (Link): Likewise.
9015         * modules/trim (Link): Likewise.
9016         * modules/unistdio/ulc-asnprintf (Link): Likewise.
9017         * modules/unistdio/ulc-fprintf (Link): Likewise.
9018         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
9019         * modules/unistdio/ulc-vasprintf (Link): Likewise.
9020         * modules/unistdio/ulc-vfprintf (Link): Likewise.
9021         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
9022         * modules/unistdio/ulc-vsprintf (Link): Likewise.
9023         * modules/xfreopen (Link): Likewise.
9024         * modules/xmemcoll (Link): Likewise.
9025         * modules/yesno (Link): Likewise.
9026         * modules/regex (Link): Add $(LIB_MBRTOWC).
9027         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
9028         instead of $(LIBTHREAD).
9029         * modules/argmatch-tests (Makefile.am): Likewise.
9030         * modules/closein-tests (Makefile.am): Likewise.
9031         * modules/copy-file-tests (Makefile.am): Likewise.
9032         * modules/dfa-tests (Makefile.am): Likewise.
9033         * modules/fnmatch-tests (Makefile.am): Likewise.
9034         * modules/glob-tests (Makefile.am): Likewise.
9035         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9036         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9037         * modules/mbrtowc-tests (Makefile.am): Likewise.
9038         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9039         * modules/mbscasestr-tests (Makefile.am): Likewise.
9040         * modules/mbschr-tests (Makefile.am): Likewise.
9041         * modules/mbscspn-tests (Makefile.am): Likewise.
9042         * modules/mbsinit-tests (Makefile.am): Likewise.
9043         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9044         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9045         * modules/mbspbrk-tests (Makefile.am): Likewise.
9046         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9047         * modules/mbsrchr-tests (Makefile.am): Likewise.
9048         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9049         * modules/mbsspn-tests (Makefile.am): Likewise.
9050         * modules/mbsstr-tests (Makefile.am): Likewise.
9051         * modules/quotearg-simple-tests (Makefile.am): Likewise.
9052         * modules/quotearg-tests (Makefile.am): Likewise.
9053         * modules/readtokens-tests (Makefile.am): Likewise.
9054         * modules/sh-quote-tests (Makefile.am): Likewise.
9055         * modules/system-quote-tests (Makefile.am): Likewise.
9056         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
9057         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9058         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
9059         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
9060         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
9061         * modules/yesno-tests (Makefile.am): Likewise.
9062         * modules/exclude-tests (Makefile.am): Link the programs with
9063         $(LIB_MBRTOWC).
9064         * modules/regex-tests (Makefile.am): Likewise.
9065         * modules/regex-quote-tests (Makefile.am): Likewise.
9067 2020-01-03  Bruno Haible  <bruno@clisp.org>
9069         getopt-posix: Fix compilation failure in testdirs.
9070         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
9071         when the gnulib module 'getopt-posix' is enabled.
9072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
9073         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
9074         module indicator.
9075         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
9077 2020-01-03  Bruno Haible  <bruno@clisp.org>
9079         doc: Mention the 64-bit inode number problem.
9080         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
9081         64-bit inode number problem.
9082         * doc/posix-functions/stat.texi: Mention that this module fixes the
9083         64-bit inode number problem.
9084         * doc/posix-functions/lstat.texi: Likewise.
9085         * doc/posix-functions/fstat.texi: Likewise.
9086         * doc/posix-functions/readdir.texi: Add more details.
9087         * doc/posix-functions/readdir_r.texi: Likewise.
9089 2020-01-02  Bruno Haible  <bruno@clisp.org>
9091         wcrtomb: Add more tests.
9092         * tests/test-wcrtomb-w32.c: Include localcharset.h.
9093         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9094         locale_charset() returns the expected value; otherwise, skip the test.
9095         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
9096         * tests/test-wcrtomb-w32-7.sh: Likewise.
9097         * modules/wcrtomb-tests (Files): Add these files.
9098         (Depends-on): Add localcharset.
9099         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
9101 2020-01-02  Bruno Haible  <bruno@clisp.org>
9103         mbrtowc: Add more tests.
9104         * tests/test-mbrtowc-w32.c: Include localcharset.h.
9105         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9106         locale_charset() returns the expected value; otherwise, skip the test.
9107         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
9108         * tests/test-mbrtowc-w32-7.sh: Likewise.
9109         * modules/mbrtowc-tests (Files): Add these files.
9110         (Depends-on): Add localcharset.
9111         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
9113 2020-01-02  Bruno Haible  <bruno@clisp.org>
9115         mbrtowc: Fix test failures on MSVC (regression by previous commit).
9116         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
9117         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
9118         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
9119         MBRTOWC_STORES_INCOMPLETE_BUG.
9120         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
9122 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9124         doc: mention glibc bug 24269
9125         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
9126         Reformat slightly so that it looks nicer in the Grep manual.
9128 2020-01-02  Bruno Haible  <bruno@clisp.org>
9130         mbrtowc: Don't replace mbstate_t on MSVC.
9131         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
9132         a missing mbsinit function on native Windows.
9133         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
9134         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
9135         MSVC bug.
9136         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
9138 2020-01-02  Bruno Haible  <bruno@clisp.org>
9140         setlocale-null: Avoid crashing the MSVC linker.
9141         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
9142         MSVC.
9144 2020-01-02  Bruno Haible  <bruno@clisp.org>
9146         wchar: Make the HP-UX workaround work on HP-UX 11.31.
9147         * modules/wchar (Depends-on): Add inttypes-incomplete.
9148         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
9149         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
9150         of strtoimax.
9152 2020-01-02  Bruno Haible  <bruno@clisp.org>
9154         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
9155         * lib/mbrtowc.c: Include <stdint.h>.
9156         * modules/mbrtowc (Depends-on): Add stdint.
9158 2020-01-01  Pádraig Brady  <P@draigBrady.com>
9160         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
9161         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
9162         which will auto enable use of openssl, only for >= version 3,
9163         which is newly licensed under the Apache Software License.
9165 2020-01-01  Bruno Haible  <bruno@clisp.org>
9167         mbrtowc: Include function name in macro names.
9168         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
9169         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
9170         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
9171         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
9172         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
9173         C_LOCALE_MAYBE_EILSEQ.
9175 2020-01-01  Bruno Haible  <bruno@clisp.org>
9177         c32tob: New module.
9178         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
9179         (c32tob): New declaration.
9180         * lib/c32tob.c: New file.
9181         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
9182         macros.
9183         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
9184         * modules/uchar (Depends-on): Add snippet/c++defs.
9185         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
9186         uchar.h.
9187         * modules/c32tob: New file.
9188         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
9189         defined.
9190         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
9191         c32tob.
9192         * modules/uchar-c++-tests (Files): Add tests/signature.h.
9193         * doc/posix-functions/wctob.texi: Mention the new module.
9195 2020-01-01  Bruno Haible  <bruno@clisp.org>
9197         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
9198         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
9199         $(LIB_SETLOCALE).
9201 2020-01-01  Bruno Haible  <bruno@clisp.org>
9203         hard-locale tests: Fix a conflict with the C++ tests.
9204         * modules/hard-locale-tests (Makefile.am): Build a program named
9205         'current-locale', not 'locale'.
9207 2020-01-01  Bruno Haible  <bruno@clisp.org>
9209         doc: Update documentation about wchar_t.
9210         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
9211         wchar_t type.
9213 2020-01-01  Bruno Haible  <bruno@clisp.org>
9215         mbrtowc tests: Fix typos.
9216         * tests/test-mbrtowc.c (main): Fix typo.
9217         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
9219 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9221         maint: update copyright notices
9222         Before doing the following changes done by hand, I also ran ‘make
9223         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
9224         to do most of the copyright years automatically.  A few upstream
9225         sources are still in 2019 but these should eventually be changed
9226         automatically too.
9227         * build-aux/declared.sh (func_version):
9228         * build-aux/libtool-next-version (func_version):
9229         * build-aux/run-test (func_version):
9230         Update these notices by hand.  Put just the last year
9231         in output of programs, as per GNU coding standards.
9233 2019-12-31  Bruno Haible  <bruno@clisp.org>
9235         uchar: Add C++ tests.
9236         * tests/test-uchar-c++.cc: New file.
9237         * tests/test-uchar-c++2.cc: New file.
9238         * modules/uchar-c++-tests: New file.
9240         uchar: Add tests.
9241         * tests/test-uchar.c: New file.
9242         * modules/uchar-tests: New file.
9244         uchar: New module.
9245         * lib/uchar.in.h: New file.
9246         * m4/uchar.m4: New file.
9247         * modules/uchar: New file.
9248         * doc/posix-headers/uchar.texi: Mention the new module.
9250 2019-12-30  Jim Meyering  <meyering@fb.com>
9252         localeinfo: ->simple would be wrong for LC_ALL=C
9253         That would lead to using unnecessary and expensive code paths in dfa.c.
9254         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
9255         error that would have made grep many times slower in the C locale.
9256         With this change, and a file created like this:
9257           yes 00 | head -10000000 > in
9258         Running grep as follows becomes more than 40 times faster:
9259           LC_ALL=C grep -Fw 0 in
9261 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9263         doc: document trouble with back-references
9264         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
9266 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9268         doc: use “back-reference” for \1 etc.
9269         * doc/regex.texi: Consistently spell “back-reference” with
9270         a hyphen, since that’s how POSIX does it.
9272 2019-12-26  Jim Meyering  <meyering@fb.com>
9274         test-framework-sh: tighten an internal grep regexp
9275         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
9276         that helps test for a working printf.
9278 2019-12-26  Bruno Haible  <bruno@clisp.org>
9280         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
9281         Reported by Paul Eggert in
9282         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
9283         Simplification by Jim Meyering.
9284         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
9285         octal escape sequence in a UTF-8 locale.
9287 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
9289         mbrtowc: port better to narrow-wchar_t platforms
9290         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
9291         wchar_t is too narrow to represent all the Unicode characters,
9292         consider a byte sequence for an out-of-wchar_t-range character to
9293         be an encoding error.  This fixes grep’s surrogate-pair test
9294         failure on AIX 7.2.
9296 2019-12-24  Bruno Haible  <bruno@clisp.org>
9298         localcharset: Avoid referencing rpl_setlocale on native Windows.
9299         * lib/localcharset.c (setlocale): Undefine.
9301 2019-12-24  Bruno Haible  <bruno@clisp.org>
9303         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
9304         * m4/semaphore.m4: New file.
9305         * modules/lock-tests (Files): Add it.
9306         (configure.ac): Require gl_SEMAPHORE.
9307         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
9309 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
9311         strptime: fix typo in previous patch
9312         Problem and fix reported by Bruno Haible in:
9313         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
9314         * lib/strptime.c (day_of_the_week): Fix paren bug.
9316 2019-12-24  Bruno Haible  <bruno@clisp.org>
9318         setlocale-null: Make it easy to rely on the lock in another library.
9319         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
9320         defined.
9322 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9324         gethrxtime, mktime, nstrftime, strptime: tweak division performance
9325         Performanced analyzed by Bruno Haible in:
9326         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
9327         * config/srclist.txt: Do not sync mktime.c for now.
9328         * lib/mktime.c (shr, ydhms_diff):
9329         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
9330         * lib/strptime.c (day_of_the_week):
9331         * lib/xtime.h (xtime_sec):
9332         Redo with neither ‘%’ nor conditional branches.
9334 2019-12-23  Bruno Haible  <bruno@clisp.org>
9336         setlocale-null: Export the lock function also on non-Windows platforms.
9337         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
9338         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
9339         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
9340         * modules/setlocale-null (configure.ac): Invoke it.
9341         (Files): Add m4/visibility.m4.
9343 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9345         gethrxtime: fix rounding bug with negative args
9346         Problem reported by Bruno Haible in:
9347         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
9348         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
9349         with negative rounding.  Common platforms can compute / and % with
9350         a single instruction, so the simplified code should be shorter and
9351         faster on these platforms anyway.
9353 2019-12-22  Bruno Haible  <bruno@clisp.org>
9355         gethrxtime: remove incorrect overflow detection
9356         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
9357         integer overflow, as it didn’t suffice.  This reverts the xtime.h
9358         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
9359         cannot now see the need for anyway (even in cases where it works),
9360         as the patch is helpful only when the signs of S and NS disagree,
9361         and all callers pass nonnegative values for S and NS.
9363 2019-12-22  Bruno Haible  <bruno@clisp.org>
9365         setlocale-null: Add standalone include file.
9366         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
9367         * lib/locale.in.h: Include setlocale_null.h.
9368         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
9369         setlocale_null): Remove declarations.
9370         * lib/setlocale_null.c: Include setlocale_null.h.
9371         * lib/localename.c: Likewise.
9372         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
9373         (Depends-on): Add snippet/arg-nonnull.
9374         (Include): Allow either "setlocale_null.h" or <locale.h>.
9376 2019-12-22  Bruno Haible  <bruno@clisp.org>
9378         strfmon_l: Fix test failures on FreeBSD and Cygwin.
9379         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
9380         AC_RUN_IFELSE test.
9381         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
9382         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
9383         problem.
9385 2019-12-22  Bruno Haible  <bruno@clisp.org>
9387         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
9388         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
9389         unconditional AC_LIBOBJ.
9390         * modules/selinux-at: Likewise.
9391         * modules/xmemdup0: Likewise.
9392         * modules/xstrtoll: Likewise.
9394 2019-12-22  Bruno Haible  <bruno@clisp.org>
9396         longlong: Mark module obsolete.
9397         * modules/longlong (Status, Notice): New sections.
9399         stdint: Assume that the compiler supports 'long long'.
9400         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
9401         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
9402         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9403         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
9404         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9405         * modules/stdint (Files): Remove longlong.m4.
9406         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
9407         HAVE_UNSIGNED_LONG_LONG_INT.
9409         inttypes-incomplete: Assume that the compiler supports 'long long'.
9410         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
9411         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
9412         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9413         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
9414         HAVE_LONG_LONG_INT to be 1.
9415         * modules/inttypes-incomplete (Makefile.am): Don't substitute
9416         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
9418         malloca: Assume that the compiler supports 'long long'.
9419         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
9420         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
9421         * modules/malloca (Files): Remove longlong.m4.
9422         * modules/relocatable-prog-wrapper (Files): Likewise.
9424         atoll: Assume that the compiler supports 'long long'.
9425         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
9426         * modules/atoll (Files): Remove longlong.m4.
9428         strtoll: Assume that the compiler supports 'long long'.
9429         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
9430         * modules/strtoll (Files): Remove longlong.m4.
9432         strtoull: Assume that the compiler supports 'long long'.
9433         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
9434         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9435         * modules/strtoull (Files): Remove longlong.m4.
9437         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
9438         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
9439         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9440         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
9441         AC_TYPE_LONG_LONG_INT.
9442         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
9443         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9444         * modules/strtoimax (Files): Remove longlong.m4.
9445         * modules/strtoumax (Files): Likewise.
9447         xstrtoll: Assume that the compiler supports 'long long'.
9448         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
9449         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
9451         vasnprintf: Assume that the compiler supports 'long long'.
9452         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
9453         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
9454         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9455         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
9456         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
9457         require AC_TYPE_LONG_LONG_INT.
9458         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
9459         gl_PREREQ_VASNPRINTF): Likewise.
9460         * modules/vasnprintf (Files): Remove longlong.m4.
9461         * modules/c-vasnprintf (Files): Likewise.
9462         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9463         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9464         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9465         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9466         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9467         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9468         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9470         gethrxtime: Assume that the compiler supports 'long long'.
9471         * lib/xtime.h (xtime_t): Define to 'long long int' always.
9472         (XTIME_PRECISION): Define to 1000000000 always.
9473         (xtime_make, xtime_sec): Optimize accordingly.
9474         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
9475         * modules/gethrxtime (Files): Remove longlong.m4.
9477         integer_length*: Assume that the compiler supports 'long long'.
9478         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
9479         * modules/integer_length (Files): Remove longlong.m4.
9480         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9481         * modules/integer_length_l (Files): Remove longlong.m4.
9482         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9483         * modules/integer_length_ll (Files): Remove longlong.m4.
9484         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9486         count-one-bits: Assume that the compiler supports 'long long'.
9487         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
9488         * m4/count-one-bits.m4: Remove file.
9489         * modules/count-one-bits (Files): Remove it.
9490         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
9491         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
9492         unconditionally.
9494         count-trailing-zeros: Assume that the compiler supports 'long long'.
9495         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
9496         unconditionally.
9497         * m4/count-trailing-zeros.m4: Remove file.
9498         * modules/count-trailing-zeros (Files): Remove it.
9499         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
9500         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
9501         unconditionally.
9503         count-leading-zeros: Assume that the compiler supports 'long long'.
9504         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
9505         unconditionally.
9506         * m4/count-leading-zeros.m4: Remove file.
9507         * modules/count-leading-zeros (Files): Remove it.
9508         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
9509         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
9510         unconditionally.
9512 2019-12-22  Bruno Haible  <bruno@clisp.org>
9514         localcharset: Update support for OpenBSD.
9515         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
9517 2019-12-21  Bruno Haible  <bruno@clisp.org>
9519         pthread_sigmask: Avoid test failure on NetBSD 8.0.
9520         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
9521         NetBSD.
9522         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
9524 2019-12-21  Bruno Haible  <bruno@clisp.org>
9526         threadlib: Improve code structure.
9527         * m4/threadlib.m4: Reorder macros. Add comments.
9529 2019-12-21  Bruno Haible  <bruno@clisp.org>
9531         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
9532         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
9533         here from m4/threads.m4).
9534         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
9535         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
9536         (gl_STDTHREADLIB): New macro.
9537         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
9538         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
9540 2019-12-21  Bruno Haible  <bruno@clisp.org>
9542         sched_yield: Don't depend on threadlib and yield.
9543         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
9544         LIB_SCHED_YIELD.
9545         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
9546         m4/yield.m4).
9547         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
9548         gl_THREADLIB and gl_YIELD.
9549         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
9550         based on $(LIB_SCHED_YIELD).
9551         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
9552         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9553         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
9554         (Depends-on): Remove threadlib.
9555         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9556         * modules/threads-h (Files): Remove m4/yield.m4.
9557         * modules/pthread-cond-tests (Makefile.am): Link the programs against
9558         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9559         * modules/pthread-mutex-tests (Makefile.am): Likewise.
9560         * modules/pthread-once-tests (Makefile.am): Likewise.
9561         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
9562         * modules/pthread-tss-tests (Makefile.am): Likewise.
9564 2019-12-21  Bruno Haible  <bruno@clisp.org>
9566         threads-h: Don't depend on threadlib.
9567         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
9568         not gl_THREADLIB_EARLY.
9570 2019-12-21  Bruno Haible  <bruno@clisp.org>
9572         nl_langinfo tests: Fix link error (regression from 2019-12-18).
9573         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
9574         with $(LIB_SETLOCALE).
9576 2019-12-21  Bruno Haible  <bruno@clisp.org>
9578         threadlib: Remove unused dependency (left over from 2019-07-06).
9579         * modules/threadlib (Depends-on): Remove havelib.
9581 2019-12-21  Bruno Haible  <bruno@clisp.org>
9583         New convention for multithread-safety tests.
9584         * tests/test-setlocale_null-mt-one.c: Renamed from
9585         tests/test-setlocale_null-one.c.
9586         * tests/test-setlocale_null-mt-all.c: Renamed from
9587         tests/test-setlocale_null-all.c.
9588         * modules/setlocale-null-tests (Files, Makefile.am): Update.
9590 2019-12-21  Bruno Haible  <bruno@clisp.org>
9592         quotearg tests: Fix conflict with hard-locale tests.
9593         * tests/testlocale: Renamed from tests/locale.
9594         * modules/quotearg-tests (Files): Update.
9595         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
9597 2019-12-21  Bruno Haible  <bruno@clisp.org>
9599         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
9600         Reported by Daniel Richard G. in
9601         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
9602         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
9603         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
9604         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
9605         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
9606         alternative to PTHREAD_RWLOCK_INITIALIZER.
9607         * lib/glthread/lock.c: Likewise.
9609 2019-12-21  Bruno Haible  <bruno@clisp.org>
9611         memcmp tests: Work around the clang bug.
9612         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
9613         the clang optimization.
9615 2019-12-20  Bruno Haible  <bruno@clisp.org>
9617         localcharset: Add support for z/OS encoding names.
9618         * lib/localcharset.h: Mention which encodings are used as locale
9619         encodings on z/OS.
9621 2019-12-20  Bruno Haible  <bruno@clisp.org>
9623         iconv_open: Add support for z/OS encoding names.
9624         Reported by Daniel Richard G. in
9625         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
9626         * lib/iconv_open-zos.gperf: New file.
9627         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
9628         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
9629         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
9630         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
9631         * doc/posix-functions/iconv_open.texi: Mention z/OS.
9633 2019-12-20  Bruno Haible  <bruno@clisp.org>
9635         doc: Document the problem of the per-thread locale functions on z/OS.
9636         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
9637         * doc/posix-functions/newlocale.texi: Likewise.
9638         * doc/posix-functions/duplocale.texi: Likewise.
9639         * doc/posix-functions/freelocale.texi: Likewise.
9641 2019-12-20  Bruno Haible  <bruno@clisp.org>
9643         localename, gettext: Fix host_os value for z/OS.
9644         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
9645         cross-configuration code.
9647 2019-12-19  Jim Meyering  <meyering@fb.com>
9649         nstrftime: avoid a shadowing warning
9650         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
9651         to avoid shadowing an "i" declared hundreds of lines above.
9653 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9655         dfa: struct dfamust now uses flexible array
9656         * lib/dfa.c: Include flexmember.h.
9657         (dfamust, dfamustfree): Adjust to struct dfamust change.
9658         This saves a call to malloc+free.
9659         * lib/dfa.h (struct dfamust): Make the final member a
9660         flexible array member.
9661         * modules/dfa (Depends-on): Add flexmember.
9663         dfa: fast->small for array elements
9664         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
9665         since this type is used in arrays.  This change is more for
9666         documentation than for any practical effect, since the two types
9667         are the same on all known platforms.
9669 2019-12-19  Bruno Haible  <bruno@clisp.org>
9671         iconv tests: Test canonicalized, not system-dependent, encoding names.
9672         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
9673         * modules/iconv-tests (Depends-on): Add iconv_open.
9675 2019-12-18  Bruno Haible  <bruno@clisp.org>
9677         localename: Fix test failure on AIX 7.2.
9678         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
9679         locales on AIX.
9680         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
9681         locales on AIX.
9683 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9685         Improve port of AC_C_RESTRICT to Oracle C++
9686         Problem reported by Christian Biesinger in:
9687         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
9688         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
9689         Oracle Developer Studio C++ 12.5 or later.
9691 2019-12-18  Bruno Haible  <bruno@clisp.org>
9693         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
9694         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
9696 2019-12-18  Bruno Haible  <bruno@clisp.org>
9698         localename: Ensure multithread-safety in future changes.
9699         * lib/localename.c (setlocale): Reference the system's setlocale().
9700         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
9701         (gl_locale_name_posix): Likewise.
9702         * modules/localename (Depends-on): Add setlocale-null.
9704 2019-12-18  Bruno Haible  <bruno@clisp.org>
9706         setlocale-null: Make API more useful.
9707         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
9708         callers changed.
9709         (setlocale_null): New declaration.
9710         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
9711         extracted from setlocale_null_unlocked.
9712         (setlocale_null_unlocked): Invoke it.
9713         (setlocale_null_r): Renamed from setlocale_null.
9714         (setlocale_null): New function, extracted from setlocale_mtsafe in
9715         setlocale.c.
9716         * lib/setlocale.c: Don't include <errno.h>.
9717         (setlocale_mtsafe): Invoke setlocale_null.
9718         * lib/setlocale-lock.c: Update comments.
9719         * doc/posix-functions/setlocale.texi: Mention both functions.
9721 2019-12-18  Bruno Haible  <bruno@clisp.org>
9723         localename: Optimize code for native Windows.
9724         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
9725         category (not allowed here).
9727 2019-12-18  Bruno Haible  <bruno@clisp.org>
9729         setlocale: Make calls with NULL argument multithread-safe.
9730         * lib/setlocale.c: Include <errno.h>.
9731         (setlocale_mtsafe): New function.
9732         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
9733         (setlocale_improved): Renamed from rpl_setlocale.
9734         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9735         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
9736         LIB_SETLOCALE.
9737         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
9738         (Link): New section.
9739         * tests/locale.c: Undefine setlocale.
9740         * tests/test-setlocale_null-one.c: Likewise.
9741         * tests/test-setlocale_null-all.c: Likewise.
9742         * modules/setlocale-tests (Makefile.am): Link the test programs with
9743         $(LIB_SETLOCALE).
9744         * modules/astrxfrm-tests (Makefile.am): Likewise.
9745         * modules/btowc-tests (Makefile.am): Likewise.
9746         * modules/c-ctype-tests (Makefile.am): Likewise.
9747         * modules/c-snprintf-tests (Makefile.am): Likewise.
9748         * modules/c-strcase-tests (Makefile.am): Likewise.
9749         * modules/c-vasprintf-tests (Makefile.am): Likewise.
9750         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
9751         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
9752         * modules/dfa-tests (Makefile.am): Likewise.
9753         * modules/duplocale-tests (Makefile.am): Likewise.
9754         * modules/hard-locale-tests (Makefile.am): Likewise.
9755         * modules/localcharset-tests (Makefile.am): Likewise.
9756         * modules/localename-tests (Makefile.am): Likewise.
9757         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9758         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9759         * modules/mbrtowc-tests (Makefile.am): Likewise.
9760         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9761         * modules/mbscasestr-tests (Makefile.am): Likewise.
9762         * modules/mbschr-tests (Makefile.am): Likewise.
9763         * modules/mbscspn-tests (Makefile.am): Likewise.
9764         * modules/mbsinit-tests (Makefile.am): Likewise.
9765         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9766         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9767         * modules/mbspbrk-tests (Makefile.am): Likewise.
9768         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9769         * modules/mbsrchr-tests (Makefile.am): Likewise.
9770         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9771         * modules/mbsspn-tests (Makefile.am): Likewise.
9772         * modules/mbsstr-tests (Makefile.am): Likewise.
9773         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9774         * modules/quotearg-tests (Makefile.am): Likewise.
9775         * modules/regex-tests (Makefile.am): Likewise.
9776         * modules/strfmon_l-tests (Makefile.am): Likewise.
9777         * modules/strtod-tests (Makefile.am): Likewise.
9778         * modules/strtold-tests (Makefile.am): Likewise.
9779         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9780         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9781         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9782         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
9783         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9784         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9785         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9786         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9787         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9788         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9789         * modules/wcrtomb-tests (Makefile.am): Likewise.
9790         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9791         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9792         * modules/wcwidth-tests (Makefile.am): Likewise.
9793         * doc/posix-functions/setlocale.texi: Mention that the multithread-
9794         safety fix is also available in module 'setlocale'.
9796 2019-12-18  Bruno Haible  <bruno@clisp.org>
9798         hard-locale: Make multithread-safe.
9799         * lib/hard-locale.h (hard_locale): Move documentation to here.
9800         * lib/hard-locale.c: Don't include <stdlib.h>.
9801         (GLIBC_VERSION): Remove macro.
9802         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
9803         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
9804         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
9805         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
9806         (Link): New section.
9807         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
9808         $(LIB_HARD_LOCALE).
9810 2019-12-18  Bruno Haible  <bruno@clisp.org>
9812         hard-locale: Avoid test failure on Haiku.
9813         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
9815 2019-12-18  Bruno Haible  <bruno@clisp.org>
9817         setlocale-null: Handle NULL result from setlocale.
9818         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
9819         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
9820         from setlocale or _wsetlocale.
9822 2019-12-18  Bruno Haible  <bruno@clisp.org>
9824         hard-locale: Add test.
9825         * tests/test-hard-locale.c: New file.
9826         * tests/locale.c: New file.
9827         * modules/hard-locale-tests: New file.
9829 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9831         dfa: do not match invalid UTF-8
9832         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
9833         from 5 to 9 tokens; this is needed due to the changes to
9834         add_utf8_anychar.
9835         (charclass_index): 2nd arg is now pointer-to-const.
9836         (add_utf8_anychar): Match only valid UTF-8 byte sequences
9837         instead of allowing overlong encodings or surrogate halves.
9839         dfa: simplify charclass by assuming C99
9840         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
9841         (charclass_word): Now always uint_fast64_t.
9842         (CHARCLASS_PAIR): Remove.
9843         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
9845         fts: tune via calloc
9846         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
9848         dfa: tune via xzalloc
9849         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
9851 2019-12-17  Bruno Haible  <bruno@clisp.org>
9853         localcharset: Fix multithread-safety bug on Windows and OS/2.
9854         * lib/localcharset.h (locale_charset): Clarify when the result becomes
9855         invalid.
9856         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
9857         assemble the result.
9859 2019-12-17  Bruno Haible  <bruno@clisp.org>
9861         localcharset: Optimize code for native Windows.
9862         * lib/localcharset.c (locale_charset): Don't bother calling
9863         setlocale (LC_ALL, NULL) since we're not interested in its result.
9865 2019-12-17  Bruno Haible  <bruno@clisp.org>
9867         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
9868         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
9869         setlocale.
9870         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
9871         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
9872         * modules/nl_langinfo (Depends-on): Add setlocale-null.
9874 2019-12-17  Bruno Haible  <bruno@clisp.org>
9876         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
9877         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
9878         stack-allocated buffer to assemble each result and different static
9879         buffers to return it.
9880         * tests/test-nl_langinfo-mt.c: New file.
9881         * modules/nl_langinfo-tests (Files): Add it.
9882         (Depends-on): Add thread, nanosleep.
9883         (Makefile.am): Build test-nl_langinfo-mt test.
9885 2019-12-17  Bruno Haible  <bruno@clisp.org>
9887         langinfo: Document more details.
9888         * doc/posix-headers/langinfo.texi: List platform details.
9889         * doc/posix-functions/nl_langinfo.texi: Likewise.
9891 2019-12-17  Bruno Haible  <bruno@clisp.org>
9893         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
9894         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
9895         and Martin Storsjö <martin@martin.st>
9896         in <https://savannah.gnu.org/bugs/?57406>.
9897         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
9898         mingw.
9900 2019-12-17  Bruno Haible  <bruno@clisp.org>
9902         glob: Avoid warning on mingw.
9903         Reported by Christian Biesinger <cbiesinger@google.com> in
9904         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
9905         * lib/glob.c (__stat64): Undefine first.
9907 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9909         xalloc: tune xzalloc for fresh allocations
9910         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
9911         because when the memory is freshly allocated from the OS via sbrk
9912         or mmap, calloc can avoid doing the memset.
9914         dfa: new function dfacopysyntax
9915         * lib/dfa.c (struct dfa): Move syntax member later so
9916         that dfacopysyntax can easily clear earlier members.
9917         (dfacopysyntax): New function, used by Gawk.
9919 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9921         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
9922         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
9923         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
9924         if not already defined.
9926         dfa: remove one dependency on MB_CUR_MAX
9927         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
9929         dfa: remove struct lexer_state.cur_mb_len
9930         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
9931         as it’s not needed and the code is simpler without it.
9932         All uses removed.
9934 2019-12-16  Bruno Haible  <bruno@clisp.org>
9936         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
9937         Reported by Arnold Robbins <arnold@skeeve.com>.
9938         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
9939         copied from lib/glthread/lock.h.
9940         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
9941         (setlocale_null_with_lock): If pthread_in_use() is false, use
9942         setlocale_null_unlocked directly.
9943         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
9944         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
9945         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
9946         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
9947         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
9948         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
9950 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9952         dfa: make dfasyntax thread-safe
9953         Problem reported by Bruno Haible in:
9954         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
9955         * lib/dfa.c: Do not include locale.h.
9956         (struct dfa): Remove simple_locale member.
9957         All uses replaced by localeinfo.simple.
9958         (using_simple_locale): Remove; now present (with some
9959         changes) in localeinfo.c.
9960         (dfasyntax): No need to initialize removed member.
9962         localeinfo: record whether locale is simple
9963         * lib/localeinfo.c (using_simple_locale): New function,
9964         copied here from lib/dfa.c but with a change: it uses
9965         strcoll for its heuristic, instead of using setlocale.
9966         This lets it be thread-safe.
9967         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
9969 2019-12-15  Bruno Haible  <bruno@clisp.org>
9971         duplocale: Fix multithread-safety bug on AIX.
9972         * lib/duplocale.c: Don't include <stdlib.h>.
9973         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
9974         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9975         Set LIB_DUPLOCALE.
9976         * modules/duplocale (Depends-on): Add setlocale-null.
9977         (Link): New section.
9978         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
9979         $(LIB_DUPLOCALE).
9981 2019-12-15  Bruno Haible  <bruno@clisp.org>
9983         setlocale-null: Add tests.
9984         * tests/test-setlocale_null.c: New file.
9985         * tests/test-setlocale_null-one.c: New file.
9986         * tests/test-setlocale_null-all.c: New file.
9987         * modules/setlocale-null-tests: New file.
9989         setlocale-null: New module.
9990         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
9991         setlocale_null): New declarations.
9992         * lib/setlocale_null.c: New file.
9993         * lib/setlocale-lock.c: New file.
9994         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
9995         * m4/setlocale_null.m4: New file.
9996         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
9997         GNULIB_SETLOCALE_NULL.
9998         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
9999         * modules/setlocale-null: New file.
10000         * doc/posix-functions/setlocale.texi: Mention the new module.
10002 2019-12-15  Bruno Haible  <bruno@clisp.org>
10004         lock tests: Skip test when no multithreading is enabled.
10005         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
10007 2019-12-14  Bruno Haible  <bruno@clisp.org>
10009         locale, duplocale, localename: Fix last patch.
10010         Reported by Daniel Richard G. in
10011         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
10012         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
10013         Don't define if locale_t does not exist.
10015 2019-12-13  Bruno Haible  <bruno@clisp.org>
10017         locale, duplocale, localename: Fix errors if locale_t does not exist.
10018         Reported by Daniel Richard G. in
10019         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
10020         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
10021         macros.
10022         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
10023         HAVE_NEWLOCALE.
10024         * tests/test-localename.c: Likewise.
10025         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
10026         HAVE_DUPLOCALE.
10027         * tests/test-locale-c++.cc: Likewise.
10029 2019-12-13  Bruno Haible  <bruno@clisp.org>
10031         wcstok: Fix test failure on HP-UX.
10032         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
10033         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
10035 2019-12-12  Bruno Haible  <bruno@clisp.org>
10037         strtod, strtold tests: Avoid test failure on AIX 7.2.
10038         * tests/test-strtod1.c (main): Allow implementations in which ',' and
10039         '.' both are radix characters.
10040         * tests/test-strtold1.c (main): Likewise.
10042 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10044         dfa: prefer ptrdiff_t for API, too
10045         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
10046         but do this only for internal use for now.
10047         * NEWS: Mention the API change.
10048         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
10049         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
10050         values known to be nonnegative.
10051         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
10052         Prefer idx_t or ptrdiff_t to size_t for API.
10053         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
10054         Prefer ptrdiff_t to size_t for API.
10056         stdalign: port to xlclang 16.01
10057         Problem reportd by Bruno Haible in:
10058         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
10059         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
10060         ((__aligned__ (...))) with xlclang, as a top-level
10061         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
10062         xlclang version 16.01.0000.0001; the alignment directive is ignored.
10064 2019-12-12  Bruno Haible  <bruno@clisp.org>
10066         duplocale: Fix test failure on AIX 7.2 with xlclang.
10067         * lib/duplocale.c: Include <stdlib.h>.
10068         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
10069         value.
10071 2019-12-12  Bruno Haible  <bruno@clisp.org>
10073         stddef: Document the AIX xlc issue.
10074         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
10076 2019-12-12  Bruno Haible  <bruno@clisp.org>
10078         duplocale: Don't attempt to override if locale_t does not exist.
10079         Reported by Daniel Richard G. in
10080         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
10081         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
10082         HAVE_DUPLOCALE to 0.
10084 2019-12-12  Bruno Haible  <bruno@clisp.org>
10086         wcwidth: Avoid test failure on AIX 7.2.
10087         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
10088         negative.
10089         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
10091 2019-12-12  Bruno Haible  <bruno@clisp.org>
10093         ilogbl: Work around Cygwin bug.
10094         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
10095         correct.
10096         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
10098 2019-12-12  Bruno Haible  <bruno@clisp.org>
10100         strtold: Work around Cygwin bug.
10101         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
10102         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
10103         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
10104         STRTOLD_HAS_UNDERFLOW_BUG is defined.
10105         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
10107 2019-12-12  Bruno Haible  <bruno@clisp.org>
10109         strtold: Fix autoconf test.
10110         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
10112 2019-12-11  Bruno Haible  <bruno@clisp.org>
10114         fsync tests: Skip test that is known to fail.
10115         * doc/posix-functions/fsync.texi: Update list of platforms.
10116         * tests/test-fsync.c (main): Skip test with read-only file descriptors
10117         that is known to fail on AIX and Cygwin.
10119 2019-12-11  Bruno Haible  <bruno@clisp.org>
10121         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
10122         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
10123         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
10124         HAVE_GETADDRINFO as a C macro.
10125         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
10126         declare as replacement functions.
10127         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
10128         define as no-op overrides.
10129         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
10130         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
10131         * modules/getaddrinfo (Depends-on, configure.ac): Test
10132         REPLACE_GETADDRINFO.
10133         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
10134         problem.
10135         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
10136         convention problems.
10138 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
10140         dfa: prefer signed integers for internals
10141         Signed integers can be checked more easily for integer overflow.
10142         * lib/dfa.c (position, struct lexer_state, struct parser_state)
10143         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
10144         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
10145         (nsubtoks, copytoks, closure, alloc_position_set, delete)
10146         (replace, state_index, epsclosure, charclass_context)
10147         (state_separate_contexts, merge_nfa_state, dfaoptimize)
10148         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
10149         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
10150         (comsubs, inboth, allocmust):
10151         Prefer a signed to an unsigned integer when calculating indexes,
10152         unless the integer is part of the external API (a bigger deal,
10153         and to be done later).
10155         dfa: fix index overflow
10156         * lib/dfa.c (compare): Avoid integer overflow when analyzing
10157         very large regular expressions.
10159         dfa: update commentary for previous change
10160         * NEWS: Mention the change.
10161         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
10163 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10165         dfa: separate parse and compile phase
10166         ‘dfamust’ must be called after parsing and before tokens are
10167         reordered, but both are executed in the compilation phase.
10168         Token reordering was introduced in Gnulib commit
10169         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
10170         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
10171         * lib/dfa.c (dfaparse): Change it to global function.
10172         (dfacomp): If first argument is NULL, skip parse.
10173         * lib/dfa.h: (dfaparse): Add a prototype.
10175 2019-12-11  Bruno Haible  <bruno@clisp.org>
10177         unistd tests: Fix link error on MSVC.
10178         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
10179         $(LIB_GETLOGIN).
10181 2019-12-11  Bruno Haible  <bruno@clisp.org>
10183         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
10184         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
10185         and POSIX substitutes are supported in C++ mode.
10186         * NEWS: Likewise.
10188 2019-12-11  Bruno Haible  <bruno@clisp.org>
10190         stddef: Fix compilation error in C++ mode on MSVC.
10191         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
10192         instead, include <cstddef>.
10194 2019-12-11  Bruno Haible  <bruno@clisp.org>
10196         unistd: Fix compilation error in C++ mode on MSVC.
10197         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
10198         does not have <unistd.h>.
10200 2019-12-11  Bruno Haible  <bruno@clisp.org>
10202         locale: Fix compilation error in C++ mode on MSVC.
10203         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
10204         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
10205         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
10206         int_n_sep_by_space): Define as macros on MSVC.
10208 2019-12-11  Bruno Haible  <bruno@clisp.org>
10210         wchar: Fix compilation error in C++ mode on MSVC.
10211         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
10213 2019-12-11  Bruno Haible  <bruno@clisp.org>
10215         pthread-thread: Fix compilation error in C++ mode on MSVC.
10216         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
10217         _GL_CXXALIAS_RPL invocation.
10219 2019-12-08  Bruno Haible  <bruno@clisp.org>
10221         Fix compilation errors in C++ mode on Haiku.
10222         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
10223         non-glibc systems.
10224         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
10225         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10226         posix_spawnattr_setschedparam): Likewise.
10227         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
10228         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10229         * lib/unistd.in.h (usleep): Likewise.
10231 2019-12-08  Bruno Haible  <bruno@clisp.org>
10233         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
10234         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
10235         * modules/fseeko (configure.ac-early): Require it instead of
10236         AC_FUNC_FSEEKO.
10237         * modules/ftello (configure.ac-early): Likewise.
10238         * modules/fflush (configure.ac-early): Likewise.
10240 2019-12-08  Bruno Haible  <bruno@clisp.org>
10242         Fix compilation error in C++ mode on HP-UX 11.
10243         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
10244         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
10246 2019-12-08  Bruno Haible  <bruno@clisp.org>
10248         Fix compilation errors on HP-UX 11/ia64.
10249         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
10250         _GL_FUNCDECL_SYS.
10252 2019-12-08  Bruno Haible  <bruno@clisp.org>
10254         Fix compilation error in C++ mode on OpenBSD.
10255         * lib/signal.in.h (signal): Declare on OpenBSD.
10257 2019-12-08  Bruno Haible  <bruno@clisp.org>
10259         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
10260         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
10261         instead of #error.
10263 2019-12-08  Bruno Haible  <bruno@clisp.org>
10265         Fix compilation errors in C++ mode on FreeBSD.
10266         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
10267         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
10268         * lib/threads.in.h (thrd_exit): Likewise.
10269         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
10271 2019-12-08  Bruno Haible  <bruno@clisp.org>
10273         Fix compilation errors in C++ mode on macOS and FreeBSD.
10274         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
10275         or FreeBSD with clang, use the approach without C preprocessor macro.
10277 2019-12-07  Bruno Haible  <bruno@clisp.org>
10279         Fix compilation errors in C++ mode on AIX with xlclang++.
10280         Reported by Christian Biesinger <cbiesinger@google.com> in
10281         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10282         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
10284 2019-12-07  Bruno Haible  <bruno@clisp.org>
10286         Document compilation error in C++ mode on NetBSD 8.0.
10287         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
10289 2019-12-07  Bruno Haible  <bruno@clisp.org>
10291         Fix compilation errors in C++ mode on Solaris 10.
10292         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
10293         to non-empty on Solaris with a non-GCC compiler.
10294         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
10296 2019-12-07  Bruno Haible  <bruno@clisp.org>
10298         Reword NEWS entry.
10299         * NEWS: Reword the latest NEWS entry.
10301 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
10303         Move xstrtol_fatal to a new xstrtol-error module.
10304         * lib/xstrtol.h: Stop including <getopt.h>.
10305         (xstrtol_fatal): Move ...
10306         * lib/xstrtol-error.h: ... here.  New file.
10307         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
10308         * tests/test-xstrtol.c: Likewise.
10309         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
10310         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
10311         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
10312         * modules/xstrtol-error: New file.
10313         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
10314         * MODULES.html.sh: Add xstrtol-error.
10315         * NEWS: Document the change.
10317 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
10319         nstrftime: better width support for %N, %z
10320         * lib/nstrftime.c (width_add, width_add1, width_cpy):
10321         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
10322         a new WIDTH parameter.
10323         (add, add1, cpy): Use these macros.
10324         (width_add): Do not treat digits == 0 as a special case,
10325         do not pad if padding is ‘-’, and do not use a negative width.
10326         (__strftime_internal): Redo formatting of nanoseconds and numeric
10327         timezones to avoid buffer misuse in unusual cases, and so that
10328         widths make more sense.  Add support for widths greater than 9 to
10329         the %N format; they are zero filled on the right.
10330         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
10332 2019-12-05  Bruno Haible  <bruno@clisp.org>
10334         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
10335         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
10336         set REPLACE_ISFINITE to 1.
10337         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
10338         REPLACE_ISINF to 1.
10339         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
10340         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
10341         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10342         * lib/threads.in.h (call_once): Likewise.
10343         * lib/iconv.in.h (iconv): Likewise.
10345 2019-12-05  Bruno Haible  <bruno@clisp.org>
10347         wchar: Add more C++ tests.
10348         Reported by Christian Biesinger <cbiesinger@google.com> in
10349         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10350         * tests/test-wchar-c++3.cc: New file.
10351         * modules/wchar-c++-tests (Files): Add it.
10352         (Makefile.am): Compile it.
10354 2019-12-05  Bruno Haible  <bruno@clisp.org>
10356         Add more C++ tests.
10358         assert-h: Add C++ tests.
10359         * tests/test-assert-h-c++.cc: New file.
10360         * tests/test-assert-h-c++2.cc: New file.
10361         * modules/assert-h-c++-tests: New file.
10362         * modules/assert-h-tests: New file.
10364         ctype: Add C++ tests.
10365         * tests/test-ctype-c++.cc: New file.
10366         * tests/test-ctype-c++2.cc: New file.
10367         * modules/ctype-c++-tests: New file.
10368         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
10370         errno: Add C++ tests.
10371         * tests/test-errno-c++.cc: New file.
10372         * tests/test-errno-c++2.cc: New file.
10373         * modules/errno-c++-tests: New file.
10374         * modules/errno-tests (Depends-on): Add errno-c++-tests.
10376         float: Add C++ tests.
10377         * tests/test-float-c++.cc: New file.
10378         * tests/test-float-c++2.cc: New file.
10379         * modules/float-c++-tests: New file.
10380         * modules/float-tests (Depends-on): Add float-c++-tests.
10382         inttypes: Add more C++ tests.
10383         * tests/test-inttypes-c++2.cc: New file.
10384         * modules/inttypes-c++-tests (Files): Add it.
10385         (Makefile.am): Compile it.
10387         limits-h: Add C++ tests.
10388         * tests/test-limits-h-c++.cc: New file.
10389         * tests/test-limits-h-c++2.cc: New file.
10390         * modules/limits-h-c++-tests: New file.
10391         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
10393         stdarg: Add C++ tests.
10394         * tests/test-stdarg-c++.cc: New file.
10395         * tests/test-stdarg-c++2.cc: New file.
10396         * modules/stdarg-c++-tests: New file.
10397         * modules/stdarg-tests: New file.
10399         stdbool: Add C++ tests.
10400         * tests/test-stdbool-c++.cc: New file.
10401         * tests/test-stdbool-c++2.cc: New file.
10402         * modules/stdbool-c++-tests: New file.
10403         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
10405         stddef: Add C++ tests.
10406         * tests/test-stddef-c++.cc: New file.
10407         * tests/test-stddef-c++2.cc: New file.
10408         * modules/stddef-c++-tests: New file.
10409         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
10411         stdint: Add C++ tests.
10412         * tests/test-stdint-c++.cc: New file.
10413         * tests/test-stdint-c++2.cc: New file.
10414         * modules/stdint-c++-tests: New file.
10415         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
10417         wchar: Add more C++ tests.
10418         * tests/test-wchar-c++2.cc: New file.
10419         * modules/wchar-c++-tests (Files): Add it.
10420         (Makefile.am): Compile it.
10422         wctype-h: Add more C++ tests.
10423         * tests/test-wctype-h-c++2.cc: New file.
10424         * modules/wctype-h-c++-tests (Files): Add it.
10425         (Makefile.am): Compile it.
10427 2019-12-04  Bruno Haible  <bruno@clisp.org>
10429         Fix compilation errors in C++ mode with xlclang++ on AIX.
10430         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
10431         C++ mode on AIX.
10432         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
10433         without C preprocessor macro.
10434         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
10435         _GL_CXXALIAS_SYS.
10436         * lib/threads.in.h (thrd_exit): Likewise.
10438 2019-12-04  Bruno Haible  <bruno@clisp.org>
10440         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
10441         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
10442         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
10444 2019-12-04  Bruno Haible  <bruno@clisp.org>
10446         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
10447         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
10448         _GL_CXXALIASWARN invocation on non-glibc systems.
10449         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
10450         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
10451         iswctype, towlower, towupper): Likewise.
10453 2019-12-03  Bruno Haible  <bruno@clisp.org>
10455         Avoid hassles caused by [[noreturn]] in C++.
10456         Reported by Christian Biesinger <cbiesinger@google.com> in
10457         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
10458         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
10459         * lib/_Noreturn.h: Likewise.
10461 2019-12-02  Bruno Haible  <bruno@clisp.org>
10463         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
10464         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
10465         LIBMULTITHREAD.
10466         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
10467         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
10468         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
10469         gl_THREADLIB.
10470         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
10472 2019-12-02  Bruno Haible  <bruno@clisp.org>
10474         Fix some more link errors with --enable-threads=isoc.
10475         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
10476         * modules/pthread-rwlock (Depends-on): Likewise.
10478 2019-12-02  Bruno Haible  <bruno@clisp.org>
10480         Fix link errors with --enable-threads=posix on AIX.
10481         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
10482         program with $(LIBTHREAD).
10483         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
10484         program with $(LIBTHREAD).
10486 2019-12-02  Bruno Haible  <bruno@clisp.org>
10488         Fix link errors with --enable-threads=posix on AIX.
10489         * modules/mbrtowc (Link): New section.
10490         * modules/acl (Link): Likewise.
10491         * modules/argmatch (Link): Likewise.
10492         * modules/backup-rename (Link): Likewise.
10493         * modules/backupfile (Link): Likewise.
10494         * modules/closein (Link): Likewise.
10495         * modules/closeout (Link): Likewise.
10496         * modules/copy-file (Link): Likewise.
10497         * modules/csharpcomp (Link): Likewise.
10498         * modules/csharpexec (Link): Likewise.
10499         * modules/dfa (Link): Likewise.
10500         * modules/exclude (Link): Likewise.
10501         * modules/fnmatch (Link): Likewise.
10502         * modules/fnmatch-gnu (Link): Likewise.
10503         * modules/fnmatch-posix (Link): Likewise.
10504         * modules/glob (Link): Likewise.
10505         * modules/human (Link): Likewise.
10506         * modules/javacomp (Link): Likewise.
10507         * modules/javaexec (Link): Likewise.
10508         * modules/javaversion (Link): Likewise.
10509         * modules/mbfile (Link): Likewise.
10510         * modules/mbiter (Link): Likewise.
10511         * modules/mbmemcasecmp (Link): Likewise.
10512         * modules/mbmemcasecoll (Link): Likewise.
10513         * modules/mbrlen (Link): Likewise.
10514         * modules/mbscasecmp (Link): Likewise.
10515         * modules/mbscasestr (Link): Likewise.
10516         * modules/mbschr (Link): Likewise.
10517         * modules/mbscspn (Link): Likewise.
10518         * modules/mbsinit (Link): Likewise.
10519         * modules/mbslen (Link): Likewise.
10520         * modules/mbsncasecmp (Link): Likewise.
10521         * modules/mbsnlen (Link): Likewise.
10522         * modules/mbsnrtowcs (Link): Likewise.
10523         * modules/mbspbrk (Link): Likewise.
10524         * modules/mbspcasecmp (Link): Likewise.
10525         * modules/mbsrchr (Link): Likewise.
10526         * modules/mbsrtowcs (Link): Likewise.
10527         * modules/mbssep (Link): Likewise.
10528         * modules/mbsspn (Link): Likewise.
10529         * modules/mbsstr (Link): Likewise.
10530         * modules/mbstok_r (Link): Likewise.
10531         * modules/mbswidth (Link): Likewise.
10532         * modules/mbuiter (Link): Likewise.
10533         * modules/mkdir-p (Link): Likewise.
10534         * modules/propername (Link): Likewise.
10535         * modules/quote (Link): Likewise.
10536         * modules/quotearg (Link): Likewise.
10537         * modules/quotearg-simple (Link): Likewise.
10538         * modules/regex-quote (Link): Likewise.
10539         * modules/rpmatch (Link): Likewise.
10540         * modules/sh-quote (Link): Likewise.
10541         * modules/system-quote (Link): Likewise.
10542         * modules/trim (Link): Likewise.
10543         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10544         * modules/unistdio/ulc-fprintf (Link): Likewise.
10545         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10546         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10547         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10548         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10549         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10550         * modules/xfreopen (Link): Likewise.
10551         * modules/xmemcoll (Link): Likewise.
10552         * modules/yesno (Link): Likewise.
10553         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
10554         * modules/argmatch-tests (Makefile.am): Likewise.
10555         * modules/closein-tests (Makefile.am): Likewise.
10556         * modules/copy-file-tests (Makefile.am): Likewise.
10557         * modules/dfa-tests (Makefile.am): Likewise.
10558         * modules/fnmatch-tests (Makefile.am): Likewise.
10559         * modules/glob-tests (Makefile.am): Likewise.
10560         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10561         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10562         * modules/mbrtowc-tests (Makefile.am): Likewise.
10563         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10564         * modules/mbscasestr-tests (Makefile.am): Likewise.
10565         * modules/mbschr-tests (Makefile.am): Likewise.
10566         * modules/mbscspn-tests (Makefile.am): Likewise.
10567         * modules/mbsinit-tests (Makefile.am): Likewise.
10568         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10569         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10570         * modules/mbspbrk-tests (Makefile.am): Likewise.
10571         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10572         * modules/mbsrchr-tests (Makefile.am): Likewise.
10573         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10574         * modules/mbsspn-tests (Makefile.am): Likewise.
10575         * modules/mbsstr-tests (Makefile.am): Likewise.
10576         * modules/quotearg-tests (Makefile.am): Likewise.
10577         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10578         * modules/readtokens-tests (Makefile.am): Likewise.
10579         * modules/regex-quote-tests (Makefile.am): Likewise.
10580         * modules/sh-quote-tests (Makefile.am): Likewise.
10581         * modules/system-quote-tests (Makefile.am): Likewise.
10582         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10583         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10584         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10585         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10586         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10587         * modules/yesno-tests (Makefile.am): Likewise.
10589 2019-12-02  Bruno Haible  <bruno@clisp.org>
10591         Simplify link sections.
10592         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
10593         * modules/lock (Link): Likewise.
10594         * modules/cond (Link): Likewise.
10595         * modules/tls (Link): Likewise.
10596         * modules/yield (Link): Likewise.
10597         * modules/regex (Link): Likewise.
10598         * modules/localename (Link): Likewise.
10599         * modules/unicase/locale-language (Link): Likewise.
10600         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
10602 2019-12-02  Bruno Haible  <bruno@clisp.org>
10604         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
10605         * tests/test-thread_self.c (main): Disable test on AIX.
10607 2019-12-01  Bruno Haible  <bruno@clisp.org>
10609         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
10610         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
10611         gl_THREADLIB_EARLY_BODY.
10612         (gl_THREADLIB_EARLY_BODY): Invoke it.
10613         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
10614         (gl_THREADLIB_BODY): Invoke it.
10615         (gl_PTHREADLIB): New macro.
10616         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
10617         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
10618         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
10619         * modules/pthread-h (Files): Add threadlib.m4.
10620         (Depends-on): Remove threadlib.
10621         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
10622         and _THREAD_SAFE here.
10623         (Link): Use LIBPTHREAD, not LIBTHREAD.
10624         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
10625         LIBMULTITHREAD.
10626         * modules/pthread-once (Link): Likewise.
10627         * modules/pthread-mutex (Link): Likewise.
10628         * modules/pthread-rwlock (Link): Likewise.
10629         * modules/pthread-cond (Link): Likewise.
10630         * modules/pthread-tss (Link): Likewise.
10631         * modules/pthread-spin (Link): Likewise.
10632         * modules/pthread (Link): Likewise.
10633         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
10634         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
10635         * modules/pthread-once-tests (test_pthread_once1_LDADD,
10636         test_pthread_once2_LDADD): Likewise.
10637         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
10638         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
10639         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
10640         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
10642 2019-12-01  Bruno Haible  <bruno@clisp.org>
10644         cond: State linking requirements.
10645         * modules/cond (Link): New section.
10647 2019-12-01  Bruno Haible  <bruno@clisp.org>
10649         threadlib: Remove unnecessary file (left over from 2019-07-06).
10650         * modules/threadlib (Files): Remove config.rpath.
10652 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
10654         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
10655         Reported by Dagobert Michelsen <dam@opencsw.org> in
10656         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
10657         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
10658         list of strings instead of one string.
10659         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
10660         * pygnulib/GLImport.py (execute): Likewise.
10662 2019-11-27  Bruno Haible  <bruno@clisp.org>
10664         openpty, forkpty: Fix build error on Solaris 11.4.
10665         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
10666         also in <termios.h>.
10667         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
10668         of the function also in <termios.h>.
10669         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
10670         * doc/glibc-functions/forkpty.texi: Likewise.
10672 2019-11-27  Bruno Haible  <bruno@clisp.org>
10674         New options --enable-threads=isoc and --enable-threads=isoc+posix.
10675         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
10676         --enable-threads=isoc and --enable-threads=isoc+posix.
10677         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
10678         When both the ISO C and the POSIX threads API are available, choose
10679         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
10680         --enable-threads=isoc+posix was specified. When only the ISO C threads
10681         API is available and --enable-threads=iso was specified, choose
10682         USE_ISOC_THREADS.
10683         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
10684         USE_ISOC_AND_POSIX_THREADS.
10685         * lib/glthread/lock.c: Likewise.
10686         * lib/glthread/cond.h: Likewise.
10687         * lib/glthread/cond.c: Likewise.
10688         * lib/glthread/tls.h: Likewise.
10689         * lib/glthread/tls.c: Likewise.
10690         * lib/glthread/yield.h: Likewise.
10691         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
10692         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
10693         * lib/glthread/thread.c: Likewise.
10694         * lib/glthread/threadlib.c: Likewise.
10695         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
10696         USE_ISOC_AND_POSIX_THREADS.
10697         * tests/test-cond.c: Consider USE_ISOC_THREADS and
10698         USE_ISOC_AND_POSIX_THREADS.
10699         * tests/test-tls.c: Likewise.
10700         * tests/test-thread_create.c (main): Likewise.
10701         * tests/test-pthread-cond.c: Likewise.
10702         * tests/test-pthread-mutex.c: Likewise.
10703         * tests/test-pthread-once2.c: Likewise.
10704         * tests/test-pthread-rwlock.c: Likewise.
10705         * tests/test-pthread-tss.c: Likewise.
10706         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
10707         USE_POSIX_THREADS.
10709 2019-11-24  Bruno Haible  <bruno@clisp.org>
10711         mbrtowc: Modernize autoconf test.
10712         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
10713         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
10714         try a UTF-8 locale.
10715         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
10717 2019-11-24  Bruno Haible  <bruno@clisp.org>
10719         Fix errors in C++ mode on mingw.
10720         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
10721         instead of _GL_CXXALIAS_SYS.
10722         * lib/signal.in.h (pthread_sigmask): Likewise.
10723         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
10724         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10725         Likewise.
10726         * lib/wchar.in.h (btowc): Likewise.
10728 2019-11-24  Bruno Haible  <bruno@clisp.org>
10730         sys_time: Fix errors in C++ mode on mingw.
10731         * lib/sys_time.in.h (timeval): Restore the redirection
10732         '#define timeval rpl_timeval', for when the symbol timeval is being used
10733         outside the 'gnulib' namespace.
10734         * lib/sys_select.in.h (select): In C++, write 'timeval', not
10735         'struct timeval'.
10737 2019-11-24  Bruno Haible  <bruno@clisp.org>
10739         iswctype: Fix errors in C++ mode on mingw.
10740         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
10741         is 1.
10742         * lib/iswctype.c (iswctype): Add another implementation, for the
10743         GNULIB_defined_wint_t case.
10744         * modules/iswctype (configure.ac): Compile iswctype.c also if
10745         GNULIB_OVERRIDES_WINT_T is 1.
10747 2019-11-24  Bruno Haible  <bruno@clisp.org>
10749         windows-timedmutex: Fix errors in C++ mode on mingw.
10750         * lib/windows-timedmutex.h: Add closing brace.
10752 2019-11-24  Bruno Haible  <bruno@clisp.org>
10754         Fix errors in C++ mode on Cygwin.
10755         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
10756         _GL_CXXALIAS_SYS.
10758 2019-11-24  Bruno Haible  <bruno@clisp.org>
10760         time_r: Fix for mingw (regression from 2019-11-16).
10761         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
10762         AC_LINK_IFELSE test only if the function does not appear to exist.
10764 2019-11-24  Bruno Haible  <bruno@clisp.org>
10766         wcstok: Add tests.
10767         * tests/test-wcstok.c: New file.
10768         * modules/wcstok-tests: New file.
10770 2019-11-24  Bruno Haible  <bruno@clisp.org>
10772         wcstok: Work around wrong signature on native Windows.
10773         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
10774         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
10775         REPLACE_WCSTOK.
10776         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
10777         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
10778         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
10779         * doc/posix-functions/wcstok.texi: Mention the problem.
10781 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
10783         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
10784         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
10785         remove workaround for GCC bug 91450 as the bug should be fixed
10786         there too.
10788 2019-11-21  Bruno Haible  <bruno@clisp.org>
10790         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
10791         Reported by Christian Biesinger <cbiesinger@google.com> in
10792         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
10793         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
10794         non-glibc systems.
10795         * lib/locale.in.h (localeconv, setlocale): Likewise.
10796         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
10797         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
10798         rint, round, trunc): Likewise.
10799         * lib/monetary.in.h (strfmon_l): Likewise.
10800         * lib/pthread.in.h (pthread_mutexattr_getrobust,
10801         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
10802         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
10803         pthread_spin_destroy): Likewise.
10804         * lib/signal.in.h (raise, signal): Likewise.
10805         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
10806         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
10807         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
10808         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
10809         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
10810         Likewise.
10811         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
10812         Likewise.
10813         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
10814         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
10815         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
10816         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
10817         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
10818         wcsftime): Likewise.
10819         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
10821 2019-11-21  Bruno Haible  <bruno@clisp.org>
10823         Fix various errors in _GL_CXXALIAS_SYS invocations.
10824         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
10825         _GL_CXXALIAS_SYS.
10826         * lib/pthread.in.h (pthread_mutexattr_gettype,
10827         pthread_mutexattr_getrobust): Likewise.
10828         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
10829         * lib/sys_socket.in.h (recv, send): Likewise.
10830         * lib/unistd.in.h (getdtablesize): Likewise.
10831         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
10832         'struct timeval'.
10834 2019-11-21  Bruno Haible  <bruno@clisp.org>
10836         math tests: Update after 2019-08-28 change.
10837         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
10838         return type of 'bool', not 'int'.
10840 2019-11-21  Bruno Haible  <bruno@clisp.org>
10842         pthread-spin: Fix errors in C++ mode.
10843         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
10844         functions as nonexistent when <pthread.h> exists but does not define
10845         the pthread_spinlock_t type.
10847 2019-11-21  Bruno Haible  <bruno@clisp.org>
10849         pthread-mutex: Fix errors in C++ mode.
10850         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
10851         pthread_mutexattr_getrobust exists. If not, define
10852         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10853         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
10854         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
10855         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10856         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
10857         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
10858         definition.
10860 2019-11-19  Bruno Haible  <bruno@clisp.org>
10862         threads-h tests: Fix typo.
10863         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
10865 2019-11-19  Bruno Haible  <bruno@clisp.org>
10867         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
10868         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
10869         to 'const pthread_attr_t *'.
10870         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
10871         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
10873 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10875         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
10876         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
10877         work around GCC bug 91450 as the bug should be fixed there.
10879 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10881         glob: get closer to glibc glob.c
10882         Omit differences from glibc when the differences don’t matter.
10883         * lib/glob.c [_LIBC]: Include shlib-compat.h.
10884         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
10885         (glob_lstat): New function.
10886         (glob_in_dir): Use it.
10887         (GLOB_ATTRIBUTE): Define to empty if not already defined.
10888         Use changed.
10890 2019-11-18  Bruno Haible  <bruno@clisp.org>
10892         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
10893         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
10894         UINTPTR_MAX): Consider _WIN64.
10895         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
10896         a pointer.
10898 2019-11-18  Bruno Haible  <bruno@clisp.org>
10900         stdint: Fix value of WINT_MAX when we override wint_t.
10901         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
10902         when GNULIB_OVERRIDES_WINT_T is 1.
10904 2019-11-18  Bruno Haible  <bruno@clisp.org>
10906         vcs-to-changelog: New module.
10907         * modules/vcs-to-changelog: New file.
10908         * MODULES.html.sh (func_all_modules): Add it.
10910 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10912         vcs-to-changelog: New script to generate ChangeLog-like output.
10913         Discussion:
10914         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
10915         * build-aux/vcs_to_changelog.py: New file.
10916         * build-aux/vcstocl/frontend_c.py: New file.
10917         * build-aux/vcstocl/misc_util.py: New file.
10918         * build-aux/vcstocl/vcs_git.py: New file.
10920 2019-11-18  Bruno Haible  <bruno@clisp.org>
10922         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
10923         Reported by Keith Marshall <keith@users.osdn.me> in
10924         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
10925         and <https://osdn.net/projects/mingw/ticket/39677>.
10926         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
10927         already been defined by mingw's <crtdefs.h>.
10929 2019-11-18  Bruno Haible  <bruno@clisp.org>
10931         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
10932         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
10933         conditionally enabled.
10935 2019-11-18  Bruno Haible  <bruno@clisp.org>
10937         gc: Mirror libgcrypt.m4 from libgcrypt.
10938         * config/srclistvars.sh (LIBGCRYPT): New variable.
10939         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
10941 2019-11-17  Bruno Haible  <bruno@clisp.org>
10943         locale, localename: Improve z/OS support.
10944         Reported by Daniel Richard G. in
10945         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
10946         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
10947         gl_LOCALE_H.
10948         (gl_LOCALE_H): Require it.
10949         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
10950         defined, don't even check for newlocale, duplocale, freelocale.
10951         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
10952         locale_t is not defined.
10954 2019-11-17  Bruno Haible  <bruno@clisp.org>
10956         havelib: Make libdirstems processing more flexible.
10957         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
10958         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
10959         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
10960         patch from 2017-02-19).
10961         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
10962         libdirs, even when the first one exists as a directory.
10964 2019-11-17  Bruno Haible  <bruno@clisp.org>
10966         havelib: Match the bitness when searching for libraries.
10967         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
10968         acl_is_expected_elfclass.
10969         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
10970         file exists, in ELF, also test whether it has the ELF class that
10971         corresponds to the host's bitness.
10973 2019-11-17  Bruno Haible  <bruno@clisp.org>
10975         host-cpu-c-abi: Add support for unknown CPUs.
10976         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
10977         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
10978         32-bit or 64-bit.
10980 2019-11-17  Bruno Haible  <bruno@clisp.org>
10982         havelib: Remove redundant code.
10983         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
10984         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
10986 2019-11-17  Bruno Haible  <bruno@clisp.org>
10988         havelib: Fix a bug in dependency processing.
10989         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
10990         of .la files, don't overwrite the value of additional_libdir for the
10991         next rounds.
10993 2019-11-16  Bruno Haible  <bruno@clisp.org>
10995         wctype-h: When overriding wint_t, override also the related functions.
10996         Reported by Christian Biesinger <cbiesinger@google.com> in
10997         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
10998         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
10999         REPLACE_ISWCNTRL to 1.
11000         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
11001         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
11002         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
11003         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
11004         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
11005         on mingw.
11006         * doc/posix-headers/wctype.texi: Likewise.
11008 2019-11-16  Bruno Haible  <bruno@clisp.org>
11010         time_r: Fix for mingw.
11011         Reported by Christian Biesinger <cbiesinger@google.com> in
11012         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
11013         * lib/time.in.h: On mingw, include <unistd.h>.
11014         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
11015         <time.h>. Test for localtime_r in a way that works when it is defined
11016         as an inline function.
11018 2019-11-13  Bruno Haible  <bruno@clisp.org>
11020         havelib: Revert last change.
11021         * build-aux/config.rpath: Revert last change. We can add msys2 support
11022         when it has been added to libtool.m4 upstream.
11024 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11026         config: add msys support
11027         Requested by Arnold Robbins in:
11028         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
11029         He also requested a change to config.guess, which I’ll forward
11030         upstream.
11031         * build-aux/ar-lib (func_file_conv):
11032         * build-aux/compile (func_file_conv):
11033         * build-aux/config.rpath (wl, with_gnu_ld)
11034         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
11035         Treat msys like cygwin.
11037 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11039         regex: now back in sync with glibc
11040         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
11041         regexec.c got merged into glibc and are now copies again.
11043 2019-10-27  Bruno Haible  <bruno@clisp.org>
11045         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
11046         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
11047         statement.
11048         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
11049         32-bit CPUs.
11051 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11053         timespec-add, timespec-sub: simplify
11054         * lib/timespec-add.c (timespec_add):
11055         * lib/timespec-sub.c (timespec_sub):
11056         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11057         work on unsigned integers.
11059 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11061         nstrftime: speed up integer overflow checking
11062         * lib/nstrftime.c: Include intprops.h.
11063         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
11064         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
11065         instead of doing it by hand.
11066         * modules/nstrftime (Depends-on): Add intprops.
11068         Port better to GCC under macOS
11069         Work around macOS header that has ‘#define __has_builtin(x) 0’
11070         when compiled by GCC.  Apple really, really doesn’t want you to
11071         use GCC, apparently.  Rroblem reported by Akim Demaille in:
11072         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
11073         The fix is to not trust __has_builtin when being compiled by
11074         recent-enough GCC.
11075         * lib/intprops.h (__has_builtin)
11076         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11077         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
11078         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
11079         Remove.  All uses removed.
11080         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
11081         directly, if defined and if not newer GCC.
11082         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
11083         New macro, that use __has_builtin directly, if defined and if
11084         not newer GCC.
11085         (assume): Use them.
11087 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
11089         maintainer-makefile: update rule for argmatch.
11090         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
11092 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
11094         bitset: let freeing functions accept NULL.
11095         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
11096         given NULL.
11097         * lib/bitset.h: Document that.
11098         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
11100 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
11102         inttypes: use more-robust test for int range
11103         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
11104         Problem reported by Dagobert Michelsen in:
11105         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
11106         * lib/inttypes.in.h: Rely only on limits.h when checking
11107         int range.
11109 2019-10-15  Bruno Haible  <bruno@clisp.org>
11111         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
11112         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
11113         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
11114         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
11115         term_ostream_set_hyperlink): New functions.
11116         (term_styled_ostream_get_hyperlink_ref,
11117         term_styled_ostream_get_hyperlink_id,
11118         term_styled_ostream_set_hyperlink): New function aliases.
11120 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11122         update-copyright: use en dashes in .texi ranges
11123         * build-aux/update-copyright: Match year ranges like "1998--2019",
11124         which are used in the Autoconf manual.  Also, update ranges in
11125         .tex, .texi, and .texinfo files to use en dashes instead of
11126         hyphens.
11128 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11130         * config/srclist.txt: Remove posix/regex_internal.c for now.
11132 2019-10-13  Bruno Haible  <bruno@clisp.org>
11134         git-version-gen: Allow 'snapshot' as .tarball-version contents.
11135         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
11136         contents to the empty string.
11138 2019-10-12  Bruno Haible  <bruno@clisp.org>
11140         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
11141         * tests/test-intprops.c (main): Disable two more tests when using
11142         HP-UX cc.
11144 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11146         Simplify and regularize regex use of ‘assert’
11147         Also, tell GCC about the asserts even when compiling without
11148         debugging, to give it further optimization opportunities.
11149         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
11150         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
11151         (parse_expression, parse_bracket_exp):
11152         * lib/regex_internal.c (build_wcs_buffer)
11153         (build_wcs_upper_buffer, re_string_reconstruct)
11154         (re_string_context_at):
11155         * lib/regexec.c (re_search_stub, re_copy_regs)
11156         (re_search_internal, prune_impossible_nodes, check_matching)
11157         (check_halt_state_context, set_regs, sift_states_backward)
11158         (build_sifted_states, transit_state_mb, transit_state_bkref)
11159         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
11160         (match_ctx_add_subtop):
11161         Use it instead of plain ‘assert’.
11163 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
11165         regex: omit debug assignment when not debugging
11166         * lib/regexec.c (re_search_internal) [!DEBUG]:
11167         Remove unnecessary assignment.
11169         regex: tell compiler there’s at most 256 arcs out
11170         Partly this is to help the reader (and maybe help GCC);
11171         partly this is to pacify Coverity.
11172         * lib/regex_internal.h: Include verify.h.
11173         * lib/regexec.c (group_nodes_into_DFAstates):
11174         Tell the compiler that ndests cannot exceed SBC_MAX.
11175         * modules/regex (Depends-on): Add ‘verify’.
11177         regex: simplify by assuming C99
11178         * config/srclist.txt: Comment out regex_internal.h and regexec.c
11179         temporarily.
11180         * lib/regex_internal.h (lock_define, re_match_context_t):
11181         Simplify by assuming C99 macros and const.
11182         * lib/regexec.c (re_search_internal): Simplify by assuming C99
11183         initializers.  Remove unnecessary assignment, as mctx is now
11184         safely initialized earlier.
11186         regex: avoid copying of uninitialized storage
11187         * config/srclist.txt: Comment out regcomp.c temporarily.
11188         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
11189         Initialize even when not checking for lint, as the behavior is
11190         arguably undefined otherwise and Coverity warns about it.
11192 2019-10-06  Bruno Haible  <bruno@clisp.org>
11194         access tests: Fix test failure when run as root.
11195         * tests/test-access.c: Include root-uid.h.
11196         (geteuid): Define fallback.
11197         (main): Don't expect that writing to a read-only file would fail when
11198         running as root. Also, remove the created files at the end.
11199         * modules/access-tests (Depends-on): Add root-uid.
11200         (configure.ac): Test whether geteuid exists.
11202 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11204         users.txt: add GNU nano
11205         Nano has been making use of gnulib since March 2017, version 2.8.0.
11207 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11209         bootstrap: simplify debugging of wget failures
11210         Problem reported by Tim Rühsen in:
11211         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
11212         * build-aux/bootstrap (po_download_command_format):
11213         Invoke wget with -nv instead of -q, to make debugging easier.
11215 2019-09-29  Bruno Haible  <bruno@clisp.org>
11217         avltree-list: Fix compilation warning (introduced on 2014-09-16).
11218         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
11219         'const' attribute.
11221 2019-09-29  Bruno Haible  <bruno@clisp.org>
11223         fbufmode: Fix compilation error on glibc >= 2.28 systems.
11224         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
11226 2019-09-28  Bruno Haible  <bruno@clisp.org>
11228         Update comments that refer to POSIX.
11229         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
11230         sentence about trailing slashes.
11231         * lib/fflush.c: Clarify the reasoning.
11232         * tests/test-fflush2.c: Cite the relevant sentence.
11234 2019-09-28  Bruno Haible  <bruno@clisp.org>
11236         access: Document limitations on Windows.
11237         Suggested by Zaretskii <eliz@gnu.org>.
11238         * doc/posix-functions/access.texi: Mention two limitations on Windows.
11240 2019-09-28  Bruno Haible  <bruno@clisp.org>
11242         findprog-in: Fix comment.
11243         Reported by Eli Zaretskii <eliz@gnu.org>.
11244         * lib/findprog.h (find_in_given_path): Extend description of EACCES
11245         condition.
11246         * lib/stat.c (rpl_stat): Fix typo in comment.
11247         * lib/utime.c (_gl_utimens_windows): Likewise.
11249 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11251         Update URLs and associated text
11252         (Thanks to Bruno Haible for proofreading this patch.)
11253         Prefer https: to http: in URLs where either will do, for the usual
11254         security reasons.  I also updated broken and/or moved URLs
11255         discovered during the process. In a few places I had to resort to
11256         archive.org, since I didn't find the originals elsewhere.
11258 2019-09-15  Paul Smith  <psmith@gnu.org>
11259             Bruno Haible  <bruno@clisp.org>
11261         findprog-in: Set errno when the search fails.
11262         * lib/findprog-in.c: Include <errno.h>.
11263         (find_in_given_path): Set errno before returning NULL.
11264         * lib/findprog.h (find_in_given_path): Update comment accordingly.
11265         Define the term "slash".
11267 2019-09-15  Bruno Haible  <bruno@clisp.org>
11269         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
11270         * modules/findprog (Depends-on): Add access.
11271         * modules/findprog-lgpl (Depends-on): Likewise.
11272         * modules/findprog-in (Depends-on): Likewise.
11274 2019-09-15  Bruno Haible  <bruno@clisp.org>
11276         access: Add tests.
11277         * tests/test-access.c: New file.
11278         * modules/access-tests: New file.
11280         access: New module.
11281         * lib/unistd.in.h (access): New declaration.
11282         * lib/access.c: New file.
11283         * m4/access.m4: New file.
11284         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
11285         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
11286         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
11287         REPLACE_ACCESS.
11288         * modules/access: New file.
11289         * tests/test-unistd-c++.cc (access): Check signature.
11290         * doc/posix-functions/access.texi: Mention the new module.
11292 2019-09-15  Bruno Haible  <bruno@clisp.org>
11294         fcntl-h: Fix compilation error of creat.c on MSVC.
11295         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
11296         defined.
11298 2019-09-15  Bruno Haible  <bruno@clisp.org>
11300         creat: Add tests.
11301         * tests/test-creat.c: New file, based on tests/test-open.h.
11302         * modules/creat-tests: New file.
11304         creat: New module.
11305         * lib/fcntl.in.h (creat): New declaration.
11306         * lib/creat.c: New file, based on lib/open.c.
11307         * m4/creat.m4: New file.
11308         * m4/open-slash.m4: New file, extracted from m4/open.m4.
11309         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
11310         Invoke gl_OPEN_TRAILING_SLASH_BUG.
11311         * modules/open (Files): Add m4/open-slash.m4.
11312         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
11313         REPLACE_CREAT.
11314         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
11315         * modules/creat: New file.
11316         * tests/test-fcntl-h-c++.cc (creat): Check signature.
11317         * doc/posix-functions/creat.texi: Mention the new module.
11319 2019-09-15  Bruno Haible  <bruno@clisp.org>
11321         open tests: Enhance test.
11322         * tests/test-open.h (test_open): Test the creation of an executable
11323         regular file. Also improve initial cleanup.
11325 2019-09-15  Bruno Haible  <bruno@clisp.org>
11327         intprops tests: Avoid build failure with HP-UX cc.
11328         * tests/test-intprops.c: Disable a check that makes HP cc choke with
11329         "error 4018: Macro param too large after substitution - use -H option.".
11331 2019-09-14  Bruno Haible  <bruno@clisp.org>
11333         Make autoconf tests work with -Werror=implicit-function-declaration.
11334         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
11335         towupper() declaration.
11336         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
11337         declaration.
11339 2019-09-14  Bruno Haible  <bruno@clisp.org>
11341         findprog-in: Better mimic the system on native Windows.
11342         Reported by Paul Smith <psmith@gnu.org>.
11343         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
11344         non-empty suffixes when the file name already contains a '.'.
11346 2019-09-10  Bruno Haible  <bruno@clisp.org>
11348         wctob: Fix autoconf test.
11349         Based on patch by Florian Weimer <fweimer@redhat.com>.
11350         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
11352 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
11354         xhash: provide hash_xinitialize.
11355         Suggested by Egor Pugin <egor.pugin@gmail.com>
11356         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
11357         * modules/xhash, lib/xhash.c: New.
11358         * lib/hash.h (hash_xinitialize): New.
11360 2019-09-09  Bruno Haible  <bruno@clisp.org>
11362         findprog-in: Make exec optimization optional.
11363         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
11364         (find_in_given_path): Add optimize_for_exec parameter.
11365         * lib/findprog-in.c (find_in_given_path): Likewise.
11367 2019-09-08  Bruno Haible  <bruno@clisp.org>
11369         Add option to assume the best, not the worst, when cross-compiling.
11370         Suggested by Jonas Termansen <sortie@maxsi.org>.
11371         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
11372         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
11373         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
11374         lt_cv_sys_argz_works.
11375         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
11376         ac_cv_func_calloc_0_nonnull.
11377         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
11378         --enable-cross-guesses for gl_cv_func_realpath_works.
11379         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
11380         gl_cv_func_cbrtl_ieee.
11381         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
11382         gl_cv_func_ceil_ieee.
11383         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
11384         gl_cv_func_ceilf_ieee.
11385         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
11386         gl_cv_func_ceill_ieee.
11387         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
11388         ac_cv_func_chown_works.
11389         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
11390         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
11391         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
11392         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
11393         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
11394         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
11395         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
11396         gl_cv_func_expl_works.
11397         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
11398         gl_cv_func_expm1_ieee.
11399         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
11400         gl_cv_func_expm1l_works.
11401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
11402         gl_cv_func_open_directory_works.
11403         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
11404         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
11405         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
11406         gl_cv_func_fchownat_empty_filename_works.
11407         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
11408         gl_cv_func_fdopendir_works.
11409         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
11410         gl_cv_func_floor_ieee.
11411         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
11412         gl_cv_func_floorf_ieee.
11413         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
11414         gl_cv_func_fma_works.
11415         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
11416         gl_cv_func_fmaf_works.
11417         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
11418         gl_cv_func_fmal_works.
11419         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
11420         gl_cv_func_fmod_ieee.
11421         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
11422         gl_cv_func_fmodf_ieee.
11423         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
11424         gl_cv_func_fmodl_ieee.
11425         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
11426         gl_cv_func_fpurge_works.
11427         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
11428         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
11429         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
11430         gl_cv_func_getcwd_null.
11431         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
11432         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
11433         gl_cv_func_working_getdelim.
11434         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11435         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
11436         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11437         gl_cv_func_getgroups_works.
11438         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
11439         am_cv_func_working_getline.
11440         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
11441         for gl_cv_func_getopt_gnu.
11442         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
11443         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
11444         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
11445         gl_cv_func_hypot_ieee.
11446         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
11447         gl_cv_func_hypotf_ieee.
11448         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
11449         gl_cv_func_hypotl_ieee.
11450         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
11451         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
11452         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
11453         gl_cv_func_link_works.
11454         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
11455         gl_cv_func_linkat_slash.
11456         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
11457         gl_cv_func_log_ieee.
11458         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
11459         gl_cv_func_logf_ieee.
11460         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
11461         gl_cv_func_logl_works.
11462         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
11463         gl_cv_func_log10_ieee.
11464         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
11465         gl_cv_func_log10f_ieee.
11466         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
11467         gl_cv_func_log10l_works.
11468         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
11469         gl_cv_func_log1p_ieee.
11470         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
11471         gl_cv_func_log1pf_ieee.
11472         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
11473         gl_cv_func_log1pl_ieee.
11474         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
11475         gl_cv_func_log2_ieee.
11476         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
11477         gl_cv_func_log2f_ieee.
11478         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
11479         --enable-cross-guesses for
11480         gl_cv_func_lstat_dereferences_slashed_symlink.
11481         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
11482         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11483         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
11484         gl_cv_C_locale_sans_EILSEQ.
11485         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
11486         gl_cv_func_memchr_works.
11487         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
11488         gl_cv_func_memmem_works_always.
11489         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
11490         gl_cv_func_memmem_works_fast.
11491         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
11492         gl_cv_func_mkdir_trailing_slash_works,
11493         gl_cv_func_mkdir_trailing_dot_works.
11494         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
11495         gl_cv_func_mkfifo_works.
11496         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
11497         gl_cv_func_mknod_works.
11498         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
11499         gl_cv_func_working_mkstemp.
11500         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
11501         gl_cv_func_working_mktime.
11502         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
11503         gl_cv_func_modf_ieee.
11504         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
11505         gl_cv_func_modff_ieee.
11506         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
11507         gl_cv_func_modfl_ieee.
11508         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
11509         gl_cv_func_nanosleep.
11510         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
11511         gl_cv_func_perror_works.
11512         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
11513         gl_cv_func_printf_sizes_c99.
11514         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
11515         gl_cv_func_printf_infinite.
11516         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
11517         gl_cv_func_printf_infinite_long_double.
11518         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
11519         gl_cv_func_printf_directive_a.
11520         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
11521         gl_cv_func_printf_directive_f.
11522         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
11523         gl_cv_func_printf_flag_zero.
11524         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
11525         gl_cv_func_printf_enomem.
11526         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
11527         gl_cv_func_snprintf_truncation_c99.
11528         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
11529         gl_cv_func_snprintf_retval_c99.
11530         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
11531         gl_cv_func_snprintf_directive_n.
11532         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
11533         gl_cv_func_vsnprintf_zerosize_c99.
11534         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
11535         gl_cv_func_pselect_detects_ebadf.
11536         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11537         Obey --enable-cross-guesses for
11538         gl_cv_pthread_rwlock_rdlock_prefer_writer.
11539         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
11540         gl_cv_func_ptsname_sets_errno.
11541         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
11542         gl_cv_func_svid_putenv.
11543         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
11544         gl_cv_func_readlink_works.
11545         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
11546         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11547         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
11548         gl_cv_func_re_compile_pattern_working.
11549         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
11550         gl_cv_func_remainder_ieee.
11551         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
11552         gl_cv_func_remainderf_ieee.
11553         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
11554         gl_cv_func_remainderl_ieee.
11555         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
11556         gl_cv_func_rintl_works.
11557         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
11558         gl_cv_func_rmdir_works.
11559         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
11560         gl_cv_func_round_ieee.
11561         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
11562         gl_cv_func_roundf_ieee.
11563         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
11564         gl_cv_func_roundl_ieee.
11565         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
11566         gl_cv_func_select_detects_ebadf.
11567         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
11568         gl_cv_func_setenv_works.
11569         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
11570         gl_cv_func_unsetenv_works.
11571         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
11572         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
11573         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
11574         gl_cv_func_sleep_works.
11575         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
11576         gl_cv_func_stat_file_slash.
11577         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
11578         gl_cv_func_stpncpy.
11579         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
11580         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
11581         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
11582         gl_cv_func_strcasestr_linear.
11583         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
11584         gl_cv_func_working_strerror.
11585         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
11586         gl_cv_func_strerror_0_works.
11587         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
11588         --enable-cross-guesses for gl_cv_func_strerror_r_works.
11589         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
11590         gl_cv_func_strstr_works_always.
11591         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
11592         gl_cv_func_strstr_linear.
11593         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
11594         gl_cv_func_strtod_works.
11595         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
11596         gl_cv_func_strtold_works.
11597         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
11598         gl_cv_func_symlink_works.
11599         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
11600         gl_cv_func_symlinkat_works.
11601         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
11602         gl_cv_func_trunc_ieee.
11603         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
11604         gl_cv_func_truncf_ieee.
11605         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
11606         gl_cv_func_truncl_ieee.
11607         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
11608         gl_cv_func_tzset_clobber.
11609         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
11610         gl_cv_func_ungetc_works.
11611         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
11612         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
11613         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
11614         gl_cv_func_usleep_works.
11615         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
11616         gl_cv_func_futimesat_works.
11617         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
11618         gl_cv_func_working_utimes.
11619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
11620         gl_cv_func_wcwidth_works.
11621         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
11622         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
11623         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
11624         links for testing. Obey --enable-cross-guesses for
11625         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
11626         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
11628 2019-09-08  Bruno Haible  <bruno@clisp.org>
11630         Clarify that cross-compilation guesses are guesses.
11631         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
11632         cross-compiling.
11634 2019-09-08  Bruno Haible  <bruno@clisp.org>
11636         chown: Fix configure output (regression from 2019-03-23).
11637         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
11638         gl_cv_func_chown_follows_symlink variable.
11640 2019-09-08  Bruno Haible  <bruno@clisp.org>
11642         findprog-in: New module.
11643         Suggested by Paul Smith <psmith@gnu.org>.
11644         * lib/findprog.h (find_in_given_path): New declaration.
11645         * lib/findprog-in.c: New file, based on lib/findprog.c.
11646         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
11647         * modules/findprog-in: New file.
11649 2019-09-08  Bruno Haible  <bruno@clisp.org>
11651         findprog: Remove unused dependency.
11652         * modules/findprog (Depends-on): Remove strdup.
11654 2019-09-08  Bruno Haible  <bruno@clisp.org>
11656         findprog: Remove test that is obsolete since 2006-04-24.
11657         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
11659 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11661         bitset: style changes
11662         * lib/bitset/vector.c (vbitset_resize): Factor computation.
11663         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
11664         xzalloc to xcalloc.
11665         Suggested by Paul Eggert.
11667 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11669         bitset: check memory allocation
11670         Reported by 江 祖铭 (Zu-Ming Jiang).
11671         With help from Paul Eggert.
11672         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
11673         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
11674         instead of realloc.
11675         When shrinking, accept failures.
11676         * lib/bitset/vector.c (vbitset_resize): Likewise.
11678 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11680         scratch_buffer: sync from glibc
11681         * config/srclist.txt: Add the scratch_buffer source
11682         code from glibc, since these should be in sync.
11683         Autoupdate.
11685 2019-09-07  Bruno Haible  <bruno@clisp.org>
11687         doc: Update for glibc 2.30.
11688         * doc/glibc-functions/gettid.texi: New file.
11689         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
11690         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
11691         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
11692         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
11693         * doc/glibc-functions/sem_clockwait.texi: New file.
11694         * doc/glibc-functions/tgkill.texi: New file.
11695         * doc/glibc-functions/twalk_r.texi: New file.
11696         * doc/gnulib.texi: Include them.
11697         (Glibc semaphore.h): New section.
11698         * doc/pastposix-functions/h_errno.texi: Update.
11699         * doc/posix-functions/*.texi: Likewise.
11701 2019-09-06  Bruno Haible  <bruno@clisp.org>
11703         symlink tests: Avoid test failure on Linux with Lustre file system.
11704         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
11705         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
11706         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
11708 2019-09-01  Bruno Haible  <bruno@clisp.org>
11710         gitsub.sh: Add support for shallow-cloning of subdirectories.
11711         * top/gitsub.sh (func_usage): Document allowed git options with
11712         'git pull'.
11713         (func_pull): Accept GIT_OPTIONS argument.
11714         (pull): Parse git options before complaining about too many arguments.
11715         Pass the git options to func_pull.
11717 2019-08-29  Bruno Haible  <bruno@clisp.org>
11719         lock: Fix cross-compilation guesses.
11720         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11721         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
11722         platforms.
11724 2019-08-28  Bruno Haible  <bruno@clisp.org>
11726         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
11727         Reported by Martin Storsjö <martin@martin.st> in
11728         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
11729         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
11730         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
11731         files from GCC 6 or newer, use an override through '#define', because
11732         the inline definitions in the platform's <cmath> cannot be overridden
11733         in another way.
11735 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11737         Revert macOS INT_MULTIPLY_WRAPV patch
11738         Problem reported by Bruno Haible in:
11739         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
11740         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
11741         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11742         Go back to working around the Clang bug on macOS.
11744 2019-08-27  Bruno Haible  <bruno@clisp.org>
11746         libtool-next-version: Fix error output.
11747         * build-aux/libtool-next-version (func_fatal_error): Fix the program
11748         name.
11750 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11752         Speed up INT_MULTIPLY_WRAPV on macOS
11753         Assume that __builtin_mul_overflow works OK with Clang on macOS.
11754         Mattias Engdegård says it’s safe to assume the relevant library
11755         is always available there.
11756         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
11757         New temporary internal macro.
11758         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11759         No need to work around the Clang bug on macOS.
11761 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11763         intprops.h, verify.h: port better to clang
11764         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11765         with Clang.  Problem reported privately by Mattias Engdegård.
11766         Also, insulate intprops.h and verify.h better against each other’s
11767         definitions of __has_builtin on non-Clang hosts.
11768         * lib/intprops.h (__has_builtin): Define a temporary substitute
11769         if __has_builtin is not already defined.
11770         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11771         New temporary internal macros.
11772         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
11773         Now two separate macros, replacing the old
11774         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
11775         __builtin_mul_overflow is like the rest.  All uses changed.
11776         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
11777         Adjust to above changes.
11778         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
11779         longer relevant.  All uses changed.
11780         * lib/verify.h (__has_builtin): Treat like intprops.h,
11781         so that the two .h files do not collide with each other.
11782         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
11783         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
11785 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11787         intprops: say why not Clang __builtin_add_overflow
11788         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
11789         Mention Clang in comment, responding to a query from
11790         Mattias Engdegård.
11792 2019-08-24  Bruno Haible  <bruno@clisp.org>
11794         doc: Document most of the files outside of modules.
11795         * doc/gnulib.texi (Build Infrastructure Files,
11796         Release Management Files): New chapters.
11798 2019-08-24  Bruno Haible  <bruno@clisp.org>
11800         bootstrap: Keep in sync with the 'gettext' module.
11801         Reported by Assaf Gordon in
11802         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
11803         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
11804         * build-aux/po/remove-potcdate.sin: Likewise.
11806 2019-08-24  Bruno Haible  <bruno@clisp.org>
11808         crypto/gc-sha512: Add tests.
11809         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
11810         * modules/crypto/gc-sha512-tests: New file.
11812         crypto/gc-sha256: Add tests.
11813         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
11814         * modules/crypto/gc-sha256-tests: New file.
11816         crypto/gc-sha256, crypto/gc-sha512: New modules.
11817         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
11818         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
11819         (MAX_DIGEST_SIZE): Set to 64.
11820         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
11821         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
11822         (gc_sha256, gc_sha512): New functions.
11823         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
11824         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
11825         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
11827 2019-08-24  Bruno Haible  <bruno@clisp.org>
11829         crypto/gc-sha1 tests: Improve output when the test fails.
11830         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
11831         output.
11833 2019-08-24  Bruno Haible  <bruno@clisp.org>
11835         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
11836         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
11837         LIBGCRYPT_HAS_MD_SM3.
11838         * lib/gc-libgcrypt.c: Include sm3.h.
11839         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
11840         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
11841         implementation if libgcrypt does not support SM3.
11843 2019-08-24  Bruno Haible  <bruno@clisp.org>
11845         crypto/gc-md2: Optimize and clarify code.
11846         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
11847         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
11848         is not needed.
11850 2019-08-24  Bruno Haible  <bruno@clisp.org>
11852         crypto/gc-md2: Add comment.
11853         * lib/gc-libgcrypt.c: Add comment.
11855 2019-08-24  Bruno Haible  <bruno@clisp.org>
11857         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
11858         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
11859         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
11860         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
11861         variable.
11863 2019-08-24  Bruno Haible  <bruno@clisp.org>
11865         crypto/gc: Fix link error with --with-libgcrypt.
11866         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
11867         AC_LIB_HAVE_LINKFLAGS invocation.
11869 2019-08-24  Bruno Haible  <bruno@clisp.org>
11871         crypto/gc: Access the module indicators correctly.
11872         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
11873         * lib/gc-libgcrypt.c: Likewise.
11875 2019-08-24  Bruno Haible  <bruno@clisp.org>
11877         crypto/gc: Fix configuration with --with-libgcrypt.
11878         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
11879         * modules/crypto/gc (Files): Add it.
11880         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
11882 2019-08-24  Bruno Haible  <bruno@clisp.org>
11884         Remove unused file.
11885         * m4/stat-macros.m4: Remove file.
11887 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11889         New strip-trailing-space option for srclist-update
11890         * config/srclist-update (fixfile): Support new option.
11891         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
11892         Use it.
11894 2019-08-20  Eric Blake  <eblake@redhat.com>
11896         accept4: Support SOCK_NONBLOCK, if defined
11897         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
11899         accept4: Fix compilation when native accept4() exists.
11900         Reported by Richard W.M. Jones <rjones@redhat.com> in
11901         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
11902         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
11904 2019-08-18  Bruno Haible  <bruno@clisp.org>
11906         Defeat -flto GCC optimization in math autoconf tests.
11907         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
11908         at <https://savannah.gnu.org/bugs/?56109>.
11909         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
11910         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
11911         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11912         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11913         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11914         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
11915         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11916         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11917         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11918         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11919         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11920         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11922 2019-08-17  Bruno Haible  <bruno@clisp.org>
11924         windows-spin: Implement declared functions.
11925         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
11926         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
11927         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
11928         name.
11930 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11932         intprops: port to Oracle Developer Studio 12.6
11933         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
11934         typos that were in a section not compiled by GCC.
11936 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11938         intprops: support uchar, ushort _WRAPV dests
11939         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
11940         when __builtin_add_overflow etc. and _Generic are not used.
11941         (_GL_INT_OP_WRAPV): Use it to support destinations that
11942         are unsigned char or unsigned short, even in compilers
11943         that lack __typeof__ and are not C11-compatible.
11945         intprops: pacify picky GCC
11946         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
11947         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
11948         possibly-incorrect result.
11949         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
11950         about (A) used as a boolean, when A is an expression like 3 * 4.
11952         intprops: support unsigned *_WRAPV results
11953         Add support for unsigned, unsigned long, and unsigned long long
11954         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
11955         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
11956         bug with unsigned inputs reported by Eli Zaretskii in:
11957         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
11958         * config/srclist.txt: Break the glibc connection for intprops.h
11959         temporarily, while more testing is done in Gnulib-using apps.
11960         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
11961         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
11962         Support unsigned results no narrower than unsigned int.  Report
11963         overflow correctly if some arguments are unsigned.
11964         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
11965         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
11966         the right thing with narrow args.
11967         (_GL_INT_OP_CALC1): Remove.  All callers removed.
11968         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
11969         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
11970         * tests/test-intprops.c: Check for bugs and test new behavior.
11972 2019-08-14  Bruno Haible  <bruno@clisp.org>
11974         get_progname_of: New module.
11975         * lib/get_progname_of.h: New file.
11976         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
11977         * lib/getprogname.c (getprogname): Tweak coding style.
11978         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
11979         * modules/get_progname_of: New file.
11981 2019-08-14  Bruno Haible  <bruno@clisp.org>
11983         get_ppid_of: New module.
11984         * lib/get_ppid_of.h: New file.
11985         * lib/get_ppid_of.c: New file.
11986         * modules/get_ppid_of: New file.
11988 2019-08-13  Bruno Haible  <bruno@clisp.org>
11990         libtextstyle-optional tests: Support the NO_COLOR environment variable.
11991         * tests/test-libtextstyle.c (main): Do not emit styling when the
11992         environment variable NO_COLOR is set.
11994 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11996         verify: improve diagnostic quality in recent GCC
11997         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
11998         useful line number containing the top-level caller of the macro.
11999         So, bring back the older way of issuing a diagnostic containing
12000         the top-level call’s arg, so that it is easier to diagnose
12001         ‘verify’ failures with recent GCC.
12002         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
12003         Bring back DIAGNOSTIC arg.  All callers changed.
12004         (verify): Just use _GL_VERIFY.
12006 2019-08-11  Bruno Haible  <bruno@clisp.org>
12008         localcharset: Add more aliases for OS/2.
12009         Based on patch by KO Myung-Hun <komh78@gmail.com> in
12010         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
12011         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
12013 2019-08-10  Eric Blake  <eblake@redhat.com>
12015         configmake: Update advice on usage.
12016         * modules/configmake (Include): No longer necessary to include
12017         last, since configmake.h itself worries about collision avoidance.
12019 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
12021         parse-datetime: fix 'T' military timezone handling
12022         * lib/parse-datetime.y (zone):
12023         follow-up to the previous commit: the 'T' case is handled outside the
12024         conversion table (used as either military timezone UTC-7 or ISO8601
12025         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
12026         timezone letters.
12028 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12030         parse-datetime: fix military timezone letters
12031         Problem and trivial fix reported by Neil Hoggarth in:
12032         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
12033         * lib/parse-datetime.y (military_table):
12034         Do it the right way, not the RFC 822 way.
12036 2019-08-08  Eric Blake  <eblake@redhat.com>
12038         configmake: Avoid namespace pollution issue on mingw.
12039         * modules/configmake (Makefile.am): If the project uses
12040         <winsock2.h>, include that header before defining DATADIR.
12042 2019-07-28  Bruno Haible  <bruno@clisp.org>
12044         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
12045         * tests/test-mbrtowc.c (main): Fix expected value of wc.
12047 2019-07-24  Bruno Haible  <bruno@clisp.org>
12049         pthread-h: Fix definitions of types and macros on mingw.
12050         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
12051         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
12052         not in use.
12053         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
12054         'pthread-once' is not in use.
12055         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
12056         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
12057         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
12058         in use.
12059         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
12060         Define also when module 'pthread-rwlock' is not in use.
12061         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
12062         also when module 'pthread-cond' is not in use.
12063         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
12064         'pthread-tss' is not in use.
12065         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
12066         use.
12068 2019-07-24  Simon Josefsson  <simon@josefsson.org>
12070         crypto/gc: Cope with libgcrypt without SM3.
12071         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
12073 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
12075         backupfile: fix resource leak on memory failure
12076         Problem found by Coverity (CID 1484214).
12077         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
12079 2019-07-22  Bruno Haible  <bruno@clisp.org>
12081         Avoid missing-declarations warning in various tests.
12082         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
12083         test6, test_optional, test7, test8, test9, test10, test11, test12,
12084         test13, test14, test15, test_fun): Declare static.
12085         * tests/test-cnd.c (test_cnd_wait): Likewise.
12086         * tests/test-cond.c (test_cond): Likewise.
12088 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
12090         pthread tests: Avoid missing-declarations warning.
12091         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
12093 2019-07-19  Bruno Haible  <bruno@clisp.org>
12095         parse-datetime: Avoid warnings from bison versions >= 3.3.
12096         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
12097         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
12099 2019-07-19  Bruno Haible  <bruno@clisp.org>
12101         parse-datetime: Require Bison 2.4 or newer.
12102         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
12103         Code taken from gettext's intl.m4.
12104         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
12105         of YACC.
12107 2019-07-19  Bruno Haible  <bruno@clisp.org>
12109         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
12110         * lib/areadlink-with-size.c: Include <string.h>.
12111         * lib/areadlinkat-with-size.c: Likewise.
12112         * lib/xgethostname.c: Likewise.
12113         * lib/xgetdomainname.c: Likewise.
12115 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
12117         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
12118         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
12119         "%pure-parser".  The former is available since Bison 2.3b (2008),
12120         while the latter is marked as obsolete since version 3.4 (May 2019).
12122 2019-07-16  Bruno Haible  <bruno@clisp.org>
12124         update-copyright: Make it work again (regression from 2019-06-15).
12125         Reported by Brian C. Lane <bcl@redhat.com>.
12126         * build-aux/update-copyright: Add back the -0777, -p, -i options.
12128 2019-07-14  Bruno Haible  <bruno@clisp.org>
12130         doc: Update info about <pthread.h>.
12131         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
12132         of 'pthread'.
12134 2019-07-14  Bruno Haible  <bruno@clisp.org>
12136         pthread_sigmask tests: Use new multithread modules.
12137         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
12138         glthread/thread.h.
12139         (main_thread, killer_thread): Change type to pthread_t.
12140         (main): Update accordingly.
12141         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
12142         thread.
12144 2019-07-14  Bruno Haible  <bruno@clisp.org>
12146         pthread-tss: Add tests.
12147         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
12148         tests/test-tss.c.
12149         * modules/pthread-tss-tests: New file.
12151 2019-07-14  Bruno Haible  <bruno@clisp.org>
12153         pthread-cond: Add tests.
12154         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
12155         tests/test-cnd.c.
12156         * modules/pthread-cond-tests: New file.
12158 2019-07-14  Bruno Haible  <bruno@clisp.org>
12160         pthread-rwlock: Add tests.
12161         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
12162         * modules/pthread-rwlock-tests: New file.
12164 2019-07-14  Bruno Haible  <bruno@clisp.org>
12166         pthread-mutex: Add tests.
12167         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
12168         tests/test-mtx.c.
12169         * modules/pthread-mutex-tests: New file.
12171 2019-07-14  Bruno Haible  <bruno@clisp.org>
12173         pthread-once: Add tests.
12174         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
12175         tests/test-call_once.c.
12176         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
12177         tests/test-mtx.c.
12178         * modules/pthread-once-tests: New file.
12180 2019-07-14  Bruno Haible  <bruno@clisp.org>
12182         pthread-thread: Add tests.
12183         * tests/test-pthread-thread.c: New file, based on
12184         tests/test-thread_create.c and tests/test-thrd_create.c.
12185         * modules/pthread-thread-tests: New file.
12187 2019-07-14  Bruno Haible  <bruno@clisp.org>
12189         pthread: Turn into a convenience module.
12190         * lib/pthread.in.h: Remove declarations for extern inline functions.
12191         * lib/pthread.c: Remove file.
12192         * modules/pthread (Files): Remove it.
12193         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
12194         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
12195         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
12196         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
12197         GNULIB_PTHREAD.
12198         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
12200 2019-07-14  Bruno Haible  <bruno@clisp.org>
12202         pthread-spin: New module.
12203         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
12204         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
12205         inline definitions.
12206         * lib/pthread-spin.c: New file.
12207         * m4/pthread-spin.m4: New file.
12208         * modules/pthread-spin: New file.
12209         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
12210         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
12211         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
12212         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
12213         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
12215 2019-07-14  Bruno Haible  <bruno@clisp.org>
12217         pthread-tss: New module.
12218         * lib/pthread-tss.c: New file.
12219         * m4/pthread-tss.m4: New file.
12220         * modules/pthread-tss: New file.
12221         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
12222         * doc/posix-functions/pthread_setspecific.texi: Likewise.
12223         * doc/posix-functions/pthread_getspecific.texi: Likewise.
12224         * doc/posix-functions/pthread_key_delete.texi: Likewise.
12226 2019-07-14  Bruno Haible  <bruno@clisp.org>
12228         pthread-cond: New module.
12229         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
12230         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
12231         * lib/pthread-cond.c: New file.
12232         * m4/pthread-cond.m4: New file.
12233         * modules/pthread-cond: New file.
12234         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
12235         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
12236         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
12237         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
12238         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
12239         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
12240         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
12241         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
12243 2019-07-14  Bruno Haible  <bruno@clisp.org>
12245         pthread-rwlock: New module.
12246         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
12247         * m4/pthread-rwlock.m4: New file.
12248         * modules/pthread-rwlock: New file.
12249         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
12250         and the Android problem.
12251         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
12252         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
12253         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
12254         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
12255         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
12256         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
12257         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
12258         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
12259         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
12260         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
12262 2019-07-14  Bruno Haible  <bruno@clisp.org>
12264         pthread-mutex: New module.
12265         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
12266         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
12267         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
12268         pthread_mutex_unlock): Remove inline definitions.
12269         * lib/pthread-mutex.c: New file.
12270         * m4/pthread-mutex.m4: New file.
12271         * modules/pthread-mutex: New file.
12272         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
12273         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
12274         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
12275         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
12276         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12277         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12278         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
12279         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
12280         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
12281         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
12282         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
12283         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
12285 2019-07-14  Bruno Haible  <bruno@clisp.org>
12287         pthread-once: New module.
12288         * lib/pthread-once.c: New file.
12289         * m4/pthread-once.m4: New file.
12290         * modules/pthread-once: New file.
12291         * doc/posix-functions/pthread_once.texi: Mention the new module.
12293 2019-07-14  Bruno Haible  <bruno@clisp.org>
12295         pthread-thread: New module.
12296         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
12297         inline definitions.
12298         * lib/pthread-thread.c: New file.
12299         * m4/pthread-thread.m4: New file.
12300         * modules/pthread-thread: New file.
12301         * doc/posix-functions/pthread_create.texi: Mention the new module.
12302         * doc/posix-functions/pthread_attr_init.texi: Likewise.
12303         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
12304         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
12305         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
12306         * doc/posix-functions/pthread_self.texi: Likewise.
12307         * doc/posix-functions/pthread_equal.texi: Likewise.
12308         * doc/posix-functions/pthread_detach.texi: Likewise.
12309         * doc/posix-functions/pthread_join.texi: Likewise.
12310         * doc/posix-functions/pthread_exit.texi: Likewise.
12312 2019-07-14  Bruno Haible  <bruno@clisp.org>
12314         pthread-h: Prepare for adding new modules.
12315         * lib/pthread.in.h: Define the types and macros for each of the
12316         facilities separately.
12317         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
12318         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12319         HAVE_PTHREAD_PROCESS_SHARED.
12320         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
12321         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12322         HAVE_PTHREAD_PROCESS_SHARED.
12323         * modules/pthread-h (Makefile.am): Substitute
12324         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
12325         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
12327 2019-07-14  Bruno Haible  <bruno@clisp.org>
12329         pthread-h: Add declarations of essential pthread functions.
12330         * lib/pthread.in.h: Include snippets.
12331         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
12332         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
12333         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
12334         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
12335         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
12336         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
12337         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
12338         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
12339         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
12340         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
12341         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
12342         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
12343         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
12344         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
12345         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
12346         pthread_key_create, pthread_setspecific, pthread_getspecific,
12347         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
12348         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
12349         declarations.
12350         (pthread_mutex_timedlock): Move declaration.
12351         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
12352         declared.
12353         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
12354         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
12355         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
12356         HAVE_* and REPLACE_* variables for the new functions.
12357         * modules/pthread-h (Depends-on): Add snippet/c++defs,
12358         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
12359         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
12360         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
12361         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
12362         variables for the new functions. Split the sed script, to avoid the
12363         limit of 99 commands of HP-UX sed.
12364         * tests/test-pthread-c++.cc: Check the signature of the new functions.
12366 2019-07-14  Bruno Haible  <bruno@clisp.org>
12368         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
12369         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
12370         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
12371         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
12372         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
12373         * modules/pthread-h (Depends-on): Add threadlib.
12374         (Link): Change to $(LIBTHREAD).
12375         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
12376         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
12378 2019-07-14  Bruno Haible  <bruno@clisp.org>
12380         pthread-h: Add C++ tests.
12381         * tests/test-pthread-c++.cc: New file.
12382         * modules/pthread-h-c++-tests: New file.
12384 2019-07-14  Bruno Haible  <bruno@clisp.org>
12386         pthread-h: Add tests.
12387         * tests/test-pthread.c: New file.
12388         * modules/pthread-h-tests: New file.
12390 2019-07-14  Bruno Haible  <bruno@clisp.org>
12392         pthread-h: New module.
12393         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
12394         is 1.
12395         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
12396         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
12397         <pthread.h> pollutes the namespace; instead, prepare for generating a
12398         pthread.h always. Substitute HAVE_PTHREAD_H here.
12399         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
12400         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
12401         * modules/pthread-h: New file, based on modules/pthread.
12402         * modules/pthread: Rely on 'pthread-h'.
12403         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
12404         Update.
12405         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
12406         pthread.
12408 2019-07-14  Bruno Haible  <bruno@clisp.org>
12410         sched_yield: New module.
12411         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
12412         (sched_yield): New declaration.
12413         * lib/sched_yield.c: New file.
12414         * m4/sched_yield.m4: New file.
12415         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
12416         provide a replacement sched.h always. Test whether sched_yield is
12417         declared.
12418         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
12419         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
12420         (Makefile.am): Provide a replacement sched.h always. Substitute
12421         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
12422         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
12423         * modules/sched_yield: New file.
12424         * doc/posix-functions/sched_yield.texi: Mention the new module.
12426 2019-07-14  Bruno Haible  <bruno@clisp.org>
12428         windows-spin: New module.
12429         * lib/windows-spin.h: New file.
12430         * lib/windows-spin.c: New file.
12431         * modules/windows-spin: New file.
12433 2019-07-14  Bruno Haible  <bruno@clisp.org>
12435         windows-timedrwlock: New module.
12436         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
12437         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
12438         windows-cond.c.
12439         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
12440         redefinition conflict with windows-timedrwlock.h.
12441         * modules/windows-timedrwlock: New file.
12443 2019-07-14  Bruno Haible  <bruno@clisp.org>
12445         windows-rwlock: New module.
12446         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
12447         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
12448         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
12449         windows-initguard.h.
12450         (gl_rwlock_t): Define using glwthread_rwlock_t.
12451         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
12452         (glthread_rwlock_init): Define using glwthread_rwlock_init.
12453         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
12454         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
12455         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
12456         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
12457         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
12458         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
12459         glthread_rwlock_destroy_func): Remove declarations.
12460         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
12461         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
12462         gl_waitqueue_notify_all, glthread_rwlock_init_func,
12463         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
12464         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
12465         functions.
12466         * modules/windows-rwlock: New file.
12467         * modules/lock (Depends-on): Add windows-rwlock.
12469 2019-07-14  Bruno Haible  <bruno@clisp.org>
12471         windows-thread: Add support for creating a thread in detached state.
12472         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
12473         (glwthread_thread_create): Add attr argument.
12474         * lib/windows-thread.c (glwthread_thread_create): Likewise.
12475         * lib/glthread/thread.h (glthread_create): Update.
12476         * lib/thrd.c (thrd_create): Update.
12478 2019-07-14  Bruno Haible  <bruno@clisp.org>
12480         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
12481         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
12482         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
12483         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
12484         * lib/windows-mutex.h: Update.
12485         * lib/windows-recmutex.h: Likewise.
12486         * lib/windows-timedmutex.h: Likewise.
12487         * lib/windows-timedrecmutex.h: Likewise.
12488         * lib/windows-cond.h: Likewise.
12489         * lib/glthread/lock.h: Likewise.
12490         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
12491         lib/windows-spinlock.h.
12492         * modules/windows-recmutex (Files): Likewise.
12493         * modules/windows-timedmutex (Files): Likewise.
12494         * modules/windows-timedrecmutex (Files): Likewise.
12495         * modules/windows-cond (Files): Likewise.
12496         * modules/threads-h (Files): Likewise.
12498 2019-07-14  Bruno Haible  <bruno@clisp.org>
12500         doc: Fix info about pthread API in HP-UX.
12501         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
12503 2019-07-14  Bruno Haible  <bruno@clisp.org>
12505         threads-h: Fix generation of threads.h.
12506         * modules/threads-h (Makefile.am): Insert the required header file
12507         snippets.
12509 2019-07-09  Bruno Haible  <bruno@clisp.org>
12511         striconveh test: Fix a compilation failure when iconv is not available.
12512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12513         * tests/test-striconveh.c (main): Move iconv_close invocations inside
12514         HAVE_ICONV.
12516 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
12518         argmatch: adjust columns for help2man.
12519         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
12520         requires column 20 or more, return 20.
12522 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12524         areadlink-with-size: avoid realloc when size==0
12525         * lib/areadlink-with-size.c (areadlink_with_size):
12526         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
12527         Reallocate at the end to the actual size, to avoid memory waste,
12528         as suggested by Bruno Haible.  But when the guessed size is zero -
12529         useful when the size is unknown - do the initial small readlink
12530         into the stack, to avoid that realloc in the usual case.
12532 2019-07-06  Pádraig Brady  <P@draigBrady.com>
12534         areadlink-with-size: guess a buffer size with 0 size
12535         The size is usually taken from st_size, which can be zero,
12536         resulting in inefficient operation.
12537         Instead let zero select an initial memory allocation
12538         of 128 bytes, which most symlinks fit within.
12539         * lib/areadlink-with-size.c (areadlink_with_size):
12540         Start with a 128 byte buffer, for SIZE == 0.
12541         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
12543 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
12545         Replace manually crafted hex regexes with [:xdigit:]
12546         * build-aux/gitlog-to-changelog (parse_amend_file)
12547         (git_dir_option):
12548         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
12549         This patch is backported from Emacs (Bug#36167).
12551 2019-07-06  Bruno Haible  <bruno@clisp.org>
12553         error: Fix documentation.
12554         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
12555         module provides.
12556         * doc/glibc-functions/error_message_count.texi: Likewise.
12557         * doc/glibc-functions/error_one_per_line.texi: Likewise.
12558         * doc/glibc-functions/error_print_progname.texi: Likewise.
12560 2019-07-06  Bruno Haible  <bruno@clisp.org>
12562         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
12563         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
12564         and older is unsupported.
12565         * doc/**/*.texi: Update.
12567 2019-07-06  Bruno Haible  <bruno@clisp.org>
12569         doc: Remove documentation of Linux libc5 as a supported platform.
12570         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
12571         to Linux libc5.
12572         * doc/posix-functions/iswalpha.texi: Likewise.
12573         * doc/posix-functions/iswblank.texi: Likewise.
12574         * doc/posix-functions/iswcntrl.texi: Likewise.
12575         * doc/posix-functions/iswdigit.texi: Likewise.
12576         * doc/posix-functions/iswgraph.texi: Likewise.
12577         * doc/posix-functions/iswlower.texi: Likewise.
12578         * doc/posix-functions/iswprint.texi: Likewise.
12579         * doc/posix-functions/iswpunct.texi: Likewise.
12580         * doc/posix-functions/iswspace.texi: Likewise.
12581         * doc/posix-functions/iswupper.texi: Likewise.
12582         * doc/posix-functions/iswxdigit.texi: Likewise.
12583         * doc/posix-functions/snprintf.texi: Likewise.
12584         * doc/posix-functions/vsnprintf.texi: Likewise.
12586 2019-07-06  Bruno Haible  <bruno@clisp.org>
12588         doc: Remove documentation of Tandem/NSK as a supported platform.
12589         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
12590         Tandem/NSK.
12591         * doc/**/*.texi: Update.
12593 2019-07-06  Bruno Haible  <bruno@clisp.org>
12595         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
12596         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
12597         and older is unsupported.
12598         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
12599         Mac OS X 10.4 and older.
12600         * doc/posix-functions/asinl.texi: Likewise.
12601         * doc/posix-functions/atanl.texi: Likewise.
12602         * doc/posix-functions/cosl.texi: Likewise.
12603         * doc/posix-functions/expl.texi: Likewise.
12604         * doc/posix-functions/frexpl.texi: Likewise.
12605         * doc/posix-functions/gettimeofday.texi: Likewise.
12606         * doc/posix-functions/logl.texi: Likewise.
12607         * doc/posix-functions/mkstemp.texi: Likewise.
12608         * doc/posix-functions/sinl.texi: Likewise.
12609         * doc/posix-functions/sqrtl.texi: Likewise.
12610         * doc/posix-functions/tanl.texi: Likewise.
12611         * doc/posix-functions/wcswidth.texi: Likewise.
12612         * doc/**/*.texi: Update.
12614 2019-07-06  Bruno Haible  <bruno@clisp.org>
12616         doc: Remove documentation of AIX 4 as a supported platform.
12617         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
12618         unsupported.
12619         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
12620         workarounds.
12621         * doc/posix-functions/strnlen.texi: Likewise.
12622         * doc/posix-headers/inttypes.texi: Likewise.
12623         * doc/**/*.texi: Update.
12625 2019-07-06  Bruno Haible  <bruno@clisp.org>
12627         doc: Remove documentation of HP-UX 10 as a supported platform.
12628         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
12629         unsupported.
12630         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
12631         workarounds.
12632         * doc/posix-functions/gmtime_r.texi: Likewise.
12633         * doc/posix-functions/localtime_r.texi: Likewise.
12634         * doc/posix-functions/mkstemp.texi: Likewise.
12635         * doc/**/*.texi: Update.
12637 2019-07-06  Bruno Haible  <bruno@clisp.org>
12639         doc: Remove documentation of Interix 3.5 as a supported platform.
12640         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
12641         unsupported.
12642         * doc/posix-functions/select.texi: Don't mention Interix specific
12643         workarounds.
12644         * doc/posix-headers/signal.texi: Likewise.
12645         * doc/**/*.texi: Update.
12647 2019-07-06  Bruno Haible  <bruno@clisp.org>
12649         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
12650         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
12651         unsupported.
12652         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
12653         workarounds.
12654         * doc/posix-functions/nl_langinfo.texi: Likewise.
12655         * doc/posix-functions/remainder.texi: Likewise.
12656         * doc/posix-functions/towlower.texi: Likewise.
12657         * doc/posix-functions/towupper.texi: Likewise.
12658         * doc/posix-functions/vsnprintf.texi: Likewise.
12659         * doc/posix-functions/wcscat.texi: Likewise.
12660         * doc/posix-functions/wcschr.texi: Likewise.
12661         * doc/posix-functions/wcscmp.texi: Likewise.
12662         * doc/posix-functions/wcscpy.texi: Likewise.
12663         * doc/posix-functions/wcscspn.texi: Likewise.
12664         * doc/posix-functions/wcslen.texi: Likewise.
12665         * doc/posix-functions/wcsncat.texi: Likewise.
12666         * doc/posix-functions/wcsncmp.texi: Likewise.
12667         * doc/posix-functions/wcsncpy.texi: Likewise.
12668         * doc/posix-functions/wcspbrk.texi: Likewise.
12669         * doc/posix-functions/wcsrchr.texi: Likewise.
12670         * doc/posix-functions/wcsspn.texi: Likewise.
12671         * doc/posix-headers/langinfo.texi: Likewise.
12672         * doc/posix-headers/signal.texi: Likewise.
12673         * doc/posix-headers/wchar.texi: Likewise.
12674         * doc/posix-headers/wctype.texi: Likewise.
12675         * doc/**/*.texi: Update.
12677 2019-07-05  Bruno Haible  <bruno@clisp.org>
12679         doc: Remove documentation of OSF/1 as supported platform.
12680         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
12681         unsupported.
12682         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
12683         workarounds.
12684         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
12685         * doc/glibc-functions/ptsname_r.texi: Likewise.
12686         * doc/posix-functions/ceil.texi: Likewise.
12687         * doc/posix-functions/ceilf.texi: Likewise.
12688         * doc/posix-functions/ceill.texi: Likewise.
12689         * doc/posix-functions/fchdir.texi: Likewise.
12690         * doc/posix-functions/floor.texi: Likewise.
12691         * doc/posix-functions/floorf.texi: Likewise.
12692         * doc/posix-functions/fmod.texi: Likewise.
12693         * doc/posix-functions/fmodf.texi: Likewise.
12694         * doc/posix-functions/fmodl.texi: Likewise.
12695         * doc/posix-functions/log.texi: Likewise.
12696         * doc/posix-functions/logf.texi: Likewise.
12697         * doc/posix-functions/logl.texi: Likewise.
12698         * doc/posix-functions/log10.texi: Likewise.
12699         * doc/posix-functions/log10f.texi: Likewise.
12700         * doc/posix-functions/log10l.texi: Likewise.
12701         * doc/posix-functions/log2.texi: Likewise.
12702         * doc/posix-functions/log2f.texi: Likewise.
12703         * doc/posix-functions/log2l.texi: Likewise.
12704         * doc/posix-functions/mbrtowc.texi: Likewise.
12705         * doc/posix-functions/recv.texi: Likewise.
12706         * doc/posix-functions/recvfrom.texi: Likewise.
12707         * doc/posix-functions/remainder.texi: Likewise.
12708         * doc/posix-functions/remainderf.texi: Likewise.
12709         * doc/posix-functions/remainderl.texi: Likewise.
12710         * doc/posix-functions/round.texi: Likewise.
12711         * doc/posix-functions/roundf.texi: Likewise.
12712         * doc/posix-functions/roundl.texi: Likewise.
12713         * doc/posix-functions/send.texi: Likewise.
12714         * doc/posix-functions/sendto.texi: Likewise.
12715         * doc/posix-functions/setenv.texi: Likewise.
12716         * doc/posix-functions/snprintf.texi: Likewise.
12717         * doc/posix-functions/tcgetsid.texi: Likewise.
12718         * doc/posix-functions/trunc.texi: Likewise.
12719         * doc/posix-functions/truncf.texi: Likewise.
12720         * doc/posix-functions/truncl.texi: Likewise.
12721         * doc/posix-functions/ttyname_r.texi: Likewise.
12722         * doc/posix-functions/unsetenv.texi: Likewise.
12723         * doc/posix-functions/wcsrtombs.texi: Likewise.
12724         * doc/posix-headers/sys_select.texi: Likewise.
12725         * doc/posix-headers/wchar.texi: Likewise.
12726         * doc/posix-headers/wctype.texi: Likewise.
12727         * doc/**/*.texi: Update.
12729 2019-07-05  Bruno Haible  <bruno@clisp.org>
12731         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
12732         * doc/**/*.texi: Update.
12734 2019-07-05  Bruno Haible  <bruno@clisp.org>
12736         doc: Remove documentation of Solaris 8 and older as supported platforms.
12737         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
12738         unsupported.
12739         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
12740         workarounds.
12741         * doc/posix-functions/memcmp.texi: Likewise.
12742         * doc/posix-functions/rename.texi: Likewise.
12743         * doc/posix-functions/tzset.texi: Likewise.
12744         * doc/posix-headers/wctype.texi: Likewise.
12745         * doc/**/*.texi: Update.
12747 2019-07-05  Bruno Haible  <bruno@clisp.org>
12749         doc: Remove documentation of Interix 3.5 as a supported platform.
12750         * doc/**/*.texi: Update.
12752 2019-07-05  Bruno Haible  <bruno@clisp.org>
12754         doc: Remove documentation of BeOS as a supported platform.
12755         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
12756         unsupported.
12757         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
12758         * doc/posix-functions/getdelim.texi: Likewise.
12759         * doc/**/*.texi: Update.
12761 2019-07-05  Bruno Haible  <bruno@clisp.org>
12763         thread, lock, cond, tls: Remove support for Pth threads.
12764         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12765         --enable-threads=pth any more.
12766         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
12767         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
12768         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
12769         threads and ISO C11 threads.
12770         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
12771         * lib/glthread/lock.h: Likewise.
12772         * lib/glthread/lock.c: Likewise.
12773         * lib/glthread/cond.h: Likewise.
12774         * lib/glthread/cond.c: Likewise.
12775         * lib/glthread/tls.h: Likewise.
12776         * lib/glthread/tls.c: Likewise.
12777         * lib/glthread/yield.h: Likewise.
12778         * lib/regex_internal.h: Likewise.
12779         * tests/test-thread_create.c: Likewise.
12780         * tests/test-lock.c: Likewise.
12781         * tests/test-cond.c: Likewise.
12782         * tests/test-tls.c: Likewise.
12783         * tests/test-rwlock1.c: Don't include glthread/yield.h.
12784         (main): Sleep without calling gl_thread_yield.
12786 2019-07-05  Bruno Haible  <bruno@clisp.org>
12788         thread, lock, cond, tls: Remove support for old Solaris threads.
12789         Solaris >= 2.5.1 has POSIX threads.
12790         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12791         --enable-threads=solaris any more.
12792         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
12793         * lib/glthread/thread.c: Update comment.
12794         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
12795         * lib/glthread/lock.h: Likewise.
12796         * lib/glthread/lock.c: Likewise.
12797         * lib/glthread/cond.h: Likewise.
12798         * lib/glthread/cond.c: Likewise.
12799         * lib/glthread/tls.h: Likewise.
12800         * lib/glthread/tls.c: Likewise.
12801         * lib/glthread/yield.h: Likewise.
12802         * lib/regex_internal.h: Likewise.
12803         * tests/test-thread_create.c: Likewise.
12804         * tests/test-lock.c: Likewise.
12805         * tests/test-cond.c: Likewise.
12806         * tests/test-tls.c: Likewise.
12808 2019-07-05  Bruno Haible  <bruno@clisp.org>
12810         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
12811         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
12812         needed size is equal to the allocated size.
12813         * lib/getcwd.c (__getcwd): Likewise.
12815 2019-07-05  Bruno Haible  <bruno@clisp.org>
12817         xgetdomainname: Don't return an excessive memory allocation.
12818         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
12819         before returning it.
12821 2019-07-05  Bruno Haible  <bruno@clisp.org>
12823         xgethostname: Don't return an excessive memory allocation.
12824         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
12825         returning it.
12827 2019-07-05  Bruno Haible  <bruno@clisp.org>
12829         areadlinkat-with-size: Don't return an excessive memory allocation.
12830         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
12831         before returning it.
12833 2019-07-05  Bruno Haible  <bruno@clisp.org>
12835         areadlink-with-size: Don't return an excessive memory allocation.
12836         Reported by Andreas Dilger <adilger@whamcloud.com>.
12837         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
12838         before returning it.
12840 2019-07-03  Bruno Haible  <bruno@clisp.org>
12842         renameatu: Fix test failure on MSVC.
12843         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
12844         empty string.
12846 2019-07-03  Bruno Haible  <bruno@clisp.org>
12848         mbrtowc: Fix invalid use of mbtowc() on MSVC.
12849         * lib/mbrtowc.c: Include glthread/lock.h.
12850         (mbtowc_lock): New variable.
12851         (mbrtowc): Treat UTF-8 encoding without locking. For the other
12852         encodings, explicitly reset the internal state of mbtowc, and protect
12853         this through a lock.
12854         * modules/mbrtowc (Depends-on): Add lock.
12856 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
12858         argmatch: don't define _ in the header.
12859         Reported by Jim Meyering.
12860         * lib/argmatch.h (N_, _): Don't define.
12861         Use gettext instead.
12862         * lib/argmatch.h (_): Define.
12863         * tests/test-argmatch.c (N_): Define.
12865 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12867         verify: document ‘assume’ better
12868         * lib/verify.h: Reword doc (Bug#36370).
12870 2019-07-02  Bruno Haible  <bruno@clisp.org>
12872         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
12873         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
12874         "CPutf8".
12875         * lib/nl_langinfo.c (ctype_codeset): Likewise.
12877 2019-07-02  Bruno Haible  <bruno@clisp.org>
12879         getcwd: Fix crash when invoked with size = 0 on MSVC.
12880         * lib/getcwd.c: Include msvc-inval.h.
12881         (getcwd_nothrow): New function/macro.
12882         (getcwd_system): New macro.
12883         (__getcwd): Use it instead of getcwd.
12884         * modules/getcwd (Depends-on): Add msvc-inval.
12885         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
12887 2019-07-02  Bruno Haible  <bruno@clisp.org>
12889         nonblocking-pipe tests: Fix test failure on MSVC.
12890         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
12891         native Windows.
12893 2019-07-02  Bruno Haible  <bruno@clisp.org>
12895         usleep: Implement with millisecond resolution on native Windows.
12896         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
12897         * doc/pastposix-functions/usleep.texi: Update accordingly.
12899 2019-07-02  Bruno Haible  <bruno@clisp.org>
12901         lstat tests: Fix test failure on MSVC.
12902         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
12903         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12905 2019-07-02  Bruno Haible  <bruno@clisp.org>
12907         stat tests: Fix test failure on MSVC.
12908         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
12909         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12911 2019-07-02  Bruno Haible  <bruno@clisp.org>
12913         getaddrinfo tests: Fix test failure on MSVC.
12914         * tests/test-getaddrinfo.c: Include sockets.h.
12915         (main): Invoke gl_sockets_startup.
12916         * modules/getaddrinfo-tests (Depends-on): Add sockets.
12918 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
12920         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
12921         * lib/poll.c: Call Windows native select() with Windows native timeval.
12923 2019-06-30  Bruno Haible  <bruno@clisp.org>
12925         argmatch: Fix compilation errors.
12926         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
12927         * tests/test-argmatch.c (main): Update after last-minute function names
12928         change.
12930 2019-06-30  Bruno Haible  <bruno@clisp.org>
12932         Include <stdlib.h> when needed.
12933         * lib/cnd.c: Include <stdlib.h>, needed for abort().
12934         * lib/fcntl.c: Likewise.
12935         * lib/mbscasestr.c: Likewise.
12936         * lib/mbssep.c: Likewise.
12937         * lib/mbsstr.c: Likewise.
12938         * lib/openat.c: Include <stdlib.h>, needed for free().
12939         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
12940         abort().
12942 2019-06-30  Bruno Haible  <bruno@clisp.org>
12944         Include <stdlib.h> when needed.
12945         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
12946         * lib/faccessat.c: Likewise.
12947         * lib/fchmodat.c: Likewise.
12948         * lib/fchownat.c: Likewise.
12949         * lib/fstatat.c: Likewise.
12950         * lib/mkfifoat.c: Likewise.
12951         * lib/mknodat.c: Likewise.
12952         * lib/readlinkat.c: Likewise.
12953         * lib/symlinkat.c: Likewise.
12954         * lib/utimensat.c: Likewise.
12955         * lib/mkdirat.c: Likewise. Include also the specification header.
12957 2019-06-30  Bruno Haible  <bruno@clisp.org>
12959         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
12960         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
12961         from gl_PREREQ_SYS_H_SOCKET.
12962         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
12963         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
12964         gl_PREREQ_SYS_H_WS2TCPIP.
12965         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
12966         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
12967         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
12969 2019-06-30  Bruno Haible  <bruno@clisp.org>
12971         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
12972         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
12973         REPLACE_INET_NTOP to 1 always.
12974         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
12975         REPLACE_INET_PTON to 1 always.
12977 2019-06-30  Bruno Haible  <bruno@clisp.org>
12979         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
12980         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
12981         not REPLACE_INET_NTOP.
12983 2019-06-30  Bruno Haible  <bruno@clisp.org>
12985         poll: Add comment.
12986         * lib/poll.c: Add comment about WSAPoll.
12988 2019-06-30  Bruno Haible  <bruno@clisp.org>
12990         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
12991         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
12992         * lib/poll.in.h: Include <winsock2.h>.
12993         (POLL*, pollfd): Override on native Windows.
12994         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12995         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
12996         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12998 2019-06-28  Bruno Haible  <bruno@clisp.org>
13000         accept4: Fix compilation error on OpenIndiana.
13001         Reported by Michal Nowak <mnowak@startmail.com>
13002         via Mark H Weaver <mhw@netris.org>.
13003         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
13004         whether it exists as a function.
13006 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13008         strverscmp: sync from glibc
13009         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
13010         comments, include libc-config.h, define __strverscmp to be
13011         strverscmp, and don’t assume types line uint8_t and int8_t that
13012         that C99 doesn’t guarantee.
13013         [!_LIBC]: Include libc-config.h; define __strverscmp.
13014         Include stdint.h.
13015         (__strverscmp): Assume C99.  Use uint_least8_t
13016         and int_least8_t instead of unsigned char and signed char.
13017         * modules/strverscmp (Depends-on): Add libc-config, stdint.
13019 2019-06-25  Bruno Haible  <bruno@clisp.org>
13021         tss tests: Add tests for destructors and races.
13022         * tests/test-tss.c (worker_thread): Fix typo in debug message.
13023         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
13024         functions.
13025         (main): Invoke them.
13026         * modules/tls-tests (Depends-on): Add mtx.
13028 2019-06-25  Bruno Haible  <bruno@clisp.org>
13030         tls tests: Add tests for destructors and races.
13031         * tests/test-tls.c: Include glthread/lock.h.
13032         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
13033         functions.
13034         (main): Invoke them.
13035         * modules/tls-tests (Depends-on): Add lock.
13037 2019-06-25  Bruno Haible  <bruno@clisp.org>
13039         windows-tls: Implement TLS key destructors for native Windows.
13040         * lib/windows-tls.h (glwthread_tls_process_destructors): New
13041         declaration.
13042         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
13043         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
13044         (dtor_table_init_once, dtor_table_lock: New variables.
13045         (struct dtor): New type.
13046         (dtor_table, dtors_count, dtors_used, dtors_allocated,
13047         dtor_processing_threads): New variables.
13048         (dtor_table_initialize, dtor_table_ensure_initialized,
13049         dtor_table_shrink_used, glwthread_tls_process_destructors): New
13050         functions.
13051         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
13052         handle non-NULL destructors.
13053         * modules/windows-tls (Depends-on): Add windows-once.
13054         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
13055         Use the functions declared in windows-tls.h.
13056         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
13057         GLWTHREAD_DESTRUCTOR_ITERATIONS.
13058         * lib/windows-thread.c: Include windows-tls.h.
13059         (wrapper_func, glwthread_thread_exit): Invoke
13060         glwthread_tls_process_destructors.
13061         * modules/windows-thread (Depends-on): Add windows-tls.
13063 2019-06-25  Bruno Haible  <bruno@clisp.org>
13065         threadlib: Avoid autoconf warning "was expanded before it was required".
13066         * modules/threadlib (configure.ac): Require gl_THREADLIB.
13068 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
13070         argmatch: remove duplicate const qualifier
13071         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
13073 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13075         unistd: stddef.h and sys/types.h namespace cleanup
13076         * lib/unistd.in.h [__GLIBC__]:
13077         Do not include stddef.h or sys/types.h.
13078         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
13079         supposed to declare off_t and ssize_t.  Problem found when looking
13080         at why @GNULIB_PWRITE@ was different from the newly-added
13081         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
13083 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13085         maintainer-makefile: restore portability to non-GNU awks
13086         Reported by Tim Rühsen.
13087         * top/maint.mk (AWK): New variable.  Use it.
13088         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
13090 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13092         Document setvbuf _IOLBF problem
13093         * doc/posix-functions/setvbuf.texi (setvbuf):
13094         Document MS-Windows portability problem with _IOLBF.
13096         Document lseek SEEK_DATA/SEEK_HOLE
13097         * doc/posix-functions/lseek.texi (lseek):
13098         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
13100 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13102         argmatch: put all the docs member last.
13103         Reported by Bruno Haible.
13104         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
13105         member before the docs done.
13106         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
13108 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
13110         argmatch: add support to generate the usage message.
13111         * lib/argmatch.c: Move some #includes and gettext support to...
13112         * lib/argmatch.h: here.
13113         (ARGMATCH_DEFINE_GROUP): New macro.
13114         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
13115         (argmatch_backup_group): New.
13116         (CHECK): New.
13117         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
13118         argmatch_backup_argument and argmatch_backup_usage.
13119         * modules/argmatch: We depend on c99.
13120         * doc/argmatch.texi (Recognizing Option Arguments): New.
13121         * doc/gnulib.texi: Use it.
13123 2019-06-21  Bruno Haible  <bruno@clisp.org>
13125         thrd: Add comment.
13126         * lib/thrd.c (pthread_main_func): Add comment.
13128 2019-06-21  Bruno Haible  <bruno@clisp.org>
13130         threads-h: Define 'thread_local' if and only if it actually works.
13131         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
13132         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
13133         Oracle Solaris Studio C. Compile a simple program, to see whether
13134         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
13135         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
13136         * lib/threads.in.h (thread_local): Undefine if it does not work.
13137         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
13138         (Link): Mention LIBTHREADLOCAL.
13139         * tests/test-threads.c: Don't check that thread_local is defined.
13140         * tests/test-thread_local.c: New file.
13141         * modules/threads-h-tests (Files): Add it and macros.h.
13142         (Depends-on): Add thrd and stdint.
13143         (configure.ac): Test whether 'alarm' is declared.
13144         (Makefile.am): Arrange to build and link test-thread_local.
13145         * doc/posix-headers/threads.texi: Mention the platforms that don't
13146         support 'thread_local'.
13148 2019-06-20  Bruno Haible  <bruno@clisp.org>
13150         threads-h: Simplify link dependencies.
13151         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
13152         Don't set LTLIBSTDTHREAD.
13153         * modules/thrd (Link): Simplify accordingly.
13154         * modules/mtx (Link): Likewise.
13155         * modules/cnd (Link): Likewise.
13156         * modules/tss (Link): Likewise.
13157         * modules/threads (Link): Likewise.
13159 2019-06-20  Bruno Haible  <bruno@clisp.org>
13161         threads-h: Fix link error on FreeBSD 11.
13162         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
13163         also with -lpthread.
13165 2019-06-20  Bruno Haible  <bruno@clisp.org>
13167         threadlib: Fix typo (regression from today).
13168         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
13170 2019-06-20  Bruno Haible  <bruno@clisp.org>
13172         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
13173         * lib/windows-thread.c: Include <errno.h>.
13174         * lib/windows-tls.c: Likewise.
13176 2019-06-20  Bruno Haible  <bruno@clisp.org>
13178         tss tests: Small improvement.
13179         * tests/test-tss.c (test_tss): Pass a different id to each thread.
13181 2019-06-20  Bruno Haible  <bruno@clisp.org>
13183         threads: New module.
13184         * modules/threads: New file.
13186 2019-06-20  Bruno Haible  <bruno@clisp.org>
13188         tss: Add tests.
13189         * tests/test-tss.c: New file, based on tests/test-tls.c.
13190         * modules/tss-tests: New file.
13192 2019-06-20  Bruno Haible  <bruno@clisp.org>
13194         cnd: Add tests.
13195         * tests/test-cnd.c: New file, based on tests/test-cond.c.
13196         * modules/cnd-tests: New file.
13198 2019-06-20  Bruno Haible  <bruno@clisp.org>
13200         mtx: Add tests.
13201         * tests/test-mtx.c: New file, based on tests/test-lock.c.
13202         * tests/test-call_once.c: New file, based on tests/test-once.c.
13203         * modules/mtx-tests: New file.
13205 2019-06-20  Bruno Haible  <bruno@clisp.org>
13207         thrd: Add tests.
13208         * tests/test-thrd_create.c: New file, based on
13209         tests/test-thread_create.c.
13210         * tests/test-thrd_current.c: New file, based on
13211         tests/test-thread_self.c.
13212         * modules/thrd-tests: New file.
13214 2019-06-20  Bruno Haible  <bruno@clisp.org>
13216         tss: New module.
13217         * lib/tss.c: New file.
13218         * modules/tss: New file.
13219         * doc/posix-functions/tss_create.texi: Mention the new module.
13220         * doc/posix-functions/tss_set.texi: Likewise.
13221         * doc/posix-functions/tss_get.texi: Likewise.
13222         * doc/posix-functions/tss_delete.texi: Likewise.
13224 2019-06-20  Bruno Haible  <bruno@clisp.org>
13226         cnd: New module.
13227         * lib/cnd.c: New file.
13228         * modules/cnd: New file.
13229         * doc/posix-functions/cnd_init.texi: Mention the new module.
13230         * doc/posix-functions/cnd_wait.texi: Likewise.
13231         * doc/posix-functions/cnd_timedwait.texi: Likewise.
13232         * doc/posix-functions/cnd_signal.texi: Likewise.
13233         * doc/posix-functions/cnd_broadcast.texi: Likewise.
13234         * doc/posix-functions/cnd_destroy.texi: Likewise.
13236 2019-06-20  Bruno Haible  <bruno@clisp.org>
13238         mtx: New module.
13239         * lib/mtx.c: New file.
13240         * modules/mtx: New file.
13241         * doc/posix-functions/call_once.texi: Mention the new module.
13242         * doc/posix-functions/mtx_init.texi: Likewise.
13243         * doc/posix-functions/mtx_lock.texi: Likewise.
13244         * doc/posix-functions/mtx_trylock.texi: Likewise.
13245         * doc/posix-functions/mtx_timedlock.texi: Likewise.
13246         * doc/posix-functions/mtx_unlock.texi: Likewise.
13247         * doc/posix-functions/mtx_destroy.texi: Likewise.
13249 2019-06-20  Bruno Haible  <bruno@clisp.org>
13251         thrd: New module.
13252         * lib/thrd.c: New file.
13253         * m4/thrd.m4: New file.
13254         * modules/thrd: New file.
13255         * doc/posix-functions/thrd_current.texi: Mention the new module.
13256         * doc/posix-functions/thrd_detach.texi: Likewise.
13257         * doc/posix-functions/thrd_equal.texi: Likewise.
13258         * doc/posix-functions/thrd_exit.texi: Likewise.
13259         * doc/posix-functions/thrd_sleep.texi: Likewise.
13260         * doc/posix-functions/thrd_yield.texi: Likewise.
13261         * doc/posix-functions/thrd_create.texi: Mention the new module and the
13262         AIX bug.
13263         * doc/posix-functions/thrd_join.texi: Mention the new module and the
13264         AIX and Solaris bugs.
13266 2019-06-20  Bruno Haible  <bruno@clisp.org>
13268         threads-h: Add tests.
13269         * tests/test-threads.c: New file.
13270         * modules/threads-h-tests: New file.
13271         * tests/test-threads-c++.cc: New file.
13272         * modules/threads-h-c++-tests: New file.
13274 2019-06-20  Bruno Haible  <bruno@clisp.org>
13276         threads-h: New module.
13277         * lib/threads.in.h: New file.
13278         * m4/threads.m4: New file.
13279         * m4/yield.m4 (gl_YIELD): Update comment.
13280         * modules/threads-h: New file.
13281         * modules/yields (configure.ac): Use AC_REQUIRE.
13282         * doc/posix-headers/threads.texi: Mention the new module and the AIX
13283         bugs.
13285 2019-06-20  Bruno Haible  <bruno@clisp.org>
13287         windows-thread: New module.
13288         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
13289         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
13290         * lib/glthread/thread.h: Include windows-thread.h.
13291         (gl_thread_t): Define using glwthread_thread_t.
13292         (glthread_create): Define using glwthread_thread_create.
13293         (glthread_join): Define using glwthread_thread_join.
13294         (gl_thread_self): Define using glwthread_thread_self.
13295         (gl_thread_exit): Define using glwthread_thread_exit.
13296         (glthread_create_func, glthread_join_func, gl_thread_self_func,
13297         gl_thread_exit_func): Remove declarations.
13298         * lib/glthread/thread.c (self_key): Remove variable.
13299         (do_init_self_key, init_self_key): Remove functions.
13300         (struct gl_thread_struct): Remove type.
13301         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
13302         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
13303         functions.
13304         * modules/windows-thread: New file.
13305         * modules/thread (Depends-on): Add windows-thread.
13307 2019-06-20  Bruno Haible  <bruno@clisp.org>
13309         windows-tls: New module.
13310         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
13311         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
13312         * lib/glthread/tls.h: Include windows-tls.h.
13313         (gl_tls_key_t): Define using glwthread_tls_key_t.
13314         * modules/windows-tls: New file.
13315         * modules/tls (Depends-on): Add windows-tls.
13317 2019-06-20  Bruno Haible  <bruno@clisp.org>
13319         windows-cond: New module.
13320         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
13321         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
13322         * lib/glthread/cond.h: Include windows-cond.h.
13323         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
13324         (gl_cond_t): Define using glwthread_cond_t.
13325         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
13326         (glthread_cond_init): Define using glwthread_cond_init.
13327         (glthread_cond_wait): Define using glwthread_cond_wait.
13328         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
13329         (glthread_cond_signal): Define using glwthread_cond_signal.
13330         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
13331         (glthread_cond_destroy): Define using glwthread_cond_destroy.
13332         (glthread_cond_init_func, glthread_cond_wait_func,
13333         glthread_cond_timedwait_func, glthread_cond_signal_func,
13334         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13335         declarations.
13336         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
13337         types.
13338         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
13339         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
13340         glthread_cond_init_func, glthread_cond_wait_func,
13341         glthread_cond_timedwait_func, glthread_cond_signal_func,
13342         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13343         functions.
13344         * modules/windows-cond: New file.
13345         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
13347 2019-06-20  Bruno Haible  <bruno@clisp.org>
13349         windows-timedrecmutex: New module.
13350         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
13351         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
13352         * modules/windows-timedrecmutex: New file.
13354 2019-06-20  Bruno Haible  <bruno@clisp.org>
13356         windows-timedmutex: New module.
13357         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
13358         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
13359         * modules/windows-timedmutex: New file.
13361 2019-06-20  Bruno Haible  <bruno@clisp.org>
13363         windows-recmutex: New module.
13364         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
13365         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
13366         * lib/glthread/lock.h: Include windows-recmutex.h.
13367         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
13368         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
13369         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
13370         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
13371         (glthread_recursive_lock_unlock): Define using
13372         glwthread_recmutex_unlock.
13373         (glthread_recursive_lock_destroy): Define using
13374         glwthread_recmutex_destroy.
13375         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
13376         glthread_recursive_lock_unlock_func,
13377         glthread_recursive_lock_destroy_func): Remove declarations.
13378         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
13379         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
13380         glthread_recursive_lock_destroy_func): Remove functions.
13381         * modules/windows-recmutex: New file.
13382         * modules/lock (Depends-on): Add windows-recmutex.
13384 2019-06-20  Bruno Haible  <bruno@clisp.org>
13386         windows-mutex: New module.
13387         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
13388         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
13389         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
13390         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
13391         (gl_spinlock_t): Remove type.
13392         (gl_lock_t): Define using glwthread_mutex_t.
13393         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
13394         (glthread_lock_init): Define using glwthread_mutex_init.
13395         (glthread_lock_lock): Define using glwthread_mutex_lock.
13396         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
13397         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
13398         (glthread_lock_init_func, glthread_lock_lock_func,
13399         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13400         declarations.
13401         Use glwthread_spinlock_t instead of gl_spinlock_t.
13402         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
13403         GLWTHREAD_SPINLOCK_INIT.
13404         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
13405         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13406         functions.
13407         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
13408         gl_spinlock_t.
13409         * modules/windows-mutex: New file.
13410         * modules/lock (Depends-on): Add windows-mutex.
13412 2019-06-20  Bruno Haible  <bruno@clisp.org>
13414         windows-once: New module.
13415         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
13416         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
13417         * lib/glthread/lock.h: Include windows-once.h.
13418         (gl_once_t): Define using glwthread_once_t.
13419         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
13420         (glthread_once): Define using glwthread_once.
13421         (glthread_once_func): Remove declaration.
13422         * lib/glthread/lock.c (glthread_once_func): Remove function.
13423         * modules/windows-once: New file.
13424         * modules/lock (Depends-on): Add windows-once.
13426 2019-06-20  Bruno Haible  <bruno@clisp.org>
13428         lock, cond: Avoid possible counter wraparound on Windows.
13429         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
13430         field of the guard unchanged if it was already positive.
13431         (glthread_rwlock_rdlock_func): Likewise.
13432         (glthread_rwlock_wrlock_func): Likewise.
13433         (glthread_recursive_lock_lock_func): Likewise.
13434         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
13435         (glthread_cond_timedwait_func): Likewise.
13437 2019-06-20  Bruno Haible  <bruno@clisp.org>
13439         cond: Make glthread_cond_timedwait more reliable on Windows.
13440         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
13441         condition variable before looking at the current time.
13443 2019-06-20  Bruno Haible  <bruno@clisp.org>
13445         pthread_mutex_timedlock: New module.
13446         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
13447         new declaration.
13448         * lib/pthread_mutex_timedlock.c: New file.
13449         * m4/pthread_mutex_timedlock.m4: New file.
13450         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
13451         whether pthread_mutex_timedlock is declared.
13452         (gl_PTHREAD_MODULE_INDICATOR): New macro.
13453         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13454         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13455         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
13456         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13457         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13458         * modules/pthread_mutex_timedlock: New file.
13459         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
13460         module.
13462 2019-06-20  Bruno Haible  <bruno@clisp.org>
13464         thread, lock, cond, tls: Recognize C11 multithreaded applications.
13465         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
13466         * lib/glthread/thread.h (c11_threads_in_use): New macro.
13467         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13468         * lib/glthread/lock.h (c11_threads_in_use): New macro.
13469         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13470         * lib/glthread/cond.h (c11_threads_in_use): New macro.
13471         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13472         * lib/glthread/tls.h (c11_threads_in_use): New macro.
13473         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13475 2019-06-20  Bruno Haible  <bruno@clisp.org>
13477         tls tests: Small improvements.
13478         * tests/test-tls.c: Include <stdint.h>.
13479         (worker_thread): Avoid gcc warning on 64-bit mingw.
13480         (test_tls): Pass a different id to each thread.
13481         * modules/tls-tests (Depends-on): Add stdint.
13483 2019-06-20  Bruno Haible  <bruno@clisp.org>
13485         cond tests: Simplify.
13486         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
13488 2019-06-20  Bruno Haible  <bruno@clisp.org>
13490         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
13491         * tests/test-lock.c (test_once): Don't reference fire_signal if
13492         !ENABLE_LOCKING.
13494 2019-06-19  Bruno Haible  <bruno@clisp.org>
13496         nanosleep: Relicense under LGPLv2+.
13497         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
13498         * modules/nanosleep (License): Change to LGPLv2+.
13500 2019-06-19  Bruno Haible  <bruno@clisp.org>
13502         Reorder pieces of header in perl scripts.
13503         The desired order is
13504         - Prologue part 1 (2 lines with #!)
13505         - Program short description
13506         - Copyright and license notice
13507         - Written-by notice
13508         - Program short description (optional)
13509         - Program long description (optional)
13510         - Prologue part 2
13511         - Time stamp
13512         - Code
13513         Reported by Paul Eggert.
13514         * build-aux/announce-gen: Reorder header.
13515         * build-aux/gitlog-to-changelog: Likewise.
13516         * build-aux/useless-if-before-free: Likewise.
13517         * build-aux/prefix-gnulib-mk: Add copyright notice and short
13518         description.
13519         * build-aux/update-copyright: Likewise. Add short description. Bump
13520         time-stamp-line-limit to 200.
13522 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13524         verify-tests: work around xlc bug
13525         Problem reported by Bruno Haible in:
13526         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
13527         * tests/test-verify.c (item): Move the arithmetic inside the
13528         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
13530 2019-06-16  Bruno Haible  <bruno@clisp.org>
13532         Restore Emacs time-stamp hook applicability.
13533         Reported by Darshit Shah <darnir@gnu.org>.
13534         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
13535         * build-aux/announce-gen: Likewise.
13536         * build-aux/gitlog-to-changelog: Likewise.
13537         * build-aux/prefix-gnulib-mk: Likewise.
13538         * build-aux/update-copyright: Likewise.
13540 2019-06-15  Bruno Haible  <bruno@clisp.org>
13542         Fix scripts to have valid executable format on Alpine Linux.
13543         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
13544         Idea by Paul Eggert.
13545         * build-aux/useless-if-before-free: Use a prologue that starts with
13546         '#!/bin/sh'.
13547         * build-aux/announce-gen: Likewise.
13548         * build-aux/gitlog-to-changelog: Likewise.
13549         * build-aux/prefix-gnulib-mk: Likewise.
13550         * build-aux/update-copyright: Likewise.
13551         * tests/test-update-copyright.sh: Update test program accordingly.
13553 2019-06-10  Bruno Haible  <bruno@clisp.org>
13555         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
13556         Reported by Nikita Ermakov <arei@altlinux.org> in
13557         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
13558         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
13559         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
13561 2019-06-10  Bruno Haible  <bruno@clisp.org>
13563         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
13564         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13565         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
13566         a copy of the path argument.
13567         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13568         it.
13570 2019-06-10  Bruno Haible  <bruno@clisp.org>
13572         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
13573         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
13574         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13575         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
13576         a copy of the path argument.
13577         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13578         it.
13580 2019-06-10  Bruno Haible  <bruno@clisp.org>
13582         posix_spawn_file_actions_addfchdir: Add tests.
13583         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
13584         * tests/test-posix_spawn5.c: New file.
13585         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
13587 2019-06-10  Bruno Haible  <bruno@clisp.org>
13589         posix_spawn_file_actions_addfchdir: New module.
13590         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
13591         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
13592         union member 'fchdir_action'.
13593         * lib/spawn_faction_addfchdir.c: New file.
13594         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
13595         * m4/posix_spawn_faction_addfchdir.m4: New file.
13596         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13597         'posix_spawn_file_actions_addfchdir' is present and whether
13598         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
13599         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13600         posix_spawn_file_actions_addfchdir is declared.
13601         (gl_SPAWN_H_DEFAULTS): Initialize
13602         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13603         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13604         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13605         * modules/spawn (Makefile.am): Substitute
13606         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13607         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13608         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13609         * modules/posix_spawn_file_actions_addfchdir: New file.
13610         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
13611         signature.
13612         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13613         * doc/posix-functions/posix_spawnp.texi: Likewise.
13614         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
13615         Likewise.
13617 2019-06-10  Bruno Haible  <bruno@clisp.org>
13619         doc: Document existence of posix_spawn_file_actions_addchdir module.
13620         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
13621         the posix_spawn_file_actions_addchdir module.
13623 2019-06-10  Bruno Haible  <bruno@clisp.org>
13625         posix_spawn-internal: Fix module description.
13626         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
13627         from here...
13628         * modules/posix_spawnp (configure.ac): ... and here...
13629         * modules/posix_spawn-internal (configure.ac): ... to here.
13631 2019-06-10  Bruno Haible  <bruno@clisp.org>
13633         doc: Update and improve documentation of glibc functions.
13634         This is a series of commits that
13635         - updates the documentation to the state of glibc 2.29,
13636         - adds references to Linux man pages and glibc documentation,
13637         - marks Linux specific functions as such.
13638         These are the commits:
13639         doc: Update after removal of crypt functions from glibc 2.28.
13640         doc: Remove mention of function vm86 (does not exist on x86_64).
13641         doc: Remove mention of functions that are gone from glibc.
13642         doc: Mention that glibc no longer provides h_errno.
13643         doc: Mention the availability of specific functions in glibc versions.
13644         doc: Mention eaccess.
13645         doc: Add references to Linux man pages.
13646         doc: Add references to glibc documentation.
13647         doc: Mention inotify_* functions.
13648         doc: Mention ppoll.
13649         doc: Mention sched_getcpu.
13650         doc: Mention sync_file_range.
13651         doc: Mention epoll_pwait.
13652         doc: Mention eventfd, eventfd_read, eventfd_write.
13653         doc: Mention signalfd.
13654         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
13655         doc: Mention epoll_create1.
13656         doc: Mention getauxval.
13657         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
13658         doc: Mention nextdown, nextup.
13659         doc: Mention more ISO TS 18661-1 <math.h> functions.
13660         doc: Mention ISO TS 18661-1 <fenv.h> functions.
13661         doc: Mention getrandom, getentropy.
13662         doc: Mention strfromf, strfromd, strfroml.
13663         doc: Mention preadv2, pwritev2.
13664         doc: Mention copy_file_range.
13665         doc: Mention memfd_create.
13666         doc: Mention mlock2.
13667         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
13668         doc: Mention more ISO TS 18661-1 <math.h> functions.
13669         doc: Mention renameat2.
13670         doc: Mention statx.
13671         doc: Mention the ISO C11 multithreading header and functions.
13672         doc: Mention getcpu.
13673         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
13674         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
13675         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
13676         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
13677         doc: Some glibc functions also exist on Solaris 11.
13678         doc: Some glibc functions also exist on Solaris 11.4.
13679         doc: Some glibc functions also exist on FreeBSD.
13680         doc: Some glibc functions also exist on BeOS.
13681         doc: Some glibc functions also exist on Haiku.
13682         doc: Mark functions which exist only on Linux.
13683         doc: Mark functions which exist only on Linux and illumos.
13685 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13687         copy-file: fix typo
13688         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
13690         copy-file-range: simplify into a stub
13691         Based on a comment by Florian Weimer in:
13692         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
13693         It turns out that Emacs (which will use this module) won’t need an
13694         emulation and I suspect other programs won’t either, because these
13695         programs will need to fall back on read+write anyway.  Perhaps I
13696         am wrong and other programs will be able to use an emulation; if
13697         so, this patch can be reverted.
13698         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
13699         Just call it copy_file_range.
13700         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
13701         Check via AC_LINK_IFELSE.
13702         * modules/copy-file-range (Depends-on): Remove modules no longer used.
13704 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13706         copy-file: prefer copy_file_range
13707         * lib/copy-file.c: Do not include xalloc.h.
13708         (qcopy_file_preserving): Allocate a buffer only if
13709         copy_file_range does not suffice.  If the allocation fails
13710         don't give up; just use a small stack-based buffer.
13711         Prefer copy_file_range if it works.
13712         * modules/copy-file (Depends-on): Add copy-file-range.
13713         Remove xalloc.
13715         copy-file-range: new module
13716         * MODULES.html.sh: Add copy-file-range.
13717         * lib/copy-file-range.c, m4/copy-file-range.m4:
13718         * modules/copy-file-range: New files.
13719         * lib/unistd.in.h (copy_file_range): Declare.
13720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
13721         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
13722         * modules/unistd (unistd.h): Substitute them.
13724 2019-05-28  Bruno Haible  <bruno@clisp.org>
13726         binary-io: Attempted use of O_BINARY on consoles no longer fails.
13727         Reported by KO Myung-Hun <komh78@gmail.com> in
13728         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
13729         * lib/binary-io.h (__gl_setmode_check): Remove function.
13730         (set_binary_mode): Declare as notinline on DJGPP and EMX.
13731         * lib/binary-io.c (__gl_setmode_check): Remove function.
13732         (set_binary_mode): Define here on DJGPP and EMX. Inline
13733         __gl_setmode_check. In case of a tty, don't return an error code.
13735 2019-05-28  James Youngman  <jay@gnu.org>
13737         dirent-safer: Make opendir_safer usable from C++.
13738         * lib/dirent-safer.h: use extern "C".
13740 2019-05-28  James Youngman  <jay@gnu.org>
13742         canonicalize: Make canonicalize_filename_mode usable from C++.
13743         * lib/canonicalize.h: use extern "C".
13745 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
13747         prefix-gnulib-mk: Fix CPPFLAGS migration.
13748         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
13749         _a part of the library name.
13751 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13753         flexmember: update comments again
13754         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
13756         flexmember: update comment
13757         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
13759 2019-05-20  Bruno Haible  <bruno@clisp.org>
13761         setlocale: Improve fallback on macOS.
13762         * lib/setlocale.c (search): Optimize away a redundant strcmp()
13763         invocation.
13764         (locales_with_principal_territory): New array.
13765         (langcmp, get_main_locale_with_same_language): New functions.
13766         (locales_with_principal_language): New array.
13767         (terrcmp, get_main_locale_with_same_territory): New functions.
13768         (rpl_setlocale): When setlocale_single failed, try again with a locale
13769         that is more likely to exist. Don't warn if the environment variable
13770         SETLOCALE_VERBOSE is not set.
13772 2019-05-19  Bruno Haible  <bruno@clisp.org>
13774         localename: Fix default on macOS.
13775         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
13776         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
13777         (gl_locale_name_environ, gl_locale_name_default): Remove code for
13778         HAVE_CFLOCALECOPYCURRENT.
13779         * lib/localename.h (gl_locale_name_default): Update.
13781 2019-05-19  Karl Berry  <karl@freefriends.org>
13783         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
13784         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
13785         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
13787 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
13789         maintainer-makefile: catch uses of $< in non-implicit rules
13790         * top/maint.mk (sc_prohibit_magic_number_exit): New.
13792 2019-05-18  Bruno Haible  <bruno@clisp.org>
13794         threadlib: Provide an easy way to avoid mingw's winpthreads library.
13795         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
13796         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
13797         gl_use_threads accordingly.
13799 2019-05-18  Bruno Haible  <bruno@clisp.org>
13801         pthread_sigmask: Fix compilation error with --enable-threads=windows.
13802         Reported by Tim Rühsen in
13803         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
13804         and Michele Locati in
13805         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
13806         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
13807         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
13808         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
13809         in use and regardless which threads API is chosen.
13811 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13813         close-stream, closein, closeout: simplify
13814         I noticed this opportunity for simplification while drafting a
13815         new, related module that I haven’t had time to finish yet.
13816         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
13817         * modules/close-stream (Files): Remove m4/close-stream.m4.
13818         (configure.ac): Omit gl_CLOSE_STREAM.
13819         * modules/closein (Files): Remove m4/closein.m4
13820         (configure.ac): Omit gl_CLOSEIN.
13821         * modules/closeout (Files): Remove m4/closeout.m4.
13822         (configure.ac): Omit gl_CLOSEOUT.
13824 2019-05-12  Bruno Haible  <bruno@clisp.org>
13826         libtool-next-version: New program.
13827         * build-aux/libtool-next-version: New file.
13829 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
13830             Bruno Haible  <bruno@clisp.org>
13832         version-etc: Ease translation.
13833         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
13834         URLs and formatting newlines out of translatable string.
13836 2019-05-11  Bruno Haible  <bruno@clisp.org>
13838         gnupload: Explain how to create symlinks.
13839         * build-aux/gnupload (usage): Add an example that creates symlinks.
13841 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13843         fpucw: port to gcc -pedantic
13844         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
13845         Use __extension__ if using ({ ... }).
13847         crypto/af_alg: port to strict C compilers
13848         * lib/af_alg.c: Include af_alg.h regardless, so that the
13849         compilation unit is nonempty.
13851 2019-05-10  Bruno Haible  <bruno@clisp.org>
13853         base64: Avoid false positive warning from Coverity.
13854         Reported by Kamil Dudka <kdudka@redhat.com>.
13855         Idea by Paul Eggert.
13856         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
13857         '& 0x3f' to the array index expressions. This convinces Coverity that
13858         there is no out-of-bounds array reference, regardless of the input.
13860 2019-05-09  Bruno Haible  <bruno@clisp.org>
13862         gettext: Update to gettext 0.20.
13863         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
13864         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
13865         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
13866         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
13867         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
13868         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
13869         (configure.ac): Request infrastructure compatible with gettext 0.20.
13870         * m4/glibc2.m4: Remove file.
13871         * m4/intdiv0.m4: Remove file.
13872         * m4/intl.m4: Remove file.
13873         * m4/intldir.m4: Remove file.
13874         * m4/intmax.m4: Remove file.
13875         * m4/printf-posix.m4: Remove file.
13876         * m4/uintmax_t.m4: Remove file.
13877         * m4/gettext.m4: Update from gettext 0.20.
13878         * m4/po.m4: Likewise.
13880 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13882         verify: remove verify_true
13883         * NEWS: Mention this.
13884         * lib/verify.h (verify_true): Remove.
13885         * tests/test-verify.c (item): Test verify_expr, not verify_true.
13887         Support C2X and C++17 static_assert
13888         C2X and C++17 finally added support for a simple, single-argument
13889         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
13890         doing back in 2005.  Implement static_assert on older platforms.
13891         The only remaining advantage of ‘verify’ is a shorter name.
13892         * doc/posix-headers/assert.texi (assert.h):
13893         * doc/verify.texi (Compile-time Assertions):
13894         Modernize for C2X and C++17.
13895         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
13896         New macros.
13897         (_GL_HAVE__STATIC_ASSERT): Remove.
13898         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
13899         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
13900         string.  All callers changed.
13901         (_GL_VERIFY): Require 3 or more args, of which only the first 2
13902         are used.  All callers changed.
13903         (_Static_assert): Allow either 1 or 2 args, and define if
13904         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
13905         !_GL_HAVE__STATIC_ASSERT.
13906         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
13907         of defining if !_GL_HAVE_STATIC_ASSERT.
13908         (verify_expr, verify): Don’t bother trying to copy the expression
13909         into the diagnostic, since 1-argument static_assert doesn’t.
13910         (verify): Prefer 1-argument _Static_assert if it works.
13911         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
13913 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13915         Fix _GL_HAVE__STATIC_ASSERT typo
13916         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
13917         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
13919 2019-05-05  Bruno Haible  <bruno@clisp.org>
13921         wcwidth: Ensure width 1, not 2, for ambiguous characters.
13922         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
13923         via Akim Demaille <akim.demaille@gmail.com>.
13924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
13925         en_US.UTF-8 locale, since that is more likely to be present than an
13926         fr_FR.UTF-8 locale.
13927         * tests/test-wcwidth.c (main): Check the width of U+2202.
13928         * doc/posix-functions/wcwidth.texi: Mention the issue.
13930 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13932         Port manywarnings to GCC 9
13933         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
13934         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
13935         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
13936         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
13937         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
13938         --help=warnings output.
13939         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
13940         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
13941         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
13943 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
13945         Sync lib/mktime-internal.h from glibc
13946         * config/srclist.txt: Add entry for lib/mktime-internal.h.
13947         * lib/mktime-internal.h: Autoupdate.
13949 2019-04-28  Bruno Haible  <bruno@clisp.org>
13951         tls tests: Prevent that the test takes too long.
13952         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
13953         (main): Let the test fail if it takes more than 10 minutes.
13954         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
13956 2019-04-27  Bruno Haible  <bruno@clisp.org>
13958         lock tests: Prevent that the test takes too long.
13959         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
13960         (main): Let the test fail if it takes more than 10 minutes.
13961         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
13963 2019-04-27  Bruno Haible  <bruno@clisp.org>
13965         localename: Fix crash on mingw (regression from 2018-11-23).
13966         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
13967         locale name that is null.
13969 2019-04-27  Bruno Haible  <bruno@clisp.org>
13971         Fix gcc warnings on 64-bit mode mingw.
13972         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
13973         * lib/gl_array_list.c: Likewise.
13974         * lib/gl_array_map.c: Likewise.
13975         * lib/gl_array_set.c: Likewise.
13976         * lib/gl_carray_list.c: Likewise.
13977         * lib/gl_sublist.c: Likewise.
13978         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
13979         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
13980         * lib/gl_hash_map.c (uintptr_t): Likewise.
13981         * lib/gl_hash_set.c (uintptr_t): Likewise.
13982         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
13983         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
13984         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
13985         * lib/iconv.c (uintptr_t): Likewise.
13986         * lib/iconv_close.c (uintptr_t): Likewise.
13987         * tests/test-lock.c: Include <stdint.h>.
13988         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
13989         'long'.
13990         * modules/clean-temp (Depends-on): Add stdint.
13991         * modules/array-list (Depends-on): Likewise.
13992         * modules/array-map (Depends-on): Likewise.
13993         * modules/array-set (Depends-on): Likewise.
13994         * modules/carray-list (Depends-on): Likewise.
13995         * modules/sublist (Depends-on): Likewise.
13996         * modules/lock-tests (Depends-on): Likewise.
13998 2019-04-27  Bruno Haible  <bruno@clisp.org>
14000         error: Tweak indentation.
14001         * lib/error.c: Correct indentation.
14003 2019-04-27  Bruno Haible  <bruno@clisp.org>
14005         term-style-control: Fix gcc warning on mingw.
14006         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
14007         of i.
14009 2019-04-26  Bruno Haible  <bruno@clisp.org>
14011         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
14012         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
14014 2019-04-26  Bruno Haible  <bruno@clisp.org>
14016         relocatable-prog: Fix gcc warning on mingw.
14017         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
14018         on EMX.
14020 2019-04-02  Bruno Haible  <bruno@clisp.org>
14022         gitsub.sh: New file.
14023         * top/gitsub.sh: New file.
14025 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
14027         argmatch: use void* for raw memory pointers
14028         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
14029         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
14030         to "values", keep char* for strings.
14032 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
14034         prefix-gnulib-mk: fix the support for gnulib-po
14035         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
14036         Don't touch HAVE_* variables.
14037         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
14039 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
14041         di-set: allow free with 'ino_map' being NULL.
14042         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
14043         is NULL.  Bug introduced in commit 3703dbbe88dd.
14044         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
14045         as a test.
14047 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
14049         * lib/str-two-way.h: Fix comment typo.
14051 2019-04-13  Bruno Haible  <bruno@clisp.org>
14053         x-to-1: Restore ability to use original calling convention.
14054         * build-aux/x-to-1.in: Add comments. Accept the original form of
14055         HELP2MAN argument as well as the form expected since 2012-12-12.
14057 2019-04-13  Bruno Haible  <bruno@clisp.org>
14059         x-to-1: Avoid failure due to missing perl modules.
14060         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
14061         needs are installed.
14063 2019-04-13  Bruno Haible  <bruno@clisp.org>
14065         openmp-init: New module.
14066         * modules/openmp-init: New file.
14067         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
14068         the changes from 2019-04-09.
14070 2019-04-12  Bruno Haible  <bruno@clisp.org>
14072         signbit: Fix compilation error when gnulib's math.h exists twice.
14073         * lib/math.in.h (GNULIB_defined_signbit): New macro.
14075 2019-04-12  Bruno Haible  <bruno@clisp.org>
14077         openmp: Fix compilation error on platforms without OpenMP.
14078         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
14080 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
14082         mountlist: make parsing /proc/self/mountinfo more robust
14083         Cater for the following issues with mountinfo parsing (the first
14084         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
14085         in <https://bugs.gnu.org/35137>).
14086         1. The fields source, target, mntroot and fstype may contain characters
14087         like '\r'; sscanf(3) fails to read such values with the %s format
14088         specifier because it would stop at such characters.
14089         Example: "mount -t tmpfs tmpfs /foo^Mbar".
14090         The only true separator in that file is the ' ' character.
14091         2. The source field may be an empty string, which happens e.g. with
14092         "mount -t tmpfs '' /target".
14093         3. The fstype field may contain mangled characters as well which need
14094         unescaping.
14095         * lib/mountlist.c (terminate_at_blank): Add utility function.
14096         (read_file_system_list): In the block trying to read the mountinfo file,
14097         avoid using sscanf(3) with %s format; instead, parse the above fields
14098         separated by spaces one by one.
14099         This also handles the case when the source field is an empty string.
14100         Unescape the fstype field.
14102 2019-04-09  Bruno Haible  <bruno@clisp.org>
14104         openmp: Add workaround for 32-bit programs on AIX.
14105         * lib/omp.in.h: New file.
14106         * lib/omp-init.c: New file, based on lib/nproc.c.
14107         * m4/omp_h.m4: New file.
14108         * modules/openmp (Files): Add them.
14109         (Depends-on): Add include_next, c-ctype, setenv.
14110         (configure.ac): Invoke gl_OMP_H.
14111         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
14112         (Include): Mention <omp.h>.
14114 2019-04-09  Bruno Haible  <bruno@clisp.org>
14116         nproc: Fix return value for privileged processes.
14117         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
14118         getpid().
14120 2019-04-07  Bruno Haible  <bruno@clisp.org>
14122         Add copyright notices in several files.
14123         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
14124         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
14125         * lib/libunistring.valgrind: Likewise.
14126         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
14127         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
14128         * lib/memchr.valgrind: Likewise.
14129         * lib/memchr2.valgrind: Likewise.
14130         * lib/rawmemchr.valgrind: Likewise.
14131         * lib/relocatable.valgrind: Likewise.
14132         * lib/strchrnul.valgrind: Likewise.
14134 2019-03-25  Bruno Haible  <bruno@clisp.org>
14136         term-style-control tests: Fix link error.
14137         Reported by Tom G. Christensen in
14138         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
14139         * modules/term-style-control-tests (Makefile.am): Link
14140         test-term-style-control-hello and test-term-style-control-yes against
14141         LIBINTL.
14143 2019-03-24  Bruno Haible  <bruno@clisp.org>
14145         term-style-control: Add tests.
14146         * tests/test-term-style-control-hello.c: New file.
14147         * tests/test-term-style-control-yes.c: New file.
14148         * modules/term-style-control-tests: New file.
14150         term-style-control: New module.
14151         * lib/term-style-control.h: New file, based on libtextstyle's
14152         term-ostream.oo.h and term-ostream.oo.c.
14153         * lib/term-style-control.c: New file, based on libtextstyle's
14154         term-ostream.oo.c.
14155         * modules/term-style-control: New file.
14157 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14159         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
14160         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
14161         C++98 appears to be supported by Clang, but not by GCC nor ICC.
14163 2019-03-23  Bruno Haible  <bruno@clisp.org>
14165         Support cross-compilation to musl libc.
14166         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
14167         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
14168         musl libc.
14169         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14170         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
14171         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14172         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14173         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14174         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
14175         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14176         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14177         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14178         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14179         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
14180         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
14181         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14182         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14183         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14184         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14185         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14186         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14187         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
14188         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14189         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14190         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14191         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
14192         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14193         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
14194         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14195         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14196         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14197         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
14198         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14199         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14200         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14201         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
14202         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14203         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14204         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
14205         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14206         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14207         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14208         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14209         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14210         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
14211         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14213         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14214         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14215         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14216         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
14217         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
14218         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
14219         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
14220         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
14221         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14222         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
14223         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14224         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
14225         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14226         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14227         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14228         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
14229         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14230         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14231         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14232         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
14233         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14234         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14235         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14236         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
14237         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14238         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
14239         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14240         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14241         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14242         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14243         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14244         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14245         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14248 2019-03-23  Bruno Haible  <bruno@clisp.org>
14250         posix_spawn_file_actions_*: Document musl libc bugs.
14251         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
14252         the bug.
14253         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
14254         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
14255         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
14256         cross-compiling to a musl system, guess no.
14257         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
14258         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
14260 2019-03-23  Bruno Haible  <bruno@clisp.org>
14262         futimens: Document musl libc bug.
14263         * doc/posix-functions/futimens.texi: Mention the bug.
14264         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
14265         cross-compiling, guess no on glibc and musl systems.
14267 2019-03-23  Bruno Haible  <bruno@clisp.org>
14269         Clarify that cross-compilation guesses are guesses.
14270         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
14271         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
14272         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
14273         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
14274         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
14275         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
14276         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
14277         gl_cv_glob_lists_symlinks.
14278         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
14279         'guessing ' to ac_cv_func_malloc_0_nonnull.
14280         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
14281         'guessing ' to ac_cv_func_realloc_0_nonnull.
14282         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
14283         'guessing ' to gl_cv_func_poll.
14284         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
14285         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
14286         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
14288 2019-03-23  Bruno Haible  <bruno@clisp.org>
14290         strtold: Fix typo.
14291         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
14293 2019-03-23  Bruno Haible  <bruno@clisp.org>
14295         noreturn: In C++ mode with clang, use _Noreturn as fallback.
14296         Reported by Akim Demaille.
14297         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
14298         [[noreturn]] would not work, use _Noreturn instead.
14300 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14302         libtextstyle-optional: Fix compiler warnings.
14303         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
14304         as unused.
14306 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14308         bitset: fix memory leaks
14309         Reported by Bruno Haible.
14310         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
14311         * lib/bitset/vector.c (vbitset_free): New.
14312         (vbitset_vtable): Use it.
14314 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14316         bitset: minor changes
14317         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
14318         * lib/bitset/table.c: Formatting changes.
14319         Remove useless braces.
14320         Prefer using else in cascades of if/else-if with returns.
14321         * lib/bitset/vector.c: Reduce scopes.
14323 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14325         bitset: expose bitset_resize
14326         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
14327         * tests/test-bitset.c (check_attributes): Check bitset_resize.
14328         (main): Use a variable bitset as reference, since fixed does not support resize.
14330 2019-03-19  Bruno Haible  <bruno@clisp.org>
14332         doc: Document the 'stdnoreturn' and 'noreturn' modules.
14333         Reported by Akim Demaille.
14334         * doc/noreturn.texi: New file.
14335         * doc/gnulib.texi: Include it.
14337 2019-03-19  Bruno Haible  <bruno@clisp.org>
14339         doc: Document how to use 'static inline'.
14340         * doc/static-inline.texi: New file.
14341         * doc/gnulib.texi: Include it.
14343 2019-03-19  Bruno Haible  <bruno@clisp.org>
14345         libtextstyle-optional: Add tests.
14346         * tests/test-libtextstyle.c: New file, based on libtextstyle's
14347         adhoc-tests/hello.c.
14348         * tests/test-libtextstyle-default.css: New file, copied from
14349         libtextstyle's adhoc-tests/hello-default.css.
14350         * modules/libtextstyle-optional-tests: New file.
14352         libtextstyle-optional: New module.
14353         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
14354         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
14355         * modules/libtextstyle-optional: New file.
14357 2019-03-19  Bruno Haible  <bruno@clisp.org>
14359         c-stack: Make signal handlers more reliable.
14360         * lib/c-stack.c (progname): New variable.
14361         (die): Use it.
14362         (c_stack_action): Initialize it.
14363         (segv_handler): Save and restore errno.
14365 2019-03-19  Bruno Haible  <bruno@clisp.org>
14367         Help making signal handlers more reliable.
14368         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
14369         _GL_ASYNC_SAFE into config.h.
14370         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
14371         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
14372         argument.
14373         * lib/fatal-signal.c (action_t, uninstall_handlers,
14374         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
14375         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
14376         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
14377         _GL_ASYNC_SAFE.
14378         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
14379         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
14381 2019-03-18  Bruno Haible  <bruno@clisp.org>
14383         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
14384         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
14385         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
14387 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14389         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
14390         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
14391         GCC 4.8.
14393 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
14395         fts: minor simplification
14396         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
14398 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14400         bitset, timevar: Depend on c99.
14401         Reported by Bruno Haible.
14402         * modules/bitset, modules/timevar (Depends-on): Add c99.
14404 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14406         bitset: a bit (...) more tests
14407         * tests/test-bitset.c (check_attributes): Check zero and ones.
14409 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14411         bitset: fix overflows.
14412         Reported by Bruno Haible.
14413         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
14414         * lib/bitset/table.c (tbitset_test): last_bit is the position of
14415         the bit in the array of bitset_word, so be sure to take its modulo
14416         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
14417         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
14419 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
14421         bitset: style changes.
14422         * lib/bitset/table.c: Use NULL, not 0, for pointers.
14423         Formatting changes.
14424         (tbitset_list): Reduce scopes.
14426 2019-03-16  Bruno Haible  <bruno@clisp.org>
14428         fatal-signal: Pass the signal number to the action.
14429         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
14430         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
14431         (fatal_signal_handler): Pass the signal number to the action.
14432         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
14433         signal number as parameter.
14434         (create_temp_dir): Update.
14435         * lib/wait-process.c (cleanup_slaves_action): New function.
14436         (register_slave_subprocess): Update at_fatal_signal invocation.
14437         * NEWS: Mention the change.
14439 2019-03-16  Bruno Haible  <bruno@clisp.org>
14441         fatal-signal: Add function that lists the fatal signals.
14442         * lib/fatal-signal.h (get_fatal_signals): New declaration.
14443         * lib/fatal-signal.c (get_fatal_signals): New function.
14445 2019-03-14  Bruno Haible  <bruno@clisp.org>
14447         isatty: Make it return true in Cygwin consoles on native Windows.
14448         * lib/isatty.c: Include <string.h>.
14449         (GetProcAddress): New macro.
14450         (GetNamedPipeClientProcessIdFuncType): New type.
14451         (GetNamedPipeClientProcessIdFunc): New variable.
14452         (QueryFullProcessImageNameFuncType): New type.
14453         (QueryFullProcessImageNameFunc): New variable.
14454         (initialized): New variable.
14455         (initialize): New function.
14456         (IsCygwinConsoleHandle): New function.
14457         (isatty): Invoke it.
14458         * doc/posix-functions/isatty.texi: Mention the issue.
14460 2019-03-14  Bruno Haible  <bruno@clisp.org>
14462         all: Update URLs to msdn.microsoft.com.
14463         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
14464         was moved to docs.microsoft.com.
14466 2019-03-13  Bruno Haible  <bruno@clisp.org>
14468         gnulib-tool: Clarify the coding style.
14469         Suggested by Pavel Raiskup <praiskup@redhat.com>.
14470         * gnulib-tool: Add comment about coding style.
14472 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14474         strtod: fix clash with strtold
14475         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
14476         * lib/strtod.c (compute_minus_zero, minus_zero):
14477         Simplify by remving the macro / external variable,
14478         and having just a function.  User changed.  This avoids
14479         the need for an external variable that might clash.
14481 2019-03-10  Bruno Haible  <bruno@clisp.org>
14483         alloca-opt: Fix conflict mingw's new <alloca.h> file.
14484         Reported by Eli Zaretskii <eliz@gnu.org>.
14485         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
14486         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
14487         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
14489 2019-03-10  Bruno Haible  <bruno@clisp.org>
14491         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
14492         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
14493         is in use.
14494         * tests/test-printf-posix2.c: Likewise.
14496 2019-03-10  Bruno Haible  <bruno@clisp.org>
14498         uninorm tests: Free allocated memory.
14499         * tests/uninorm/test-u32-normalize-big.h
14500         (struct normalization_test_file): Remove 'const' from allocated member.
14501         (free_normalization_test_file): New declaration.
14502         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
14503         memory.
14504         (free_normalization_test_file): New function.
14505         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
14506         'struct normalization_test_file' contents.
14507         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
14508         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
14509         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
14511 2019-03-10  Bruno Haible  <bruno@clisp.org>
14513         di-set: Fix memory leak.
14514         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
14515         not free().
14517 2019-03-10  Bruno Haible  <bruno@clisp.org>
14519         tests: Free allocated memory.
14520         Reported by <deltatau@protonmail.com> via Assaf Gordon.
14521         * tests/test-astrxfrm.c (main): Free allocated memory.
14522         * tests/test-bitset.c (compare, check_attributes): Free allocated
14523         bitsets.
14524         * tests/test-filenamecat.c (main): Free allocated memory.
14525         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
14526         * tests/test-freadptr.c (main): Likewise.
14527         * tests/test-freadptr2.c (main): Free allocated memory.
14528         * tests/test-freadseek.c (main): Likewise.
14529         * tests/test-gc-arcfour.c (main): Close allocated context.
14530         * tests/test-gc-arctwo.c (main): Likewise.
14531         * tests/test-gc-des.c (main): Close all allocated contexts.
14532         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
14533         * tests/test-pipe-filter-ii1.c (main): Likewise.
14534         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
14535         allocated file actions.
14536         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
14537         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
14538         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
14539         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
14540         * tests/test-strfmon_l.c (main): Free allocated locales.
14541         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
14542         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
14543         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14544         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14545         * tests/unistr/test-chr.h (main): Free input32.
14546         * tests/unistr/test-strchr.h (test_strchr): Likewise.
14548 2019-03-10  Bruno Haible  <bruno@clisp.org>
14550         tests: Prepare for using valgrind.
14551         * tests/*.sh: Invoke all test programs through ${CHECKER}.
14552         * tests/*/*.sh: Likewise.
14553         * tests/test-freadptr.c (main): Update accordingly.
14554         * tests/test-freadseek.c (main): Likewise.
14556 2019-03-09  Bruno Haible  <bruno@clisp.org>
14558         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
14559         * lib/get-rusage-as.c (get_rusage_as): When compiled by
14560         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
14561         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
14562         before exiting.
14564 2019-03-09  Jim Meyering  <meyering@fb.com>
14566         test-userspec.c: don't print NULL
14567         * tests/test-userspec.c (main): A test release of gcc,
14568         9.0.1 20190310, warned that this test would attempt to
14569         print a NULL pointer via a %s printf format.  Fix that
14570         and remove the unnecessary preceding "!diag" conjunct.
14571         Also add a comment.
14573 2019-03-03  Bruno Haible  <bruno@clisp.org>
14575         getloadavg: Write NULL for the null pointer.
14576         Reported by Michal Privoznik <mprivozn@redhat.com>.
14577         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
14579 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
14581         alloca, tsearch-tests: Write NULL for the null pointer.
14582         * lib/alloca.c (i00afunc): Write NULL instead of 0.
14583         * tests/test-tsearch.c (mangle_tree): Likewise.
14585 2019-03-09  Bruno Haible  <bruno@clisp.org>
14587         strfmon_l: Fix -fsanitize=address finding.
14588         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
14589         <string.h>.
14590         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
14591         (directive_t, directives_t): New types.
14592         (fmon_parse): New function.
14593         (rpl_strfmon_l): Don't call va_arg more often than needed for the
14594         format string. Consume 'long double' arguments in places where the
14595         format string indicates so.
14596         * modules/strfmon_l (Depends-on): Add 'stdbool'.
14598 2019-03-09  Bruno Haible  <bruno@clisp.org>
14600         crypto/des: Fix undefined behaviour.
14601         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
14602         shift operations on 'int'.
14604 2019-03-09  Bruno Haible  <bruno@clisp.org>
14606         Fix undefined behaviour.
14607         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
14608         'unsigned int', to avoid shift operations on 'int'.
14609         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
14610         * tests/test-count-leading-zeros.c (main): Use a random number that has
14611         as many bits as TYPE, not only 2*15 or 2*31 bits.
14612         * tests/test-count-trailing-zeros.c (main): Likewise.
14613         * tests/test-count-one-bits.c (main): Likewise.
14614         * tests/test-memmem.c: Don't include "null-ptr.h".
14615         (main): Use zerosize_ptr() instead of null_ptr().
14616         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
14618 2019-03-08  Bruno Haible  <bruno@clisp.org>
14620         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
14621         Reported by Jeffrey Walton <noloader@gmail.com>.
14622         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
14623         invoke memset with a zero size.
14624         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14625         Likewise.
14626         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14627         Adjust accordingly.
14629 2019-03-08  Bruno Haible  <bruno@clisp.org>
14631         unistr/*, uniconv/*: Fix undefined behaviour.
14632         Reported by Jeffrey Walton <noloader@gmail.com>.
14633         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
14634         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
14635         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14636         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14638 2019-03-08  Bruno Haible  <bruno@clisp.org>
14640         unistr/u8-cmp: Fix undefined behaviour.
14641         Reported by Jeffrey Walton <noloader@gmail.com>.
14642         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
14644 2019-03-08  Bruno Haible  <bruno@clisp.org>
14646         unictype/numeric: Fix undefined behaviour.
14647         Reported by Jeffrey Walton <noloader@gmail.com>.
14648         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
14649         on shift overflow, caught by "gcc -fsanitize=undefined".
14650         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
14651         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14652         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14654 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
14656         git-version-gen: fix --version copyright year
14657         * build-aux/git-version-gen, build-aux/move-if-change (version):
14658         --version output copyright year is now taken from script year,
14659         so that it no longer needs to be updated by hand.
14661 2019-03-04  Bruno Haible  <bruno@clisp.org>
14663         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
14664         This approach supports relocatable installation of shared libraries
14665         which depend on other shared libraries from the same package.
14666         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14667         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
14668         wrapper around the original LIBTOOL.
14669         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
14670         token '@loader_path' instead of '$ORIGIN'.
14671         * build-aux/libtool-reloc: New file.
14672         * modules/relocatable-prog (Files): Add it.
14673         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14674         the recent changes. Document the need to set the *_LDFLAGS of libraries.
14675         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
14676         Makefile.am, not in configure.ac.
14678 2019-03-04  Bruno Haible  <bruno@clisp.org>
14680         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
14681         * build-aux/install-reloc: Revert change.
14682         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14684 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14686         nstrftime: support the ‘+’ flag
14687         * lib/nstrftime.c (add, __strftime_internal):
14688         Add support for the ‘+’ flag introduced in POSIX.1-2017.
14689         (__strftime_internal): New arg ‘width’.  All uses changed.
14690         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
14692 2019-02-24  Bruno Haible  <bruno@clisp.org>
14694         relocatable-prog: Improve verbose output.
14695         * build-aux/install-reloc (func_verbose): Escape characters that would
14696         be interpreted by the shell.
14698 2019-02-24  Bruno Haible  <bruno@clisp.org>
14700         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
14701         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
14702         "sys/stat.h".
14703         * lib/lstat.c: Likewise.
14704         * lib/fstat.c: Likewise.
14705         * lib/fstatat.c: Likewise.
14707 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
14709         long-options: add parse_gnu_standard_options_only
14710         Discussed in https://bugs.gnu.org/33468 .
14712         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
14713         (parse_gnu_standard_options_only): Add function to process
14714         the GNU default options --help and --version and fail for
14715         any other unknown long or short option. See
14716         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
14717         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
14718         * modules/long-options (depends-on): Add stdbool, exitfail.
14719         * top/maint.mk (sc_prohibit_long_options_without_use): Update
14720         syntax-check rule, add new function name.
14722 2019-02-23  Bruno Haible  <bruno@clisp.org>
14724         relocatable-prog: Update documentation.
14725         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14726         the recent changes.
14728 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14730         nstrftime: tweak arg order
14731         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
14732         All callers changed.  Suggested by TAMUKI Shoichi in:
14733         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
14735 2019-02-23  Bruno Haible  <bruno@clisp.org>
14737         relocatable-prog: Use wrapper-free installation also on Mac OS X.
14738         Reported by Paul Smith <psmith@gnu.org>.
14739         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
14740         (func_relativize): New function, from gnulib-tool.
14741         Handle mode 'macosx' through invocations of 'otool' and
14742         'install_name_tool'.
14743         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14744         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
14745         'install-reloc' invocation with mode 'macosx'.
14747 2019-02-23  Bruno Haible  <bruno@clisp.org>
14749         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
14750         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14751         Hurd with glibc >= 2.27.
14753 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14755         nstrftime: merge glibc strftime changes
14756         This incorporates:
14757         2019-02-11 Fix a few whitespace arrangement inconsistencies
14758         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
14759         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
14760         2019-01-11 strftime: use the "L_" macro with character literals
14761         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
14762         callers changed.  Default width of %Ey is now 2.  This is needed
14763         for proper handling of Japanese dates starting on 2019-05-01.
14765 2019-02-19  Bruno Haible  <bruno@clisp.org>
14767         relocatable-prog: Use $ORIGIN trick on more platforms.
14768         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14769         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
14770         Solaris >= 10, Haiku. But don't use it on Android.
14771         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
14772         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
14774 2019-02-19  Bruno Haible  <bruno@clisp.org>
14776         progreloc: Speed up executable lookup on various platforms.
14777         * lib/progreloc.c: Include <errno.h>.
14778         (safe_read, full_read): New functions.
14779         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
14780         prefer the information from the /proc file system to a PATH search.
14782 2019-02-19  Bruno Haible  <bruno@clisp.org>
14784         progreloc: Simplify code for Android.
14785         * lib/progreloc.c (executable_fd): Don't define on Android.
14786         (maybe_executable, find_executable): Don't use executable_fd on Android.
14788 2019-02-15  Bruno Haible  <bruno@clisp.org>
14790         gnulib-tool: Support --import with just a few tests, not --with-tests.
14791         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
14792         'inctests' when generating files; use 'inctests' only for computing the
14793         transitive closure.
14795 2019-02-14  Bruno Haible  <bruno@clisp.org>
14797         gnulib-tool: Improve handling of multiple --local-dir options.
14798         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
14799         options work.
14800         * gnulib-tool (func_path_prepend): Remove function.
14801         (func_path_foreach): Make IFS handling more robust.
14802         (local_gnulib_path): Collect --local-dir values using func_path_append,
14803         not func_path_prepend.
14804         (func_determine_path_separator): Make IFS handling more robust.
14805         (func_lookup_file_cb): New function.
14806         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
14807         func_lookup_local_file. Apply the patches in the reverse order of their
14808         origin in $local_gnulib_path.
14809         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
14810         * NEWS: Mention that the first --local-dir option is the one with
14811         highest priority.
14813 2019-02-10  Bruno Haible  <bruno@clisp.org>
14815         libtextstyle: New module.
14816         * m4/libtextstyle.m4: New file.
14817         * modules/libtextstyle: New file.
14819 2019-02-05  Bruno Haible  <bruno@clisp.org>
14821         declared.sh: Fix bug with variables of pointer type.
14822         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
14823         before the symbol to be omitted if the preceding character is a '*'.
14825 2019-02-04  Bruno Haible  <bruno@clisp.org>
14827         Add script for running tests under valgrind.
14828         * build-aux/run-test: New file, from GNU libunistring.
14829         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
14830         as well.
14832 2019-02-04  Bruno Haible  <bruno@clisp.org>
14834         declared.sh: Fix --version output.
14835         * build-aux/declared.sh (func_version): Update package name.
14837 2019-02-03  Bruno Haible  <bruno@clisp.org>
14839         Add script for determining the set of symbols to export from a library.
14840         * build-aux/declared.sh: New file, from GNU libunistring.
14841         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
14842         Mention it.
14844 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14846         vla: add commentary about VLA_ELEMS
14847         * lib/vla.h (VLA_ELEMS): Add commentary,
14848         some inspired by Bruno Haible’s proposal in:
14849         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
14851         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
14852         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
14853         assume the C99 signatures for strtod and strtold.  Programs that
14854         require stricter adherence to C99 should also use the strtod and
14855         strtold modules as needed, and we no longer need the
14856         HAVE_C99_STRTOLD macro.
14857         * NEWS: Mention this.
14858         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
14859         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
14860         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
14861         (Files): Remove m4/c-strtod.m4.
14862         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
14863         exists.
14865 2019-02-02  Bruno Haible  <bruno@clisp.org>
14867         fma: Improve code style.
14868         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
14870 2019-02-02  Colin Watson  <cjwatson@debian.org>
14872         *-map tests: Fix compilation error.
14873         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
14874         * tests/test-hash_map.c: Likewise.
14875         * tests/test-linkedhash_map.c: Likewise.
14877 2019-01-31  Bruno Haible  <bruno@clisp.org>
14879         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
14880         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
14881         GNULIB_defined_strtold_function): New macros.
14882         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
14883         (STRTOD): Ignore HAVE_C99_STRTOLD.
14884         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
14885         deemed buggy. But do use it on platforms where uselocale exists and is
14886         usable.
14887         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
14888         deemed buggy. On platforms where uselocale exists and is usable, use
14889         uselocale and strtod/strtold.
14890         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
14891         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
14892         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
14893         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
14894         (Depends-on): Add strtod.
14895         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
14896         (Depends-on): Add strtold.
14898 2019-01-31  Bruno Haible  <bruno@clisp.org>
14900         strtod, strtold: Use the locale's decimal point.
14901         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
14902         (decimal_point_char): New function, copied from lib/vasnprintf.c.
14903         (parse_number): Add a radixchar argument. Use it instead of '.'.
14904         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
14905         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
14906         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
14907         * tests/test-strtod1.c: New file.
14908         * tests/test-strtod1.sh: New file.
14909         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
14910         locale-fr.m4 and its dependencies.
14911         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14912         (Makefile.am): Arrange to compile test-strtod1.c and run
14913         test-strtod1.sh.
14914         * tests/test-strtold1.c: New file.
14915         * tests/test-strtold1.sh: New file.
14916         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
14917         locale-fr.m4 and its dependencies.
14918         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14919         (Makefile.am): Arrange to compile test-strtold1.c and run
14920         test-strtold1.sh.
14922 2019-01-31  Bruno Haible  <bruno@clisp.org>
14924         strtod, strtold tests: Simplify tests.
14925         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
14926         * tests/test-strtold.c (main): Likewise.
14928 2019-01-31  Bruno Haible  <bruno@clisp.org>
14930         strtod, strtold: Avoid unnecessary rounding errors.
14931         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
14932         decimal to DOUBLE conversion.
14934 2019-01-31  Bruno Haible  <bruno@clisp.org>
14936         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
14937         * lib/strtod.c (STRTOD): When there is an extra character after the
14938         exponent marker 'p', reparse the number.
14939         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
14940         * doc/posix-functions/strtold.texi: Likewise.
14942 2019-01-29  Bruno Haible  <bruno@clisp.org>
14944         strtold: Add tests.
14945         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
14946         * modules/strtold-tests: New file.
14948 2019-01-29  Bruno Haible  <bruno@clisp.org>
14950         strtold: New module.
14951         * lib/stdlib.in.h (strtold): New declaration.
14952         * lib/strtold.c: New file.
14953         * lib/strtod.c: Consider USE_LONG_DOUBLE.
14954         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
14955         USE_LDEXP): New macros.
14956         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
14957         USE_LONG_DOUBLE.
14958         (underlying_strtod): Remove function. Replace with some macros.
14959         Re-add the code for a missing underlying function that was removed on
14960         2013-02-19.
14961         * m4/strtold.m4: New file.
14962         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
14963         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
14964         REPLACE_STRTOLD.
14965         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
14966         REPLACE_STRTOLD.
14967         * modules/strtold: New file.
14968         * doc/posix-functions/strtold.texi: Document the new module.
14970 2019-01-29  Bruno Haible  <bruno@clisp.org>
14972         strtod: Fix compilation error on IRIX 6.5.
14973         * modules/strtod (Depends-on): Add 'math'.
14975 2019-01-28  Bruno Haible  <bruno@clisp.org>
14977         Fix build error when building a shared libunistring on Android.
14978         * tests/uninorm/test-nfc.c (n): Don't define on Android.
14979         (main): Add 'volatile', to defeat a GCC optimization that would
14980         eliminate the reference.
14981         * tests/uninorm/test-nfd.c (n): Don't define on Android.
14982         (main): Add 'volatile', to defeat a GCC optimization that would
14983         eliminate the reference.
14984         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
14985         (main): Add 'volatile', to defeat a GCC optimization that would
14986         eliminate the reference.
14987         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
14988         (main): Add 'volatile', to defeat a GCC optimization that would
14989         eliminate the reference.
14991 2019-01-27  Bruno Haible  <bruno@clisp.org>
14993         Avoid build errors due to wrong references between modules.
14994         * lib/uninorm/canonical-decomposition.c: Include
14995         "uninorm/decomposition-table.h", not "decomposition-table.h".
14996         * lib/uninorm/decomposition.c: Likewise.
14997         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
14998         not "decompose-internal.h".
14999         * lib/uninorm/u16-normalize.c: Likewise.
15000         * lib/uninorm/u32-normalize.c: Likewise.
15001         * lib/uninorm/uninorm-filter.c: Likewise.
15002         * lib/uninorm/nfkc.c: Likewise.
15003         * lib/uninorm/nfkd.c: Likewise.
15004         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
15005         "caseprop.h".
15006         * lib/unicase/u8-ct-totitle.c: Likewise.
15007         * lib/unicase/u8-prefix-context.c: Likewise.
15008         * lib/unicase/u8-suffix-context.c: Likewise.
15009         * lib/unicase/u16-casemap.c: Likewise.
15010         * lib/unicase/u16-ct-totitle.c: Likewise.
15011         * lib/unicase/u16-prefix-context.c: Likewise.
15012         * lib/unicase/u16-suffix-context.c: Likewise.
15013         * lib/unicase/u32-casemap.c: Likewise.
15014         * lib/unicase/u32-ct-totitle.c: Likewise.
15015         * lib/unicase/u32-prefix-context.c: Likewise.
15016         * lib/unicase/u32-suffix-context.c: Likewise.
15017         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
15018         "unicasemap.h".
15019         * lib/unicase/u8-toupper.c: Likewise.
15020         * lib/unicase/u8-ct-tolower.c: Likewise.
15021         * lib/unicase/u8-ct-toupper.c: Likewise.
15022         * lib/unicase/u16-tolower.c: Likewise.
15023         * lib/unicase/u16-toupper.c: Likewise.
15024         * lib/unicase/u16-ct-tolower.c: Likewise.
15025         * lib/unicase/u16-ct-toupper.c: Likewise.
15026         * lib/unicase/u32-tolower.c: Likewise.
15027         * lib/unicase/u32-toupper.c: Likewise.
15028         * lib/unicase/u32-ct-tolower.c: Likewise.
15029         * lib/unicase/u32-ct-toupper.c: Likewise.
15030         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
15031         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
15032         * lib/unicase/u16-ct-casefold.c: Likewise.
15033         * lib/unicase/u32-ct-casefold.c: Likewise.
15035 2019-01-27  Bruno Haible  <bruno@clisp.org>
15037         gperf: Fix error when this module is required by some test module.
15038         * modules/gperf (Applicability): Set to 'all'.
15040 2019-01-27  Bruno Haible  <bruno@clisp.org>
15042         tmpfile: Add support for Android.
15043         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
15044         works.
15045         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
15046         Android.
15047         * modules/tmpfile (Depends-on): Add 'stdbool'.
15048         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
15049         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
15051 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
15053         bitsetv: allow free on NULL.
15054         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
15056 2019-01-27  Bruno Haible  <bruno@clisp.org>
15058         test-framework-sh: Improve maintainability.
15059         * tests/init.sh: Clarify what belongs together. Reorder definitions.
15061 2019-01-27  Bruno Haible  <bruno@clisp.org>
15063         tests: Don't assume that /tmp exists.
15064         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
15065         * tests/test-copy-acl-1.sh: Likewise.
15066         * tests/test-file-has-acl-1.sh: Likewise.
15067         * tests/test-copy-file-1.sh: Likewise.
15069 2019-01-27  Bruno Haible  <bruno@clisp.org>
15071         tests: Accommodate a shell that is not in /bin/sh.
15072         * tests/init.sh (setup_): Set srcdir and builddir.
15073         (BOURNE_SHELL): New variable.
15074         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
15075         * modules/file-has-acl-tests (Depends-on): Likewise.
15076         * modules/copy-file-tests (Depends-on): Likewise.
15077         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
15078         scripts through $BOURNE_SHELL.
15079         * tests/test-set-mode-acl-2.sh: Likewise.
15080         * tests/test-copy-acl-1.sh: Likewise.
15081         * tests/test-copy-acl-2.sh: Likewise.
15082         * tests/test-file-has-acl-1.sh: Likewise.
15083         * tests/test-file-has-acl-2.sh: Likewise.
15084         * tests/test-copy-file-1.sh: Likewise.
15085         * tests/test-copy-file-2.sh: Likewise.
15086         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
15087         invoker.
15088         * tests/test-copy-acl.sh (builddir): Likewise.
15089         * tests/test-file-has-acl.sh (builddir): Likewise.
15090         * tests/test-copy-file.sh (builddir): Likewise.
15091         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
15092         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
15093         * tests/test-vc-list-files-git.sh: Likewise.
15095 2019-01-27  Bruno Haible  <bruno@clisp.org>
15097         tests: Fix some "unused variable" warnings.
15098         * tests/test-fts.c (fts_dealloc): Remove unused variable.
15099         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
15100         * tests/test-striconveh.c (main): Move some variable into the
15101         '#if HAVE_ICONV'.
15102         * tests/test-striconveha.c (main): Likewise.
15103         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15104         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15105         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15106         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
15107         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15108         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15109         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15110         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15111         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15112         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
15113         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
15114         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
15115         * tests/test-tsearch.c (main): Move some variable into the
15116         '#if HAVE_INITSTATE'.
15118 2019-01-27  Bruno Haible  <bruno@clisp.org>
15120         unigbrk/uc-grapheme-breaks: Fix build failure.
15121         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
15122         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
15124 2019-01-27  Bruno Haible  <bruno@clisp.org>
15126         mountlist: Merge two .m4 files.
15127         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
15128         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
15129         * m4/ls-mntd-fs.m4: Remove file.
15130         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
15132 2019-01-27  Bruno Haible  <bruno@clisp.org>
15134         tests: Enable Linux specific tests on Android.
15135         * tests/test-flock.c (main): Treat Android like Linux.
15136         * tests/test-openat-safer.c (main): Likewise.
15138 2019-01-27  Bruno Haible  <bruno@clisp.org>
15140         relocatable-prog: Use Linux code on Android.
15141         * lib/progreloc.c: Treat Android like Linux.
15143 2019-01-26  Bruno Haible  <bruno@clisp.org>
15145         getloadavg: Add support for Android.
15146         * lib/getloadavg.c: Treat Android like Linux.
15148 2019-01-26  Bruno Haible  <bruno@clisp.org>
15150         vma-iter: Add support for Android.
15151         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
15152         * lib/vma-iter.c: Treat Android like Linux.
15153         * lib/get-rusage-data.c (get_rusage_data): Likewise.
15155 2019-01-26  Bruno Haible  <bruno@clisp.org>
15157         fts: Optimize on Android.
15158         * lib/fts.c: Treat Android like Linux.
15160 2019-01-26  Bruno Haible  <bruno@clisp.org>
15162         fts: Add support for Android.
15163         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
15164         defined by this module and the ones in libc.
15165         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
15167 2019-01-26  Bruno Haible  <bruno@clisp.org>
15169         mountlist: Use Linux code on Android.
15170         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
15171         (unescape_tab, read_file_system_list): Enable Linux code on Android
15172         as well.
15173         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
15174         and endmntent.
15175         * modules/mountlist (Depends-on): Add 'getline'.
15177 2019-01-26  Bruno Haible  <bruno@clisp.org>
15179         localename tests: Fix test failure on Android.
15180         * modules/localename-tests (Depends-on): Add 'setlocale'.
15182 2019-01-26  Bruno Haible  <bruno@clisp.org>
15184         mountlist: Port better to Android.
15185         * lib/mountlist.c (MOUNTED): Redefine on Android.
15186         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
15187         Android.
15189 2019-01-26  Bruno Haible  <bruno@clisp.org>
15191         striconveh: Fix use of uninitialized iconv_t.
15192         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
15193         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
15194         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
15196 2019-01-26  Bruno Haible  <bruno@clisp.org>
15198         nonblocking-socket-tests: Fix test failure on Android 4.3.
15199         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
15200         also on Android.
15202 2019-01-26  Bruno Haible  <bruno@clisp.org>
15204         sh-filename: Add support for Android 4.3.
15205         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
15207 2019-01-26  Bruno Haible  <bruno@clisp.org>
15209         ptsname_r: Work around bug on Android 4.3.
15210         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
15211         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
15212         correct.
15213         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
15214         is defined, just fix the return value.
15215         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
15216         The behaviour of musl libc is nothing to be "fixed", since it is
15217         compliant with the next POSIX standard.
15219 2019-01-26  Bruno Haible  <bruno@clisp.org>
15221         ttyname_r: Work around bug on Android 4.3.
15222         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
15223         * lib/ttyname_r.c (ttyname_r): Implement for Android.
15224         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
15225         * doc/posix-functions/ttyname.texi: Likewise.
15227 2019-01-25  Bruno Haible  <bruno@clisp.org>
15229         getprogname: Port to Android 4.3.
15230         * lib/getprogname.c (getprogname): On Android, take only the last
15231         component of __progname.
15233 2019-01-25  Bruno Haible  <bruno@clisp.org>
15235         wcrtomb: Work around bug on Android 4.3.
15236         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
15237         the C locale.
15238         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
15239         which does not have the 'wctomb' function.
15240         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
15241         * tests/test-wcrtomb.c (main): Accept argument '5'.
15242         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
15244 2019-01-25  Bruno Haible  <bruno@clisp.org>
15246         setlocale: Work around bug on Android 4.3.
15247         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
15248         the "C" locale.
15249         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
15250         * doc/posix-functions/setlocale.texi: Mention the Android bug.
15252 2019-01-24  Bruno Haible  <bruno@clisp.org>
15254         memchr: Work around bug on Android <= 5.0.
15255         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
15256         * doc/posix-functions/memchr.texi: Mention the Android bug.
15258 2019-01-24  Bruno Haible  <bruno@clisp.org>
15260         random: Fix compilation error on Android 4.3.
15261         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
15262         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
15263         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
15264         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
15265         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
15267         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15268         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
15269         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15270         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
15271         REPLACE_INITSTATE, REPLACE_SETSTATE.
15272         * doc/posix-functions/random.texi: Correct the description of the
15273         situation on Android.
15274         * doc/posix-functions/srandom.texi: Likewise.
15275         * doc/posix-functions/rand.texi: Likewise.
15276         * doc/posix-functions/srand.texi: Likewise.
15278 2019-01-24  Bruno Haible  <bruno@clisp.org>
15280         mbtowc: Fix compilation error on Android 4.3.
15281         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
15282         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
15283         HAVE_MBTOWC.
15284         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
15285         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
15286         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
15287         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
15288         * doc/posix-functions/mbtowc.texi: Mention the change.
15290 2019-01-24  Bruno Haible  <bruno@clisp.org>
15292         fdatasync: Fix compilation error on Android 4.3.
15293         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
15294         test whether fdatasync() exists.
15296 2019-01-24  Bruno Haible  <bruno@clisp.org>
15298         unlinkat: Fix compilation error on Android 4.3.
15299         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
15300         also on Android.
15301         * doc/posix-functions/unlinkat.texi: Mention the issue.
15303 2019-01-24  Bruno Haible  <bruno@clisp.org>
15305         renameat: Fix compilation error on Android 4.3.
15306         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
15307         * doc/posix-functions/renameat.texi: Mention the issue.
15309 2019-01-24  Bruno Haible  <bruno@clisp.org>
15311         fchownat: Fix compilation error on Android 4.3.
15312         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
15313         use.
15314         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
15315         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
15316         * doc/posix-functions/fchownat.texi: Mention the issue.
15318 2019-01-23  Bruno Haible  <bruno@clisp.org>
15320         gnulib-tool: Support running testdirs on Android.
15321         * build-aux/test-driver.diff: New file.
15322         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
15323         build-aux/test-driver after running automake.
15325 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15327         relocatable-prog: avoid warnings from Automake
15328         * modules/relocatable-prog: Don't declare PHONY dependencies in
15329         Automake conditionals.
15331 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15333         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
15334         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
15336 2019-01-23  Bruno Haible  <bruno@clisp.org>
15338         threadlib: Revert commit from 2018-06-25. We now have a better fix.
15339         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
15340         preceding -Wl,--as-needed option. Don't check whether the linker
15341         supports --as-needed/--no-as-needed and --push-state/--pop-state.
15343 2019-01-23  Bruno Haible  <bruno@clisp.org>
15345         thread: Force linking with -lpthread, even when --as-needed is in use.
15346         Reported by Richard W.M. Jones <rjones@redhat.com> in
15347         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
15348         * lib/glthread/thread.h (pthread_create): Don't declare weak.
15350 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
15351             Bruno Haible  <bruno@clisp.org>
15353         relocatable: avoid compiler warnings (-Wshadow)
15354         * lib/relocatable.c (compute_curr_prefix): Rename local variables
15355         to avoid name collisions with global variables.
15357 2019-01-22  Bruno Haible  <bruno@clisp.org>
15359         vasnprintf: Don't use %n on Android.
15360         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
15361         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
15362         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
15364 2019-01-22  Bruno Haible  <bruno@clisp.org>
15366         *printf: Support cross-compilation to Android.
15367         * m4/printf.m4: Add cross-compilation guesses for Android.
15369 2019-01-21  Bruno Haible  <bruno@clisp.org>
15371         diacrit: Mark deprecated.
15372         * modules/diacrit (Status, Notice): Mark as deprecated.
15373         * NEWS: Mention it.
15375 2019-01-20  Bruno Haible  <bruno@clisp.org>
15377         rintl: Override broken implementation on NetBSD.
15378         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
15379         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
15380         REPLACE_RINTL.
15381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
15382         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
15383         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
15384         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
15386 2019-01-20  Bruno Haible  <bruno@clisp.org>
15388         log10l: Work around inaccurate implementation on NetBSD.
15389         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
15390         * lib/log10l.c: Comment out too simplistic override.
15391         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
15393 2019-01-20  Bruno Haible  <bruno@clisp.org>
15395         logl: Work around inaccurate implementation on NetBSD.
15396         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
15397         * lib/logl.c: Comment out unused code.
15398         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
15400 2019-01-20  Bruno Haible  <bruno@clisp.org>
15402         expm1l: Work around inaccurate implementation on NetBSD.
15403         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
15404         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
15405         REPLACE_EXPM1L.
15406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
15407         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
15408         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
15409         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
15411 2019-01-20  Bruno Haible  <bruno@clisp.org>
15413         expl: Work around inaccurate implementation on NetBSD.
15414         * lib/math.in.h (expl): Test also REPLACE_EXPL.
15415         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
15416         REPLACE_EXPL.
15417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
15418         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
15419         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
15420         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
15422 2019-01-20  Bruno Haible  <bruno@clisp.org>
15424         exp2l: Work around inaccurate implementation on NetBSD.
15425         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
15426         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
15428 2019-01-20  Bruno Haible  <bruno@clisp.org>
15430         floor, floorl: Avoid autoconf warnings.
15431         * modules/floor (configure.ac): Use AC_REQUIRE.
15432         * modules/floorl (configure.ac): Likewise.
15434 2019-01-20  Bruno Haible  <bruno@clisp.org>
15436         Defeat current GCC optimizations in math autoconf tests.
15437         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
15438         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15439         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15440         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15441         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15442         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15443         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15444         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15445         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15446         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15447         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15448         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15449         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15450         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15451         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
15452         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
15453         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
15454         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15455         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15456         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15457         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15458         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15459         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15460         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15461         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15462         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15463         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15464         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15465         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15466         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15467         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15468         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15469         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15470         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15471         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15472         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15473         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15474         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15476 2019-01-19  Pádraig Brady  <P@draigBrady.com>
15478         gettext: support disabling use of VLAs
15479         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
15481 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15483         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
15484         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
15486 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15488         fcntl: Fix syntax error (regression from 2018-10-05).
15489         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
15491 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15493         relocatable: improve documentation.
15494         * doc/relocatable-maint.texi (Supporting Relocation): For
15495         substitutions performed by config.status, we need more variables
15496         (for instance datarootdir defaults to '${prefix}/share' so we need
15497         prefix).
15499 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15501         backup: update dependencies
15502         * modules/backup-rename (Depends-on): It now depends on opendirat
15503         instead of opendir.  It also uses stdint, and xalloc-oversized.
15504         But no longer dirfd.
15505         * modules/backupfile (Depends-on): Add xalloc-oversized.
15507 2019-01-13  Bruno Haible  <bruno@clisp.org>
15509         getcwd: Fix test failure when building on a Linux 9p file system.
15510         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
15511         EINVAL from mkdir like ENAMETOOLONG.
15512         * tests/test-getcwd.c (test_long_name): Likewise.
15514 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
15516         Fix typos found by codespell.
15517         * lib/*.[hc]: Fix typos in comments.
15518         * pygnulib/*.py: Fix typos in error messages and comments.
15520 2019-01-12  Bruno Haible  <bruno@clisp.org>
15522         doc: Fix documentation about container data types.
15523         Reported by Werner Lemberg <wl@gnu.org>.
15524         * doc/containers.texi (Container data types): Fix typo.
15526 2019-01-10  Bruno Haible  <bruno@clisp.org>
15528         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
15529         Reported by Reuben Thomas <rrt@sc3d.org>.
15530         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
15532 2019-01-06  Bruno Haible  <bruno@clisp.org>
15534         maintainer-makefile: Make the configure.ac section optional.
15535         * top/maint.mk (GREP, SED): Define if not defined.
15537 2019-01-06  Bruno Haible  <bruno@clisp.org>
15539         localename: Assume setlocale function.
15540         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
15541         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
15543 2019-01-06  Bruno Haible  <bruno@clisp.org>
15545         doc: Add documentation about container data types.
15546         * doc/containers.texi: New file.
15547         * doc/gnulib.texi (Particular Modules): Include it.
15549 2019-01-06  Bruno Haible  <bruno@clisp.org>
15551         doc: Update documentation about 'progname' module.
15552         * doc/progname.texi: Rename from doc/error.texi. Change node name and
15553         title. Rewrite.
15554         * doc/gnulib.texi (Particular Modules): Update.
15556 2019-01-06  Bruno Haible  <bruno@clisp.org>
15558         doc: Document the xstdopen and *-safer modules.
15559         * doc/xstdopen.texi: New file.
15560         * doc/gnulib.texi (Particular Modules): Include it.
15562 2019-01-06  Bruno Haible  <bruno@clisp.org>
15564         xstdopen: Add tests.
15565         * tests/test-xstdopen.c: New file.
15566         * tests/test-xstdopen.sh: New file.
15567         * modules/xstdopen-tests: New file.
15569         xstdopen: New module.
15570         * lib/xstdopen.h: New file.
15571         * lib/xstdopen.c: New file.
15572         * modules/xstdopen: New file.
15574 2019-01-06  Bruno Haible  <bruno@clisp.org>
15576         stdopen: Fix compilation error with IRIX cc.
15577         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
15579 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15581         xfreopen need not include stdio--.h
15582         * lib/xfreopen.c: Do not include stdio--.h.
15584         xfreopen need not depend on freopen-safer
15585         * modules/xfreopen (Depends-on):
15586         Depend on freopen, not freopen-safer.
15588         stdopen: modernize and simplify
15589         * lib/stdopen.c: Update copyright date
15590         Do not include sys/types.h; no longer needed these days.
15591         (stdopen): Use C99-style decl in loop.  Return int errno
15592         value, rather than just a bool.  Do not worry about fd mismatches,
15593         since the caller cares only if 0, 1, 2 are occupied.
15594         * lib/stdopen.h: No need to include <stdbool.h>.
15595         * m4/stdopen.m4: Remove.
15596         * modules/stdopen: New file.
15598         stdopen: copy from last use in coreutils
15599         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
15600         New files, taken from their last commit in coreutils
15601         2007-07-23T12:35:58Z!jim@meyering.net
15602         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
15604 2019-01-05  Bruno Haible  <bruno@clisp.org>
15606         argp: Don't pass an invalid argument to dgettext().
15607         Reported by He X <xw897002528@gmail.com>.
15608         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
15609         dgettext().
15611 2019-01-05  Bruno Haible  <bruno@clisp.org>
15613         argp: Don't pass an invalid argument to dgettext().
15614         Reported by He X <xw897002528@gmail.com>.
15615         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
15616         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
15617         dgettext().
15619 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15621         stdioext: port to newer 32-bit Android
15622         Problem reported by Tom Yan in:
15623         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
15624         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
15625         (fp_) [__ANDROID__]: Use it.
15627 2019-01-04  Bruno Haible  <bruno@clisp.org>
15629         lock: Fix link error with --enable-threads=pth.
15630         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
15631         Mark as weak.
15633 2019-01-04  Bruno Haible  <bruno@clisp.org>
15635         Fix link errors in unit tests.
15636         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15637         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
15638         * modules/array-map-tests (Makefile.am): Link test-array_map against
15639         libintl.
15640         * modules/array-set-tests (Makefile.am): Link test-array_set against
15641         libintl.
15642         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
15643         libintl.
15644         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
15645         libintl.
15646         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
15647         against libintl.
15648         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
15649         against libintl.
15651 2019-01-04  Bruno Haible  <bruno@clisp.org>
15653         Fix incorrect 'Link' sections.
15654         * modules/regex (Link): Mention the link requirement of module 'lock'.
15655         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
15657 2019-01-04  Bruno Haible  <bruno@clisp.org>
15659         Fix some 'Link' sections.
15660         * modules/c-stack (Link): Add link directive from the 'gettext-h'
15661         dependency.
15662         * modules/getaddrinfo (Link): Likewise.
15664 2019-01-04  Bruno Haible  <bruno@clisp.org>
15666         Remove redundant 'Link' sections.
15667         * modules/canon-host (Link): Remove section.
15668         * modules/timevar (Link): Likewise.
15670 2019-01-04  Bruno Haible  <bruno@clisp.org>
15672         Remove incorrect 'Link' sections.
15673         * modules/acl (Link): Remove section. Use combined 'Link' sections from
15674         the dependencies instead.
15675         * modules/crypto/md5 (Link): Likewise.
15676         * modules/crypto/sha1 (Link): Likewise.
15677         * modules/crypto/sha256 (Link): Likewise.
15678         * modules/crypto/sha512 (Link): Likewise.
15679         * modules/faccessat (Link): Likewise.
15680         * modules/fdutimensat (Link): Likewise.
15681         * modules/iconv_open-utf (Link): Likewise.
15682         * modules/propername (Link): Likewise.
15683         * modules/qacl (Link): Likewise.
15684         * modules/unicodeio (Link): Likewise.
15685         * modules/utimecmp (Link): Likewise.
15686         * modules/utimensat (Link): Likewise.
15687         * modules/xstriconv (Link): Likewise.
15688         * modules/xstriconveh (Link): Likewise.
15690 2019-01-04  Bruno Haible  <bruno@clisp.org>
15692         gnulib-tool: New option --extract-recursive-link-directive.
15693         * gnulib-tool (func_usage): Document the new options
15694         --extract-recursive-dependencies, --extract-recursive-link-directive.
15695         (func_verify_module): Document output variables.
15696         (func_get_dependencies_recursively): New function.
15697         (func_get_link_directive_recursively): New function.
15698         Use them to implement the new options
15699         --extract-recursive-dependencies, --extract-recursive-link-directive.
15700         * doc/gnulib-tool.texi (Link-time requirements): New section.
15702 2019-01-04  Bruno Haible  <bruno@clisp.org>
15704         Clarify meaning of 'Link' section in module description.
15705         * doc/gnulib.texi (Module description): Clarify the meaning of the
15706         'Link' section versus the one of the dependencies.
15707         * NEWS: Mention the change.
15709 2019-01-04  Bruno Haible  <bruno@clisp.org>
15711         pselect: Fix module description.
15712         * modules/pselect (Link): Put one link option per line.
15714 2019-01-04  Bruno Haible  <bruno@clisp.org>
15716         cosl: Fix module description.
15717         * modules/cosl (Link): Fix typo.
15718         * modules/mathl (configure.ac): Likewise.
15720 2019-01-04  Bruno Haible  <bruno@clisp.org>
15722         c-xvasprintf: Fix module dependencies.
15723         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
15725 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
15727         bootstrap: die when some submodules are not initialized
15728         * build-aux/bootstrap: Make sure all submodules are initialized.
15730 2019-01-04  Bruno Haible  <bruno@clisp.org>
15732         bitsetv: Fix module dependencies.
15733         * lib/bitsetv.c: Include xalloc.h.
15734         * modules/bitsetv (Depends-on): Add 'xalloc'.
15736 2019-01-04  Bruno Haible  <bruno@clisp.org>
15738         xmemdup0: Remove redundant code.
15739         * lib/xmemdup0.h (xalloc_die): Remove declaration.
15741 2019-01-04  Bruno Haible  <bruno@clisp.org>
15743         backupfile: Fix module dependencies.
15744         * modules/backupfile (Depends-on): Add 'xalloc'.
15746 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15748         bitset, crypto/gc: fix conflicts with Solaris 11
15749         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
15750         avoid clash with Solaris 11 <sys/bitset.h>.
15751         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
15752         with Solaris 11 <xorg/gc.h>.
15754 2019-01-04  Bruno Haible  <bruno@clisp.org>
15756         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
15757         Reported by Andy Fiddaman <andy@omniosce.org>.
15758         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
15760 2019-01-03  Eric Blake  <eblake@redhat.com>
15762         maintainer-makefile: fix typo in previous patch
15763         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
15764         of Roman's work.
15766 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
15768         maintainer-makefile: prefer $(GREP) over grep
15769         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
15770         defined.
15771         * top/maint.mk: Use it everywhere.
15773         maintainer-makefile: split long argument lines
15774         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
15775         it would be too long for exec limits on BSD.
15777 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15779         mkfifo: bring back HAVE_MKFIFO macro
15780         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
15781         Problem reported by Andrew Janke in:
15782         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
15784 2018-12-21  Bruno Haible  <bruno@clisp.org>
15786         Assume Autoconf >= 2.63.
15787         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
15788         versions < 2.60.
15790 2018-12-21  Bruno Haible  <bruno@clisp.org>
15792         memcmp: Mention the clang bug.
15793         * tests/test-memcmp.c: Add comment about a known test failure.
15794         * doc/posix-functions/memcmp.texi: Mention the clang bug.
15796 2018-12-20  Jim Meyering  <meyering@fb.com>
15798         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
15799         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
15800           echo '123-x'|LC_ALL=C grep -E '.\bx'
15801         The goal is to revert the first, but reverting it requires to restore
15802         the function deleted in the second. I ran this to restore the deleted
15803         function:
15804           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
15805             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
15806             | patch -R -p1
15807         * lib/dfa.c (charclass_context): Restore deleted function.
15808         Reverting the primary commit removes this change:
15809         dfa: Simplify a building state
15810         * lib/dfa.c (build_state): Simplify a building state.
15812 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15814         version-etc: allow zero authors
15815         * lib/version-etc.c (version_etc_arn): If no authors are given,
15816         omit authorship info instead of dumping core.
15818 2018-12-19  Bruno Haible  <bruno@clisp.org>
15820         lchown tests: Be more permissive regarding errno values.
15821         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
15822         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
15823         alternative to ENOSYS.
15824         * modules/lchown-tests (Depends-on): Add 'errno'.
15825         * modules/fchownat-tests (Depends-on): Likewise.
15827 2018-12-18  Bruno Haible  <bruno@clisp.org>
15829         duplocale: Avoid test failure on AIX 7.
15830         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
15831         (configure.ac): Invoke gt_FUNC_USELOCALE.
15832         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
15833         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
15834         works.
15836 2018-12-18  Bruno Haible  <bruno@clisp.org>
15838         localename: Fix test failure on AIX 7.
15839         Reported by Assaf Gordon in
15840         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
15841         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
15842         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
15843         instead of ac_cv_func_uselocale.
15844         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
15845         HAVE_USELOCALE.
15846         * lib/localename-table.h: Likewise.
15847         * lib/localename-table.c: Likewise.
15848         * tests/test-localename.c: Likewise.
15849         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
15851 2018-12-18  Bruno Haible  <bruno@clisp.org>
15853         localename: Update comments regarding Cygwin.
15854         * lib/localename.c: Update comment.
15855         * doc/posix-functions/uselocale.texi: Update platforms list.
15856         * doc/posix-functions/newlocale.texi: Likewise.
15857         * doc/posix-functions/duplocale.texi: Likewise.
15858         * doc/posix-functions/freelocale.texi: Likewise.
15860 2018-12-16  Bruno Haible  <bruno@clisp.org>
15862         c-stack: Fix for Linux/sparc.
15863         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
15864         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
15866 2018-12-16  Bruno Haible  <bruno@clisp.org>
15868         localename: Avoid test failure on some glibc systems.
15869         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15870         Unset environment variables that might disturb the first setlocale call,
15871         and verify that this setlocale call succeeds.
15873 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
15875         random: Fix build error on native Windows (regression from 2018-06-21).
15876         * lib/random.c (__srandom, __initstate, __setstate, __random,
15877         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
15878         to the symbols without '__' prefix.
15880 2018-12-16  Bruno Haible  <bruno@clisp.org>
15882         obstack, libc-config: Support HP-UX cc in C99 mode.
15883         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
15884         compiler, even when in C99 mode.
15885         * lib/cdefs.h (__flexarr): Likewise.
15886         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
15888 2018-12-16  Bruno Haible  <bruno@clisp.org>
15890         localename: Fix test failure on OpenBSD >= 6.2.
15891         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
15892         locale system. Define HAVE_FAKE_LOCALES in this case.
15893         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
15894         HAVE_USELOCALE.
15895         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
15896         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
15897         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
15898         platforms list.
15899         * doc/posix-functions/newlocale.texi: Likewise.
15900         * doc/posix-functions/duplocale.texi: Update platforms list.
15901         * doc/posix-functions/freelocale.texi: Likewise.
15903 2018-12-16  Bruno Haible  <bruno@clisp.org>
15905         duplocale tests: Re-enable the test on platforms without <monetary.h>.
15906         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
15907         of the test, on platforms without <monetary.h>.
15909 2018-12-16  Bruno Haible  <bruno@clisp.org>
15911         localename: Update comments.
15912         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
15914 2018-12-15  Jim Meyering  <meyering@fb.com>
15916         regex: fix indentation
15917         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
15919 2018-12-15  Bruno Haible  <bruno@clisp.org>
15921         openat-safer tests: Avoid test failure on NetBSD 8.
15922         * tests/test-openat-safer.c (main): Execute a Linux specific test only
15923         on Linux.
15925 2018-12-15  Jim Meyering  <meyering@fb.com>
15927         regex: work around a bug in glibc-2.27 and prior
15928         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
15929         assertion for /0|()0|\1|0/.
15930         * tests/test-regex.c (main): Add the same test here.
15932 2018-12-15  Bruno Haible  <bruno@clisp.org>
15934         localename: Fix use of uninitialized shell variable.
15935         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
15936         gt_cv_locale_solaris114 always before use. Remove assignment without
15937         effect.
15939 2018-12-15  Bruno Haible  <bruno@clisp.org>
15941         dfa tests: Avoid test failure on Alpine Linux.
15942         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
15943         command found on Alpine Linux.
15945 2018-12-15  Jim Meyering  <meyering@fb.com>
15947         dfa: avoid new warnings from gcc
15948         These would prevent building with -Werror and a Dec snapshot of gcc.
15949         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
15950         Rename each inner instance to "p".
15951         (charclass_context): Remove unused static function.
15953 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15955         mkdir-p: improve diagnostic for FUSE mounts
15956         Problem reported by Niklas Hambüchen in:
15957         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
15958         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
15959         errno to mkdir errno if the stat errno is likely more interesting.
15961 2018-12-14  Bruno Haible  <bruno@clisp.org>
15963         hash-map: Add tests.
15964         * tests/test-hash_map.c: New file.
15965         * modules/hash-map-tests: New file.
15967         linkedhash-map: Add tests.
15968         * tests/test-linkedhash_map.c: New file.
15969         * modules/linkedhash-map-tests: New file.
15971         array-map: Add tests.
15972         * tests/test-array_map.c: New file.
15973         * modules/array-map-tests: New file.
15975         xmap: New module.
15976         * lib/gl_xmap.h: New file.
15977         * lib/gl_xmap.c: New file.
15978         * modules/xmap: New file.
15980         hash-map: New module.
15981         * lib/gl_hash_map.h: New file.
15982         * lib/gl_hash_map.c: New file.
15983         * modules/hash-map: New file.
15985         linkedhash-map: New module.
15986         * lib/gl_linkedhash_map.h: New file.
15987         * lib/gl_linkedhash_map.c: New file.
15988         * lib/gl_anyhash1.h: Update comments.
15989         * lib/gl_anyhash2.h: Likewise.
15990         * modules/linkedhash-map: New file.
15992         array-map: New module.
15993         * lib/gl_array_map.h: New file.
15994         * lib/gl_array_map.c: New file.
15995         * modules/array-map: New file.
15997         map: New module.
15998         * lib/gl_map.h: New file.
15999         * lib/gl_map.c: New file.
16000         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
16001         conflict with gl_map.h.
16002         * modules/map: New file.
16004 2018-12-13  Bruno Haible  <bruno@clisp.org>
16006         select tests: Avoid test failure on Cygwin.
16007         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
16009 2018-12-13  Bruno Haible  <bruno@clisp.org>
16011         localtime-buffer: Avoid endless recursion in localtime and gmtime.
16012         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
16014 2018-12-13  Bruno Haible  <bruno@clisp.org>
16016         localeconv tests: Avoid test failure on Cygwin.
16017         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
16018         'mon_grouping' tests.
16020 2018-12-11  Bruno Haible  <bruno@clisp.org>
16022         omap: Don't dispose the old value when the function returns it.
16023         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
16024         here.
16025         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16026         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16027         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
16028         here.
16030         array-omap, avltree-omap, rbtree-omap: Tweak style.
16031         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
16032         false.
16033         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
16035         rbtree-omap: Add tests.
16036         * tests/test-rbtree_omap.c: New file.
16037         * modules/rbtree-omap-tests: New file.
16039         avltree-omap: Add tests.
16040         * tests/test-avltree_omap.c: New file.
16041         * modules/avltree-omap-tests: New file.
16043         array-omap: Add tests.
16044         * tests/test-array_omap.c: New file.
16045         * modules/array-omap-tests: New file.
16047         xomap: New module.
16048         * lib/gl_xomap.h: New file.
16049         * lib/gl_xomap.c: New file.
16050         * modules/xomap: New file.
16052         rbtree-omap: New module.
16053         * lib/gl_rbtree_omap.h: New file.
16054         * lib/gl_rbtree_omap.c: New file.
16055         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
16056         Parameterize.
16057         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
16058         * modules/rbtree-omap: New file.
16059         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
16060         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
16062         avltree-omap: New module.
16063         * lib/gl_avltree_omap.h: New file.
16064         * lib/gl_avltree_omap.c: New file.
16065         * lib/gl_avltree_ordered.h: Code moved to here from
16066         lib/gl_avltree_oset.c. Parameterize.
16067         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
16068         * lib/gl_anytree_omap.h: New file.
16069         * modules/avltree-omap: New file.
16070         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
16071         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
16073         array-omap: New module.
16074         * lib/gl_array_omap.h: New file.
16075         * lib/gl_array_omap.c: New file.
16076         * modules/array-omap: New file.
16078         omap: New module.
16079         * lib/gl_omap.h: New file.
16080         * lib/gl_omap.c: New file.
16081         * modules/omap: New file.
16083 2018-12-11  Bruno Haible  <bruno@clisp.org>
16085         hash-set, linkedhash-set: Reduce code duplication.
16086         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
16087         lib/gl_anyhash_set1.h.
16088         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
16089         lib/gl_anyhash_set2.h. Parameterize.
16090         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
16091         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
16092         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
16093         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
16094         * lib/gl_rbtreehash_list.c: Likewise.
16095         * lib/gl_linkedhash_list.c: Likewise.
16096         (hash_resize_after_add): Remove function.
16097         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
16098         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
16099         * gl_hash_set.c: Likewise.
16100         * modules/avltreehash-list (Files, Makefile.am): Update file list.
16101         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
16102         * modules/linkedhash-list (Files, Makefile.am): Likewise.
16103         * modules/linkedhash-set (Files, Makefile.am): Likewise.
16104         * modules/hash-set (Files, Makefile.am): Likewise.
16106 2018-12-11  Bruno Haible  <bruno@clisp.org>
16108         array-set: Optimize.
16109         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
16110         outside the loop, not inside the loop.
16112 2018-12-11  Bruno Haible  <bruno@clisp.org>
16114         times: Fix tests.
16115         * tests/test-times.c (doublecmp): Implement a total order.
16117 2018-12-11  Bruno Haible  <bruno@clisp.org>
16119         array-set, linkedhash-set, hash-set: Fix tests.
16120         * tests/test-array_set.c (cmp_objects_in_array): New function.
16121         (check_equals): Use it.
16122         * tests/test-hash_set.c: Likewise.
16123         * tests/test-linkedhash_set.c: Likewise.
16125 2018-12-08  Bruno Haible  <bruno@clisp.org>
16127         Fix comments.
16128         * lib/gl_list.h (gl_list_free): Clarify what it does.
16129         * lib/gl_oset.h (gl_oset_free): Likewise.
16130         * lib/gl_set.h (gl_set_free): Likewise.
16131         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
16132         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
16133         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
16134         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
16136 2018-12-03  Bruno Haible  <bruno@clisp.org>
16138         hash-set: Add tests.
16139         * tests/test-hash_set.c: New file.
16140         * modules/hash-set-tests: New file.
16142         linkedhash-set: Add tests.
16143         * tests/test-linkedhash_set.c: New file.
16144         * modules/linkedhash-set-tests: New file.
16146         array-set: Add tests.
16147         * tests/test-array_set.c: New file.
16148         * modules/array-set-tests: New file.
16150         xset: New module.
16151         * lib/gl_xset.h: New file.
16152         * lib/gl_xset.c: New file.
16153         * modules/xset: New file.
16155         hash-set: New module.
16156         * lib/gl_hash_set.h: New file.
16157         * lib/gl_hash_set.c: New file.
16158         * modules/hash-set: New file.
16160         linkedhash-set: New module.
16161         * lib/gl_linkedhash_set.h: New file.
16162         * lib/gl_linkedhash_set.c: New file.
16163         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
16164         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
16165         * lib/gl_anyhash_primes.h: New file, extracted from
16166         lib/gl_anyhash_list2.h.
16167         * lib/gl_anyhash_list2.h: Include it.
16168         (primes, next_prime): Remove definitions.
16169         * modules/linkedhash-set: New file.
16170         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
16171         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16172         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
16173         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16174         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
16175         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16177         array-set: New module.
16178         * lib/gl_array_set.h: New file.
16179         * lib/gl_array_set.c: New file.
16180         * modules/array-set: New file.
16182         set: New module.
16183         * lib/gl_set.h: New file.
16184         * lib/gl_set.c: New file.
16185         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
16186         gl_set.h.
16187         * modules/set: New file.
16189 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
16191         bison: don't force the Yacc mode
16192         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
16193         errors when Bison features are used in the grammar file.  Some of
16194         these features (such as %expect) were flagged non-yacc recently.  Most
16195         of the time, -y is actually used to please Automake's ylwrap which
16196         expects the output to be y.tab.c.
16197         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
16199 2018-12-01  Bruno Haible  <bruno@clisp.org>
16201         gnupload: Document short options.
16202         * build-aux/gnupload (usage): Document the short options.
16204 2018-11-28  Ben Elliston  <bje@gnu.org>
16206         gnupload: Support option -h as alias of --help.
16207         * build-aux/gnupload: Support -h.
16209 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
16211         memrchr: port better to clang
16212         * lib/memrchr.c (__memrchr): Cast to void * instead of to
16213         longword *, to pacify clang -Wcast-align (Bug#33544).
16215 2018-11-29  Eric Blake  <eblake@redhat.com>
16217         docs: mention printf %m considerations
16218         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
16219         is not portable, and is easy enough to work around.
16220         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
16221         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
16222         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
16223         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16224         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16225         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16226         * doc/posix-functions/printf.texi (printf): Likewise.
16227         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16228         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16229         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
16230         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16231         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16232         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16233         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16234         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16235         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16236         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
16237         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16238         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16240 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
16242         bitset: rename ebitset/expandable.* as tbitset/table.*
16243         See
16244         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
16245         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
16246         * lib/bitset/table.h, lib/bitset/table.c: these.
16247         Rename all the ebitset* symbols as tbitset*.
16248         Adjust dependencies.
16250 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16252         bitset: check the operations
16253         * tests/test-bitset.c (bitset_random): New.
16254         Use it.
16255         * lib/bitset/expandable.c (ebitset_not): Fix typo.
16257 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16259         bitset: properly use false/true instead of 0/1 for Booleans
16260         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
16261         0/1, as Booleans.
16263 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16265         bitset: rename BITSET_VARRAY as BITSET_VECTOR
16266         For consistency with the name of the file.
16267         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
16268         * lib/bitset/stats.c, lib/bitset/vector.c
16269         (BITSET_VARRAY): Rename as...
16270         (BITSET_VECTOR): this.
16272 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16274         strerror_r-posix: memmove, not memcpy
16275         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
16276         since the source and destination might overlap in the call
16277         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
16278         Simplify.
16280 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16282         bitsetv: new module
16283         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
16285 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16287         bitset: add tests and doc
16288         First stabs at providing a documentation and test for the bitset
16289         module.
16290         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
16292 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16294         bitset: new module
16295         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
16296         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
16297         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
16298         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
16299         * lib/bitset/vector.h, modules/bitset:
16300         New.
16302 2018-11-23  Bruno Haible  <bruno@clisp.org>
16304         localename: Fix gettext test failures on mingw.
16305         * lib/localename.c (gl_locale_name_posix): Convert the result of
16306         gl_locale_name_environ to XPG syntax.
16308 2018-11-23  Karl Berry  <karl@freefriends.org>
16310         * config/srclistvars.txt,
16311         * config/srclist.txt: remove all gettext references;
16312         the gettext maintainers will sync as needed.
16314 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
16316         mktime: add libc-config dependency
16317         I missed this when we synced from glibc.
16318         * modules/mktime (Depends-on): Add libc-config.
16320 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
16322         longlong: fix comment typo
16323         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
16325 2018-11-11  Bruno Haible  <bruno@clisp.org>
16327         havelib: Remove the need to include asm-underscore.m4.
16328         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
16329         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
16330         gl_HOST_CPU_C_ABI.
16331         * modules/havelib (Files): Add host-cpu-c-abi.m4.
16332         (Depends-on): Remove host-cpu-c-abi.
16334 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16336         parse-datetime: simplify test for mktime failure
16337         * lib/parse-datetime.y (mktime_ok): Simplify.
16338         Remove args TZ and T; no longer needed.  Callers changed.
16340         posixtm: simplify test for mktime failure
16341         * lib/posixtm.c (posixtime): Simplify.
16343         nstrftime: simplify test for mktime failure
16344         * lib/nstrftime.c (__strftime_internal): Simplify.
16346 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16348         gnulib-common.m4: port _Noreturn to C++
16349         Problem reported by Akim Demaille in:
16350         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
16351         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
16352         Merge adjustments from _Noreturn.h and from glibc into the non-C++
16353         version.
16354         * lib/_Noreturn.h: Match gnulib-common.
16356 2018-10-30  Bruno Haible  <bruno@clisp.org>
16358         gnu-make: Fix for NetBSD 8 'make'.
16359         Reported by Reuben Thomas in
16360         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
16361         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
16362         output, ignoring exit codes.
16364 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
16366         maintainer-makefile: fix syntax-check rule for "same.h"
16367         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
16368         for 'same_nameat', too.
16370 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16372         havelib: fix nested ‘configure’ chatter
16373         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
16374         AC_CACHE_CHECK calls, which resulted in confusing output like
16375         “checking for the common suffixes of directories in the library
16376         search path... checking for 64-bit host... no lib,lib”.
16378         backupfile: tweak for better code
16379         * lib/backupfile.c: Sort include directives, and remove
16380         unnecessary <limits.h> include.
16381         (FALLTHROUGH): New macro, copied from other modules.
16382         (backupfile_internal): Use it to avoid code duplication.
16383         This lets GCC 8.2.1 generate better code by inlining the
16384         call to check_extension.
16386 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16388         backupfile: new dir_fd args
16389         New module opendirat with code taken from fts.
16390         Use this module to let backupfile use a directory file descriptor.
16391         * NEWS: Document the incompatible change.
16392         * lib/backup-find.c (find_backup_file_name):
16393         * lib/backup-rename.c (backup_file_rename):
16394         New arg DIR_FD.
16395         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
16396         (SIZE_MAX): Remove.
16397         Include opendirat.h rather than dirent--.h.
16398         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
16399         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
16400         (backupfile_internal): New arg DIR_FD.  All callers changed.
16401         * lib/fts.c: Include opendirat.h.
16402         (opendirat): Move to opendirat.c.
16403         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
16404         * modules/backupfile (Depends-on): Remove dirfd, opendir.
16405         Add opendirat.
16406         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
16407         Add opendirat.
16409 2018-10-23  Bruno Haible  <bruno@clisp.org>
16411         localename: Simplify support for per-thread locales on Solaris 11.4.
16412         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
16413         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
16414         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
16415         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
16416         specific code.
16417         * lib/localename-table.h: Update comments.
16418         * lib/localename-table.c: Update comments.
16419         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
16420         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
16421         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
16422         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
16423         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
16424         HAVE_NAMELESS_LOCALES here.
16425         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
16426         m4/intlsolaris.m4.
16427         * modules/gettext (Files): Likewise.
16429 2018-10-22  Bruno Haible  <bruno@clisp.org>
16431         std-gnu11: Support Autoconf versions < 2.64.
16432         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
16433         when _AC_DO_LIMIT does not exist.
16435 2018-10-22  Bruno Haible  <bruno@clisp.org>
16437         Assume Autoconf >= 2.63.
16438         * DEPENDENCIES: Mention the requirement.
16440         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
16441         (func_get_filelist): Don't list m4/onceonly.m4 any more.
16442         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
16443         * m4/onceonly.m4: Remove file.
16445         * m4/openmp.m4: Remove file.
16446         * modules/openmp (Files): Remove m4/openmp.m4.
16448         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
16449         htmldir, dvidir, pdfdir, psdir, localedir.
16450         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
16452         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
16453         Autoconf < 2.60.
16454         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
16455         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
16457         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
16458         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
16459         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
16461         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
16462         exists.
16463         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
16465         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
16466         Autoconf < 2.61.
16468         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
16469         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
16470         Autoconf >= 2.52.
16472         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
16473         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
16474         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
16476 2018-10-22  Bruno Haible  <bruno@clisp.org>
16478         Assume Automake >= 1.11.
16479         * m4/configmake.m4: Update comments.
16480         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
16481         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
16482         of 'eval'.
16483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
16484         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
16485         requires Automake >= 1.11.
16487 2018-10-22  Bruno Haible  <bruno@clisp.org>
16489         localename: Fix typo in comment.
16490         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
16492 2018-10-22  Bruno Haible  <bruno@clisp.org>
16494         Fix failure of 'gnulib-tool --create-testdir' with all modules.
16495         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
16497 2018-10-21  Bruno Haible  <bruno@clisp.org>
16499         locale: Ease integration with GNU libintl.
16500         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
16501         GNULIB_defined_freelocale): New macros.
16503 2018-10-21  Bruno Haible  <bruno@clisp.org>
16505         localename: Fine-tune support for per-thread locales on Solaris 11.4.
16506         * lib/localename-table.h: New file, extracted from lib/localename.c.
16507         * lib/localename-table.c: Likewise.
16508         * lib/localename.c: Include localename-table.h.
16509         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
16510         locale_hash_function instead of pointer_hash.
16511         * modules/localename (Files): Add lib/localename-table.h,
16512         lib/localename-table.c.
16513         (lib_SOURCES): Add localename-table.c.
16514         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
16515         for Solaris 11.4 locale system only on Solaris. Test for it
16516         independently whether getlocalename_l exists.
16517         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
16518         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
16519         HAVE_NAMELESS_LOCALES.
16520         * modules/gettext (Files): Add m4/intlsolaris.m4.
16522 2018-10-21  Bruno Haible  <bruno@clisp.org>
16524         Small update from gettext.
16525         * m4/intl.m4: Update from gettext:
16526         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
16527         mode on AIX.
16528         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
16529         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
16531 2018-10-16  Bruno Haible  <bruno@clisp.org>
16533         mountlist: Remove support for Cray with UNICOS 9.
16534         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16535         MOUNTED_LISTMNTENT.
16536         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
16538 2018-10-16  Bruno Haible  <bruno@clisp.org>
16540         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
16541         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
16542         STAT_STATFS2_FS_DATA.
16543         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
16544         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16545         MOUNTED_GETMNT.
16546         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
16547         * lib/getloadavg.c (decstation): Remove definition and case.
16548         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
16549         * lib/getgroups.c: Likewise.
16550         * doc/posix-functions/getgroups.texi: Likewise.
16551         * lib/time.in.h: Update comments.
16553 2018-10-16  Bruno Haible  <bruno@clisp.org>
16555         getloadavg: Remove support for ConvexOS.
16556         * lib/getloadavg.c: Remove convex case.
16558 2018-10-16  Bruno Haible  <bruno@clisp.org>
16560         getloadavg: Remove support for Sony NEWS.
16561         * lib/getloadavg.c: Remove sony_news case.
16563 2018-10-16  Bruno Haible  <bruno@clisp.org>
16565         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
16566         * lib/fsusage.c: Remove _SEQUENT_ case.
16567         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16568         * lib/mountlist.c: Don't test for MNTTABNAME.
16569         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
16570         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
16571         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
16572         * lib/stat-size.h: Don't mention the Sequent bug.
16573         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
16575 2018-10-16  Bruno Haible  <bruno@clisp.org>
16577         fsusage: Remove support for AIX 3.
16578         * lib/fsusage.c: Remove code for AIX 3.
16579         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
16581 2018-10-16  Bruno Haible  <bruno@clisp.org>
16583         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
16584         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
16585         * lib/fsusage.c: Remove code for AIX PS/2.
16586         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
16587         * lib/getloadavg.c: Likewise.
16589 2018-10-16  Bruno Haible  <bruno@clisp.org>
16591         getloadavg: Remove support for HP-UX on m68k.
16592         * lib/getloadavg.c: Remove hp9000s300 case.
16594 2018-10-16  Bruno Haible  <bruno@clisp.org>
16596         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
16597         * lib/fsusage.c: Remove DOLPHIN case.
16598         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16599         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
16601 2018-10-16  Bruno Haible  <bruno@clisp.org>
16603         getloadavg: Remove support for Alliant FX/2800.
16604         * lib/getloadavg.c: Remove alliant case.
16606 2018-10-16  Bruno Haible  <bruno@clisp.org>
16608         getloadavg: Remove support for tek4300.
16609         * lib/getloadavg.c: Remove tek4300 case.
16611 2018-10-16  Bruno Haible  <bruno@clisp.org>
16613         getloadavg: Remove support for Ardent.
16614         * lib/getloadavg.c: Remove ardent case.
16616 2018-10-16  Bruno Haible  <bruno@clisp.org>
16618         mountlist: Remove support for SVR2.
16619         Reported by Andrew Borodin <aborodin@vmail.ru> in
16620         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
16621         * lib/mountlist.c: Remove MOUNTED_FREAD case.
16622         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16623         MOUNTED_FREAD.
16625 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16627         libc-config: merge from glibc
16628         * lib/cdefs.h (__glibc_has_attribute): New macro.
16630         regex: depend on libc-config
16631         * modules/regex (Depends-on): Add libc-config.
16632         This is needed after the recent autoupdate from glibc.
16634 2018-10-14  Bruno Haible  <bruno@clisp.org>
16636         localename: Add support for per-thread locales on Solaris 11.4.
16637         * lib/locale.in.h (newlocale, freelocale): New declarations.
16638         (duplocale): Declare also when the 'localename' module requests it.
16639         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
16640         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
16641         (struniq): Update.
16642         (struct locale_categories_names, struct locale_hash_node): New types.
16643         (LOCALE_HASH_TABLE_SIZE): New constant.
16644         (locale_hash_table, locale_lock): New variables.
16645         (pointer_hash, get_locale_t_name): New functions.
16646         (newlocale, duplocale, freelocale): New overridden functions.
16647         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
16648         * m4/intlsolaris.m4: New file.
16649         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
16650         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
16651         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
16652         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
16653         declared.
16654         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
16655         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16656         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
16657         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16658         * modules/localename (Files): Add intlsolaris.m4.
16659         (Depends-on): Add 'locale'.
16660         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
16661         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
16662         the signatures.
16664 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
16666         timevar: use gethrxtime to get wall clock time
16667         clock_gettime is not portable.  gethrxtime takes the best available
16668         option to get the wall clock time, including clock_gettime (monotonic
16669         clock), and gettime (non monotonic).
16670         Also, using xtime_t instead of float preserves the precision.
16671         Suggested by Bruno Haible.
16672         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
16673         * modules/timevar (Depends-on): We need gethrxtime.
16674         We no longer use times().
16675         (Link): Update.
16676         * lib/timevar.h (timevar_time_def): Use xtime_t.
16677         * lib/timevar.c (set_to_current_time): Use gethrxtime.
16678         (timevar_print): Instead of checking whether the timings themselves
16679         are large enough for the timevar to be printed, check the percentages.
16681 2018-10-14  Bruno Haible  <bruno@clisp.org>
16683         wcsnrtombs: Work around Solaris 11.4 bug.
16684         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
16685         macro.
16686         (gl_FUNC_WCSNRTOMBS): Invoke it.
16687         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
16689 2018-10-14  Bruno Haible  <bruno@clisp.org>
16691         mbsnrtowcs: Work around Solaris 11.4 bug.
16692         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
16693         macro.
16694         (gl_FUNC_MBSNRTOWCS): Invoke it.
16695         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
16697 2018-10-14  Bruno Haible  <bruno@clisp.org>
16699         doc: Update for Solaris 11.4.
16700         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
16701         mention Solaris 11.4.
16702         * m4/printf.m4: Update comments about Solaris.
16703         * m4/log.m4: Likewise.
16704         * m4/log10.m4: Likewise.
16705         * m4/logb.m4: Likewise.
16706         * m4/logbf.m4: Likewise.
16707         * m4/logbl.m4: Likewise.
16708         * m4/rename.m4: Likewise.
16709         * m4/wcrtomb.m4: Likewise.
16710         * m4/hostent.m4: Likewise.
16711         * m4/servent.m4: Likewise.
16713 2018-10-14  Bruno Haible  <bruno@clisp.org>
16715         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
16716         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
16717         pointer.
16718         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
16719         pointer.
16720         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
16721         pointer.
16722         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
16723         pointer.
16724         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
16725         pointer.
16727 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16729         bootstrap: fix wget command for po files.
16730         * build-aux/bootstrap (po_download_command_format): Fix comment,
16731         and adjust callers.
16733 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16735         timevar: improve the output format
16736         Suggested by Bruno Haible.
16737         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
16738         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
16739         wall, since its resolution is much higher.
16741 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16743         timevar: expect that getrusage is available.
16744         Don't keep both times and getrusage as backend: both are guaranteed by
16745         gnulib, a single one suffices.  Using getrusage is open to possibly
16746         tracking other types of resources in the future.
16747         * modules/timevar (Depends-on): Add getrusage.
16748         (configure.ac): Remove gl_TIMEVAR.
16749         (Files): Remove m4/timevar.m4.
16750         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
16751         * lib/timevar.h (timevar_enabled): Clarify documentation.
16752         * lib/timevar.c: Remove all the code about times.
16753         Remove all the CPP guards about getrusage: expect it to be present
16754         (courtesy of gnulib).
16756 2018-10-12  Bruno Haible  <bruno@clisp.org>
16758         mountlist: Improve support for Solaris in 64-bit mode.
16759         Reported by David Wood <David.Wood@deshaw.com> in
16760         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
16761         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
16762         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
16763         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
16765 2018-10-12  Bruno Haible  <bruno@clisp.org>
16767         mountlist: Add support for Minix.
16768         Reported by Assaf Gordon in
16769         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
16770         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
16771         AC_CHECK_FUNCS to check for 'getmntinfo'.
16772         * lib/mountlist.c: Update comments.
16774 2018-10-12  Bruno Haible  <bruno@clisp.org>
16776         Make better use of Autoconf.
16777         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
16778         * m4/manywarnings.m4: Likewise.
16779         * m4/manywarnings-c++.m4: Likewise.
16780         * m4/socklen.m4: Likewise.
16781         * m4/sockpfaf.m4: Likewise.
16782         * m4/stdarg.m4: Likewise.
16783         * m4/visibility.m4: Likewise.
16784         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
16785         indentation.
16786         * m4/ls-mntd-fs.m4: Likewise.
16788 2018-10-11  Bruno Haible  <bruno@clisp.org>
16790         mountlist: Modernize platform lists.
16791         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
16792         platforms, deemphasizing the obsolete ones.
16793         * lib/mountlist.c: Likewise.
16795 2018-10-11  Bruno Haible  <bruno@clisp.org>
16797         getprogname: Add support for 32-bit programs on HP-UX.
16798         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
16799         try the similar functions 32-bit programs on 64-bit HP-UX.
16801 2018-10-11  Bruno Haible  <bruno@clisp.org>
16803         getprogname: Work around program name truncation when possible.
16804         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
16805         possibly use pst_cmd instead.
16807 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16809         fts: cleanup after FTS_NOATIME removal
16810         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
16811         (FTS_STOP): Shrink to minimal values.  We don’t need to
16812         worry about binary compatibility in Gnulib, and the old way
16813         of doing things had a hole in the user options that caused
16814         FTS_OPTIONMASK to not work as desired.
16816 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
16818         fts: remove FTS_NOATIME
16819         This reverts commit da4d6974013c822af1498941e32db774b2031765.
16820         We cannot guarantee that O_NOATIME works: e.g. openat fails
16821         with EPERM if the effective user ID of the caller does not match
16822         the owner of the file and the caller is not privileged.
16823         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
16824         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
16825         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
16826         (FTS_OPTIONMASK): Adjust.
16827         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
16828         (fd_ring_check): Likewise.
16830 2018-10-08  Bruno Haible  <bruno@clisp.org>
16832         csharpcomp*, csharpexec*: Remove support for pnet.
16833         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
16834         HAVE_CSCC.
16835         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
16836         Don't test HAVE_CSCC.
16837         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
16838         (compile_csharp_class): Don't invoke it.
16839         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
16840         HAVE_ILRUN.
16841         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
16842         Don't test HAVE_ILRUN.
16843         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
16844         (execute_csharp_program): Don't invoke it.
16845         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
16846         any more.
16848 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
16850         renameatu: prefer renameat2 to syscall
16851         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
16852         Use renameat2 instead of syscall (Bug#32796).
16853         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
16855 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16857         bootstrap, gnulib-tool: use https instead of insecure rsync
16858         * build-aux/bootstrap (download_po_files, po_download_command_format):
16859         Don't try using rsync; always use wget over https to fetch PO files.
16860         * gnulib-tool (func_import): Likewise.
16861         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16863 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16865         bootstrap, gnulib-tool: correct the translations wget command
16866         * build-aux/bootstrap (po_download_command_format2): Restrict
16867         recursion to a single level.
16868         * gnulib-tool (func_import): Likewise.
16869         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16871 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16873         doc: the gnulib snapshots are not maintained
16874         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
16876 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16878         timevar: add to lib_SOURCES
16879         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
16881 2018-10-07  Bruno Haible  <bruno@clisp.org>
16883         dirent: Update documentation.
16884         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
16886 2018-10-05  Bruno Haible  <bruno@clisp.org>
16888         strpbrk: Make it possible to namespace the defined symbol.
16889         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
16891 2018-10-05  Bruno Haible  <bruno@clisp.org>
16893         strcspn: Make it possible to namespace the defined symbol.
16894         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
16896 2018-10-05  Bruno Haible  <bruno@clisp.org>
16898         raise: Make it possible to namespace the defined symbol.
16899         * lib/raise.c (raise): Undefine only after the replacement function has
16900         been defined.
16901         (raise): Renamed from rpl_raise.
16902         (raise_nothrow): Move to the end of the compilation unit.
16904 2018-10-05  Bruno Haible  <bruno@clisp.org>
16906         memcmp: Make it possible to namespace the defined symbol.
16907         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
16909 2018-10-05  Bruno Haible  <bruno@clisp.org>
16911         explicit_bzero: Make it possible to namespace the defined symbol.
16912         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
16913         glibc.
16915 2018-10-05  Bruno Haible  <bruno@clisp.org>
16917         mkdir-p: Depend on 'mkdir'.
16918         * modules/mkdir-p (Depends-on): Add 'mkdir'.
16920 2018-10-05  Bruno Haible  <bruno@clisp.org>
16922         tempname: Depend on 'mkdir'.
16923         Reported by Maarten Bosmans <mkbosmans@gmail.com>
16924         at <https://savannah.gnu.org/bugs/?33379>.
16925         * modules/tempname (Depends-on): Add 'mkdir'.
16927 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
16929         timevar: rely on gnulib modules for time portability.
16930         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
16931         * m4/timevar.m4: Don't check for clock_t and struct tms,
16932         guaranteed by gnulib.
16933         * lib/timevar.h: Use extern "C" protection.
16934         Include <stdio.h> for FILE.
16935         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
16936         they are guaranteed by gnulib.
16937         Remove uses of clock as (now useless) fallback.
16939 2018-10-04  Bruno Haible  <bruno@clisp.org>
16941         sh-filename: New module.
16942         * m4/sh-filename.m4: New file.
16943         * modules/sh-filename: New file.
16944         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
16945         "/bin/sh".
16946         * tests/test-posix_spawn1.c (main): Likewise.
16947         * tests/test-posix_spawn2.c (main): Likewise.
16948         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
16949         is_envjavac_gcj43): Likewise.
16950         * lib/javaexec.c (execute_java_class): Likewise.
16951         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
16952         * modules/posix_spawnp-tests (Depends-on): Likewise.
16953         * modules/javacomp (Depends-on): Likewise.
16954         * modules/javaexec (Depends-on): Likewise.
16956 2018-10-04  Bruno Haible  <bruno@clisp.org>
16958         spawn-pipe tests: Avoid test failure on native Windows.
16959         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
16960         that fd 2 is closed.
16962 2018-10-04  Bruno Haible  <bruno@clisp.org>
16964         fcntl: Make it possible to namespace the defined symbol.
16965         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
16966         been defined.
16967         (fcntl): Renamed from rpl_fcntl.
16968         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
16969         from fcntl.
16970         (klibc_fcntl): Move to the end of the compilation unit.
16972 2018-10-02  Bruno Haible  <bruno@clisp.org>
16974         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
16975         * tests/test-vasnprintf.c (test_function): Change the test added on
16976         2018-09-23 to check only the 18 most significant digits.
16978         vasnprintf tests: Avoid test failure on Cygwin.
16979         * tests/test-vasnprintf.c (test_function): Change the test added on
16980         2018-09-23 to check only the 42 most significant digits.
16982 2018-10-01  Bruno Haible  <bruno@clisp.org>
16984         mkostemp, mkostemps: Update documentation.
16985         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
16986         * doc/glibc-functions/mkostemps.texi: Likewise.
16988 2018-10-01  Tom Tromey  <tom@tromey.com>
16990         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
16991         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
16992         on OS X.
16994 2018-09-30  Pádraig Brady  <P@draigBrady.com>
16996         hmac-*: refactor to remove repetitive code
16997         * lib/hmac.c: A new parameterized single implementation.
16998         * lib/hmac-md5.c: Define parameters and include implementation.
16999         * lib/hmac-sha1.c: Likewise.
17000         * lib/hmac-sha256.c: Likewise.
17001         * lib/hmac-sha512.c: Likewise.
17002         * modules/crypto/hmac-md5: Reference the new implementation file.
17003         * modules/crypto/hmac-sha1: Likewise.
17004         * modules/crypto/hmac-sha256: Likewise.
17005         * modules/crypto/hmac-sha512: Likewise.
17006         * tests/test-hmac-md5.c: Refactor common code to a single function.
17007         * tests/test-hmac-sha1.c: Likewise.
17008         * tests/test-hmac-sha256.c: Likewise.
17009         * tests/test-hmac-sha512.c: Likewise.
17011 2018-09-30  Zhang Qing  <zhangqingl@126.com>
17013         hmac-sha512: fix hash for keys > blocksize (128 bytes)
17014         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
17015         key length to that output by sha512, not the blocksize.
17016         Otherwise uninitialized data from the stack
17017         is used when computing the hash.
17018         * tests/test-hmac-sha512.c: Add a shortened key test case.
17019         Reported at https://github.com/coreutils/gnulib/pull/5
17021 2018-09-30  Bruno Haible  <bruno@clisp.org>
17023         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
17024         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
17025         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
17026         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
17027         'unsigned int' before comparison with an unsigned value.
17029 2018-09-30  Bruno Haible  <bruno@clisp.org>
17031         grantpt: Remove unnecessary dependency.
17032         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
17034 2018-09-30  Bruno Haible  <bruno@clisp.org>
17036         timevar: Small tweaks.
17037         * lib/timevar.h: Fix comments. Add parameter names to function
17038         declarations.
17039         * lib/timevar.c: Include timevar.h immediately after config.h.
17040         * lib/timevar.def: Fix comments.
17041         * modules/timevar (Maintainer): List Akim Demaille.
17043 2018-09-30  Bruno Haible  <bruno@clisp.org>
17045         timevar: Include documentation in gnulib manual.
17046         * doc/timevar.texi: Change node and section name to 'Profiling of
17047         program phases'.
17048         In the code snippets, tweak the #includes and use GNU coding style.
17049         * doc/gnulib.texi: Include timevar.texi.
17051 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
17053         timevar: import from Bison.
17054         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
17055         New files.
17056         * lib/timevar.def: New file.
17057         * doc/timevar.texi: New file.
17059 2018-09-26  Bruno Haible  <bruno@clisp.org>
17061         javacomp-script, javacomp: Add preliminary support for Java 12..17.
17062         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
17063         * lib/javacomp.c (default_target_version): Likewise.
17065 2018-09-26  Bruno Haible  <bruno@clisp.org>
17067         javacomp-script, javacomp: Add support for Java 11.
17068         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
17069         target-version 11.
17070         * lib/javaversion.h: Update comments.
17071         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
17072         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17073         TARGET_VERSION_BOUND, target_version_index,
17074         corresponding_classfile_version): Accept source_version 11 and
17075         target_version 11.
17076         * lib/javacomp.h: Update comments accordingly.
17078 2018-09-23  Bruno Haible  <bruno@clisp.org>
17080         vasnprintf: Fix heap memory overrun bug.
17081         Reported by Ben Pfaff <blp@cs.stanford.edu> in
17082         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
17083         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
17084         memory.
17085         * tests/test-vasnprintf.c (test_function): Add another test.
17087 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
17089         maint: mktime.c now shared with glibc
17090         * config/srclist.txt: intprops.h, timegm.c and mktime.c
17091         are now the same in Gnulib and glibc.
17093         mktime: fix _LIBC typo
17094         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
17096 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17098         dfa: optimization for state merge
17099         * lib/dfa.c (merge2): New function.
17100         (merge_nfa_state): Use it.
17102 2018-09-18  Jim Meyering  <meyering@fb.com>
17104         dfa: trivial comment fix: s/is/if/
17105         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
17107 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17109         dfa: use more-informative function name
17110         * lib/dfa.c (maybe_disable_superset_dfa):
17111         Rename from dfautf8noss.  Use change.
17113         dfa: tweak allocation performance
17114         * lib/dfa.c (merge_nfa_state, dfaoptimize):
17115         Prefer ptrdiff_t for indexes some more.
17116         Use char for flags, as it’s wide enough.
17117         Allocate queue and flags together, with one malloc call.
17118         No need to use xnmalloc since the multiplication and
17119         addition cannot overflow (it’s already been checked by
17120         earlier allocation).  Prefer memset to open-coding.
17122         dfa: prune states as we go
17123         * lib/dfa.c (prune): Remove.
17124         dfa: reorder enum for efficiency
17125         (merge_nfa_state): Prune as we go instead of at the end.
17126         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
17128         * lib/dfa.c (END): Now -1 again.  Reorder other elements
17129         of the enumeration to make it easier for GCC to generate
17130         efficient code by using fewer comparisons to check for
17131         ranges of values.
17132         (atom): Take advantage of the reordering.
17134 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17136         dfa: optimize alternation in NFA
17137         Even when similar states exist in alternation, the DFA treats them
17138         as separate items, which may complicate the transition in NFA and
17139         cause slowdown.  This change assembles the states into one.  For
17140         example, ab|ac is changed into a(b|c).  This change speeds-up
17141         matching for many branched patterns.  For example, grep speeds up
17142         more than 30× in:
17144           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
17145           time -p env LC_ALL=C grep -vf in in
17147         * lib/dfa.c (prune): New function.
17148         (merge_nfa_state): New function.  It merges similar NFA states.
17149         (dfaoptimize): New function.  It seeks merged and removed nodes.
17150         (dfaanalyze): Call new function.
17151         (dfautf8noss): Change name from dfaoptimize because of addition of new
17152         function.
17153         (dfacomp): Update caller.
17155         dfa: simplify initial state
17156         Simplifying the initial state enables easier optimization of the NFA.
17157         * lib/dfa.c (enum token): Add new element BEG.
17158         (prtok): Adjust due to adding element BEG.
17159         (dfaparse): Put BEG at a head of tokens.
17160         (state_index): Adjust due to adding element BEG.
17161         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
17162         build initial state.
17163         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
17165 2018-09-18  Bruno Haible  <bruno@clisp.org>
17167         file-has-acl: Fix test failure on Cygwin 2.9.
17168         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
17169         * lib/acl-internal.h: Likewise.
17170         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
17171         * lib/acl-internal.c: Update comments regarding Cygwin.
17172         * lib/acl_entries.c: Likewise.
17173         * lib/file-has-acl.c: Likewise.
17174         (file_has_acl): For Cygwin, use a different way to determine whether
17175         the "default" ACL of a directory is nontrivial.
17176         * lib/get-permissions.c: Update comments regarding Cygwin.
17177         * lib/set-permissions.c: Likewise.
17179 2018-09-18  Bruno Haible  <bruno@clisp.org>
17181         stat-time tests: Fix test failure on Cygwin.
17182         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
17184 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17186         doc: OS X 10.11 lacked ns time functions
17187         According to <https://github.com/zeromq/libzmq/issues/2175>,
17188         nanosecond-resolution timestamp functions were introduced
17189         in macOS 10.12, so document the last version (OS X 10.11)
17190         where they were absent.
17192         gettime: nanotime never existed
17193         Problem reported by Bruno Haible in:
17194         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
17195         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
17196         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
17198 2018-09-18  Bruno Haible  <bruno@clisp.org>
17200         doc: Update statement about target platforms.
17201         Reported by Simon Sobisch.
17202         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
17203         restrictions on MSVC versions.
17205 2018-09-18  Bruno Haible  <bruno@clisp.org>
17207         posix_spawn tests: Fix link error on 64-bit Cygwin.
17208         * tests/test-posix_spawn1.c (environ): Remove declaration.
17209         * tests/test-posix_spawn2.c (environ): Likewise.
17210         * tests/test-posix_spawn3.c (environ): Likewise.
17211         * tests/test-posix_spawn4.c (environ): Likewise.
17212         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
17213         * modules/posix_spawnp-tests (Depends-on): Likewise.
17215 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17217         timespec: new function current_timespec
17218         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
17219         and don’t worry about it failing on a CLOCK_REALTIME arg.
17220         POSIX requires it to succeed and I don’t know of any
17221         counterexamples where the fallbacks would work.
17222         (current_timespec): New function, taken from Emacs.  It is more
17223         convenient than gettime, and can help register allocation.
17224         * lib/timespec.h: Include arg-nonnull.h.
17225         (current_timespec): New declaration.
17226         (gettime, settime): Declare args to be nonnull.
17227         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
17229 2018-09-16  Bruno Haible  <bruno@clisp.org>
17231         setlocale: Improve locale handling on macOS 10.12 or newer.
17232         * lib/setlocale.c: Include header files for CoreFoundation. Declare
17233         gl_locale_name_canonicalize.
17234         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
17235         and LC_MESSAGES.
17236         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
17238 2018-09-16  Bruno Haible  <bruno@clisp.org>
17240         Update list of locale names with scripts on macOS.
17241         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
17242         match Mac OS X 10.13 and recent glibc.
17244 2018-09-16  Bruno Haible  <bruno@clisp.org>
17246         gettext: Use newer macOS APIs when possible.
17247         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
17248         CFLocaleCopyPreferredLanguages.
17250 2018-09-16  Bruno Haible  <bruno@clisp.org>
17252         localename: Revisit macOS specific code.
17253         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
17254         Fix comments about Mac OS X versions.
17256 2018-09-15  Bruno Haible  <bruno@clisp.org>
17258         setlocale: Improve support for locales not supported by libc.
17259         Reported by Dapeng Gao <peter@dpgao.cc> at
17260         <https://savannah.gnu.org/bugs/?54479>.
17261         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
17262         (libintl_setlocale): Use a more error-tolerant strategy when the locale
17263         to be set is not supported by libc: Emit warnings instead of failing.
17265 2018-09-15  Bruno Haible  <bruno@clisp.org>
17267         strstr, strcasestr: Add workaround against glibc-2.28 bug.
17268         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
17269         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
17270         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
17271         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
17272         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
17273         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
17274         * doc/glibc-functions/strcasestr.texi: Likewise.
17276 2018-09-14  Bruno Haible  <bruno@clisp.org>
17278         doc: Fix bottom of top-level page.
17279         Reported by Akim Demaille <akim.demaille@gmail.com> in
17280         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
17281         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
17282         mode.
17283         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
17284         accordingly.
17286 2018-09-12  Bruno Haible  <bruno@clisp.org>
17288         Add test case from a recent glibc bug.
17289         * tests/test-strstr.c (main): Add test of long needle.
17290         * tests/test-strcasestr.c (main): Likewise.
17291         * tests/test-c-strstr.c (main): Likewise.
17292         * tests/test-c-strcasestr.c (main): Likewise.
17293         * tests/test-memmem.c (main): Likewise.
17295 2018-09-12  Bruno Haible  <bruno@clisp.org>
17297         Apply Eric Blake's improvements from 2011-02-25 to more tests.
17298         * tests/test-c-strstr.c (main): Add the same tests here as well.
17300 2018-09-12  Bruno Haible  <bruno@clisp.org>
17302         Apply Jim Meyering's fix from 2015-01-11 to more tests.
17303         * tests/test-memmem.c (main): Free haystack.
17304         * tests/test-strcasestr.c (main): Likewise.
17305         * tests/test-c-strcasestr.c (main): Likewise.
17307 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
17309         xstrtol: fix missing-TYPE_SIGNED typo
17310         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
17312 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17314         timespec: fix resolution confusion
17315         In normal usage, clock resolution is given in seconds, but the
17316         code was mistakenly using inverse seconds and calling it
17317         “resolution”.  Fix this, partly by renaming two identifiers.
17318         The old names will be kept for a bit, to ease transition.
17319         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
17320         New constants, replacing TIMESPEC_RESOLUTION and
17321         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
17322         All uses changed.
17324 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
17326         mktime: simplify in prep for glibc merge
17327         * lib/mktime.c, lib/timegm.c [_LIBC]:
17328         Include mktime-internal.h (a small file just for glibc)
17329         instead of using a typedef.
17331 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
17333         intprops: minor clarification of code
17334         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
17335         Use _GL_INT_CONVERT rather than reinventing it.
17337 2018-09-07  Bruno Haible  <bruno@clisp.org>
17339         Fix a comment.
17340         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
17342 2018-09-07  Bruno Haible  <bruno@clisp.org>
17344         posix_spawn_file_actions_addchdir: Add tests.
17345         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
17346         * tests/test-posix_spawn4.c: New file.
17347         * modules/posix_spawn_file_actions_addchdir-tests: New file.
17349 2018-09-07  Bruno Haible  <bruno@clisp.org>
17351         posix_spawn_file_actions_addchdir: New module.
17352         Suggested by Eric Blake in
17353         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
17354         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
17355         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
17356         union member 'chdir_action'.
17357         * lib/spawn_faction_addchdir.c: New file.
17358         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
17359         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
17360         HAVE_WORKING_POSIX_SPAWN.
17361         * lib/spawn_faction_adddup2.c: Likewise.
17362         * lib/spawn_faction_addopen.c: Likewise.
17363         * m4/posix_spawn_faction_addchdir.m4: New file.
17364         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
17365         'posix_spawn_file_actions_addchdir' is present and whether
17366         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
17367         instead of HAVE_WORKING_POSIX_SPAWN.
17368         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
17369         posix_spawn_file_actions_addchdir is declared.
17370         (gl_SPAWN_H_DEFAULTS): Initialize
17371         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17372         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17373         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17374         * modules/spawn (Makefile.am): Substitute
17375         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17376         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17377         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17378         * modules/posix_spawn_file_actions_addchdir: New file.
17379         * modules/posix_spawn_file_actions_addclose (Depends-on,
17380         configure.ac): Test also REPLACE_POSIX_SPAWN.
17381         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
17382         configure.ac): Likewise.
17383         * modules/posix_spawn_file_actions_addopen (Depends-on,
17384         configure.ac): Likewise.
17385         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
17386         signature.
17387         * doc/posix-functions/posix_spawn.texi: Mention the new module.
17388         * doc/posix-functions/posix_spawnp.texi: Likewise.
17390 2018-09-06  Bruno Haible  <bruno@clisp.org>
17392         stddef: Override max_align_t on NetBSD 8.0/x86.
17393         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
17394         the value of __alignof__ (max_align_t).
17395         * doc/posix-headers/stddef.texi: Mention the issue.
17397 2018-09-06  Bruno Haible  <bruno@clisp.org>
17399         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
17400         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
17401         system fcntl.
17402         * doc/posix-functions/fcntl.texi: Document the issue.
17404 2018-09-06  Bruno Haible  <bruno@clisp.org>
17406         count-trailing-zeros tests: Rely on limits-h module.
17407         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
17408         definition.
17409         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
17411 2018-09-06  Bruno Haible  <bruno@clisp.org>
17413         count-leading-zeros tests: Rely on limits-h module.
17414         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
17415         definition.
17416         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
17418 2018-09-06  Bruno Haible  <bruno@clisp.org>
17420         count-one-bits tests: Rely on limits-h module.
17421         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
17422         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
17424 2018-09-06  Bruno Haible  <bruno@clisp.org>
17426         xstrtoll: Rely on limits-h module.
17427         * lib/xstrtol.c: Don't include intprops.h.
17428         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17429         * modules/xstrtol (Depends-on): Remove 'intprops'.
17430         * modules/xstrtoll (Depends-on): Add 'limits-h'.
17432 2018-09-06  Bruno Haible  <bruno@clisp.org>
17434         strtoll, strtoull: Rely on limits-h module.
17435         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
17436         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17437         * modules/strtoll (Depends-on): Add limits-h.
17438         * modules/strtoull (Depends-on): Likewise.
17440 2018-09-06  Bruno Haible  <bruno@clisp.org>
17442         intprops tests: Fix compilation error with pre-C99 compiler.
17443         * tests/test-intprops.c (verify_stmt): New macro.
17444         (VERIFY, main): Use it.
17446 2018-09-06  Bruno Haible  <bruno@clisp.org>
17448         limits-h: Provide numerical limits macros.
17449         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
17450         IRIX and for GCC.
17451         (WORD_BIT, LONG_BIT): Define.
17452         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
17453         <limits.h> does not define LLONG_MAX or WORD_BIT.
17454         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
17455         TYPE_MAXIMUM): New macros, from intprops.h.
17456         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
17457         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
17458         provides.
17460 2018-09-05  Bruno Haible  <bruno@clisp.org>
17462         fcntl: Don't access nonexistent optional argument.
17463         Reported by Frank Busse <f.busse@imperial.ac.uk> in
17464         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
17465         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
17466         don't consume an argument. For actions that take an 'int' argument,
17467         consume an 'int' argument.
17469 2018-09-05  Eric Blake  <eblake@redhat.com>
17471         doc: mention environ pitfall
17472         * doc/posix-functions/environ.texi (environ): Assigning NULL to
17473         environ is a glibc extension.
17475 2018-09-03  Bruno Haible  <bruno@clisp.org>
17477         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
17478         Reported by Antoine Luong <antoine.luong@c-s.fr> in
17479         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
17480         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
17481         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
17482         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
17484 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17486         mktime: fix unlikely race+overflow bug
17487         Problem reported by Alexandre Oliva in:
17488         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
17489         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
17490         to avoid an unlikely race if the compiler delays a load and
17491         if this cascades into a signed integer overflow.
17493 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17495         mktime, timegm: simplify glibc time64_t
17496         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
17497         Now long int, not time_t, since long int is the longstanding type
17498         for this in glibc and there is no need to change it even if time_t
17499         becomes 64 bits - even int would do, though this would be a change
17500         to the glibc generated code.  When this change is merged into
17501         glibc, it should simplify the time_t vs time64_t situation.
17503         mktime, timegm: simplify merge to glibc
17504         Move code around to make a merge to glibc easier to audit.
17505         This should not change behavior.
17506         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
17507         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
17508         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
17509         simplify later conditionals; default the others to zero.  In uses
17510         of these conditionals, explicitly spell out how _LIBC affects
17511         things, so it’s easier to review from a glibc viewpoint.
17512         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
17513         compartmentalize tzset issues.  Move system-dependent tzsettish
17514         code here from mktime.
17515         (mktime): Move tzsettish code to my_tzset, and move
17516         localtime_offset to within mktime so that it doesn’t
17517         need a separate ifdef.
17519 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
17521         intprops: avoid evaluation of some expressions
17522         This makes EXPR_SIGNED (e) easier to use, as it no longer
17523         evaluates the expression E.  Formerly, E was required to be free
17524         of side effects.
17525         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
17526         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
17527         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
17529 2018-08-23  Bruno Haible  <bruno@clisp.org>
17531         getcwd: Add cross-compilation guesses.
17532         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
17533         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
17534         Based on a patch by Paul Eggert.
17535         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
17536         guesses for all GNU systems.
17538 2018-08-19  Bruno Haible  <bruno@clisp.org>
17540         glob-h: Formalize side effects from other modules.
17541         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
17542         * m4/glob.m4 (gl_GLOB): Invoke it.
17544         fnmatch-h: Formalize side effects from other modules.
17545         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
17546         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
17548         limits-h: Formalize side effects from other modules.
17549         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
17550         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
17552 2018-08-19  Bruno Haible  <bruno@clisp.org>
17554         getpass: Move declaration to <unistd.h>.
17555         * lib/unistd.in.h (getpass): New declaration.
17556         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
17557         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
17558         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
17559         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
17560         On glibc systems, don't set REPLACE_GETPASS to 1.
17561         * modules/getpass (Depends-on): Add 'unistd'.
17562         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
17563         (Include): Specify <unistd.h> instead of "getpass.h".
17564         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
17565         (configure.ac): Sync with the configure.ac section of modules/getpass.
17566         (Include): Specify <unistd.h> instead of "getpass.h".
17567         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
17568         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
17569         REPLACE_GETPASS.
17570         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
17571         REPLACE_GETPASS.
17572         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
17573         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
17574         and musl.
17575         * NEWS: Mention the change.
17577 2018-08-19  Bruno Haible  <bruno@clisp.org>
17579         glob: Fix over-optimization due to attribute __nonnull__.
17580         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
17582 2018-08-19  Bruno Haible  <bruno@clisp.org>
17584         glob: Fix another compilation error when glob.h is not replaced.
17585         Reported by Reuben Thomas <rrt@sc3d.org> in
17586         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
17587         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
17588         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
17590 2018-08-18  Bruno Haible  <bruno@clisp.org>
17592         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
17593         Reported by Reuben Thomas <rrt@sc3d.org> in
17594         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
17595         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
17596         in config.h.
17598 2018-08-18  Bruno Haible  <bruno@clisp.org>
17600         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
17601         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
17602         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
17603         Solution proposed by Eli Zaretskii.
17604         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
17605         * lib/gettimeofday.c (GetProcAddress): Likewise.
17606         * lib/link.c (GetProcAddress): Likewise.
17607         * lib/physmem.c (GetProcAddress): Likewise.
17608         * lib/poll.c (GetProcAddress): Likewise.
17609         * lib/select.c (GetProcAddress): Likewise.
17610         * lib/stat-w32.c (GetProcAddress): Likewise.
17612 2018-08-18  Bruno Haible  <bruno@clisp.org>
17614         glob: Fix another compilation error when glob.h is not replaced.
17615         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
17616         * lib/globfree.c: Include <libc-config.h>.
17618 2018-08-18  Bruno Haible  <bruno@clisp.org>
17620         glob: Fix compilation error when glob.h is not replaced.
17621         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
17622         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
17623         * lib/glob_pattern_p.c: Include <libc-config.h>.
17624         * modules/glob (Depends-on): Add libc-config.
17626 2018-08-18  Bruno Haible  <bruno@clisp.org>
17628         scratch_buffer: Add tests.
17629         * tests/test-scratch-buffer.c: New file.
17630         * modules/scratch_buffer-tests: New file.
17632 2018-08-18  Bruno Haible  <bruno@clisp.org>
17634         scratch_buffer: Fix include file.
17635         Reported by Reuben Thomas <rrt@sc3d.org> in
17636         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
17637         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
17638         double-inclusion guard.
17640 2018-08-18  Bruno Haible  <bruno@clisp.org>
17642         glob-h: Revert Paul Eggert's revert.
17643         * m4/glob_h.m4: Revert to previous state.
17644         * modules/glob-h: Likewise.
17646 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17648         glob-h: always build glob.h
17649         This works around a problem reported by Reuben Thomas in:
17650         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
17651         This workaround always builds glob.h, even on platforms that
17652         do not need it; perhaps this could be improved someday.
17653         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
17654         is always created now.
17655         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
17657 2018-08-13  Bruno Haible  <bruno@clisp.org>
17659         monetary: Simplify m4 code.
17660         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
17661         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
17663 2018-08-13  Bruno Haible  <bruno@clisp.org>
17665         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
17666         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
17667         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
17668         and by Paul J. Lucas <paul@lucasmail.org> in
17669         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
17670         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
17672 2018-08-11  Bruno Haible  <bruno@clisp.org>
17674         setlocale: Trivial simplification.
17675         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
17677 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17679         verify: port 'assume' to traditional tools
17680         * lib/verify.h (assume): Port better to Oracle Studio 12.6
17681         and other tools that use /*NOTREACHED*/ comments.
17683 2018-08-10  Bruno Haible  <bruno@clisp.org>
17685         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
17686         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17687         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
17688         'fnmatch-gnu' is in use.
17690 2018-08-07  Bruno Haible  <bruno@clisp.org>
17692         glob-h: Add tests.
17693         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
17694         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
17695         tests/test-glob-h.c.
17696         * modules/glob-h-tests: New file.
17697         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
17698         conditions.
17699         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
17700         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
17702 2018-08-07  Bruno Haible  <bruno@clisp.org>
17704         glob-h: New module.
17705         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
17706         replacements.
17707         * lib/glob.c: Include <config.h>.
17708         * m4/glob_h.m4: New file.
17709         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
17710         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17711         REPLACE_GLOB_PATTERN_P as appropriate.
17712         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
17713         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
17714         * modules/glob-h: New file.
17715         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
17716         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
17717         lstat, sys_stat. Change conditions.
17718         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17719         REPLACE_GLOB_PATTERN_P. Set module indicator.
17720         (Makefile.am): Remove code that is moved to glob-h.
17721         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
17722         * modules/posixcheck (Depends-on): Add glob-h.
17724 2018-08-06  Bruno Haible  <bruno@clisp.org>
17726         Force generation of substitute .h file when C++ support is enabled.
17727         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
17728         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
17729         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
17730         FNMATCH_H to non-empty.
17731         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
17732         ICONV_H to non-empty.
17733         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
17734         MONETARY_H to non-empty.
17735         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
17736         non-empty.
17738 2018-08-06  Bruno Haible  <bruno@clisp.org>
17740         fnmatch-h: Fix test compilation error on mingw (regression from today).
17741         * lib/fnmatch.in.h: Fix conditions.
17743 2018-08-06  Bruno Haible  <bruno@clisp.org>
17745         sys_resource: Relicense under LGPLv2+.
17746         John Malmberg's approval is in
17747         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
17748         * modules/sys_resource (License): Change to LGPLv2+.
17750 2018-08-06  Bruno Haible  <bruno@clisp.org>
17752         fnmatch-h: Add tests.
17753         * tests/test-fnmatch-h.c: New file.
17754         * modules/fnmatch-h-tests: New file.
17755         * tests/test-fnmatch-h-c++.cc: New file.
17756         * modules/fnmatch-h-c++-tests: New file.
17758 2018-08-06  Bruno Haible  <bruno@clisp.org>
17760         fnmatch-h: New module.
17761         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
17762         replacements.
17763         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
17764         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
17765         'posixcheck' warning.
17766         * m4/fnmatch_h.m4: New file.
17767         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
17768         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
17769         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
17770         as appropriate.
17771         * modules/fnmatch-h: New file.
17772         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
17773         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
17774         conditions.
17775         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
17776         indicator.
17777         (Makefile.am): Remove code that is moved to fnmatch-h.
17778         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
17779         REPLACE_FNMATCH.
17780         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
17781         * modules/posixcheck (Depends-on): Add fnmatch-h.
17783 2018-08-06  Bruno Haible  <bruno@clisp.org>
17785         Enable more C++ tests.
17786         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
17787         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
17788         * modules/strings-tests (Depends-on): Add strings-c++-tests.
17789         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
17790         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
17792 2018-08-06  Bruno Haible  <bruno@clisp.org>
17794         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
17795         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
17796         getopt.h.
17797         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
17799 2018-08-05  Bruno Haible  <bruno@clisp.org>
17801         utime-h: Generate header file when module 'posixcheck' is in use.
17802         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
17803         UTIME_H to non-empty.
17805 2018-08-05  Bruno Haible  <bruno@clisp.org>
17807         monetary: Generate header file when module 'posixcheck' is in use.
17808         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
17809         use, set MONETARY_H to non-empty.
17811 2018-08-05  Bruno Haible  <bruno@clisp.org>
17813         iconv-h: Generate header file when module 'posixcheck' is in use.
17814         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
17815         set ICONV_H to non-empty.
17817 2018-08-05  Bruno Haible  <bruno@clisp.org>
17819         Optimize the "checking whether ... is declared without a macro" checks.
17820         Suggested by Paul Eggert in
17821         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
17822         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
17823         Gnulib module 'posixcheck' is not in use.
17825 2018-08-05  Bruno Haible  <bruno@clisp.org>
17827         iconv-h: Enable 'posixcheck' warnings.
17828         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
17829         iconv_open.
17830         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
17832 2018-08-05  Bruno Haible  <bruno@clisp.org>
17834         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
17835         * m4/extern-inline.m4: Add more comments.
17836         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
17837         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
17838         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
17840 2018-08-04  Bruno Haible  <bruno@clisp.org>
17842         New module 'posixcheck'.
17843         * modules/posixcheck: New file.
17844         * m4/posixcheck.m4: New file.
17845         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
17846         (Which modules?): Reference it.
17848 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
17850         dfa: fix memory leak
17851         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
17853 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17855         ieee754-h: new module
17856         It looks like Emacs can use this for some NaN processing.
17857         Emacs uses it only on double NaNs so it should be safe.
17858         * MODULES.html.sh (func_all_modules): Add ieee754-h.
17859         * config/srclist.txt: Mention ieee754.h in a comment.
17860         * doc/glibc-headers/ieee754.texi (ieee754.h):
17861         Gnulib now has a substitute that should work
17862         except for long double and for non-IEEE platforms.
17863         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
17864         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
17866 2018-07-27  Bruno Haible  <bruno@clisp.org>
17868         iswcntrl: Mention minor problem on macOS.
17869         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
17871 2018-07-26  Colin Watson  <cjwatson@debian.org>
17873         bootstrap, gnulib-tool: fix translations rsync
17874         Previously, we created files such as $pobase/Makefile.in.in and then the
17875         subsequent rsync would immediately delete them.
17876         * build-aux/bootstrap (po_download_command_format): Avoid deleting
17877         non-.po files in target directory when rsyncing translations.
17878         * gnulib-tool (func_import): Likewise.
17879         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17881 2018-07-25  Jim Meyering  <meyering@fb.com>
17883         bootstrap: reinstate definition fo gnulib_mk.
17884         That variable is used at least by cppi.
17885         * build-aux/bootstrap (gnulib_mk): Restore definition.
17886         This reverts the deletion from v0.1-1844-gc66dba9ba.
17888 2018-07-23  Bruno Haible  <bruno@clisp.org>
17890         doc: For module names, use texinfo markup @code{} or @samp{}.
17891         * doc/alloca.texi: Mark gnulib module names with @code.
17892         * doc/alloca-opt.texi: Likewise.
17893         * doc/quote.texi: Likewise.
17894         * doc/posix-functions/freopen.texi: Likewise.
17895         * doc/posix-functions/open.texi: Likewise.
17896         * doc/posix-functions/readlink.texi: Likewise.
17897         * doc/posix-functions/readlinkat.texi: Likewise.
17898         * doc/posix-functions/stdout.texi: Likewise.
17899         * doc/posix-functions/stderr.texi: Likewise.
17900         * doc/posix-functions/unlink.texi: Likewise.
17901         * doc/posix-functions/unlinkat.texi: Likewise.
17902         * doc/posix-functions/utime.texi: Likewise.
17903         * doc/posix-functions/utimensat.texi: Likewise.
17904         * doc/posix-functions/utimes.texi: Likewise.
17905         * doc/posix-headers/stdint.texi: Likewise.
17906         * doc/glibc-functions/futimesat.texi: Likewise.
17907         * doc/glibc-functions/lutimes.texi: Likewise.
17908         * doc/glibc-functions/memmem.texi: Likewise.
17910 2018-07-23  Werner LEMBERG  <wl@gnu.org>
17912         doc: Avoid some overfull lines in the TeX output.
17913         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
17914         @example.
17915         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
17916         newline before the long URL.
17917         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
17918         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
17919         Add line breaks in code snippets.
17921 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
17923         hard-locale: simplify by removing hard-locale.m4
17924         * m4/hard-locale.m4: Remove.
17925         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
17926         (configure.ac): Do not call gl_HARD_LOCALE.
17928         gnulib-tool: limit line length for git send-email
17929         * gnulib-tool (func_import): Break actioncmd log line
17930         into multiple lines.
17932 2018-07-16  Bruno Haible  <bruno@clisp.org>
17934         ffs: Ensure declaration on mingw.
17935         Reported by Daniel P. Berrangé <berrange@redhat.com>
17936         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
17937         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
17938         also declared.
17940 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
17942         regex-tests: add dependency
17943         * modules/regex-tests (Depends-on): Add gettext-h.
17944         This is needed given the recent changes to regex,
17945         which no longer depends on gettext-h.
17947 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17949         regex: now in sync with glibc
17950         * config/srclist.txt: Gnulib and glibc regex code
17951         are synchronized again.
17953 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17955         renameatu: rename from renameat2
17956         It's looking like Glibc will add a renameat2 function
17957         that is incompatible with Gnulib renameat2; see:
17958         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
17959         To help avoid future confusion, rename renameat2 to something else.
17960         Use the name 'renameatu', as the Gnulib function is close to the
17961         Glibc function.  Perhaps someday there will also be a renameat2
17962         Gnulib module, which mimicks the future glibc renameat2, but that
17963         can wait as nobody seems to need such a module now.
17964         * NEWS: Mention this.
17965         * lib/renameatu.c: Rename from lib/renameat2.c.
17966         * lib/renameatu.h: Rename from lib/renameat2.h.
17967         * modules/renameatu: Rename from modules/renameat2.
17968         * modules/renameatu-tests: Rename from modules/renameat2-tests.
17969         All uses of "renameat2" in identifiers or file name
17970         changed to "renameatu", except for two instances in
17971         lib/renameatu.c that deal with the Linux kernel's
17972         renameat2 syscall.
17974 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17976         gnulib-tool: minor tweaks for --gnu-make
17977         * gnulib-tool: Do not allow --gnu-make in test modes,
17978         since they all require automake.
17979         (func_emit_lib_Makefile_am): Don’t emit automake comment
17980         if --gnu-make.
17982         regex: work around conditional-dependencies glitch
17983         * modules/regex (Depends-on): Add langinfo.
17984         Without this change, I had problems building an experimental
17985         version of GNU Emacs.  The symptom of the bug was a message
17986         ‘./configure: line 12726: test: =: unary operator expected’.
17987         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
17988         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
17989         was unset.  Although gl_FUNC_NL_LANGINFO has
17990         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
17991         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
17992         --conditional-dependencies sometimes arranges for the
17993         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
17994         code.  Since the regex code includes <langinfo.h> it should be
17995         depending on the langinfo module anyway, and this happens to work
17996         around the bug, so install that as a workaround for now.  To
17997         reproduce the original problem, run the following shell script on
17998         the version of Gnulib just before this patch was installed.
17999                 rm -fr foo
18000                 mkdir foo
18001                 cat >foo/configure.ac <<'EOF'
18002                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
18003                 gl_EARLY
18004                 gl_INIT
18005                 AC_OUTPUT
18006                 EOF
18007                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
18008                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
18009                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
18010                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
18011                 cd foo
18012                 aclocal -I m4
18013                 autoconf
18014                 ./configure --with-included-regex
18016 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18018         wchar: fix bug when checking for ‘inline’
18019         I discovered this when looking into using the regex module
18020         with Emacs.
18021         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
18022         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
18023         conftest1.c and conftest2.c but these files were not created.
18024         As far as I can see, this check never worked and nobody reported
18025         it until now, which is a bit worrisome.
18027 2018-06-30  Jim Meyering  <meyering@fb.com>
18029         bootstrap: s/--option val/--option=val/
18030         * build-aux/bootstrap (gnulib_tool_options): Change the
18031         spelling of "--option val" pairs to "--option=val", for
18032         aesthetics, and also so that this file no longer triggers
18033         a common help2man syntax-check warning when copied into
18034         projects like grep, gzip, etc.
18036 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18038         manywarnings: omit -Wswitch-default
18039         This should make things more consistent, as we already ignore
18040         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
18041         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
18042         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
18043         Add -Wswitch-default.
18044         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
18045         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18046         Remove -Wswitch-default.
18048         regex: revert most trimming
18049         Problems reported by Bruno Haible in:
18050         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
18051         * modules/regex (Depends-on): Add lock, memcmp, memmove,
18052         and wctype back in.  lock because regex users shouldn’t
18053         need to know that regex needs locking, and the rest because
18054         gnulib-tool should ordinarily ignore them anyway.
18056 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18058         regex: trim module dependencies
18059         * modules/regex (Depends-on): Remove gettext-h and lock,
18060         since the regex code should work OK without these modules,
18061         and Emacs uses it that way.  Also remove memcmp, memmove,
18062         and wctype, as these modules are obsolete and should not be
18063         needed any more.
18065 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
18067         regex: glibc does not use intprops.h
18068         Maybe we can talk glibc into using intprops.h someday, but
18069         now doesn’t seem to be a good time.
18070         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
18071         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
18072         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
18074 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
18076         regex: port to recently proposed glibc regex merge
18077         This patch is inspired by Adhemerval Zanella's recent proposal
18078         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
18079         to merge glibc and Gnulib regex.  It aims to simplify the merge on
18080         the glibc side, without keeping Gnulib portable.
18081         * lib/regex.h: Fix a problem with glibc installed-header checking,
18082         as follows:
18083         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
18084         (_Restrict_arr_): Prefer __restrict_arr if defined,
18085         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
18086         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
18087         (build_wcs_upper_buffer, build_upper_buffer)
18088         (re_string_translate_buffer, re_string_context_at):
18089         Move decls here from lib/regex_internal.h, for glibc internal tests.
18090         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
18091         glibc BZ #18496.
18092         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
18093         -Wunused-value.
18094         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
18095         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
18096         (bitset_mask): Now static inline, and without any __attribute__
18097         ((unused)) decoration, for glibc internal tests.
18099 2018-06-25  Bruno Haible  <bruno@clisp.org>
18101         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
18102         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
18103         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
18104         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
18105         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
18106         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
18107         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
18108         / -lthread / -lpth does not get optimized away by a preceding
18109         --as-needed option.
18111 2018-06-25  Bruno Haible  <bruno@clisp.org>
18113         Continue to use spaces for indentation, not tabs.
18114         * MODULES.html.sh: Untabify.
18115         * doc/regex.texi: Likewise.
18116         * lib/acl-internal.c: Likewise.
18117         * lib/dfa.c: Likewise.
18118         * lib/exclude.c: Likewise.
18119         * lib/exclude.h: Likewise.
18120         * lib/get-permissions.c: Likewise.
18121         * lib/gettimeofday.c: Likewise.
18122         * lib/parse-datetime.y: Likewise.
18123         * lib/pselect.c: Likewise.
18124         * lib/set-permissions.c: Likewise.
18125         * lib/time.in.h: Likewise.
18126         * m4/canonicalize.m4: Likewise.
18127         * m4/gc.m4: Likewise.
18128         * m4/gnulib-common.m4: Likewise.
18129         * m4/pthread_sigmask.m4: Likewise.
18130         * m4/vararrays.m4: Likewise.
18131         * tests/test-digest.h: Likewise.
18132         * tests/test-fcntl-h.c: Likewise.
18133         * tests/test-timespec.c: Likewise.
18134         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
18136 2018-06-25  Bruno Haible  <bruno@clisp.org>
18138         manywarnings: Don't enable -Wjump-misses-init warnings by default.
18139         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
18140         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
18141         -Wjump-misses-init.
18143 2018-06-25  Jim Meyering  <meyering@fb.com>
18145         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
18146         * lib/acl-internal.h (free_permission_context): Remove that
18147         attribute directive.  Otherwise, it would provoke this from GCC 9:
18148         lib/acl-internal.h:300:3: error: 'const' attribute on function \
18149           returning 'void' [-Werror=attributes]
18151 2018-06-24  Jim Meyering  <meyering@fb.com>
18153         parse-datetime: accommodate gcc-4.8.5
18154         Bruno Haible reported the build failure in
18155         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
18156         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
18157         on declaration of new local.
18159 2018-06-24  Bruno Haible  <bruno@clisp.org>
18161         af_alg: Fail in continuable manner on Linux/powerpc64le.
18162         Reported by Assaf Gordon <assafgordon@gmail.com>
18163         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
18164         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
18165         byte send() as the first round.
18167 2018-06-24  Bruno Haible  <bruno@clisp.org>
18169         af_alg: Fix state of stream after sendfile() succeeds.
18170         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
18171         the stream is correctly positioned afterwards.
18172         * modules/crypto/af_alg (Depends-on): Add fflush.
18173         * tests/test-digest.h (test_digest_on_files): Verify that after the
18174         operation the stream is positioned at end of file.
18176 2018-06-24  Jim Meyering  <meyering@fb.com>
18178         canon-host: take GCC9's advice rather than ignoring warning
18179         Pádraig Brady suggested not to ignore this GCC9 advice.
18180         * lib/canon-host.c: Undo preceding change.
18181         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
18183         parse-datetime.y: avoid spurious GCC 9 warning
18184         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
18185         a function local prior to the first "goto fail".  The prior use would
18186         evoke this:
18187         parse-datetime.y: In function 'parse_datetime2':
18188         parse-datetime.y:1791:19: error: jump skips variable initialization \
18189           [-Werror=jump-misses-init]
18190         parse-datetime.y:2385:2: note: label 'fail' defined here
18191         parse-datetime.y:188:43: note: '({anonymous})' declared here
18192         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
18194         canon-host.c: avoid spurious GCC 9 warning
18195         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
18197         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
18198         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
18199         * m4/manywarnings.m4: Remove them.
18200         Otherwise, building coreutils, I would see this:
18201         cc1: error: deprecated command line option '-Wchkp' [-Werror]
18202         cc1: error: -Wabi won't warn about anything [-Werror=abi]
18203         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
18204           which is also used by default
18205         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
18207 2018-06-24  Bruno Haible  <bruno@clisp.org>
18209         af_alg tests: Add another test.
18210         * tests/test-digest.h (test_digest_on_files): Also check a large file
18211         with a skipped header.
18212         * tests/test-md5.c: Include macros.h.
18213         * tests/test-sha1.c: Likewise.
18214         * tests/test-sha256.c: Likewise.
18215         * tests/test-sha512.c: Likewise.
18216         * modules/crypto/md5-tests (Files): Add tests/macros.h.
18217         * modules/crypto/sha1-tests (Files): Likewise.
18218         * modules/crypto/sha256-tests (Files): Likewise.
18219         * modules/crypto/sha512-tests (Files): Likewise.
18221 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18223         maint: clarify comments about sticky EOF
18224         * lib/af_alg.c: Be more direct that we can't
18225         assume stickiness of EOF for portability reasons.
18226         * lib/md5.c: Clarify that this isn't just a glibc issue.
18227         * lib/sha1.c: Likewise.
18228         * lib/sha256.c: Likewise.
18229         * lib/sha512.c: Likewise.
18231 2018-06-24  Bruno Haible  <bruno@clisp.org>
18233         af_alg: Comment and style improvements.
18234         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
18235         (afalg_buffer, afalg_stream): Improve comments.
18237 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18239         af_alg: disable kernel hash functions by default
18240         All the kernel routines were seen to be significantly slower
18241         with these relatively recent components on an i3-2310M system:
18242           kernel-4.10.6-200.fc25.x86_64
18243           openssl-1.0.2m-1.fc25.x86_64
18244         sha1 was nearly twice as slow in the kernel for example.
18245         Further considerations why this should not be the default, at:
18246         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
18248         * m4/af_alg.m4: Require --with-linux-crypto to enable.
18249         * m4/gl-openssl.m4: Tweak accordingly.
18251 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18253         af_alg: avoid hangs when reading from streams
18254         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
18255         and thus avoid doing a fread() when feof() is set.
18256         * lib/md5.c: Ensure feof() is called before fread().
18257         * lib/sha1.c: Likewise.
18258         * lib/sha256.c: Likewise.
18259         * lib/sha512.c: Likewise.
18261 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18263         af_alg: fix error handling when hash not returned
18264         * lib/af_alg.c (afalg_stream): Handle the case where we've
18265         successfully written data to the kernel in the read/write loop,
18266         but the kernel doesn't respond with the hash.
18268 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18270         libc-config: merge from glibc
18271         * lib/cdefs.h (__inline, __restrict):
18272         Copy from current glibc.  This fixes glibc bug 17721,
18273         which Gnulib had already fixed in a different way.
18274         (__nonnull): Lessen the distance from glibc by using the
18275         glibc definition inside an ‘#ifndef __nonnull’.
18276         (__attribute_nonstring__): New macro, copied from
18277         current glibc.
18278         * lib/libc-config.h (__attribute_nonstring__): New undef.
18279         (__restrict): Remove; workaround no longer needed.
18280         Keep the __inline workaround, though, as it uses HAVE___INLINE to
18281         support more compilers than the glibc __inline can.
18283 2018-06-24  Bruno Haible  <bruno@clisp.org>
18285         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
18286         * lib/mbrtowc.c (enc_t): New enum type.
18287         (locale_enc, locale_enc_cached): New functions.
18288         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
18289         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
18290         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
18291         instead.
18292         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
18293         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
18294         * modules/wcwidth (configure.ac): Invoke it.
18296 2018-06-24  Bruno Haible  <bruno@clisp.org>
18298         wchar-single: Fix test failure in wcwidth tests.
18299         * tests/test-wcwidth.c (main): If the wchar-single module is present,
18300         skip the tests in the C locale.
18302 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18304         crypto: mention --without-linux-crypto in --with-openssl --help
18305         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
18306         routines take precedence in --with-openssl help output.
18308 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18310         wchar-single: a new module to enable optimizations in wchar replacements
18311         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
18312         GNULIB_WCHAR_SINGLE is enabled.
18313         * lib/wcwidth.c (wcwidth): Likewise.
18315 2018-06-23  Bruno Haible  <bruno@clisp.org>
18317         libc-config: Fix conflict with FreeBSD include files.
18318         * lib/cdefs.h (__nonnull): Remove definition.
18319         * lib/libc-config.h (__nonnull): Remove undefinition.
18321 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18323         random_r: do not crash if state is unaligned
18324         Problem reported by Bruce Korb in:
18325         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
18326         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
18327         with 'cc -O2 -xmemalign=8s'.
18328         * lib/random_r.c: Include string.h, for memcpy.
18329         (get_int32, set_int32): New functions.
18330         (__srandom_r, __initstate_r, __setstate_r, __random_r):
18331         Use them to avoid assumption that state pointer is aligned.
18332         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
18333         * tests/test-random_r.c (test_failed): New function.
18334         (main): Use it, to test for alignment bugs.
18336         random_r: omit unnecessary include
18337         * lib/random_r.c: Do not include limits.h.
18339         random, random_r: merge from glibc
18340         * lib/random.c, lib/random_r.c:
18341         Include libc-config.h if !_LIBC, not config.h unilaterally.
18342         * lib/random.c:
18343         Do not include stdint.h or time.h; not needed.
18344         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
18345         (unsafe_state): Rename from generator.  All uses changed.
18346         Use C99-style initializers.
18347         (__random, __srandom, __initstate, __setstate): Rename from
18348         non-underscored version, but define it to non-underscored version
18349         on Gnulib.  Add a lock.
18350         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
18351         Likewise.
18352         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
18353         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
18354         (__srandom_r): Use int32_t instead of long int where int32_t will do.
18355         (__random_r): Use uint32 to fix glibc bug 17343.
18356         * modules/random, modules/random_r (Depends-on): Add libc-config.
18357         Depend on stdint only if $HAVE_RANDOM = 0.
18359 2018-06-19  Jim Meyering  <meyering@fb.com>
18361         README-release: also run any check-very-expensive tests
18362         * top/README-release: Adjust instructions so they run the
18363         check-very-expensive tests when there is such a target.
18365 2018-06-18  Bruno Haible  <bruno@clisp.org>
18367         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
18368         * m4/pthread_rwlock_rdlock.m4: Add comment.
18369         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
18370         are reader-preferring in glibc.
18371         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
18372         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
18374 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18376         crypto: use byteswap
18377         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
18378         * lib/sm3.c: Include <byteswap.h>.
18379         (SWAP): Use its macros rather than reinventing the wheel.
18380         * modules/crypto/md4, modules/crypto/md5-buffer:
18381         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
18382         * modules/crypto/sha512-buffer, modules/crypto/sm3:
18383         (Depends-on): Add byteswap.
18385 2018-06-17  Pádraig Brady  <P@draigBrady.com>
18387         gendocs.sh: fix support for legacy --texi2html
18388         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
18389         to the default makeinfo invocation.
18390         Reported by Bruce Korb
18392 2018-06-17  Bruno Haible  <bruno@clisp.org>
18394         gettext po infrastructure: Update from current gettext git.
18395         Reported by Akim Demaille <akim@lrde.epita.fr>.
18396         * build-aux/po/Makefile.in.in: Update from current gettext git.
18397         * build-aux/po/remove-potcdate.sin: Likewise.
18398         * config/srclist.txt: Temporarily disable sync for these files.
18400 2018-06-17  Bruno Haible  <bruno@clisp.org>
18402         getloadavg: Return 0 on Windows without Cygwin.
18403         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
18405 2018-06-17  Paul Smith  <psmith@gnu.org>
18407         getloadavg: Allow building on Windows without Cygwin
18408         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
18409         * m4/getloadavg.m4: Check for unistd.h.
18411 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
18413         Port crypto/af_alg to GCC 4.8.4
18414         Problem reported by Peter Simons in:
18415         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
18416         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
18418 2018-05-27  Colin Watson  <cjwatson@debian.org>
18420         bootstrap: document source fetching in --help
18421         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
18423 2018-04-09  Colin Watson  <cjwatson@debian.org>
18425         bootstrap: allow non-submodule control of gnulib
18426         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
18427         bootstrap.conf when fetching gnulib using "git clone" or via
18428         GNULIB_SRCDIR.
18430 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18432         crypto: omit stream ops Emacs doesn’t need
18433         * lib/md5.c (md5_stream):
18434         * lib/sha1.c (sha1_stream):
18435         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
18436         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18437         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
18438         defined.  Emacs needs this, as it does not use the stream
18439         operations and doesn’t need all the af_alg stuff we’ve recently
18440         added.  Perhaps a similar change is needed to the other crypto
18441         modules, but this patch changes only those needed for Emacs.
18442         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
18443         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
18444         New modules, used by Emacs.
18445         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18446         * modules/crypto/sha512: Rewrite to depend on the new modules.
18448 2018-05-20  Pádraig Brady  <P@draigBrady.com>
18450         fts: avoid a memory leak edge case
18451         * lib/fts.c (fts_open): Set an appropriate fts_level
18452         so that an immediate fts_close() will free the allocation.
18453         * tests/test-fts.c (fts_dealloc): Add a test case which
18454         will trigger under valgrind or address sanitizer.
18455         Fixes https://bugs.gnu.org/31439
18457 2018-05-20  Bruno Haible  <bruno@clisp.org>
18459         wcwidth tests: Fix link error.
18460         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
18461         $(LIBUNISTRING).
18463 2018-05-20  Bruno Haible  <bruno@clisp.org>
18465         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
18466         * modules/regex (Files): Add m4/glibc21.m4.
18468 2018-05-20  Bruno Haible  <bruno@clisp.org>
18470         localcharset: Optimize.
18471         * lib/localcharset.c (alias_table): Comment out no-op mappings for
18472         platforms where these don't matter. This reduces the table size,
18473         which in turn reduces the lookup time.
18475 2018-05-19  Bruno Haible  <bruno@clisp.org>
18477         localcharset: Map the locale encodings found in newer OSes.
18478         * lib/localcharset.c (alias_table): Add mapping for locale encodings
18479         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
18480         IRIX 6.5, Minix 3.3.
18481         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
18483 2018-05-19  Bruno Haible  <bruno@clisp.org>
18485         localcharset: Move mapping tables into the code. Use a binary search.
18486         * lib/localcharset.h: Document the GNU canonical names for character
18487         encodings here.
18488         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
18489         relocatable.h, configmake.h.
18490         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
18491         macros.
18492         (charset_aliases): Remove variable.
18493         (get_charset_aliases): Remove function.
18494         (struct table_entry): New type.
18495         (alias_table, locale_table): New constants.
18496         (locale_charset): Use the alias_table or locale_table to get the
18497         canonicalized encoding name.
18498         * lib/config.charset: Remove file.
18499         * lib/ref-add.sin: Remove file.
18500         * lib/ref-del.sin: Remove file.
18501         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
18502         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
18503         * modules/localcharset (Notice): Remove.
18504         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
18505         glibc21.m4.
18506         (Depends-on): Remove configmake.
18507         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
18508         (Makefile.am): Simplify.
18509         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
18511 2018-05-19  Bruno Haible  <bruno@clisp.org>
18513         localcharset: Add a manual test.
18514         * tests/test-localcharset.c: New file.
18515         * modules/localcharset-tests: New file.
18517 2018-05-19  Bruno Haible  <bruno@clisp.org>
18519         localcharset: Remove support for obsolete platforms.
18520         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
18521         Mac OS X 10.2. Comment out dubious entry for Solaris.
18523 2018-05-19  Jim Meyering  <meyering@fb.com>
18525         gnupload: adjust comment
18526         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
18527         more likely we'll remove the just-added code in a year or two.
18529 2018-05-19  Bruno Haible  <bruno@clisp.org>
18531         gnupload: Fix "gpg-agent is not available in this session" error.
18532         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
18534 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18536         crypto/af_alg: fix --help
18537         * m4/af_alg.m4: Avoid spurious newline in --help output.
18539 2018-05-13  Bruno Haible  <bruno@clisp.org>
18541         nl_langinfo: Fix compilation error on Android.
18542         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
18543         INT_CURR_SYMBOL, etc. only if these items are defined.
18545 2018-05-13  Bruno Haible  <bruno@clisp.org>
18547         truncate: Fix compilation error on Android.
18548         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
18549         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
18550         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
18551         HAVE_TRUNCATE.
18552         * modules/truncate: Likewise.
18553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
18554         not HAVE_TRUNCATE.
18555         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
18556         HAVE_TRUNCATE.
18557         * doc/posix-functions/truncate.texi: Mention the issue.
18559 2018-05-13  Bruno Haible  <bruno@clisp.org>
18561         pthread: Fix compilation error on Android.
18562         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
18563         recursive inclusion of this file.
18565 2018-05-13  Bruno Haible  <bruno@clisp.org>
18567         posix_spawn: Fix compilation error on Android.
18568         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
18569         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
18570         (posix_spawn_file_actions_t): Consider also the case
18571         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
18573 2018-05-13  Bruno Haible  <bruno@clisp.org>
18575         tsearch: Move from K&R C to ANSI C.
18576         * lib/tsearch.c (tfind): Convert definition to ANSI C.
18578 2018-05-13  Bruno Haible  <bruno@clisp.org>
18580         tsearch: Fix compilation error on Android.
18581         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
18582         is 0.
18583         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
18584         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
18585         GNULIB_defined_tsearch is true.
18586         (twalk): Define only if GNULIB_defined_twalk is true.
18587         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
18588         is 0.
18589         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
18590         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
18591         * modules/search (Makefile.am): Substitute HAVE_TWALK.
18593 2018-05-13  Bruno Haible  <bruno@clisp.org>
18595         imaxdiv: Fix compilation error on Android.
18596         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
18597         is not defined.
18598         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
18599         HAVE_DECL_IMAXDIV, is 0.
18600         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
18601         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
18603 2018-05-13  Bruno Haible  <bruno@clisp.org>
18605         Support selective inclusion mechanism of recent mingw.org header files.
18606         Reported by Eli Zaretskii <eliz@gnu.org>.
18607         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
18608         __need_ssize_t, or __need_time_t is defined, just include the system's
18609         <sys/types.h>.
18610         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
18611         include the system's <locale.h>.
18613 2018-05-13  Bruno Haible  <bruno@clisp.org>
18615         Avoid compilation error due to 'mmap' on Android.
18616         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
18617         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
18618         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
18619         Undefine on Android.
18621 2018-05-13  Bruno Haible  <bruno@clisp.org>
18623         Add cross-compilation guesses for Linux systems without glibc.
18624         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
18625         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18626         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18627         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18628         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18629         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18630         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18631         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18632         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18633         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
18634         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18635         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18636         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18637         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18638         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18639         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18640         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18641         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18643 2018-05-13  Bruno Haible  <bruno@clisp.org>
18645         getpagesize: Fix compilation error on Android.
18646         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
18647         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
18648         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
18649         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
18650         HAVE_GETPAGESIZE accordingly.
18651         * modules/getcwd (Files): Add m4/getpagesize.m4.
18653 2018-05-13  Bruno Haible  <bruno@clisp.org>
18655         tcgetsid: Fix compilation error on Android.
18656         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
18657         AC_CHECK_FUNC.
18659 2018-05-13  Bruno Haible  <bruno@clisp.org>
18661         getpass: Fix configure test for Android.
18662         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
18663         AC_CHECK_FUNC.
18665 2018-05-13  Bruno Haible  <bruno@clisp.org>
18667         ffs: Fix compilation error on Android.
18668         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
18670 2018-05-13  Bruno Haible  <bruno@clisp.org>
18672         mkfifo: Fix compilation error on Android.
18673         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
18674         AC_CHECK_FUNC.
18676 2018-05-13  Bruno Haible  <bruno@clisp.org>
18678         c-strtod: Fix configure test for Android.
18679         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
18680         AC_CHECK_FUNC.
18682 2018-05-13  Bruno Haible  <bruno@clisp.org>
18684         random: Fix compilation error on Android.
18685         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
18686         AC_CHECK_FUNC.
18688 2018-05-13  Bruno Haible  <bruno@clisp.org>
18690         grantpt: Fix compilation error on Android.
18691         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
18692         AC_CHECK_FUNC.
18694 2018-05-13  Bruno Haible  <bruno@clisp.org>
18696         stdioext: Fix compilation errors with newer Android headers.
18697         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
18698         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
18699         fallbacks for Android.
18700         * lib/fpending.c: Update comments.
18701         * lib/fpurge.c: Likewise.
18702         * lib/freadable.h: Likewise.
18703         * lib/freadable.c: Likewise.
18704         * lib/freadahead.c: Likewise.
18705         * lib/freading.h: Likewise.
18706         * lib/freadptr.c: Likewise.
18707         * lib/fseterr.c: Likewise.
18708         * lib/fwritable.h: Likewise.
18709         * lib/fwritable.c: Likewise.
18710         * lib/fwriting.h: Likewise.
18711         * lib/fwriting.c: Likewise.
18713 2018-05-13  Bruno Haible  <bruno@clisp.org>
18715         doc: Add info about Android versions 2.0 to 8.1.
18716         * doc/**/*.texi: Add info about functions in all released versions of
18717         Bionic.
18719 2018-05-12  Bruno Haible  <bruno@clisp.org>
18721         fseeko: On mingw, don't use the hidden function _fseeki64.
18722         Reported by Eli Zaretskii <eliz@gnu.org>.
18723         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
18724         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
18726 2018-05-12  Bruno Haible  <bruno@clisp.org>
18728         glob: Choose 'dirent_type' in a way that works better on mingw.
18729         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
18730         * lib/glob.c (dirent_type): Define as uint_fast32_t.
18732 2018-05-12  Bruno Haible  <bruno@clisp.org>
18734         execute, spawn-pipe: Avoid warning about redefining 'close'.
18735         Reported by Eli Zaretskii <eliz@gnu.org>.
18736         * lib/execute.c: Undefine 'close' before redefining it.
18737         * lib/spawn-pipe.c: Likewise.
18739 2018-05-12  Bruno Haible  <bruno@clisp.org>
18741         nanosleep: Avoid test failure on mingw when it has nanosleep.
18742         Reported by Eli Zaretskii <eliz@gnu.org>.
18743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
18744         If it does not exist, use a simpler test program that does not call
18745         alarm().
18747 2018-05-10  Bruno Haible  <bruno@clisp.org>
18749         lock, cond, thread, tls: Use a different symbol as libpthread witness.
18750         Reported by Devin Hussey <husseydevin@gmail.com>.
18751         Based on a patch by Paul Eggert.
18752         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
18753         as witness of libpthread.
18754         * lib/glthread/cond.h (pthread_in_use): Likewise.
18755         * lib/glthread/thread.h (pthread_in_use): Likewise.
18756         * lib/glthread/tls.h (pthread_in_use): Likewise.
18758 2018-05-10  Bruno Haible  <bruno@clisp.org>
18760         cond tests: Fix compilation error on Solaris.
18761         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
18762         macro.
18764 2018-05-10  Bruno Haible  <bruno@clisp.org>
18766         doc: Add partial info about Android 4.3.
18767         * doc/*-functions/*.texi: Add info about functions that were added
18768         to Bionic between Android 4.3 and Android 9.0.
18770 2018-05-10  Bruno Haible  <bruno@clisp.org>
18772         doc: Add info about Android 9.0.
18773         * doc/**/*.texi: Add info about functions and headers in Bionic from
18774         Android 9.0.
18776 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
18778         af_alg: fix my typo in afalg_buffer
18779         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
18780         (afalg_stream): Simplify and avoid the need for a runtime test
18781         at the end.
18783         af_alg: recover better from crypto failures
18784         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
18785         input stream is seekable, by repositioning the stream back to
18786         where it was, possibly by just calling sendfile with an offset
18787         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
18788         cases, which lets our callers try again with user-mode code.
18789         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
18790         instead of on fflush and lseek.
18792         af_alg: distiguish I/O errors better
18793         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
18794         not -EIO, if it’s OK for the caller to try again with user-mode code.
18795         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
18796         some other error number) if fflush fails, as the caller should not
18797         try again that case.
18799         af_alg: avoid gotos
18800         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
18801         gotos, as they were a source of unreliability and made the code a
18802         bit harder to follow.
18804         af_alg: don’t leak file descriptors into children
18805         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
18806         This code should be compiled only on recent GNU/Linux platforms
18807         so we shouldn’t have to also depend on the accept4 module.
18809         af_alg: coalesce socket creation
18810         * lib/af_alg.c (alg_socket): New function.
18811         (afalg_buffer, afalg_stream): Use it.  This avoids some
18812         code duplication and gotos.
18814         af_alg: fix file descriptor leak
18815         * lib/af_alg.c (afalg_stream): Close leak.
18817         af_alg: Pacify --enable-gcc-warnings on GCC 8
18818         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
18819         and checking to pacify gcc -Wjump-misses-init on GCC 8.
18821 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18823         af_alg: Pacify --enable-gcc-warnings
18824         Problem reported by Assaf Gordon in:
18825         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
18826         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
18827         gcc -Wjump-misses-init.
18828         * lib/sha512.c (shaxxx_stream): Now static.
18830 2018-05-06  Bruno Haible  <bruno@clisp.org>
18832         af_alg: Add ability to use Linux kernel crypto API on data in memory.
18833         * lib/af_alg.h (afalg_buffer): New declaration.
18834         * lib/af_alg.c (afalg_buffer): New function.
18836 2018-05-06  Bruno Haible  <bruno@clisp.org>
18838         af_alg: Avoid warnings.
18839         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
18840         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
18842 2018-05-06  Bruno Haible  <bruno@clisp.org>
18844         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
18845         * tests/bench-digest.h: New file.
18846         * tests/bench-md5.c: New file.
18847         * tests/bench-sha1.c: New file.
18848         * tests/bench-sha224.c: New file.
18849         * tests/bench-sha256.c: New file.
18850         * tests/bench-sha384.c: New file.
18851         * tests/bench-sha512.c: New file.
18852         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
18853         tests/bench-digest.h.
18854         (Depends-on): Add getrusage, gettimeofday.
18855         (Makefile.am): Add variables to build bench-md5.
18856         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
18857         tests/bench-digest.h.
18858         (Depends-on): Add getrusage, gettimeofday.
18859         (Makefile.am): Add variables to build bench-sha1.
18860         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
18861         tests/bench-sha256.c, tests/bench-digest.h.
18862         (Depends-on): Add getrusage, gettimeofday.
18863         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
18864         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
18865         tests/bench-sha512.c, tests/bench-digest.h.
18866         (Depends-on): Add getrusage, gettimeofday.
18867         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
18869 2018-05-06  Bruno Haible  <bruno@clisp.org>
18871         af_alg: Fix a resource leak.
18872         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
18873         New local variable 'result'.
18875 2018-05-06  Bruno Haible  <bruno@clisp.org>
18877         af_alg: Fix bug with streams that are not at position 0.
18878         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
18879         assume that the stream is positioned at position 0.
18880         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
18881         of the stream.
18882         * lib/md5.h (md5_stream): Likewise.
18883         * lib/sha1.h (sha1_stream): Likewise.
18884         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
18885         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
18886         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
18888         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
18889         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
18890         stream that is not positioned at the beginning.
18892 2018-05-06  Bruno Haible  <bruno@clisp.org>
18894         af_alg: Add configure option to enable/disable use of Linux crypto API.
18895         Suggested by Assaf Gordon <assafgordon@gmail.com>.
18896         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
18897         USE_LINUX_CRYPTO_API.
18898         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
18899         * lib/af_alg.c: Likewise.
18901 2018-05-06  Bruno Haible  <bruno@clisp.org>
18903         Followup to 'af_alg: New module.'.
18904         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
18905         * modules/crypto/sha1 (Depends-on): Likewise.
18906         * modules/crypto/sha256 (Depends-on): Likewise.
18907         * modules/crypto/sha512 (Depends-on): Likewise.
18909 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18911         crypto/{md5,sha1,sha256,sha512}: simplify
18912         * lib/md5.c (md5_stream):
18913         * lib/sha1.c (sha1_stream):
18914         * lib/sha256.c (shaxxx_stream):
18915         Simplify, partly by assuming C99.
18916         * lib/sha256.c (shaxxx_stream):
18917         New function, which implements both sha256 and sha224.
18918         Simplify, partly by assuming C99.
18919         (sha256_stream, sha224_stream):
18920         Use it to avoid code duplication, removing a FIXME.
18921         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18922         Likewise.
18924         af_alg: Improve comments.
18925         * lib/af_alg.h: Use imperatives and tighten up wording.
18927 2018-05-05  Bruno Haible  <bruno@clisp.org>
18929         af_alg: Improve comments.
18930         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
18932 2018-05-05  Bruno Haible  <bruno@clisp.org>
18934         af_alg: New module.
18935         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
18936         * lib/af_alg.c: Include "af_alg.h" before the other header files.
18937         * lib/md5.c: Include "af_alg.h" unconditionally.
18938         (md5_stream): Invoke afalg_stream unconditionally.
18939         * lib/sha1.c: Include "af_alg.h" unconditionally.
18940         (sha1_stream): Invoke afalg_stream unconditionally.
18941         * lib/sha256.c: Include "af_alg.h" unconditionally.
18942         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
18943         * lib/sha512.c: Include "af_alg.h" unconditionally.
18944         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
18945         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
18946         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
18947         * modules/crypto/af_alg: New file.
18948         * modules/crypto/md5 (Files): Remove files that are now in the
18949         'crypto/af_alg' module.
18950         (Depends-on): Add crypto/af_alg.
18951         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18952         (Makefile.am): Don't mention af_alg.c here.
18953         * modules/crypto/sha1 (Files): Remove files that are now in the
18954         'crypto/af_alg' module.
18955         (Depends-on): Add crypto/af_alg.
18956         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18957         (Makefile.am): Don't mention af_alg.c here.
18958         * modules/crypto/sha256 (Files): Remove files that are now in the
18959         'crypto/af_alg' module.
18960         (Depends-on): Add crypto/af_alg.
18961         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18962         (Makefile.am): Don't mention af_alg.c here.
18963         * modules/crypto/sha512 (Files): Remove files that are now in the
18964         'crypto/af_alg' module.
18965         (Depends-on): Add crypto/af_alg.
18966         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18967         (Makefile.am): Don't mention af_alg.c here.
18969 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18971         crypto tests: pacify GCC
18972         * tests/test-digest.h (test_digest_on_files):
18973         Don’t assume digest size fits in int (!).
18975         af_alg: minor style improvements
18976         * lib/af_alg.c (afalg_stream): Prefer C99 style
18977         decl-after-statement, since we’re already assuming C99.  Clarify
18978         by strengthening the bind test and omit unnecessary assignment.
18980 2018-05-05  Bruno Haible  <bruno@clisp.org>
18982         af_alg: Fix bug on empty files.
18983         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
18984         stream is empty.
18986 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18988         sys-limits.h: new file for crypto and safe I/O
18989         * lib/af_alg.c: Include sys-limits.h.
18990         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
18991         (afalg_stream): Also reject negative sizes for sendfile; they
18992         should not happen and the code is a bit cleaner and faster this way.
18993         * lib/safe-read.c: Include sys-limits.h.
18994         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
18995         * lib/sys-limits.h: New file, with values and commentary derived
18996         from the old safe-read.c and from GNU Emacs sysdep.c.
18997         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18998         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
18999         Add lib/sys-limits.h to Files section.
19001 2018-05-05  Bruno Haible  <bruno@clisp.org>
19003         af_alg: Improve function signature.
19004         * lib/af_alg.h (afalg_stream): Swap second and third argument.
19005         * lib/af_alg.c (afalg_stream): Likewise.
19006         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
19008 2018-05-05  Bruno Haible  <bruno@clisp.org>
19010         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
19011         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
19012         * modules/crypto/sha1 (Depends-on): Likewise.
19013         * modules/crypto/sha256 (Depends-on): Likewise.
19014         * modules/crypto/sha512 (Depends-on): Likewise.
19016 2018-05-05  Bruno Haible  <bruno@clisp.org>
19018         crypto/{md5,sha1,sha256,sha512}: Fix module description.
19019         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
19020         * modules/crypto/sha1 (Depends-on): Likewise.
19021         * modules/crypto/sha256 (Depends-on): Likewise.
19022         * modules/crypto/sha512 (Depends-on): Likewise.
19024 2018-05-05  Bruno Haible  <bruno@clisp.org>
19026         af_alg: Add documentation.
19027         * lib/af_alg.h: Add comments.
19029 2018-05-05  Bruno Haible  <bruno@clisp.org>
19031         sha512: Add tests.
19032         * tests/test-sha512.c: New file.
19033         * modules/crypto/sha512-tests: New file.
19035 2018-05-05  Bruno Haible  <bruno@clisp.org>
19037         sha256: Add tests.
19038         * tests/test-sha256.c: New file.
19039         * modules/crypto/sha256-tests: New file.
19041 2018-05-05  Bruno Haible  <bruno@clisp.org>
19043         sha1 tests: Add test for sha1_stream.
19044         * tests/test-sha1.c: Include test-digest.h.
19045         (main): Invoke test_digest_on_files on 'sha1_stream'.
19046         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
19048 2018-05-05  Bruno Haible  <bruno@clisp.org>
19050         md5 tests: Add test for md5_stream.
19051         * tests/test-digest.h: New file.
19052         * tests/test-md5.c: Include test-digest.h.
19053         (main): Invoke test_digest_on_files on 'md5_stream'.
19054         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
19056 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19058         md5sum: Use AF_ALG when available.
19059         * lib/md5.c: Include af_alg.h.
19060         (md5_stream): Use afalg_stream when available.
19061         * modules/crypto/md5 (Files): Add the af_alg files.
19062         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19063         (Makefile.am): Add af_alg.c.
19065 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19067         sha512sum: Use AF_ALG when available.
19068         * lib/sha512.c: Include af_alg.h.
19069         (sha512_stream, sha384_stream): Use afalg_stream when available.
19070         * modules/crypto/sha512 (Files): Add the af_alg files.
19071         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19072         (Makefile.am): Add af_alg.c.
19074 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19076         sha256sum: Use AF_ALG when available.
19077         * lib/sha256.c: Include af_alg.h.
19078         (sha256_stream, sha224_stream): Use afalg_stream when available.
19079         * modules/crypto/sha256 (Files): Add the af_alg files.
19080         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19081         (Makefile.am): Add af_alg.c.
19083 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19085         sha1sum: Use AF_ALG when available.
19086         * lib/af_alg.h: New file.
19087         * lib/af_alg.c: New file.
19088         * lib/sha1.c: Include af_alg.h.
19089         (sha1_stream): Use afalg_stream when available.
19090         * m4/linux-if-alg.m4: New file.
19091         * modules/crypto/sha1 (Files): Add the new files.
19092         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19093         (Makefile.am): Add af_alg.c.
19095 2018-05-05  Bruno Haible  <bruno@clisp.org>
19097         all: Replace more http URLs by https URLs.
19098         * lib/localename.c: Use https: URL.
19099         * lib/timespec.h: Likewise.
19101 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
19103         maint: port more modules to GCC 8
19104         * lib/dirname.h (base_name):
19105         * lib/exclude.h (new_exclude):
19106         * lib/xstrndup.h (xstrndup):
19107         Add malloc attribute.
19108         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
19109         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
19110         This pacifies GCC 8.
19111         * m4/gnulib-common.m4 (gl_COMMON_BODY):
19112         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
19114 2018-05-03  Bruno Haible  <bruno@clisp.org>
19116         Simplify code. Drop support for Borland C++ on Windows.
19117         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
19118         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
19119         'defined _WIN32'.
19120         * lib/canonicalize-lgpl.c: Likewise.
19121         * lib/classpath.c: Likewise.
19122         * lib/clean-temp.c: Likewise.
19123         * lib/csharpexec.c: Likewise.
19124         * lib/ctime.c: Likewise.
19125         * lib/dosname.h: Likewise.
19126         * lib/dup2.c: Likewise.
19127         * lib/errno.in.h: Likewise.
19128         * lib/error.c: Likewise.
19129         * lib/euidaccess.c: Likewise.
19130         * lib/execute.c: Likewise.
19131         * lib/fcntl.in.h: Likewise.
19132         * lib/fcntl.c: Likewise.
19133         * lib/filename.h: Likewise.
19134         * lib/findprog.c: Likewise.
19135         * lib/flock.c: Likewise.
19136         * lib/fopen.c: Likewise.
19137         * lib/freopen.c: Likewise.
19138         * lib/fstat.c: Likewise.
19139         * lib/fsync.c: Likewise.
19140         * lib/gc-gnulib.c: Likewise.
19141         * lib/get-rusage-data.c: Likewise.
19142         * lib/getaddrinfo.c: Likewise.
19143         * lib/getdelim.c: Likewise.
19144         * lib/getdtablesize.c: Likewise.
19145         * lib/gethostname.c: Likewise.
19146         * lib/getlogin.c: Likewise.
19147         * lib/getlogin_r.c: Likewise.
19148         * lib/getopt.c: Likewise.
19149         * lib/getpagesize.c: Likewise.
19150         * lib/getpass.c: Likewise.
19151         * lib/getrusage.c: Likewise.
19152         * lib/gettimeofday.c: Likewise.
19153         * lib/glob.c: Likewise.
19154         * lib/inttypes.in.h: Likewise.
19155         * lib/isapipe.c: Likewise.
19156         * lib/javaexec.c: Likewise.
19157         * lib/link.c: Likewise.
19158         * lib/localcharset.c: Likewise.
19159         * lib/localename.h: Likewise.
19160         * lib/localename.c: Likewise.
19161         * lib/localtime.c: Likewise.
19162         * lib/lseek.c: Likewise.
19163         * lib/mbsinit.c: Likewise.
19164         * lib/mkdir.c: Likewise.
19165         * lib/msvc-nothrow.h: Likewise.
19166         * lib/nanosleep.c: Likewise.
19167         * lib/nl_langinfo.c: Likewise.
19168         * lib/nonblocking.c: Likewise.
19169         * lib/nproc.c: Likewise.
19170         * lib/open.c: Likewise.
19171         * lib/openpty.c: Likewise.
19172         * lib/pathmax.h: Likewise.
19173         * lib/pipe-filter-aux.c: Likewise.
19174         * lib/pipe-filter-gi.c: Likewise.
19175         * lib/pipe-filter-ii.c: Likewise.
19176         * lib/pipe.c: Likewise.
19177         * lib/pipe2.c: Likewise.
19178         * lib/poll.c: Likewise.
19179         * lib/popen.c: Likewise.
19180         * lib/posix_openpt.c: Likewise.
19181         * lib/printf-parse.c: Likewise.
19182         * lib/progreloc.c: Likewise.
19183         * lib/putenv.c: Likewise.
19184         * lib/read.c: Likewise.
19185         * lib/relocatable.c: Likewise.
19186         * lib/rename.c: Likewise.
19187         * lib/same-inode.h: Likewise.
19188         * lib/secure_getenv.c: Likewise.
19189         * lib/select.c: Likewise.
19190         * lib/sethostname.c: Likewise.
19191         * lib/setlocale.c: Likewise.
19192         * lib/sigaction.c: Likewise.
19193         * lib/sigprocmask.c: Likewise.
19194         * lib/sleep.c: Likewise.
19195         * lib/spawn-pipe.h: Likewise.
19196         * lib/spawn-pipe.c: Likewise.
19197         * lib/spawni.c: Likewise.
19198         * lib/stat-time.h: Likewise.
19199         * lib/stat-w32.c: Likewise.
19200         * lib/stat.c: Likewise.
19201         * lib/stdio.in.h: Likewise.
19202         * lib/stdio-impl.h: Likewise.
19203         * lib/stdio-read.c: Likewise.
19204         * lib/stdio-write.c: Likewise.
19205         * lib/stdlib.in.h: Likewise.
19206         * lib/strerror_r.c: Likewise.
19207         * lib/strftime-fixes.c: Likewise.
19208         * lib/sys_stat.in.h: Likewise.
19209         * lib/sys_types.in.h: Likewise.
19210         * lib/sys_wait.in.h : Likewise.
19211         * lib/system-quote.h: Likewise.
19212         * lib/system-quote.c: Likewise.
19213         * lib/tmpdir.c: Likewise.
19214         * lib/tzset.c: Likewise.
19215         * lib/uname.c: Likewise.
19216         * lib/unistd.in.h: Likewise.
19217         * lib/utime.in.h: Likewise.
19218         * lib/utime.c: Likewise.
19219         * lib/utimecmp.c: Likewise.
19220         * lib/utimens.c: Likewise.
19221         * lib/vasnprintf.c: Likewise.
19222         * lib/vma-iter.h: Likewise.
19223         * lib/vma-iter.c: Likewise.
19224         * lib/wait-process.c: Likewise.
19225         * lib/wcsftime.c: Likewise.
19226         * lib/wctype.in.h: Likewise.
19227         * lib/write.c: Likewise.
19228         * tests/nap.h: Likewise.
19229         * tests/test-cloexec.c: Likewise.
19230         * tests/test-dup-safer.c: Likewise.
19231         * tests/test-dup2.c: Likewise.
19232         * tests/test-dup3.c: Likewise.
19233         * tests/test-fcntl.c: Likewise.
19234         * tests/test-get-rusage-data.c: Likewise.
19235         * tests/test-getaddrinfo.c: Likewise.
19236         * tests/test-getlogin.h: Likewise.
19237         * tests/test-isatty.c: Likewise.
19238         * tests/test-localename.c: Likewise.
19239         * tests/test-mbrtowc-w32.c: Likewise.
19240         * tests/test-nonblocking.c: Likewise.
19241         * tests/test-nonblocking-pipe-main.c: Likewise.
19242         * tests/test-nonblocking-socket-main.c: Likewise.
19243         * tests/test-nonblocking-socket.h: Likewise.
19244         * tests/test-pipe.c: Likewise.
19245         * tests/test-pipe2.c: Likewise.
19246         * tests/test-poll.c: Likewise.
19247         * tests/test-pthread_sigmask1.c: Likewise.
19248         * tests/test-select.h: Likewise.
19249         * tests/test-sethostname2.c: Likewise.
19250         * tests/test-sigprocmask.c: Likewise.
19251         * tests/test-spawn-pipe-child.c: Likewise.
19252         * tests/test-stat-time.c: Likewise.
19253         * tests/test-system-quote-main.c: Likewise.
19254         * tests/test-utimens-common.h: Likewise.
19255         * tests/test-wcrtomb-w32.c: Likewise.
19256         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19257         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19258         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
19259         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
19260         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
19261         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19262         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19263         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19264         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19265         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19266         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
19267         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
19268         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19269         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19270         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
19271         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19273 2018-05-02  Bruno Haible  <bruno@clisp.org>
19275         localename: Fix test failures on mingw.
19276         * lib/localename.c (gl_locale_name_thread): Remove code specific to
19277         native Windows.
19278         (gl_locale_name_posix): Move code specific to native Windows here.
19279         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
19280         Accept result without charset suffix, as it appears on mingw.
19282 2018-04-28  Paul Smith  <psmith@gnu.org>
19284         bootstrap: Avoid gnulib operations if not needed
19285         * build-aux/bootstrap: Remove unused variable gnulib_mk.
19286         Set $gnulib_extra_files early so it can be overridden in .conf.
19287         Remove redundant --import flag from $gnulib_tool_options.
19288         Set $use_gnulib to false if no gnulib modules or files are needed.
19289         If $use_gnulib is false, don't do anything related to gnulib.
19290         A lot of this is just whitespace (indentation) changes.
19292 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19294         manywarnings: port to GCC 8.0
19295         * build-aux/gcc-warning.spec: Add -Wcatch-value,
19296         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
19297         fact that the GCC help message now mentions operands for
19298         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
19299         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
19300         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
19301         and -Wunused-const-variable.
19302         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
19303         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
19304         -Wmissing-attributes, -Wmultistatement-macros,
19305         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
19306         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
19308 2018-04-24  Bruno Haible  <bruno@clisp.org>
19310         sys_socket: Make SO_REUSEPORT available across platforms.
19311         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19312         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
19313         * doc/posix-headers/sys_socket.texi: Mention the issue.
19314         * tests/test-poll.c (SO_REUSEPORT): Remove.
19315         * tests/test-select.h: Include <sys/socket.h>.
19316         (SO_REUSEPORT): Remove.
19317         * modules/select-tests (Depends-on): Add 'sys_socket'.
19319 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
19321         localcharset: short-circuit the search for an alias on a Mac
19322         * lib/localcharset.c (get_charset_aliases): Add a tautological
19323         UTF-8 entry to speed up the search for this case.
19324         Most machines default to a UTF-8 locale nowadays, so begin the
19325         list of aliases with a dummy UTF-8 entry so it will be found
19326         immediately and a time-consuming search through the rest of
19327         the list is avoided.
19329 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
19331         fts: add comment
19332         * lib/fts.c (fts_build): Explain why ==, not >.
19333         See remark by Bernhard Voelker in:
19334         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
19336         fts: fix bug in find across filesystems
19337         This fixes a bug I introduced last summer.
19338         Problem reported by Kamil Dudka in:
19339         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
19340         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
19341         (leaf_optimization):
19342         New arg for file descriptor.  All callers changed.
19343         (fts_build): Check for whether inodes should be sorted
19344         before closing the directory.
19346 2018-04-07  Bruno Haible  <bruno@clisp.org>
19348         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
19349         Reported by Genki Sky <sky@genki.is>.
19350         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
19351         version 0.9.10 or newer.
19352         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
19353         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
19354         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
19355         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
19356         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
19358 2018-04-07  Bruno Haible  <bruno@clisp.org>
19360         execute: Update comment.
19361         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
19363 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19365         fts: treat CIFS like NFS
19366         Problem reported by Kamil Dudka in:
19367         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
19368         * lib/fts.c (S_MAGIC_CIFS): New macro.
19369         (dirent_inode_sort_may_be_useful, leaf_optimization):
19370         Treat CIFS like NFS.
19372 2018-03-28  Bruno Haible  <bruno@clisp.org>
19374         c-stack: Fix possible build failure on some platforms.
19375         * lib/c-stack.c (die): Define whenever this function is referenced.
19377 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
19379         time_rz: fix workaround for Mac OS X 10.6 infloop
19380         Problems reported by Charles A. Roelli (Bug#27736#117).
19381         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
19382         Also, discard output, which clutters the 'configure' log.
19384 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
19386         havelib: port to Solaris 10 /bin/sh
19387         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
19388         instead of '! test EXPR'.
19390 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
19392         time_rz: work around Mac OS X 10.6 infloop
19393         * doc/posix-functions/localtime.texi:
19394         * doc/posix-functions/localtime_r.texi: Mention the bug.
19395         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
19396         better to fix localtime and localtime_r instead, but that would be
19397         more work and is not needed to fix the Emacs problem.
19398         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
19400 2018-03-24  Jim Meyering  <meyering@fb.com>
19402         test-version-etc.sh: don't use diff directly: use init.sh's compare
19403         We'd rather not sacrifice readable "diff -u" output even for
19404         "diff -c" output (not supported by busybox) or for even less
19405         readable ed-style "diff" output.  So use init.sh's compare function
19406         * tests/test-version-etc.sh: Source init.sh and add "." to path.
19407         Remove "./" from invocation of test-version-etc, so we use path.
19408         And s/diff/compare/.
19409         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
19410         to get init.sh.
19411         Prompted by Eric Blake's comments in
19412         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
19414 2018-03-24  Bruno Haible  <bruno@clisp.org>
19416         javacomp-script, javacomp: Add support for Java 10.
19417         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
19418         target-version 10.
19419         * lib/javaversion.h: Update comments.
19420         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19421         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19422         TARGET_VERSION_BOUND, target_version_index,
19423         corresponding_classfile_version): Accept source_version 10 and
19424         target_version 10.
19425         * lib/javacomp.h: Update comments accordingly.
19427 2018-03-24  Bruno Haible  <bruno@clisp.org>
19429         javacomp-script, javacomp: Update comments.
19430         * m4/javacomp.m4: Update comments regarding gcj.
19431         * lib/javacomp.h: Likewise.
19433 2018-03-24  Bruno Haible  <bruno@clisp.org>
19435         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
19436         * lib/javaversion.h: Update comments.
19437         * lib/javacomp.h: Likewise.
19438         * lib/javacomp.c (default_target_version, source_version_index,
19439         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
19440         "1.9".
19441         (TARGET_VERSION_BOUND): Bump to 9.
19442         (target_version_index, corresponding_classfile_version): Recognize "9"
19443         instead of "1.9".
19444         (get_source_version_for_javac): New function.
19445         (is_envjavac_nongcj_usable, is_javac_usable): Add
19446         source_version_for_javac argument.
19447         (compile_java_class): Determine and pass source_version_for_javac.
19448         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
19449         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
19450         appropriate.
19452 2018-03-23  Jim Meyering  <meyering@fb.com>
19454         test-version-etc.sh: port to diff without -c
19455         * tests/test-version-etc.sh: Don't use diff's -c option.
19456         This caused spurious test failure on Alpine Linux, which
19457         uses busybox's diff. Reported by Assaf Gordon in
19458         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
19460 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19462         c-stack: port to recent GCC build
19463         Problem reported by The Fireplace (Bug#30913).
19464         * lib/c-stack.c (die): Define only if used.
19466 2018-03-20  Bruno Haible  <bruno@clisp.org>
19468         euidaccess: Port to native Windows.
19469         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
19470         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
19472 2018-03-19  Bruno Haible  <bruno@clisp.org>
19474         javacomp: Add support for Java 7, 8, 9.
19475         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19476         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19477         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
19478         and target_version 1,7, 1.8, 1.9.
19479         * lib/javacomp.h: Update comments accordingly.
19481 2018-03-19  Bruno Haible  <bruno@clisp.org>
19483         javacomp-script: Add support for Java 9.
19484         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
19485         target-version 1.9.
19487 2018-03-16  Bruno Haible  <bruno@clisp.org>
19489         glob: Don't compile replacements on recent glibc systems.
19490         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
19491         REPLACE_GLOB is 0, include the system's <glob.h> and use
19492         _GL_CXXALIAS_SYS.
19493         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
19494         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
19495         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
19496         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
19497         Remove snippet/warn-on-use.
19498         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
19499         (Makefile.am): Create glob.h always. Update list of substitutions in
19500         glob.h. Don't depend on $(WARN_ON_USE_H).
19502 2018-03-16  Bruno Haible  <bruno@clisp.org>
19504         glob: Fix link error on native Windows.
19505         * modules/glob (Depends-on): Add 'lstat'.
19507 2018-03-15  Bruno Haible  <bruno@clisp.org>
19509         glob: Fix compilation error in C++ mode.
19510         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
19512 2018-03-15  Bruno Haible  <bruno@clisp.org>
19514         host-cpu-c-abi: Support for RISC-V CPU.
19515         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
19516         riscv32 and riscv64 ABIs.
19517         References:
19518         https://github.com/riscv/riscv-toolchain-conventions
19519         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
19520         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
19522 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19524         fflush: be more paranoid about libio.h change
19525         Suggested by Eli Zaretskii in:
19526         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
19527         * lib/fbufmode.c (fbufmode):
19528         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19529         (disable_seek_optimization, rpl_fflush):
19530         * lib/fpending.c (__fpending):
19531         * lib/fpurge.c (fpurge):
19532         * lib/freadable.c (freadable):
19533         * lib/freadahead.c (freadahead):
19534         * lib/freading.c (freading):
19535         * lib/freadptr.c (freadptr):
19536         * lib/freadseek.c (freadptrinc):
19537         * lib/fseeko.c (fseeko):
19538         * lib/fseterr.c (fseterr):
19539         * lib/fwritable.c (fwritable):
19540         * lib/fwriting.c (fwriting):
19541         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
19543 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19545         maint: write-file-hooks -> before-save-hook
19546         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
19547         it's time to use the recommended replacement.
19548         Problem reported by Glenn Morris in:
19549         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
19550         * build-aux/announce-gen, build-aux/bootstrap:
19551         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
19552         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
19553         * build-aux/gnu-web-doc-update, build-aux/gnupload:
19554         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
19555         * build-aux/update-copyright, build-aux/useless-if-before-free:
19556         * build-aux/vc-list-files:
19557         Update hook usage for files where Gnulib is the canonical source.
19559 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
19561         binary-io: pacify gcc -Wunused-parameter
19562         Problem reported by Reuben Thomas in:
19563         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
19564         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
19565         Use _GL_UNUSED where appropriate.
19567         fflush: adjust to glibc 2.28 libio.h removal
19568         Problem reported by Daniel P. Berrangé in:
19569         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
19570         * lib/fbufmode.c (fbufmode):
19571         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19572         (disable_seek_optimization, rpl_fflush):
19573         * lib/fpending.c (__fpending):
19574         * lib/fpurge.c (fpurge):
19575         * lib/freadable.c (freadable):
19576         * lib/freadahead.c (freadahead):
19577         * lib/freading.c (freading):
19578         * lib/freadptr.c (freadptr):
19579         * lib/freadseek.c (freadptrinc):
19580         * lib/fseeko.c (fseeko):
19581         * lib/fseterr.c (fseterr):
19582         * lib/fwritable.c (fwritable):
19583         * lib/fwriting.c (fwriting):
19584         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
19585         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
19586         Define if not already defined.
19588 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
19590         environ: fix link error on 32-bit Cygwin
19591         Problem reported for GNU Emacs by Ken Brown in:
19592         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
19593         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
19595 2018-02-24  Bruno Haible  <bruno@clisp.org>
19597         mbrtowc tests: Fix regression on glibc.
19598         Reported by Bernhard Voelker.
19599         * tests/test-mbrtowc.c (main): Fix expected value of wc.
19601 2018-02-24  Bruno Haible  <bruno@clisp.org>
19603         striconveha, uniconv/*: Avoid test failures on musl libc.
19604         * tests/iconvsupport.c: New file.
19605         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
19606         does not support the ISO-2022-JP-2 encoding.
19607         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
19608         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19609         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19610         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19611         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19612         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19613         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
19614         (Makefile.am): Link test-striconveha with iconvsupport.o.
19615         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
19616         tests/iconvsupport.c.
19617         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
19618         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
19619         tests/iconvsupport.c.
19620         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
19621         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
19622         tests/iconvsupport.c.
19623         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
19624         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
19625         tests/iconvsupport.c.
19626         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
19627         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
19628         tests/iconvsupport.c.
19629         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
19630         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
19631         tests/iconvsupport.c.
19632         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
19634 2018-02-24  Bruno Haible  <bruno@clisp.org>
19636         localename: Add support for musl libc.
19637         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
19638         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
19639         on Linux platforms which define NL_LOCALE_NAME.
19641 2018-02-24  Bruno Haible  <bruno@clisp.org>
19643         mbrtowc tests: Don't make assumptions about the charset the C locale.
19644         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
19645         particular mapping in the C locale.
19647 2018-02-24  Bruno Haible  <bruno@clisp.org>
19649         ptsname_r: Don't expect that this function sets errno.
19650         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
19651         from ptsname_r().
19652         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
19654 2018-02-23  Bruno Haible  <bruno@clisp.org>
19656         xmalloca: pacify gcc -Wbad-function-cast
19657         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
19659 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
19661         nl_langinfo: pacify gcc -Wunused-function
19662         * lib/nl_langinfo.c (ctype_codeset): Do not define if
19663         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
19664         this case.  Without this change, I got a diagnostic when building
19665         coreutils on Fedora 27 with gcc 7.3.1 20180130.
19667         same: pacify gcc -Wunused-variable
19668         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
19669         Omit unused variable.
19671         malloca: pacify gcc -Wbad-function-cast
19672         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
19673         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
19674         To pacify GCC, I had to cast alloca’s result to some type other
19675         than void * before casting that to uintptr_t.
19677 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19679         utimecmp: new function utimecmpat
19680         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
19681         Do not include utimens.h.
19682         (utimecmpat): New function, generalizing utimecmp.
19683         (utimecmp): Now a thin layer around utimecmpat.
19684         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
19685         utimensat instead of on lstat and utimens.
19687         same: new function same_nameat
19688         * lib/same.c: Include fcntl.h.
19689         * lib/same.c (same_nameat): New function, generalizing same_name.
19690         (same_name): Now a thin layer around same_nameat.
19691         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
19692         * modules/same (Depends-on): Depend on fstatat, openat.
19694 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
19696         warnings: Add support for Objective C.
19697         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
19698         macro.
19700 2018-02-17  Bruno Haible  <bruno@clisp.org>
19702         lock: Fix test-once1 crash on FreeBSD11.
19703         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
19704         'pthread_create', not 'pthread_cancel'.
19706 2018-02-17  Bruno Haible  <bruno@clisp.org>
19708         lock: Add test of gl_once.
19709         * tests/test-once.c: New file.
19710         * modules/lock-tests (Files): Add it.
19711         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
19713 2018-02-17  Bruno Haible  <bruno@clisp.org>
19715         thread: Fix compilation error on IRIX.
19716         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
19717         needed; include it outside the C++ extern "C" {} block.
19718         * doc/posix-headers/pthread.texi: Mention the problem with
19719         pthread_atfork on IRIX.
19721 2018-02-04  Bruno Haible  <bruno@clisp.org>
19723         nl_langinfo: Override the system's nl_langinfo() when needed.
19724         Reported by Jim Meyering.
19725         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
19726         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
19728 2018-02-04  Bruno Haible  <bruno@clisp.org>
19730         signal-h, monetary, strings: Fix build failure in some cases.
19731         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19732         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
19733         as delimiter in sed command, not '|'.
19734         * modules/monetary (Makefile.am): Likewise.
19735         * modules/strings (Makefile.am): Likewise.
19737 2018-02-03  Jim Meyering  <meyering@fb.com>
19739         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
19740         * top/maint.mk (sc_file_system): Don't complain about
19741         "/proc/filesystems".
19743 2018-02-03  Bruno Haible  <bruno@clisp.org>
19745         stdlib: Fix compilation error on OpenIndiana.
19746         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
19747         <sys/time.h>.
19748         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19749         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
19751 2018-02-03  Bruno Haible  <bruno@clisp.org>
19753         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
19754         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
19755         and use $EGREP instead of 'grep -E'.
19756         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
19757         'grep -E'.
19759 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19761         malloca: Add a compile-time verification.
19762         * lib/malloca.c (small_t): Verify that it is wide enough.
19763         * modules/malloca (Depends-on): Add verify.
19765 2018-02-02  Bruno Haible  <bruno@clisp.org>
19767         malloca: Add an argument check.
19768         Suggested by Paul Eggert.
19769         * lib/malloca.c (freea): Check against an invalid argument.
19771 2018-02-02  Bruno Haible  <bruno@clisp.org>
19773         localename: Add support for OpenIndiana.
19774         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
19775         Solaris 11 variants with uselocale() but without getlocalename_l().
19777 2018-02-02  Bruno Haible  <bruno@clisp.org>
19779         malloca, xmalloca: Make multithread-safe.
19780         Reported by Florian Weimer <fweimer@redhat.com>.
19781         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
19782         * lib/malloca.h (malloca): In the stack allocation case, return a
19783         pointer that is a multiple of 2 * sa_alignment_max.
19784         (sa_increment): Remove enum item.
19785         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
19786         a pointer that is a multiple of 2 * sa_alignment_max.
19787         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
19788         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
19789         HASH_TABLE_SIZE, mmalloca_results): Remove.
19790         (small_t): New type.
19791         (mmalloca, free): Rewritten.
19792         * lib/malloca.valgrind: Remove file.
19793         * modules/malloca (Files): Remove it.
19794         (Depends-on): Remove verify.
19796 2018-01-31  Bruno Haible  <bruno@clisp.org>
19798         environ: Fix link error on 64-bit Cygwin.
19799         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
19800         __declspec(dllimport) attribute.
19801         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
19803 2018-01-30  Bruno Haible  <bruno@clisp.org>
19805         get-rusage-data: Add support for Minix 3.
19806         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
19808 2018-01-30  Bruno Haible  <bruno@clisp.org>
19810         vma-iter: Add support for Minix 3.
19811         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
19812         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
19814 2018-01-27  Bruno Haible  <bruno@clisp.org>
19816         Fix malfunction of socket functions on HP-UX in 64-bit mode.
19817         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
19818         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
19819         _HPUX_ALT_XOPEN_SOCKET_API.
19820         * modules/accept (Depends-on): Add 'extensions'.
19821         * modules/getpeername (Depends-on): Likewise.
19822         * modules/getsockname (Depends-on): Likewise.
19823         * modules/getsockopt (Depends-on): Likewise.
19824         * modules/recvfrom (Depends-on): Likewise.
19825         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
19826         * doc/posix-functions/getpeername.texi: Likewise.
19827         * doc/posix-functions/getsockname.texi: Likewise.
19828         * doc/posix-functions/getsockopt.texi: Likewise.
19829         * doc/posix-functions/recvfrom.texi: Likewise.
19831 2018-01-27  Bruno Haible  <bruno@clisp.org>
19833         getsockname tests: More tests.
19834         * tests/test-getsockname.c (open_server_socket): New function, mostly
19835         copied from test-poll.c.
19836         (main): Check that getsockname fills in addr.
19837         * modules/getsockname-tests (Depends-on): Add the necessary
19838         dependencies.
19839         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
19841 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19843         manywarnings: fix maintainer comment
19844         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
19845         it does not mistakenly think that ‘-1)’ is an option.
19847 2018-01-26  Bruno Haible  <bruno@clisp.org>
19849         langinfo: Fix last commit.
19850         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19851         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
19853 2018-01-24  Bruno Haible  <bruno@clisp.org>
19855         langinfo, nl_langinfo: Add support for alternative month names.
19856         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
19857         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
19858         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
19859         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
19860         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
19861         * doc/posix-functions/nl_langinfo.texi: Likewise.
19863 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19865         Merge strftime.c changes from glibc
19866         This incorporates:
19867         2017-11-14 [BZ #10871] Implement alternative month names
19868         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
19869         2017-06-20 Use locale_t, not __locale_t, throughout glibc
19870         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
19871         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
19872         Use locale_t, not __locale_t.
19873         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
19874         (__strftime_internal): Add support for alternate months.
19876 2018-01-23  Bruno Haible  <bruno@clisp.org>
19878         doc: Mention another prerequisite for using Gnulib.
19879         Reported at <https://stackoverflow.com/questions/48378214/>.
19880         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
19881         AC_CONFIG_HEADERS.
19883 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
19885         build: GuixSD doesn't have /bin/bash
19886         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
19888 2018-01-21  Bruno Haible  <bruno@clisp.org>
19890         Avoid test failures on Microsoft Windows Subsystem for Linux.
19891         * tests/test-fcntl.c (main): Allow a different errno.
19892         * tests/test-rename.h (test_rename): Likewise.
19893         * tests/test-renameat.c (main): Likewise.
19894         * tests/test-renameat2.c (main): Likewise.
19896 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
19898         filenamecat: make base a suffix of result
19899         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
19900         (mfile_name_concat): Always make BASE a suffix of the result, as
19901         cp expects this.  To implement this, separate with '.' instead of
19902         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
19903         * tests/test-filenamecat.c (main): Adjust tests to match
19904         current behavior.  Check that BASE_IN_RESULT points to
19905         a copy of BASE and is a suffix of the resultk, and that DIR
19906         is a prefix of the result that is no longer than the prefix
19907         indicated by BASE_IN_RESULT.
19909 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
19911         update-copyright: Handle use of ©
19912         * build-aux/update-copyright ($circle_c_re): Update regex to
19913         handle use of © in headers.
19915 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
19917         Fix -Wundef warning in user-included header lib/cdefs.h.
19918         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
19920 2018-01-04  Bruno Haible  <bruno@clisp.org>
19922         pthread_sigmask: Avoid compilation error on mingw.
19923         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19924         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
19925         macro.
19927 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19929         test-framework-sh: ‘ps -ef’, not ‘ps ef’
19930         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
19931         Suggested by Bob Proulx (Bug#29968).
19932         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
19934 2018-01-02  Eric Blake  <eblake@redhat.com>
19936         stat-time: silence -Wunused-parameter regression
19937         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
19938         Prefer attribute over cast-to-void.
19939         (stat_time_normalize): Mark st as potentially unused.
19941 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
19943         test-framework-sh: avoid netstat
19944         Problem reported by Kristýna Streitová (Bug#29947).
19945         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
19946         deprecated on SuSE and it's not that important anyway.
19948 2018-01-01  Jim Meyering  <meyering@fb.com>
19950         update-copyright: add code to handle more special cases
19951         After running "make update-copyright" this year, five files
19952         required additional manual changes.  Automate those adjustments
19953         for next year.
19954         * Makefile (_year_and_prev): Define.
19955         (update-copyright): Add perl commands to induce this year's post-
19956         update-copyright adjustments.
19958 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19960         version-etc: new year
19961         * build-aux/gendocs.sh (version):
19962         * doc/gendocs_template:
19963         * doc/gendocs_template_min:
19964         * doc/gnulib.texi:
19965         * lib/version-etc.c (COPYRIGHT_YEAR):
19966         Update copyright dates by hand in templates and the like.
19968         maint: fix 'make update-copyright'
19969         * Makefile (update-copyright): Adjust to 2016-11-23 change
19970         to config/srclist-update, which changed the format of srclist.txt.
19972 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19974         chdir-safer: remove this module
19975         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
19976         * NEWS: Document removal.
19977         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
19978         * modules/chdir-safer: Remove these files.
19980 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
19982         Add cross-compilation results for GNU/Hurd.
19983         * m4/calloc.m4: Add GNU/Hurd guess.
19984         * m4/cbrtl.m4: Likewise.
19985         * m4/ceil.m4: Likewise.
19986         * m4/ceilf.m4: Likewise.
19987         * m4/ceill.m4: Likewise.
19988         * m4/chown.m4: Likewise.
19989         * m4/duplocale.m4: Likewise.
19990         * m4/exp2l.m4: Likewise.
19991         * m4/expm1.m4: Likewise.
19992         * m4/fchdir.m4: Likewise.
19993         * m4/floor.m4: Likewise.
19994         * m4/floorf.m4: Likewise.
19995         * m4/fmod.m4: Likewise.
19996         * m4/fmodf.m4: Likewise.
19997         * m4/fmodl.m4: Likewise.
19998         * m4/getcwd.m4: Likewise.
19999         * m4/getgroups.m4: Likewise.
20000         * m4/gettimeofday.m4: Likewise.
20001         * m4/hypot.m4: Likewise.
20002         * m4/hypotf.m4: Likewise.
20003         * m4/hypotl.m4: Likewise.
20004         * m4/link-follow.m4: Likewise.
20005         * m4/link.m4: Likewise.
20006         * m4/linkat.m4: Likewise.
20007         * m4/log.m4: Likewise.
20008         * m4/log10.m4: Likewise.
20009         * m4/log10f.m4: Likewise.
20010         * m4/log1p.m4: Likewise.
20011         * m4/log1pf.m4: Likewise.
20012         * m4/log1pl.m4: Likewise.
20013         * m4/log2.m4: Likewise.
20014         * m4/log2f.m4: Likewise.
20015         * m4/logf.m4: Likewise.
20016         * m4/lstat.m4: Likewise.
20017         * m4/malloc.m4: Likewise.
20018         * m4/mbrlen.m4: Likewise.
20019         * m4/mbrtowc.m4: Likewise.
20020         * m4/mkdir.m4: Likewise.
20021         * m4/mkfifo.m4: Likewise.
20022         * m4/mknod.m4: Likewise.
20023         * m4/mkstemp.m4: Likewise.
20024         * m4/modf.m4: Likewise.
20025         * m4/modff.m4: Likewise.
20026         * m4/modfl.m4: Likewise.
20027         * m4/printf.m4: Likewise.
20028         * m4/pselect.m4: Likewise.
20029         * m4/ptsname.m4: Likewise.
20030         * m4/putenv.m4: Likewise.
20031         * m4/readlink.m4: Likewise.
20032         * m4/realloc.m4: Likewise.
20033         * m4/remainder.m4: Likewise.
20034         * m4/remainderf.m4: Likewise.
20035         * m4/remainderl.m4: Likewise.
20036         * m4/rmdir.m4: Likewise.
20037         * m4/round.m4: Likewise.
20038         * m4/roundf.m4: Likewise.
20039         * m4/roundl.m4: Likewise.
20040         * m4/select.m4: Likewise.
20041         * m4/setenv.m4: Likewise.
20042         * m4/signbit.m4: Likewise.
20043         * m4/sleep.m4: Likewise.
20044         * m4/stat.m4: Likewise.
20045         * m4/strerror.m4: Likewise.
20046         * m4/strtok_r.m4: Likewise.
20047         * m4/symlink.m4: Likewise.
20048         * m4/symlinkat.m4: Likewise.
20049         * m4/trunc.m4: Likewise.
20050         * m4/truncf.m4: Likewise.
20051         * m4/truncl.m4: Likewise.
20052         * m4/tzset.m4: Likewise.
20053         * m4/ungetc.m4: Likewise.
20054         * m4/usleep.m4: Likewise.
20055         * m4/wcwidth.m4: Likewise.
20057 2017-12-28  Bruno Haible  <bruno@clisp.org>
20059         gnulib-tool: Make --conditional-dependencies work better.
20060         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
20061         * gnulib-tool (Options): Don't reject the combination of
20062         --conditional-dependencies with --with-tests.
20063         (func_emit_autoconf_snippets): Add argument referenceable_modules.
20064         Don't reference $modules.
20065         (func_import, func_create_testdir): Pass it.
20067 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20069         regex: use re_malloc etc. consistently
20070         Problem and original patch reported by Arnold Robbins in:
20071         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
20072         * lib/regcomp.c (re_comp):
20073         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
20074         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
20076 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
20077             Paul Eggert  <eggert@cs.ucla.edu>
20079         glob: Silence warning about void pointer arithmetic.
20080         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20081         arithmetic.
20083 2017-12-15  Bruno Haible  <bruno@clisp.org>
20085         spawn-pipe: Silence a clang warning.
20086         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20087         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
20088         in this file.
20090 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20092         explicit_bzero: port to macOS + Clang 9.0.0
20093         Problem reported by Marcus Johnson (Bug#29658).
20094         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
20095         Don’t use asm.
20097 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20099         doc: Improve explanation of supporting relocatable libraries.
20100         * doc/relocatable-maint.texi (Supporting Relocation): Explain
20101         properly how to build the relocatable module for
20102         libraries. (Method and example code from Bruno Haible.)
20104 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20106         doc: Use better texinfo tags in a few cases.
20107         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
20108         instead of @samp in a few places.
20110 2017-12-11  Bruno Haible  <bruno@clisp.org>
20112         unistr/base: Update comment.
20113         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
20115 2017-12-10  Pádraig Brady  <P@draigBrady.com>
20117         test-faccessat.c: unlink temp file to avoid subsequent test failure
20118         * tests/test-faccessat.c: Remove the file to avoid failure
20119         to open the file on subsequent runs due to being created
20120         with no permissions.
20122 2017-12-10  Bruno Haible  <bruno@clisp.org>
20124         doc: New sect. "Modifying the build rules of a Gnulib import directory".
20125         * doc/gnulib-tool.texi (Modified build rules): New node.
20127 2017-12-10  Bruno Haible  <bruno@clisp.org>
20129         doc: Tweak wording.
20130         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
20131         "binaries".
20133 2017-12-05  Sam Steingold  <sds@gnu.org>
20134             Bruno Haible  <bruno@clisp.org>
20136         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
20137         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
20138         AC_EGREP_CPP pattern.
20140 2017-12-03  Bruno Haible  <bruno@clisp.org>
20142         all: Replace more http URLs by https URLs.
20143         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
20144         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
20145         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
20146         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
20148 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
20150         Port better to CentOS 5
20151         Problems reported by Tom G. Christensen in:
20152         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
20153         * doc/glibc-functions/strverscmp.texi (strverscmp):
20154         Document strverscmp bug with glibc 2.9 and earlier.
20155         * doc/posix-functions/tzset.texi (tzset):
20156         Document that TZ with angle brackets is POSIX-2001 and later.
20157         * tests/test-nstrftime.c: Include unistd.h.
20158         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
20159         (TZ): Use it to skip tests with angle brackets in TZ,
20160         for older systems.
20162         stat: add missing module dependencies
20163         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
20164         Add stat-time.
20166 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
20168         stat: fix compilation failure on macOS Sierra
20169         Reported by Marius Schamschula <mschamschula@gmail.com> in:
20170         https://savannah.gnu.org/bugs/?52546
20171         * lib/stat.c: Add missing include of stat-time.h.
20173 2017-11-28  Jim Meyering  <meyering@fb.com>
20175         test-faccessat.c: correct BASE definition to avoid parallel test failure
20176         * tests/test-faccessat.c (BASE): Define using this file's name, not
20177         that of test-lstat.c.  Using the latter caused this test to fail
20178         sometimes when run concurrently with test-lstat.
20180 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20182         unicase: fix VPATH build
20183         * modules/unicase/special-casing (Makefile.am): Ensure that the
20184         base directory is created when generating
20185         unicase/special-casing.h.
20187 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20189         libunistring: update to Unicode 9.0.0
20190         * lib/gen-uni-tables.c (fill_properties): Recognize
20191         Sentence_Terminal and Prepended_Concatenation_Mark.
20192         (is_property_default_ignorable_code_point): Exclude U+08E2.
20193         (fill_arabicshaping): Allow missing whitespace when parsing;
20194         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
20195         (output_blocks): Increase the element size of the level1 table to
20196         accommodate more blocks.
20197         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
20198         Update each class according to the standard.
20199         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
20200         E_Base_GAZ characters.
20201         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
20202         Glue_After_Zwj, and E_Base_GAZ characters.
20203         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
20204         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
20205         enum value.
20206         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
20207         value.
20208         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
20209         LBP_ZWJ, LBP_EB, and LBP_EM.
20210         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
20211         enum value.
20212         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
20213         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
20214         declaration.
20215         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
20216         (uniwbrk_table): Implement WB14.
20217         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
20218         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
20219         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
20220         uc-is-grapheme-break.
20221         * modules/unigbrk/uc-grapheme-breaks: New module.
20222         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
20223         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
20224         enum value.
20225         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
20226         * lib/unigbrk/u-grapheme-breaks.h: New file.
20227         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
20228         u-grapheme-breaks.h instead of uc_is_grapheme_break.
20229         * lib/unigbrk/uc-grapheme-breaks.c: New file.
20230         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
20231         29.
20232         * tests/unigbrk/test-uc-gbrk-prop.c
20233         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20234         GBP_GAZ, and GBP_EBG.
20235         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
20236         * tests/unigbrk/test-uc-is-grapheme-break.c
20237         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20238         GBP_GAZ, and GBP_EBG.
20239         (main): Skip unsupported rules involving 3 or more characters,
20240         namely GB10, GB12, and GB13.
20241         * lib/uniwidth/width.c (nonspacing_table_data): Update.
20242         * all generated files under lib/uni* and tests/uni*: Regenerate.
20243         * all the affected modules: Bump version.
20245 2017-11-26  Bruno Haible  <bruno@clisp.org>
20247         strfmon_l: Fix compilation error with glibc 2.5.
20248         Reported by Tom G. Christensen <tgc@jupiterrise.com>
20249         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
20250         * lib/monetary.in.h: Include also <locale.h>.
20252 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20254         posixtm: remove PDS_LEADING_YEAR
20255         This changes the API slightly, in a hopefully-innocuous way.
20256         Without this change the code had undefined behavior when a
20257         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
20258         Problem reported by Pádraig Brady in:
20259         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
20260         * NEWS: Mention this.
20261         * lib/posixtm.c (posix_time_parse): Treat the absence of
20262         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
20263         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
20264         present, but define it as zero, for compatibility with existing
20265         source code).  All other PDS_* values moved up.
20266         * tests/test-posixtm.c (LY): New macro.
20267         (T): Use it.  Do not expect a particular numeric encoding
20268         for PDS_CENTURY etc.
20270 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20272         stat: work around Solaris bug with tv_nsec < 0
20273         * doc/posix-functions/fstat.texi (fstat):
20274         * doc/posix-functions/fstatat.texi (fstatat):
20275         * doc/posix-functions/lstat.texi (lstat):
20276         * doc/posix-functions/stat.texi (stat):
20277         Mention Solaris 11 bug.
20278         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
20279         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
20280         * lib/lstat.c (rpl_lstat):
20281         * lib/stat.c (rpl_stat):
20282         Normalize resulting timestamps.
20283         * lib/fstatat.c (normal_fstatat): New function.
20284         (rpl_fstatat): Use it.
20285         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
20286         (stat_time_normalize): New function.
20287         * m4/fstat.m4 (gl_FUNC_FSTAT):
20288         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
20289         * m4/lstat.m4 (gl_FUNC_LSTAT):
20290         * m4/stat.m4 (gl_FUNC_STAT):
20291         Replace on Solaris.
20292         * modules/fstat (Depends-on):
20293         * modules/fstatat (Depends-on):
20294         Add stat-time.
20295         * modules/stat-time (Depends-on): Add errno, intprops.
20297 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
20299         regex: merge from glibc
20300         * lib/regcomp.c (init_word_char): Add comments.
20302 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20304         regex: merge from glibc
20305         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
20306         * lib/regex_internal.h (internal_function): Remove.
20307         All uses removed.
20309 2017-11-20  Bruno Haible  <bruno@clisp.org>
20311         crypto/gc-sm3: Fix buffer overrun.
20312         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
20313         Reported by Coverity.
20315 2017-11-12  Jim Meyering  <meyering@fb.com>
20317         maint: shorten https://lists.gnu.org/archive/html/... links
20318         Each /archive/html/ part can be replace with /r/.
20319         Run this to induce the change:
20320         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
20321         * ChangeLog: Perform that substitution.
20322         * Makefile: Likewise.
20323         * STATUS-libposix: Likewise.
20324         * build-aux/bootstrap: Likewise.
20325         * doc/maintain.texi: Likewise.
20326         * gnulib-tool: Likewise.
20327         * lib/allocator.h: Likewise.
20328         * lib/argp-ba.c: Likewise.
20329         * lib/argp-pv.c: Likewise.
20330         * lib/canon-host.c: Likewise.
20331         * lib/canonicalize-lgpl.c: Likewise.
20332         * lib/float.in.h: Likewise.
20333         * lib/fstat.c: Likewise.
20334         * lib/getdelim.c: Likewise.
20335         * lib/getprogname.c: Likewise.
20336         * lib/glthread/thread.h: Likewise.
20337         * lib/intprops.h: Likewise.
20338         * lib/mbsrtowcs-state.c: Likewise.
20339         * lib/safe-read.c: Likewise.
20340         * lib/signal.in.h: Likewise.
20341         * lib/stat.c: Likewise.
20342         * lib/stdbool.in.h: Likewise.
20343         * lib/stdio-impl.h: Likewise.
20344         * lib/stdio.in.h: Likewise.
20345         * lib/sysexits.in.h: Likewise.
20346         * lib/timespec.h: Likewise.
20347         * lib/wcsrtombs-state.c: Likewise.
20348         * m4/alloca.m4: Likewise.
20349         * m4/extern-inline.m4: Likewise.
20350         * m4/fstatat.m4: Likewise.
20351         * m4/gnulib-common.m4: Likewise.
20352         * m4/lib-ignore.m4: Likewise.
20353         * m4/printf.m4: Likewise.
20354         * m4/regex.m4: Likewise.
20355         * m4/stat-size.m4: Likewise.
20356         * m4/std-gnu11.m4: Likewise.
20357         * m4/stdbool.m4: Likewise.
20358         * m4/sys_types_h.m4: Likewise.
20359         * m4/threadlib.m4: Likewise.
20360         * m4/vararrays.m4: Likewise.
20361         * pygnulib/GLImport.py: Likewise.
20362         * tests/test-exp.h: Likewise.
20363         * tests/test-exp2.h: Likewise.
20364         * tests/test-expm1.h: Likewise.
20365         * tests/test-fflush2.c: Likewise.
20366         * tests/test-getopt_long.h: Likewise.
20367         * tests/test-intprops.c: Likewise.
20368         * tests/test-log.h: Likewise.
20369         * tests/test-log10.h: Likewise.
20370         * tests/test-log1p.h: Likewise.
20371         * tests/test-log2.h: Likewise.
20372         * tests/test-printf-posix.h: Likewise.
20373         * tests/test-regex.c: Likewise.
20374         * tests/test-snprintf-posix.h: Likewise.
20375         * tests/test-sprintf-posix.h: Likewise.
20376         * tests/test-stdalign.c: Likewise.
20377         * tests/test-stdbool.c: Likewise.
20378         * tests/test-vasnprintf-posix.c: Likewise.
20379         * tests/test-vasprintf-posix.c: Likewise.
20380         * top/maint.mk: Likewise.
20382 2017-11-12  Bruno Haible  <bruno@clisp.org>
20384         faccessat: Make the last change more robust.
20385         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
20386         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
20388 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20390         faccessat: port to macOS (Bug#29231)
20391         macOS faccessat has the same bug that lstat does: if the file
20392         name ends in '/' it ignores the trailing slash.
20393         Problem reported for Emacs by Vincent Zhang.
20394         * doc/posix-functions/faccessat.texi (faccessat): Document this.
20395         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
20396         around the initial includes.  Include errno.h, string.h, sys/stat.h.
20397         (orig_faccessat) [HAVE_FACCESSAT]: New function.
20398         Include "unistd.h" after defining it.
20399         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
20400         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
20401         Handle in the usual way.
20402         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
20403         lstat dereferences symlinks, since faccessat is likely to
20404         have the same problem.
20405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
20406         * modules/faccessat (Depends-on): Add fstatat.
20407         Depend if REPLACE_FACCESSAT is 1, too.
20408         (configure.ac): Link if REPLACE_FACCESSAT is 1.
20409         * modules/faccessat-tests (Depends-on): Add symlink.
20410         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
20411         * tests/test-faccessat.c (main): Test for the bug.
20413 2017-11-11  Bruno Haible  <bruno@clisp.org>
20415         getprogname: Fix compilation error on IRIX.
20416         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
20417         'namesize'.
20419 2017-11-11  Bruno Haible  <bruno@clisp.org>
20421         year2038: Tweak last patch.
20422         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
20424 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20426         year2038: be more insistent about 64-bit time_t
20427         Applications requiring access to arbitrary files should not be
20428         built with 32-bit time_t on hosts that have 64-bit timestamps,
20429         as this can lead to real trouble at runtime.
20430         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
20431         Check on all systems, not just MinGW.  Use a heuristic involving
20432         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
20433         output a failure or just a warning, to make it more likely that
20434         builders will select 64-bit time_t.
20436 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20438         havelib: fix typo in previous change
20439         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
20441         Don’t use AC_EGREP_CPP if affected by CFLAGS
20442         * m4/float_h.m4 (gl_FLOAT_H):
20443         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
20444         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
20445         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
20446         * m4/year2038.m4 (gl_YEAR2038):
20447         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
20448         likely to be affected by the choice of CFLAGS, since CFLAGS are
20449         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
20450         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
20452         fstatat: pacify GCC on unusual platform
20453         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
20454         Omit, as it’s unused in this case.
20456 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20458         timespec: prefer ‘assume’ to ‘assure’
20459         This avoids some runtime tests.  The rest of the module makes
20460         similar assumptions and there is little point to testing here.
20461         * lib/timespec.h: Include verify.h instead of assure.h.
20462         (timespec_cmp): Use ‘assume’, not ‘assure’.
20463         Also, remove an unnecessary cast to ‘int’, as lots of other
20464         code in this module now causes -Wconversion to complain, and
20465         this is a problem with -Wconversion not with the code.
20467         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
20469         Port recent gnulib-tool change to Dash
20470         * gnulib-tool (func_create_testdir): Don't assume that the shell
20471         retokenizes after expanding "$@" inside the call to
20472         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
20474 2017-10-27  Jim Meyering  <meyering@fb.com>
20476         timespec.h: use "assure" to avoid a spurious warning
20477         * lib/timespec.h: Include "assure.h" and use it to help
20478         gcc7's -Wstrict-overflow avoid a false positive warning
20479         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
20480         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
20481         * modules/timespec (Depends-on): Add assure.
20483 2017-10-29  Bruno Haible  <bruno@clisp.org>
20485         Avoid several test failures with traditional locales on Haiku.
20486         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
20487         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
20488         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
20489         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
20490         LOCALE_ZH_CN=none.
20492 2017-10-29  Bruno Haible  <bruno@clisp.org>
20494         strerror_r-posix: Fix behaviour and test failure on Haiku.
20495         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
20496         are positive. Work around return value 0 instead of ERANGE on Haiku.
20497         For unknown error numbers, use a format string consistent with perror().
20498         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
20499         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
20500         are positive.
20502 2017-10-29  Bruno Haible  <bruno@clisp.org>
20504         get-rusage-data: Avoid crash on Haiku.
20505         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
20507 2017-10-29  Bruno Haible  <bruno@clisp.org>
20509         get-rusage-as: Avoid crash on Haiku.
20510         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
20512 2017-10-29  Bruno Haible  <bruno@clisp.org>
20514         ilogbl: Ensure replacement on Haiku.
20515         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
20516         REPLACE_ILOGBL if ilogbl does not work.
20517         (gl_FUNC_ILOGBL_WORKS): New macro.
20518         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
20519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
20520         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
20521         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
20522         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
20524 2017-10-29  Bruno Haible  <bruno@clisp.org>
20526         expl: Ensure replacement on Haiku.
20527         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
20528         zero.
20529         * doc/posix-functions/expl.texi: Mention the Haiku problem.
20531 2017-10-29  Bruno Haible  <bruno@clisp.org>
20533         math: Fix test failure on Haiku.
20534         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
20535         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
20536         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
20537         * doc/posix-headers/math.texi: Mention the Haiku problem.
20539 2017-10-29  Bruno Haible  <bruno@clisp.org>
20541         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
20542         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
20543         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
20545 2017-10-29  Bruno Haible  <bruno@clisp.org>
20547         crypto/*: Verify that the header file is self-contained.
20548         * tests/test-gc-*.c: Include the module's header file immediately after
20549         <config.h>.
20550         * tests/test-hmac-*.c: Likewise.
20551         * tests/test-arcfour.c: Likewise.
20552         * tests/test-arctwo.c: Likewise.
20553         * tests/test-des.c: Likewise.
20554         * tests/test-md2.c: Likewise.
20555         * tests/test-md4.c: Likewise.
20556         * tests/test-md5.c: Likewise.
20557         * tests/test-rijndael.c: Likewise.
20558         * tests/test-sha1.c: Likewise.
20559         * tests/test-sm3.c: Likewise.
20561 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20562             Bruno Haible  <bruno@clisp.org>
20564         crypto/gc: fix build failure with -Werror=suggest-attribute=const
20565         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
20567 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20569         New module: crypto/gc-sm3
20570         * lib/gc.h: Declare SM3-related stuffs.
20571         * lib/gc-gnulib.c: Support sm3 in internal functions.
20572         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
20573         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
20574         * modules/crypto/gc-sm3: Define gc-sm3 module.
20575         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
20576         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
20577         * MODULES.html.sh: List gc-sm3 module.
20579 2017-10-29  Bruno Haible  <bruno@clisp.org>
20581         random, random_r: Mention different prototypes on Haiku.
20582         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
20583         * doc/glibc-functions/random_r.texi: Likewise.
20584         * doc/glibc-functions/initstate_r.texi: Likewise.
20585         * doc/glibc-functions/setstate_r.texi: Likewise.
20587 2017-10-28  Bruno Haible  <bruno@clisp.org>
20589         posix_spawn: Avoid spurious message in configure output.
20590         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
20591         'cmp' command.
20593 2017-10-28  Bruno Haible  <bruno@clisp.org>
20595         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
20596         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
20597         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
20599 2017-10-28  Bruno Haible  <bruno@clisp.org>
20601         ioctl: Override non-POSIX declaration on Haiku.
20602         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
20603         * lib/sys_ioctl.in.h: Add comment about Haiku.
20604         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
20605         * doc/glibc-headers/sys_ioctl.texi: Likewise.
20607 2017-10-28  Bruno Haible  <bruno@clisp.org>
20609         crypto/sm3: Add overview documentation to the .h file.
20610         * lib/sm3.h: Add comments.
20612 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20614         New module: crypto/sm3
20615         This new module can be used to compute SM3 message digest of files or
20616         memory blocks according to the specification GM/T 004-2012
20617         Cryptographic Hash Algorithm SM3, published by State Cryptography
20618         Administration, China.
20619         The official SM3 cryptographic hash algorithm specification is
20620         available at
20621         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
20622         * lib/sm3.h: Declare the APIs of sm3 module.
20623         * lib/sm3.c: Implement SM3 hash algorithm.
20624         * m4/sm3.m4: m4 file for sm3 module.
20625         * modules/crypto/sm3: Define sm3 module.
20626         * tests/test-sm3.c: Implement SM3 test case.
20627         * modules/crypto/sm3-tests: Define sm3 test module.
20628         * MODULES.html.sh: List sm3 module.
20630 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20632         gc-libgcrypt: fix undefined enum type in switch statement
20633         Resolve the following build failure:
20634         lib/gc-libgcrypt.c: In function 'gc_hash_open':
20635         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
20636         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
20637              case 0:
20638              ^~~~
20639         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
20640         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
20642 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20644         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
20645         Resolve the following build failure:
20646         lib/gc-libgcrypt.c: In function 'gc_hash_read':
20647         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
20648         in signedness [-Werror=pointer-sign]
20649             digest = gcry_md_read (ctx->gch, 0);
20650                    ^
20651         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
20653 2017-10-26  Bruno Haible  <bruno@clisp.org>
20655         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
20656         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
20657         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
20659 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20661         glob: fix another heap buffer overflow
20662         Problem reported by Tim Rühsen in:
20663         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
20664         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
20666 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20668         quotearg: pacify compiler re unsigned
20669         * lib/quotearg.c (quotearg_n_options):
20670         Rewrite to avoid diagnostic from overly-picky compiler.
20671         Problem reported by Sami Kerola in:
20672         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
20674         glob: fix heap buffer overflow
20675         * lib/glob.c (glob): Fix off-by-one error introduced into
20676         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
20677         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
20678         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
20679         Fix suggested by Bruno Haible.
20681 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20683         glob: pacify fuzzer for mempcpy
20684         Problem reported by Tim Rühsen in:
20685         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
20686         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20688 2017-10-12  Bruno Haible  <bruno@clisp.org>
20690         doc: Fix syntax error (regression from 2017-10-03).
20691         * doc/posix-functions/strncpy.texi: Fix syntax error.
20693 2017-10-12  Bruno Haible  <bruno@clisp.org>
20695         doc: Update for Solaris 11.3.
20696         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
20697         mention Solaris 11.3.
20698         * m4/log2.m4: Fix comments.
20699         * m4/log2f.m4: Likewise.
20700         * m4/printf.m4: Update comments.
20701         * m4/rename.m4: Likewise.
20702         * m4/strncat.m4: Likewise.
20704         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
20706 2017-10-10  Bruno Haible  <bruno@clisp.org>
20708         doc: Improve doc about ioctl.
20709         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
20710         prototype.
20712 2017-10-09  Bruno Haible  <bruno@clisp.org>
20714         wcwidth: Don't use obsolete syntax of 'test'.
20715         Reported by Eric Blake.
20716         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
20717         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
20719 2017-10-09  Bruno Haible  <bruno@clisp.org>
20721         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
20722         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
20723         and Daniel P. Berrange <berrange@redhat.com>.
20724         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
20725         on glibc systems. The getopt-pfx-core.h file declares exactly what
20726         unistd.h needs, nothing more.
20728 2017-10-08  Bruno Haible  <bruno@clisp.org>
20730         vma-iter: Improve support for FreeBSD.
20731         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
20732         vma_iterate.
20733         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
20735 2017-10-08  Bruno Haible  <bruno@clisp.org>
20737         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
20738         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
20740 2017-10-07  KO Myung-Hun  <komh@chollian.net>
20742         test-framework-sh: Fix 'invalid path dir' error.
20743         On OS/2, a path separator is ';' not ':'. And ':' is used as a
20744         separator between a drive letter and directory parts.
20745         As a result, an absolute path such as x:/path/to/dir on OS/2 is
20746         treated as an invalid path dir.
20747         * tests/init.sh (PATH_SEPARATOR): Set at startup.
20748         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
20749         instead of hard coded ':'.
20751 2017-10-07  Bruno Haible  <bruno@clisp.org>
20753         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
20754         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
20755         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
20756         (rof_open): On Linux, do multiple read() calls and make sure
20757         MIN_LEFTOVER bytes are left when read() returns.
20759 2017-10-07  Bruno Haible  <bruno@clisp.org>
20761         vma-iter: Improve support for GNU/Hurd.
20762         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
20763         API, not the /proc file system.
20765 2017-10-07  Bruno Haible  <bruno@clisp.org>
20767         test-framework-sh: Don't require bash on Windows and OS/2.
20768         Reported by KO Myung-Hun.
20769         * tests/test-init.sh: Use 'shopt' only when running in bash.
20771 2017-10-06  KO Myung-Hun  <komh@chollian.net>
20773         wcwidth: check a macro version of wcwidth () as well
20774         * lib/wchar.in.h: Revert commit from 2016-01-14.
20775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
20777 2017-10-06  Bruno Haible  <bruno@clisp.org>
20779         getopt-posix: Clarify copyright header.
20780         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
20781         * lib/getopt-pfx-core.h: Likewise.
20782         * lib/getopt-pfx-ext.h: Likewise.
20783         * lib/getopt-cdefs.in.h: Likewise.
20785 2017-10-03  Bruno Haible  <bruno@clisp.org>
20787         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
20788         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
20789         gl_HOST_CPU_C_ABI.
20791 2017-10-03  Bruno Haible  <bruno@clisp.org>
20793         doc: warn about misuse of strncpy and wcsncpy.
20794         * doc/posix-functions/strcpy.texi: Describe requirements on prior
20795         memory allocation.
20796         * doc/posix-functions/wcscpy.texi: Likewise.
20797         * doc/posix-functions/strncpy.texi: Describe what this function is not
20798         useful for.
20799         * doc/posix-functions/wcsncpy.texi: Likewise.
20801 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20803         fsuage: fix typo in previous change
20804         * lib/fsusage.c: Remove stray include of full-read.h.
20805         Problem reported by Sam Steingold for macOS (Bug#28669).
20807 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
20809         fsusage: remove SVR2 support
20810         SVR2 was obsolete by 1986 and is no longer supported by anybody,
20811         and its code was getting in the way of use of this module by
20812         Emacs, which has its own ‘read’ function anyway.
20813         * lib/fsusage.c: Do not include sys/filsys.h.
20814         (get_fs_usage): Remove SVR2-specific code.
20815         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
20816         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
20817         * modules/fsusage (Depends-on): Do not depend on full-read.
20819         Simplify autoupdate of licenses
20820         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
20821         place.
20823 2017-10-01  Bruno Haible  <bruno@clisp.org>
20825         vma-iter: Add support for GNU/Hurd.
20826         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
20827         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20829 2017-09-30  Bruno Haible  <bruno@clisp.org>
20831         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
20832         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
20833         fail when module 'largefile' is in use.
20834         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
20835         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
20836         Don't test HAVE_SYS_PROCFS_H.
20838 2017-09-30  Bruno Haible  <bruno@clisp.org>
20840         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
20841         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
20842         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
20843         * modules/havelib (Depends-on): Add host-cpu-c-abi.
20845 2017-09-30  Bruno Haible  <bruno@clisp.org>
20847         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
20848         * lib/uniname/uniname.c (unicode_name_character): Add braces around
20849         scope of local variables.
20851 2017-09-28  Bruno Haible  <bruno@clisp.org>
20853         string: code style
20854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
20855         substitutable variables.
20856         * modules/string (Makefile.am): Likewise.
20858 2017-09-26  Bruno Haible  <bruno@clisp.org>
20860         uniname/uniname-tests: Tighten code.
20861         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
20862         local variables into one.
20864 2017-09-26  Bruno Haible  <bruno@clisp.org>
20866         vma-iter: Improvements for Linux and BSD platforms.
20867         - Add support for DragonFly BSD.
20868         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
20869         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
20870         Read the entire file into memory in a single system call.
20871         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
20872         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
20874 2017-09-26  Bruno Haible  <bruno@clisp.org>
20876         vma-iter: Provide the protection flags on FreeBSD.
20877         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
20878         skip three fields between the addresses and the protection flags.
20880 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20882         glob: remove bogus extern decl
20883         * lib/glob.c (__glob_pattern_type): Remove now-spurious
20884         extern declaration.  Problem reported by Adhemerval Zanella in:
20885         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
20887 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20889         uniname/uniname-tests: integer overflow fix
20890         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
20891         Check for integer overflow.
20893         duplocale-tests: fix unlikely crash
20894         * tests/test-duplocale.c (get_locale_dependent_values):
20895         Don’t crash with absurdly long month names.
20897         maint: fix overflow checking in nap.h
20898         * modules/chown-tests:
20899         * modules/fchownat-tests, modules/fdutimensat-tests:
20900         * modules/futimens-tests, modules/lchown-tests:
20901         * modules/stat-time-tests, modules/utime-tests:
20902         * modules/utimens-tests, modules/utimensat-tests:
20903         Depend on intprops.
20904         * tests/nap.h: Include intprops.h.
20905         (diff_timespec): Handle overflow properly.
20907         sys_types: update URL
20908         * m4/sys_types_h.m4: Use https: URL.
20910         parse-datetime: fix dependency
20911         * modules/parse-datetime (Depends-on): Depend
20912         on nstrftime, not strftime.
20914         parse-datetime, posixtm: avoid uninit access
20915         * lib/parse-datetime.y (parse_datetime2):
20916         * lib/posixtm.c (posixtime):
20917         Do not access uninitialized storage, even though the resulting
20918         value is never used.
20920 2017-09-25  Bruno Haible  <bruno@clisp.org>
20922         vma-iter: Improvements for BSD platforms.
20923         - Add support for GNU/kFreeBSD.
20924         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
20925         - Speed up on OpenBSD.
20926         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
20927         (vma_iterate_bsd): New function.
20928         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
20929         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
20930         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20931         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
20933 2017-09-23  Bruno Haible  <bruno@clisp.org>
20935         strfmon_l: New module.
20936         * modules/strfmon_l: New file.
20937         * lib/strfmon_l.c: New file.
20938         * m4/strfmon_l.m4: New file.
20939         * doc/posix-functions/strfmon_l.texi: Mention the new module.
20940         * modules/strfmon_l-tests: New file.
20941         * tests/test-strfmon_l.c: New file.
20943         monetary: New module.
20944         * modules/monetary: New file.
20945         * lib/monetary.in.h: New file.
20946         * m4/monetary_h.m4: New file.
20947         * doc/posix-headers/monetary.texi: Mention the new module.
20948         * modules/monetary-tests: New file.
20949         * tests/test-monetary.c: New file.
20950         * modules/monetary-c++-tests: New file.
20951         * tests/test-monetary-c++.cc: New file.
20952         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
20954 2017-09-23  Bruno Haible  <bruno@clisp.org>
20956         duplocale tests: Fix test crash on Linux/x86.
20957         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
20958         locale from the current thread before freeing it.
20960 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
20962         mktime: port to OpenVMS
20963         Problem reported by John E. Malmberg in:
20964         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
20965         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
20967 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20969         manywarnings: port to GCC on 64-bit MS-Windows
20970         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
20971         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
20972         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
20974 2017-09-13  Bruno Haible  <bruno@clisp.org>
20976         all: Replace many more http URLs by https URLs. Update stale URLs.
20977         * users.txt: Remove mention of 'newts'.
20978         * lib/localename.c: Update comment about LANG_SOTHO.
20980 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20982         all: Replace many http URLs by https URLs.
20984 2017-09-12  Bruno Haible  <bruno@clisp.org>
20986         doc: Prefer https URLs where possible.
20987         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
20988         * doc/ld-output-def.texi: Remove unavailable URL.
20990 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20992         maintainer-makefile: FTP -> HTTPS
20993         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
20994         of FTP, which is planned to be decommissioned on 2017-11-01.
20996 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
20998         libc-config: Fix __GNUC_PREREQ macro.
20999         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
21000         __GNUC_MINOR.
21002 2017-09-09  Bruno Haible  <bruno@clisp.org>
21004         gnulib-tool: Simplify commit from 2015-08-20.
21005         * gnulib-tool (func_add_or_update): Remove local variable
21006         is_binary_file.
21008 2017-09-08  Bruno Haible  <bruno@clisp.org>
21010         stddef: Avoid conflict with system-defined max_align_t.
21011         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
21012         Reported by Werner Lemberg <wl@gnu.org> in
21013         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
21014         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
21015         (max_align_t): Define as a macro.
21016         (GNULIB_defined_max_align_t): New macro. Guards against multiple
21017         definitions of rpl_max_align_t in different copies of gnulib-generated
21018         <stddef.h>.
21020 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
21022         libc-config: port to MSVC
21023         Problems reported by Gisle Vanem in:
21024         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
21025         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
21026         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
21027         * m4/__inline.m4: New file.
21028         * modules/libc-config (Files): Add it.
21029         (Depends-on): Use it.
21031         glob: Use enum for __glob_pattern_type result
21032         From a patch proposed by Adhemerval Zanella in:
21033         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
21034         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
21035         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
21036         * lib/glob_internal.h (__glob_pattern_type):
21037         * lib/glob.c (glob):
21038         * lib/glob_pattern_p.c (__glob_pattern_p):
21039         Use them.
21041         glob: fix for use in glibc
21042         Problem reported by Adhemerval Zanella in:
21043         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
21044         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
21045         Do not redefine if _LIBC.
21047 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21049         glob: fix bugs with long login names
21050         Problem reported by Adhemerval Zanella in:
21051         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
21052         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
21053         (glob): Use the same scratch buffer for both getlogin_r and
21054         getpwnam_r.  Don’t require preallocation of the login name.  This
21055         simplifies storage allocation, and corrects the handling of
21056         long login names.
21058 2017-09-02  Bruno Haible  <bruno@clisp.org>
21060         dirent: Update doc.
21061         * doc/posix-headers/dirent.texi: More concrete list of platforms.
21063 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21065         glob: fix getpwnam_r errno typo
21066         * lib/glob.c (glob): Fix longstanding misuse of errno after
21067         getpwnam_r, which returns an error number rather than setting
21068         errno.
21070         glob: fix typo in recent change
21071         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
21072         Fix recently-introduced typo.
21074 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21076         glob: don't save and restore errno unnecessarily
21077         * lib/glob.c (glob): Don't save and restore errno
21078         merely because we have getpwnam_r.
21080         glob: don't assume getpwnam_r
21081         * lib/glob.c (glob): Port recent patches to platforms
21082         lacking getpwnam_r.
21084         scratch_buffer: don’t use private glibc API
21085         Suggested by Florian Weimer in:
21086         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
21087         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
21088         * lib/scratch_buffer_grow.c: Rename to
21089         lib/malloc/scratch_buffer_grow.c.
21090         * lib/scratch_buffer_grow_preserve.c: Rename to
21091         lib/malloc/scratch_buffer_grow_preserve.c.
21092         * lib/scratch_buffer_set_array_size.c: Rename to
21093         lib/malloc/scratch_buffer_set_array_size.c.
21094         * lib/scratch_buffer.h: New file.
21095         * modules/scratch_buffer (Files, Makefile.am):
21096         Adjust to source-file renaming.
21098 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21100         glob: use scratch_buffer instead of extend_alloca
21101         Much of the lib/glob.c part of this patch comes from a glibc patch
21102         proposed by Adhemerval Zanella in:
21103         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
21104         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
21105         included via glob.h, does this for us now.
21106         (__set_errno): Remove, as libc-config does this for us now.
21107         Include <scratch_buffer.h>.
21108         (GETPW_R_SIZE_MAX): Remove.
21109         (glob): Use struct scratch_buffer instead of extend_alloca.
21110         * lib/glob.in.h: Include libc-config.h rather than
21111         including <sys/cdefs.h> conditionally.
21112         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
21113         (__glibc_unlikely, __restrict, weak_alias):
21114         Remove, as libc-config does this for us now.
21115         * m4/glob.m4 (gl_PREREQ_GLOB):
21116         Remove sys/cdefs.h tests; no longer needed.
21117         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
21118         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
21120         scratch_buffer: new module
21121         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
21122         * lib/scratch_buffer_grow_preserve.c:
21123         * lib/scratch_buffer_set_array_size.c:
21124         New files, copied from glibc with very minor changes that can be
21125         copied back.
21126         * modules/scratch_buffer: New file.
21128         libc-config: new module
21129         * MODULES.html.sh: Add libc-config.
21130         * lib/cdefs.h: New file, copied from the GNU C Library with very
21131         minor changes that can be copied back.
21132         * lib/libc-config.h, modules/libc-config: New files.
21134 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21136         glob: match dangling symlinks
21137         This fixes a bug I inadvertently introduced to Gnulib when I
21138         merged glibc glob back into gnulib on 2007-10-16.  This fix is
21139         inspired by a patch proposed for glibc by Adhemerval Zanella in:
21140         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
21141         * doc/posix-functions/glob.texi: Update list of affected platforms.
21142         * lib/glob.c (__lstat64): New macro.
21143         (is_dir): New function.
21144         (glob, glob_in_dir): Match symlinks even if they are dangling.
21145         (link_stat, link_exists_p): Remove.  All uses removed.
21146         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
21147         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
21148         * modules/glob-tests (Depends-on): Add symlink.
21149         * tests/test-glob.c: Include errno.h, unistd.h.
21150         (BASE): New macro.
21151         (main): Test dangling symlinks, if symlinks are supported.
21153         glob, backupfile: inode 0 is a valid inode number
21154         * doc/posix-functions/readdir.texi (readdir):
21155         * doc/posix-headers/dirent.texi (dirent.h):
21156         Document more readdir portability issues.
21157         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
21158         (numbered_backup): Don’t treat inode 0 any differently from
21159         other inode values.
21160         * lib/glob.c (struct readdir_result): Remove skip_entry member.
21161         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
21162         All uses removed.
21163         * modules/glob (Depends-on): Remove d-ino.
21165         glob: simplify symlink detection
21166         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
21167         uint8_t, as C99 does not require uint8_t.
21168         (struct readdir_result): Use it.  Do not define skip_entry unless
21169         it is needed; this saves a byte on platforms lacking d_ino.
21170         (readdir_result_type, readdir_result_skip_entry):
21171         New functions, replacing ...
21172         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
21173         ... these functions, which were removed.  This makes the callers
21174         easier to read.  All callers changed.
21175         (D_INO_TO_RESULT): Now empty if there is no d_ino.
21177 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21179         fts-tests: tag as a longrunning-test so not included by default
21180         * modules/fts-tests: This test takes about 20s on current systems,
21181         and uses about 285M of space on ext4.
21183 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21185         renameat2: fix compilation on alpine linux
21186         * m4/renameat.m4: Check for <linux/fs.h> presence.
21187         * lib/renameat2.h: Only include <linux/fs.h> if present.
21188         Reported by Assaf Gordon on Alpine Linux.
21190 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21192         glob: try to port recent changes to MS-Windows
21193         Problem reported by Bruno Haible in:
21194         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
21195         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
21196         * lib/glob.in.h (__glob_pattern_p): ... to here.
21198 2017-08-24  Eric Blake  <eblake@redhat.com>
21200         warnings: fix compilation with old autoconf
21201         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
21202         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
21203         AC_DEFUN.
21204         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
21205         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
21207 2017-08-24  Bruno Haible  <bruno@clisp.org>
21209         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
21210         * modules/glob (Depends-on): Add c99.
21212 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21214         glob: fix typo that broke platforms lacking d_ino
21215         This typo also hurt performance on GNU/Linux and similar hosts.
21216         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
21217         in previous change.
21219 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21221         glob: merge from glibc with Zanella glob changes
21222         Merge glob from glibc, with changes for glob proposed
21223         by Adhemerval Zanella in the thread starting here:
21224         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
21225         plus some fixes for this merge.
21226         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
21227         New files, ported from glibc.
21228         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
21229         with __restrict.
21230         (__size_t): Remove.  All uses replaced by size_t.
21231         (size_t): Define by defining __need_size_t and including <stddef.h>.
21232         This should work even in non-glibc platforms, where any name
21233         pollution is OK.
21234         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
21235         (struct stat64): Don’t worry about __GLOB_GNULIB.
21236         (glob, globfree, glob_pattern_p): Remove macros for
21237         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
21238         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
21239         but set errno.
21240         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
21241         removed since the glibc behavior works on null pointers.
21242         Do not include stdio.h; old SunOS is irrelevant now.
21243         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
21244         Include glob_internal.h.
21245         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
21246         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
21247         worked only coincidentally.
21248         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
21249         Remove macros; now done in glob.in.h.
21250         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
21251         (glob): Properly initialize glob structure with
21252         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
21253         Remove old code using SHELL since Bash no longer
21254         uses this.
21255         (glob, prefix_array): Separate MS code better.
21256         (glob, glob_in_dir): Use C99 decls before statements when glibc
21257         does.
21258         (glob_in_dir): Remove old Amiga and VMS code.
21259         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
21260         separate files.
21261         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
21262         (__glibc_unlikely):
21263         Move here from glob.c.
21264         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
21265         (weak_alias): New macro.
21266         (__size_t): Remove.  All uses replaced by size_t.
21267         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
21268         * modules/glob (Files): Add +lib/glob_internal.h,
21269         lib/glob_pattern_p.c, lib/globfree.c.
21270         (Depends-on): Remove snippet/arg-nonnull.
21272 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21274         glob: port to clang's Undefined Sanitizer
21275         Problem reported by Tim Rühsen in:
21276         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
21277         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
21278         (glob_in_dir): Do not rely on undefined behavior in accessing
21279         struct members beyond their bounds.  Use a flexible array member
21280         instead.
21282 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21284         vc-list-files: port to Solaris 10
21285         * build-aux/vc-list-files: Don't assume test -e works.
21287 2017-08-21  Karl Berry  <karl@freefriends.org>
21289         * doc/posix-functions/srandom.texi (srandom): typo }.
21291 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21293         git-version-gen: port to Solaris 10
21294         Problem reported by Dagobert Michelsen in:
21295         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
21296         * build-aux/git-version-gen (v_from_git):
21297         Use expr instead of shell substitution.
21299 2017-08-19  Bruno Haible  <bruno@clisp.org>
21301         host-cpu-c-abi: Improve detection of MIPS ABI.
21302         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
21303         _MIPS_SIM.
21305 2017-08-17  Bruno Haible  <bruno@clisp.org>
21307         hypot tests: Fix test failure on FreeBSD 11.0/x86.
21308         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
21310 2017-08-17  Bruno Haible  <bruno@clisp.org>
21312         float: Fix LDBL_MIN value on FreeBSD/x86.
21313         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
21315 2017-08-17  Bruno Haible  <bruno@clisp.org>
21317         random: Fix test compilation failure on Cygwin 1.5.25.
21318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
21319         HAVE_DECL_SETSTATE.
21320         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
21321         declared.
21322         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
21323         HAVE_DECL_SETSTATE.
21324         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
21325         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
21326         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
21327         * doc/posix-functions/random.texi: Likewise.
21328         * doc/posix-functions/setstate.texi: Likewise.
21329         * doc/posix-functions/srandom.texi: Likewise.
21331 2017-08-16  Bruno Haible  <bruno@clisp.org>
21333         stdnoreturn: Fix test compilation failure on Cygwin.
21334         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
21335         <stdnoreturn.h> replacement.
21336         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
21337         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
21339 2017-08-16  Bruno Haible  <bruno@clisp.org>
21341         thread: Fix conflict with pthread_sigmask module.
21342         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
21343         it's defined as a macro.
21344         * modules/thread (Depends-on): Add pthread_sigmask.
21346 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
21348         rename: port better to NetBSD
21349         * doc/posix-functions/rename.texi (rename): NetBSD 7
21350         does not have the link-count bug.
21351         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
21352         broken merely because rename ("a", "b") removes "a" when the two
21353         names are hard links to the same file.
21355 2017-08-16  Bruno Haible  <bruno@clisp.org>
21357         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
21358         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
21359         the target file names with '$(srcdir)/'.
21360         * modules/unicase/locale-language (Makefile.am): Likewise.
21361         * modules/unicase/special-casing (Makefile.am): Likewise.
21362         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
21363         * modules/unictype/category-byname (Makefile.am): Likewise.
21364         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
21365         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
21366         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
21367         * modules/unictype/property-byname (Makefile.am): Likewise.
21368         * modules/unictype/scripts (Makefile.am): Likewise.
21369         * modules/uninorm/composition (Makefile.am): Likewise.
21371 2017-08-16  Bruno Haible  <bruno@clisp.org>
21373         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
21374         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
21375         value for OpenBSD.
21377 2017-08-16  Bruno Haible  <bruno@clisp.org>
21379         rename, renameat: Update doc regarding NetBSD.
21380         * doc/posix-functions/rename.texi: Clarify that when using
21381         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
21382         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
21383         version.
21385 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21387         renameat2: port better to macOS
21388         * lib/renameat2.c (renameat2): Use renameatx_np if available.
21390         futimens: don’t assume struct timespec layout
21391         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
21392         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
21393         * tests/test-fdutimensat.c (main):
21394         * tests/test-futimens.h (test_futimens):
21395         * tests/test-lutimens.h (test_lutimens):
21396         * tests/test-utimens.h (test_utimens):
21397         * tests/test-utimensat.c (main):
21398         Don’t assume that struct timespec is a two-member structure in
21399         tv_sec, tv_nsec order.  Although this is true on all platforms we
21400         know about, POSIX does not guarantee it.
21402         rename: document+test NetBSD rename
21403         Test failure reported by Bruno Haible in:
21404         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
21405         This is an area where NetBSD is better-behaved than POSIX,
21406         so allow the NetBSD behavior in tests.
21407         * doc/posix-functions/rename.texi:
21408         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
21409         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
21411 2017-08-15  Bruno Haible  <bruno@clisp.org>
21413         renameat: Ensure declaration in <stdio.h> on NetBSD.
21414         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
21415         * doc/posix-functions/renameat.texi: Mention this problem.
21417 2017-08-15  Bruno Haible  <bruno@clisp.org>
21419         duplocale: Work around NetBSD 7.0 bug.
21420         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
21421         * lib/duplocale.c: Add comment about NetBSD problem.
21422         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
21424 2017-08-15  Bruno Haible  <bruno@clisp.org>
21426         duplocale tests: Verify use with *_l functions.
21427         * modules/duplocale-tests (configure.ac): Test for uselocale and
21428         some *_l functions.
21429         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
21430         from main.
21431         (get_locale_dependent_values_from, test_with_locale_parameter): New
21432         functions.
21433         (main): Test both test_with_uselocale and test_with_locale_parameter.
21435 2017-08-15  Bruno Haible  <bruno@clisp.org>
21437         extensions: Enable NetBSD specific extensions.
21438         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
21440 2017-08-14  Bruno Haible  <bruno@clisp.org>
21442         open, openat: Update doc about O_CLOEXEC.
21443         * doc/posix-functions/open.texi: More concrete list of platforms.
21444         * doc/posix-functions/openat.texi: Likewise.
21446 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21448         open: support O_CLOEXEC
21449         * NEWS, doc/posix-functions/open.texi:
21450         * doc/posix-functions/openat.texi: Document this.
21451         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
21452         (GNULIB_defined_O_CLOEXEC): New symbol.
21453         * lib/open.c: Include cloexec.h.
21454         (open): Support O_CLOEXEC.
21455         * lib/openat.c: Include cloexec.h.
21456         (rpl_openat): Support O_CLOEXEC.
21457         * lib/popen-safer.c: Do not include cloexec.h.
21458         (open_noinherit): Remove.
21459         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
21460         * lib/save-cwd.c: Do not include cloexec.h.
21461         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
21462         * m4/open-cloexec.m4: New file.
21463         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
21464         Replace 'open' if O_CLOEXEC is not present.
21465         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
21466         Replace 'openat' if O_CLOEXEC is not present.
21467         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
21468         * modules/open (Files): Add m4/open-cloexec.m4.
21469         (Depends-on): Depend on cloexec if replacing 'open'.
21470         * modules/openat (Files): Add m4/open-cloexec.m4.
21471         (Depends-on): Depend on cloexec if replacing openat.
21472         * modules/popen-safer (Depends-on): Remove cloexec.
21473         * modules/save-cwd (Depends-on): Remove cloexec, and add
21474         fd-safer-flag and 'open'.
21476 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
21478         reallocarray: minor fixes
21479         * doc/glibc-functions/reallocarray.texi: Update version numbers.
21480         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
21481         * modules/reallocarray (License): Change from GPL to LGPL.
21482         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
21483         Indent properly and don't use tabs.
21485 2017-08-13  Darshit Shah  <darnir@gnu.org>
21487         reallocarray: New module
21488         reallocarray is a new function in glibc 2.26 to safely allocate an array
21489         of memory locations with integer overflow protection.
21490         * MODULES.html.sh: Add reallocarray.
21491         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
21492         * lib/reallocarray.c: New file to implement module reallocarray.
21493         * lib/stdlib.in.h: Add function declarations for reallocarray.
21494         * m4/reallocarray.m4: New file.
21495         * m4/stdlib_h.m4: Declare reallocarray.
21496         * modules/reallocarray: New file.
21497         * modules/reallocarray-test: New file.
21498         * modules/stdlib: Coerce stdlib.h to export reallocarray.
21499         * tests/test-reallocarray.c: New test.
21501 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21503         dirent-safer: fix cloexec race
21504         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
21505         (opendir_safer): Use F_DUPFD_CLOEXEC.
21506         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
21507         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
21508         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
21509         instead of dup_safer.
21511         fts: fix cloexec races
21512         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
21513         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
21514         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
21515         (fd_ring_check): Set cloexec flag on new file descriptors.
21516         (fts_build, fd_ring_check): While we’re at it, make sure the
21517         resulting file descriptor is not 0, 1, or 2, since that is easy.
21519 2017-08-11  Bruno Haible  <bruno@clisp.org>
21521         fts tests: Fix link error.
21522         Reported by Tom G. Christensen in
21523         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
21524         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
21526 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21528         fts: port recent changes to CentOS 6
21529         Problem reported by Tom G. Christensen in:
21530         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
21531         * lib/fts.c (fsword): New type.
21532         (struct dev_type, filesystem_type): Use it.
21533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
21534         Also, check for f_type only if fstatfs and sys/vfs.h work.
21536 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21538         tempname: do not depend on secure_getenv
21539         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
21540         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
21541         * modules/tempname (Depends-on): Remove secure_getenv.
21543 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21545         extensions: add _OPENBSD_SOURCE
21546         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
21548 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
21549             Bruno Haible  <bruno@clisp.org>
21551         manywarnings: Add support for C++.
21552         * build-aux/g++-warning.spec: New file.
21553         * m4/manywarnings-c++.m4: New file.
21554         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
21555         redirects to manywarnings-c++.m4.
21556         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
21558 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21560         git-version-gen: another fix for tags with "-"
21561         * build-aux/git-version-gen: Improve fix for tags containing "-".
21562         Suggested by Markus Armbruster in:
21563         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
21565 2017-08-06  Bruno Haible  <bruno@clisp.org>
21567         warnings, manywarnings: Add support for multiple languages, not just C.
21568         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
21569         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
21570         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
21571         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
21572         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
21573         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
21574         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
21575         of the current language. If C++ is the current language, modify
21576         WARN_CXXFLAGS instead of WARN_CFLAGS.
21577         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
21578         gl_MANYWARN_ALL_GCC.
21579         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
21581 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
21583         git-version-gen: Fix for tags containing '-'
21585         Really old versions of git-describe (before v1.5.0, Feb 2007)
21586         don't have the number of commits in their long format output,
21587         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
21588         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
21589         recognizes both patterns, and normalizes the old format to the new one.
21591         Unfortunately, this normalization code gets confused when the tag
21592         contains '-'.  Reproducer:
21594             $ git-tag -m test v0.2-rc1
21595             $ build-aux/git-version-gen .tarball-version; echo
21596             build-aux/git-version-gen: WARNING: git rev-list failed
21597             UNKNOWN
21599         We take exact tag "v0.2-rc1" for the old format, extract the presumed
21600         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
21601         commits since tha tag.  Fails, because tag "v0.2" does not exist.
21603         * git-version-gen: We could perhaps drop support for versions from
21604         more than a decade ago.  But tightening the pattern match is easy
21605         enough, so do that.  Still breaks when you use version tags ending in
21606         something matching -g????, but you arguably get what you deserve then.
21608 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21610         valgrind-tests: use ls, and cache
21611         * m4/valgrind-tests.m4: Test ls, not bash.
21612         Problem reported by Reuben Thomas.
21613         Also, cache the result so that it can be overridden.
21615 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
21617         manywarnings: port to 64-bit GCC builds of Emacs
21618         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
21619         object size rather than hardwiring 2147483647.  This is needed to
21620         build GNU Emacs, which has one conditional (and used
21621         only-in-theory) call to malloc with a literal greater than
21622         2147483647.
21624 2017-08-04  Bruno Haible  <bruno@clisp.org>
21626         Relax the license of some modules with no runtime code.
21627         * modules/std-gnu11 (License): Set to 'unlimited'.
21628         * modules/c99 (License): Likewise.
21629         Reported by Reuben Thomas <rrt@sc3d.org>.
21630         * modules/d-ino (License): Set to 'LGPL'.
21631         * modules/host-os (License): Likewise.
21632         * modules/longlong (License): Likewise.
21634 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21636         renameat2: port to RHEL 7 + NFS
21637         * lib/renameat2.c (renameat2) [SYS_renameat2]:
21638         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
21639         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
21641 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21643         renameat2: port to non-renameat platforms
21644         Problem reported for MSVC-2015 by Gisle Vanem in:
21645         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
21646         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
21647         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
21649 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21651         manywarnings: port to 32-bit GCC bug
21652         Problem reported by Pino Toscano in:
21653         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
21654         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
21655         not 2**63 - 1, to work around the following GCC bug:
21656         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
21658 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
21660         backupfile: new function to validate backup suffix
21661         * lib/backupfile.c (set_simple_backup_suffix): New function.
21662         (backupfile_internal): Use it.
21664         canonicalize: fix EOVERFLOW commentary
21665         Problem reported by Bruno Haible in:
21666         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
21667         * lib/canonicalize.c (canonicalize_filename_mode):
21668         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
21670         Don't interpret EOVERFLOW to mean nonexistence
21671         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
21672         may be EOVERFLOW; this is likely more useful than reporting the
21673         stat errno.
21674         * lib/glob.c (link_stat): Rename from link_exists2_p and
21675         return -1/0 instead of 0/1.  Caller changed.
21676         * lib/glob.c (link_exists_p):
21677         * lib/renameat2.c (rename_noreplace, renameat2):
21678         * lib/tempname.c (try_nocreate):
21679         If errno == EOVERFLOW then the directory entry exists, so do not
21680         act as if it does not exist.
21682         backup-rename: new module
21683         It is like backupfile, except it avoids some race conditions,
21684         and it does not output to stderr or exit.
21685         * MODULES.html.sh: Add backup-rename.
21686         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
21687         * modules/backup-rename: New files.
21688         * lib/backupfile.c: Turn this into an internals file, which
21689         contains code common to backupfile and backup_rename.  Include
21690         backupfile-internal.h instead of backupfile.h.  Do not include
21691         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
21692         renameat2.h and fcntl.h.
21693         (BACKUP_NOMEM): New constant.
21694         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
21695         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
21696         (backupfile_internal): Rename from find_backup_file_name.
21697         Support new arg RENAME.
21698         (backup_args, backup_types, get_version, xget_version):
21699         Move to lib/backup-find.c.
21700         * lib/backupfile.h (backup_file_rename): New decl.
21701         * modules/backupfile (Files): Add lib/backup-internal.h,
21702         lib/backup-find.c.
21703         (Depends-on): Add dirfd, fcntl, renameat2.
21704         (lib_SOURCES): Add backup-find.c.
21706         renameat2: port better to older Solaris
21707         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
21708         Add goto to use a label, to silence picky compilers.
21710         fts-tests: port to gcc -Wwrite-strings
21711         * tests/test-fts.c (base, base_d): New static vars.
21712         (argv, remove_tree, main): Use them.
21714 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21716         relocatable-lib{,-lgpl}: improve documentation
21717         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
21718         Various other updates.
21720 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
21721             Bruno Haible  <bruno@clisp.org>
21723         relocatable-lib{,-lgpl}: add Valgrind suppressions
21724         * lib/relocatable.valgrind: New file.
21725         * modules/relocatable-lib (Files): Add relocatable.valgrind.
21726         * modules/relocatable-lib-lgpl: Likewise.
21728 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21730         relocatable: Make the license on the sources the GPL.
21731         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
21732         LGPL, which was a special case so that the relocatable source files
21733         could be used without gnulib-tool, to GPL. They can still be used under
21734         the LGPL, using the --lgpl option to gnulib-tool.
21736 2017-07-30  Bruno Haible  <bruno@clisp.org>
21738         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
21739         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
21740         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
21741         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
21742         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
21744 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21746         faccessat: document AT_SYMLINK_NOFOLLOW issue
21747         * doc/posix-functions/faccessat.texi: Modernize platform list.
21748         Document AT_SYMLINK_NOFOLLOW limitation.
21750         renameat2: port to Solaris 10
21751         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
21752         with AT_SYMLINK_NOFOLLOW (which is not portable).
21753         (renameat): Undef before using, to avoid endless recursion when
21754         the replacement renameat calls renameat2 which calls the
21755         replacement renameat.
21756         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
21757         * modules/renameat2 (Depends-on): Remove faccessat.
21758         * modules/renameat-tests (test_renameat_LDADD):
21759         * modules/renameat2-tests (test_renameat2_LDADD):
21760         Remove $(LIB_EACCESS).
21762         renameat2: new module
21763         Although the Linux syscall renameat2 is not in glibc (yet?), it is
21764         useful to have access to its RENAME_NOREPLACE flag.
21765         * MODULES.html.sh (func_all_modules): Add renameat2.
21766         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
21767         * modules/renameat2-tests, tests/test-renameat2.c: New files.
21768         * lib/renameat.c (renameat): Move most of the implementation
21769         to renameat2, and just call renameat2.
21770         * modules/renameat (Files): Remove lib/at-func2.c.
21771         (Depends-on): Depend only on renameat2.
21772         (Include): Remove <fcntl.h>.
21773         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
21774         since renameat (via renameat2) might use faccessat.
21776 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
21778         vc-list-files: Adjust the script to support git worktrees
21779         * build-aux/vc-list-files: Require existence, not directory.
21781 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21783         doc: bring MODULES.html.sh up to date
21784         Somehow a few months ago we stopped updating MODULES.html.sh.
21785         I don’t recall explicitly deciding this, so I updated it now.
21786         Alternatively I suppose we could remove it.
21787         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
21788         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
21789         truncate, utime, utime-h, windows-stat-inodes,
21790         windows-stat-override, windows-stat-timespec, year2038.  Sort.
21792 2017-07-26  Jim Meyering  <meyering@fb.com>
21794         fprintftime: fix build-break caused by recent renaming
21795         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
21796         "strftime.c".
21797         * modules/fprintftime: Depend directly on nstrftime.
21799 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21801         regex: work with GCC7's -Werror=implicit-fallthrough=
21802         * lib/regex_internal.h (FALLTHROUGH): New macro.
21803         * lib/regcomp.c (peek_token_bracket, parse_expression):
21804         * lib/regexec.c (check_node_accept): Use it.
21806 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21808         fts: simplify fts_build
21809         * lib/fts.c (fts_build): Simplify, and be lazier about
21810         calling leaf_optimization.
21812         fts: three levels of leaf optimization
21813         * lib/fts.c (enum leaf_optimization): New type with three values.
21814         (S_MAGIC_AFS): New macro.  Sort them.
21815         (leaf_optimization): Rename from leaf_optimization_applies, and
21816         return enum leaf_optimization instead of bool.  All uses changed.
21817         Add cases for unknown type and for AFS.
21818         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
21820         fts: cache dirent_inode_sort_may_be_useful too
21821         * lib/fts.c (struct dev_type): New struct.
21822         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
21823         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
21824         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
21825         Now takes FTSENT const *, not int.  All uses changed.  Use
21826         filesystem_type to cache.
21827         (link_count_optimize_ok): Remove.  Caller changed to use
21828         leaf_optimization_applies, which now uses shared cache.
21830         fts: introduce MIN_DIR_NLINK
21831         * lib/fts.c (MIN_DIR_NLINK): New constant.
21832         Use it instead of 2, whenever we are talking about link counts.
21834         fts: nlink_t signedness fixups
21835         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
21836         so that root need not be a special case later.
21837         (fts_read): Remove now-redundant test for fts_level.
21838         Do not assume that nlink_t is signed.
21839         (fts_build): Remove useless decrement of nlinks.
21840         (fts_stat): Avoid unlikely signed integer overflow later, if
21841         nlink_t is signed.
21843         fts-tests: new module
21844         * modules/fts-tests, tests/test-fts.c: New files.
21846 2017-07-23  Bruno Haible  <bruno@clisp.org>
21848         Rename module 'strftime' to 'nstrftime'.
21849         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
21850         * lib/nstrftime.c: Renamed from lib/strftime.c.
21851         * modules/nstrftime: Renamed from modules/strftime.
21852         (Files, Makefile.am): Update.
21853         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
21854         Fix comment.
21855         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
21856         (Files, Makefile.am): Update.
21857         * modules/strftime: New file, an obsolete indirection.
21858         * doc/posix-functions/strftime.texi: Update reference.
21859         * config/srclist.txt: Update info.
21860         * NEWS: Mention the change.
21862 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
21864         malloca: Silence a warning from clang's memory sanitizer.
21865         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
21866         (freea): Use it.
21868 2017-07-18  Bruno Haible  <bruno@clisp.org>
21870         host-cpu-c-abi: Fix detection of MIPS ABI.
21871         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
21872         ABI, not the CPU instruction set.
21874 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21876         explicit_bzero: new module
21877         The explicit_bzero function has been added to glibc.
21878         This module is intended to supports its use in GNU programs.
21879         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
21880         * m4/explicit_bzero.m4, modules/explicit_bzero:
21881         New files.
21882         * doc/gnulib.texi (Glibc string.h): Link to new doc.
21883         * lib/string.in.h (explicit_bzero): Declare.
21884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
21885         * modules/string (string.h): Substitute its vars.
21887 2017-07-16  Bruno Haible  <bruno@clisp.org>
21889         threadlib: Support static linking.
21890         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
21891         set gl_cv_have_weak to 'no'.
21893 2017-07-16  Bruno Haible  <bruno@clisp.org>
21895         unicase/locale-language: Fix link dependencies.
21896         * modules/unicase/locale-language (Link): New section.
21897         * modules/unicase/locale-language-tests (Makefile.am): Link
21898         test-locale-language program with $(LIBTHREAD).
21900 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21902         sys_socket: Add support for OpenVMS.
21903         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
21904         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
21906 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21908         sys_resource: Add support for OpenVMS.
21909         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
21910         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
21912 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21913             Bruno Haible  <bruno@clisp.org>
21915         math: Add support for OpenVMS.
21916         * lib/math.in.h [__VMS]: Include <fp.h>.
21917         * doc/posix-headers/math.texi: Mention OpenVMS issues.
21919 2017-07-15  Bruno Haible  <bruno@clisp.org>
21921         getdtablesize: Add minimal support for OpenVMS.
21922         Reported by John E. Malmberg <wb8tyw@qsl.net>.
21923         * modules/getdtablesize (Description): Fix.
21924         * lib/getdtablesize.c: Fix comment.
21925         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
21926         getdtablesize() function, even though the test fails.
21927         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
21928         limitation on OpenVMS.
21930 2017-07-13  Bruno Haible  <bruno@clisp.org>
21932         Revisit cross-compilation guesses.
21933         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
21935 2017-07-13  Bruno Haible  <bruno@clisp.org>
21937         Improve cross-compilation guesses for native Windows.
21938         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
21939         Windows.
21940         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
21941         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
21942         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21943         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
21944         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
21945         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
21946         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
21947         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21948         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21949         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
21950         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21951         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
21952         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
21953         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
21954         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
21955         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21956         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
21957         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21958         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21959         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21960         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
21961         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21962         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
21963         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
21964         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
21965         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
21966         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21967         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21968         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21969         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
21970         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21971         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
21972         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21973         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
21974         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
21975         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
21976         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21977         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21978         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21979         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21980         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21981         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21982         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
21983         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
21984         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
21985         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
21986         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
21987         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
21988         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
21989         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
21990         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
21991         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
21992         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
21993         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
21994         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
21995         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
21996         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
21997         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21998         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
21999         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
22000         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22001         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
22002         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
22003         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22004         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22006         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
22007         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22008         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
22009         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
22010         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
22011         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
22012         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22013         * m4/regex.m4 (gl_REGEX): Likewise.
22014         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
22015         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
22016         gl_FUNC_REMAINDERF_WORKS): Likewise.
22017         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
22018         gl_FUNC_REMAINDERL_WORKS): Likewise.
22019         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22020         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22021         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22022         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22023         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22024         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
22025         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22026         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22027         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
22028         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22029         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
22030         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
22031         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22032         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22033         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22034         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22035         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22036         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22037         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22038         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22039         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22040         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22041         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22042         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22043         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22044         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22045         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22046         Likewise.
22047         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22048         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
22049         Windows. Enable also on Autoconf 2.70.
22050         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22051         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22052         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22053         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
22054         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22055         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
22056         for native Windows.
22057         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22058         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
22060 2017-07-13  Bruno Haible  <bruno@clisp.org>
22062         Improve cross-compilation guesses for native Windows.
22063         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
22064         Windows.
22065         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
22066         memchr.m4.
22067         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22069 2017-07-13  Bruno Haible  <bruno@clisp.org>
22071         Improve cross-compilation guesses for native Windows.
22072         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
22073         native Windows.
22074         (gl_FUNC_FFLUSH): Update accordingly.
22075         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
22076         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22078 2017-07-11  Bruno Haible  <bruno@clisp.org>
22080         More systematic m4 quoting and indentation.
22081         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
22082         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22083         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
22084         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22085         * m4/host-os.m4 (gl_HOST_OS): Likewise.
22086         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
22087         gl_WINSIZE_IN_PTEM): Likewise.
22088         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
22089         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22090         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22091         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
22092         Correct indentation.
22093         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
22094         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22095         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
22096         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22097         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22098         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22100 2017-07-10  Bruno Haible  <bruno@clisp.org>
22102         round, roundf: Avoid compiler warning in configure test.
22103         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
22104         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22106 2017-07-10  Bruno Haible  <bruno@clisp.org>
22108         getlogin tests: Avoid #ifdefs when sharing code between modules.
22109         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
22110         * modules/getlogin-tests (Files): Likewise. Remove
22111         tests/test-getlogin_r.c.
22112         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
22113         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
22114         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
22115         getlogin().
22117 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22119         getlogin: don’t assume one name per uid
22120         Problem reported by Wolfgang F. Muthmann (Bug#27640).
22121         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
22122         (ttyname): Remove test.
22123         * modules/getlogin_r-tests (ttyname): Remove test.
22124         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
22125         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
22126         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
22127         getlogin rather than getlogin_r.  This avoids code duplication.
22128         (main): Use isatty and fstat rather than ttyname and stat.
22129         Use getpwnam instead of getpwuid, to be portable to test platforms
22130         that have multiple login names for the same uid.
22132 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
22133             Bruno Haible  <bruno@clisp.org>
22135         glob: Fix more memory leaks.
22136         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
22137         returning.
22138         Reported by Tim Rühsen.
22140 2017-07-10  Bruno Haible  <bruno@clisp.org>
22142         Make sure $host and $host_os are defined when used.
22143         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
22144         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
22145         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
22146         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22147         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22148         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22149         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22150         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
22151         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22152         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22153         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
22154         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
22155         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
22156         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
22157         m4_ifdef block.
22159 2017-07-09  Bruno Haible  <bruno@clisp.org>
22161         *printf: Fix cross-compilation guess for Solaris.
22162         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
22163         2010-12-21.
22165 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
22166             Bruno Haible  <bruno@clisp.org>
22168         vasnprintf: port to macOS 10.13
22169         Problem reported by comex in:
22170         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
22171         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
22173 2017-07-06  Bruno Haible  <bruno@clisp.org>
22175         imaxdiv tests: Fix logic.
22176         * tests/test-imaxdiv.c (main): Use == instead of =.
22177         Reported by Coverity.
22179 2017-07-06  Bruno Haible  <bruno@clisp.org>
22181         uninorm/filter: Fix use-after-free bug.
22182         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
22183         sortbuf == filter->sortbuf invariant.
22184         Reported by Coverity.
22186 2017-07-06  Bruno Haible  <bruno@clisp.org>
22188         glob: Fix more memory leaks.
22189         * lib/glob.c (glob): Free dirname before returning.
22190         Reported by Coverity and Tim Rühsen.
22192 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22194         parse-datetime: fix uninit var bug
22195         Reported by Bruno Haible in:
22196         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
22197         * lib/parse-datetime.y (parse_datetime2): Do not use
22198         uninitialized.
22200 2017-07-05  Bruno Haible  <bruno@clisp.org>
22202         doc: Update for MSVC 14.
22203         * doc/posix-headers/*.texi: Add info about MSVC 14.
22204         * doc/posix-functions/*.texi: Likewise.
22205         * doc/pastposix-functions/*.texi: Likewise.
22206         * doc/glibc-headers/*.texi: Likewise.
22207         * doc/glibc-functions/*.texi: Likewise.
22209 2017-07-05  Bruno Haible  <bruno@clisp.org>
22211         sched: Fix build failure on native Windows (regression from 2017-06-19).
22212         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
22214 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
22216         stdioext: Port to OpenVMS.
22217         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
22218         * lib/fpending.c (fpending): Remove non-working VMS specific code.
22219         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
22220         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
22221         * lib/fpurge.c (fpurge): Likewise.
22222         * lib/freadable.c (freadable): Likewise.
22223         * lib/freadahead.c (freadahead): Likewise.
22224         * lib/freading.c (freading): Likewise.
22225         * lib/freadptr.c (freadptr): Likewise.
22226         * lib/freadseek.c (freadseek): Likewise.
22227         * lib/fseeko.c (fseeko): Likewise.
22228         * lib/fseterr.c (fseterr): Likewise.
22229         * lib/fwritable.c (fwriteable): Likewise.
22230         * lib/fwriting.c (fwriting): Likewise.
22232 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
22234         glob: Declare variables at the very start of their scope.
22235         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
22236         its separate scope, so the functions will compile on Haiku.
22238 2017-07-01  Bruno Haible  <bruno@clisp.org>
22240         logbl: Work around a glibc bug on PowerPC64LE.
22241         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
22242         numbers.
22243         * doc/posix-functions/logbl.texi: Update.
22245 2017-06-29  Bruno Haible  <bruno@clisp.org>
22247         stat, fstat: Compile stat-w32.c only on platforms that need it.
22248         Suggested by Paul Eggert.
22249         * modules/stat (configure.ac): Request stat-w32.o only on native
22250         Windows.
22251         * modules/fstat (configure.ac): Likewise.
22253 2017-06-25  Bruno Haible  <bruno@clisp.org>
22255         stat: Improve last change.
22256         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
22258 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
22260         stat: port to xlc 12.01
22261         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
22262         12.01 complains "Compilation unit is empty."
22264 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
22266         xalloc-oversized: port to icc
22267         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
22268         __builtin_mul_overflow if ICC is defined, as this results in
22269         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
22270         20170213.
22272 2017-06-19  Bruno Haible  <bruno@clisp.org>
22274         classpath: Avoid including config.h twice, as it produces warnings.
22275         Reported by John E. Malmberg <wb8tyw@gmail.com>.
22276         * lib/classpath.h: Conditionalize the include of config.h.
22278 2017-06-19  Bruno Haible  <bruno@clisp.org>
22279             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
22281         sched: Fix compilation failure on OpenVMS.
22282         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
22283         test whether <pthread.h> exists and defines struct sched_param.
22284         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
22286 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22288         diffseq: port to GCC 7 with --enable-gcc-warnings
22289         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
22290         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
22291         not complain about big_snake being defined but not used.
22293 2017-06-15  Bruno Haible  <bruno@clisp.org>
22295         gettext-h: Update theoretical condition for use of variable size arrays.
22296         Reported by Paul Eggert.
22297         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
22298         to include the theoretical condition for availability of variable size
22299         arrays, if we could trust the value of __STDC_VERSION__.
22301 2017-06-12  Bruno Haible  <bruno@clisp.org>
22303         Relicense some modules under LGPLv2+.
22304         Daiki Ueno's approval is in
22305         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
22306         * modules/uniwidth/base (License): Change to LGPLv2+.
22307         * modules/uniwidth/width (License): Likewise.
22309 2017-06-11  Bruno Haible  <bruno@clisp.org>
22311         localename: Fix test failure on DragonFly BSD.
22312         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
22313         like FreeBSD.
22315 2017-06-11  Bruno Haible  <bruno@clisp.org>
22317         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
22318         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
22319         * lib/float.in.h: Likewise.
22320         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
22322 2017-06-11  Bruno Haible  <bruno@clisp.org>
22324         gnulib-tool: Clean up after autotools.
22325         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
22326         useless directory left over by the Autotools.
22328 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
22330         getopt-posix: port to glibc 2.25.90
22331         Problem reported by Daniel P. Berrange in:
22332         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
22333         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
22334         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
22335         #undef if __GETOPT_PREFIX is defined.
22337 2017-06-11  Bruno Haible  <bruno@clisp.org>
22339         strtod-obsolete: Fix license.
22340         * modules/strtod-obsolete (License): Change to LGPL.
22342 2017-06-10  Jim Meyering  <meyering@fb.com>
22344         maint: update to work with GCC7's -Werror=implicit-fallthrough=
22345         * lib/savewd.c (FALLTHROUGH): Define.
22346         (savewd_save, savewd_restore): Use this, rather than a comment,
22347         whenever one switch case falls through into the next.
22349 2017-06-08  Bruno Haible  <bruno@clisp.org>
22351         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
22352         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
22353         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
22354         case.
22356 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
22358         doc: remove robots, add prereqs
22359         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
22360         builds.  Simon's robot site does not seem to be up, so remove
22361         mentions of it for now.
22363 2017-06-08  Bruno Haible  <bruno@clisp.org>
22365         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
22366         * gnulib-tool (func_symlink_target): New function, extracted from
22367         func_symlink.
22368         (func_symlink, func_symlink_if_changed): Use it.
22370 2017-06-08  Bruno Haible  <bruno@clisp.org>
22372         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
22373         * gnulib-tool (func_ln_s): Determine cp_src correctly.
22375 2017-06-07  Bruno Haible  <bruno@clisp.org>
22377         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
22378         Reported by John E. Malmberg <wb8tyw@gmail.com> in
22379         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
22380         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
22381         override, pass 2 arguments to getcwd, not 3.
22383 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
22385         same-inode: port better to VMS 8.2 and later
22386         Problem reported by John E. Malmberg in:
22387         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
22388         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
22389         Use the usual POSIX definition.
22390         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
22392 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22394         error: fix POSIX violation for va_end
22395         Problem reported by Bruno Haible in:
22396         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
22397         * lib/error.c (error_tail): Do not call va_end here.
22398         (error, error_at_line): Call it here instead.
22400 2017-05-28  Bruno Haible  <bruno@clisp.org>
22402         c-strtod: Make it usable in C++ mode.
22403         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
22405 2017-05-25  Jim Meyering  <meyering@fb.com>
22407         quotearg: fix compilation failure due to FALLTHROUGH misuse
22408         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
22409         macro back to /* fall through */ comment.  The macro can apply only
22410         to a following case statement.  Reported by Assaf Gordon.
22412 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
22414         intprops: port to recent icc
22415         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
22416         but does not support __builtin_add_overflow etc.
22417         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
22418         Define to 0.
22420 2017-05-23  Karl Berry  <karl@freefriends.org>
22422         * config/srclist.txt (iconv.m4): sync broken, comment out
22423         until (hopefully) the next gettext release.
22425 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
22427         Remove repeated words in comments.
22429 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
22431         fallthrough: reinstate a FALLTHROUGH instance in quotearg
22432         quotearg.c: Reinstate this instance which is significant
22433         when the if branch is not taken.
22435 2017-05-21  Bruno Haible  <bruno@clisp.org>
22437         gnulib-tool: Add options to create hard links.
22438         * gnulib-tool (func_usage): Document options --hardlink,
22439         --local-hardlink, --more-hardlinks.
22440         (func_symlink): Renamed from func_ln.
22441         (func_symlink_if_changed): Renamed from func_ln_if_changed.
22442         (func_hardlink): New function.
22443         (copymode, lcopymode): New variables.
22444         (symbolic, lsymbolic): Remove variables.
22445         (Options): Implement options --hardlink, --local-hardlink,
22446         --more-hardlinks.
22447         (func_should_link): Renamed from func_should_symlink. Set copyaction.
22448         (func_add_file, func_update_file): Update invocation of
22449         func_should_link. Invoke func_hardlink when appropriate.
22450         (func_import): Update comments.
22451         (func_create_testdir): Update invocation of func_should_link. Invoke
22452         func_hardlink when appropriate.
22453         Finally, invoke 'git update-index --refresh' to mitigate the effects of
22454         the hard links on git.
22456 2017-05-20  Bruno Haible  <bruno@clisp.org>
22458         argp: Simplify bit manipulation.
22459         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
22460         on a signed integer type.
22462 2017-05-20  Bruno Haible  <bruno@clisp.org>
22464         Avoid wrong configure results with gcc -fsanitize=address.
22465         This completes the work done on 2016-02-06 on this topic.
22466         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
22467         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22468         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22469         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22470         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
22471         returning.
22472         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22473         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
22474         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22475         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22476         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22477         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22478         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
22479         free allocated memory before returning.
22480         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22481         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
22482         objects before returning.
22483         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
22484         returning.
22486 2017-05-20  Bruno Haible  <bruno@clisp.org>
22488         gnulib-tool: Don't create hard links between gnulib and its testdirs.
22489         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
22491 2017-05-20  Bruno Haible  <bruno@clisp.org>
22493         argp, tsearch tests: Fix file list.
22494         * modules/argp-tests (Files): Add tests/macros.h.
22495         * modules/tsearch-tests (Files): Likewise.
22497 2017-05-20  Bruno Haible  <bruno@clisp.org>
22499         getopt-posix tests: Remove redundant include.
22500         * tests/test-getopt.h: Don't include "macros.h". It's already included
22501         by tests/test-getopt-main.h.
22503 2017-05-19  Jim Meyering  <meyering@fb.com>
22505         dfa: two small simplifications
22506         * lib/dfa.c (build_state): Avoid repeating longer expressions.
22508 2017-05-18  Jim Meyering  <meyering@fb.com>
22510         fallthrough: update for GCC 7/8
22511         * lib/quotearg.c (FALLTHROUGH): New macro.
22512         Use it whenever one switch case falls through into the next,
22513         replacing "/* Fall through */" comments.  This exposed one
22514         instance of an unwarranted "fall through" comment: unwarranted
22515         because it preceded a "goto" label not a case statement.
22516         * lib/freopen-safer.c (freopen_safer): Likewise.
22517         * lib/fts.c (leaf_optimization_applies): Likewise.
22518         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22519         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
22520         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
22521         tests/macros.h for the definition.
22522         * tests/test-argp.c (group1_parser): Likewise.
22523         * tests/test-getopt.h (getopt_loop): Likewise.
22525 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22527         argp: fix shift bug
22528         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
22529         behavior on shift overflow, caught by gcc -fsanitize=undefined.
22531         argp: fix pointer-subtraction bug
22532         * lib/argp-help.c (hol_append): Don’t subtract pointers to
22533         different arrays, as this can run afoul of -fcheck-pointer-bounds.
22534         See the thread containing Bruno Haible’s report in:
22535         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
22537 2017-05-19  Bruno Haible  <bruno@clisp.org>
22539         printf-posix tests: Avoid test failure with "gcc --coverage".
22540         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22541         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
22542         than 5000000.
22543         * tests/test-fprintf-posix2.c (main): Likewise.
22545 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22547         closeout: don’t close stderr when sanitizing
22548         * NEWS: Document this.
22549         * lib/closeout.c (__has_feature): New macro, if not already defined.
22550         (SANITIZE_ADDRESS): New constant.
22551         (close_stdout): Don’t close stderr if sanitizing addresses.
22553 2017-05-19  Bruno Haible  <bruno@clisp.org>
22555         get-rusage-data tests: Avoid failure on Linux/glibc.
22556         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
22557         on glibc systems.
22559 2017-05-18  Bruno Haible  <bruno@clisp.org>
22561         localename: Include necessary header files on Cygwin.
22562         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
22563         where NL_LOCALE_NAME is defined.
22565 2017-05-18  Bruno Haible  <bruno@clisp.org>
22567         gettext: Update macros from gettext git.
22568         * m4/intldir.m4: Require Autoconf >= 2.60.
22569         * m4/progtest.m4: Fix typos in copyright notice.
22571 2017-05-18  Bruno Haible  <bruno@clisp.org>
22573         copy-file tests: Fix link error (regression from 2017-05-01).
22574         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22575         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
22576         $(LIB_CLOCK_GETTIME).
22578 2017-05-18  Bruno Haible  <bruno@clisp.org>
22580         unicase/special-casing: Fix incompatibility with gperf-3.0.4
22581         (regression from 2017-02-13).
22582         * lib/unicase/special-casing.in.h: Renamed from
22583         lib/unicase/special-casing.h.
22584         * modules/unicase/special-casing (Files): Add
22585         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
22586         (Makefile.am): Add rule for generating unicase/special-casing.h.
22587         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
22588         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
22589         not "special-casing.h".
22590         * lib/unicase/u*.c: Likewise.
22592 2017-05-17  Bruno Haible  <bruno@clisp.org>
22594         README: Don't ask people to read a TeXinfo file.
22595         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22596         * README: Tell people how to read the HTML formatted manual.
22598 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22600         parse-datetime: Fix memleak
22601         * lib/parse-datetime.y (parse_datetime2): Cleanup on
22602         localtime_rz() failure.
22604 2017-05-16  Bruno Haible  <bruno@clisp.org>
22606         javacomp: Fix handle leak.
22607         Found by Coverity.
22608         * lib/javacomp.c (get_classfile_version): Close fd before returning.
22610 2017-05-16  Bruno Haible  <bruno@clisp.org>
22612         relocate: Make it easier to reclaim allocated memory.
22613         * lib/relocatable.h (relocate2): New declaration/macro.
22614         * lib/relocatable.c (relocate2): New function.
22615         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
22616         relocate2 function.
22617         * lib/localcharset.c (relocate2): Define fallback.
22618         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
22619         allocated memory.
22620         * lib/javaversion.c (relocate2): Define fallback.
22621         (javaexec_version): Invoke relocate2 instead of relocate. Free the
22622         allocated memory.
22624 2017-05-16  Bruno Haible  <bruno@clisp.org>
22626         relocate: Simplify EMX specific code.
22627         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
22628         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
22630 2017-05-16  Bruno Haible  <bruno@clisp.org>
22632         sigpipe tests: Fix file list.
22633         * modules/sigpipe-tests (Files): Add tests/macros.h.
22635 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22637         manywarnings: update for GCC 7
22638         * build-aux/gcc-warning.spec:
22639         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
22640         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
22641         requires a non-comment fallthrough attribute.  This is a bit
22642         cleaner than the comment versions.
22643         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
22644         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
22645         Use it whenever one switch case falls through into the next.
22646         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
22647         Use FALLTHROUGH macro.
22649 2017-05-15  Bruno Haible  <bruno@clisp.org>
22651         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
22652         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
22653         @ALLOCA@, not @LTALLOCA@.
22655 2017-05-15  Bruno Haible  <bruno@clisp.org>
22657         sys_select: Avoid "was expanded before it was required" warning.
22658         * modules/sys_select (configure.ac): Require, not invoke,
22659         gl_HEADER_SYS_SELECT.
22661 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22663         gnulib-tool: improve GNU Make debugging
22664         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
22665         Report autoconf diagnostics when it fails, in the output makefile.
22667 2017-05-14  Bruno Haible  <bruno@clisp.org>
22669         stat-time tests: Improve comment.
22670         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
22672 2017-05-14  Bruno Haible  <bruno@clisp.org>
22674         same-inode: Adapt for windows-stat-inodes.
22675         * lib/same-inode.h: Include <sys/types.h>.
22676         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
22677         * modules/same-inode (Depends-on): Add sys_types.
22679 2017-05-14  Bruno Haible  <bruno@clisp.org>
22681         windows-stat-inodes: New module.
22682         * m4/windows-stat-inodes.m4: New file.
22683         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
22684         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
22685         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
22686         (_GL_WINDOWS_STAT_INODES): New macro.
22687         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
22688         (GetFileInformationByHandleExFunc): New variable.
22689         (initialize): Initialize it.
22690         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
22691         st_ino appropriately.
22692         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
22693         a fallback, because it does not provide st_dev and st_ino values.
22694         * modules/fstat (Depends-on): Add 'verify'.
22695         * modules/windows-stat-inodes: New file.
22696         * doc/windows-stat-inodes.texi: New file.
22697         * doc/gnulib.texi: Include it.
22698         * doc/posix-headers/sys_stat.texi: Mention the new module.
22700 2017-05-14  Bruno Haible  <bruno@clisp.org>
22702         stat-time tests: Workaround for native Windows.
22703         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
22704         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
22705         New variables.
22706         (initialize_filenames): New function.
22707         (main): Invoke it.
22708         (cleanup, prepare_test): Update.
22710 2017-05-14  Bruno Haible  <bruno@clisp.org>
22712         stat-time: Adapt for windows-stat-timespec.
22713         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
22714         entire st_ctim field.
22716 2017-05-13  Jim Meyering  <meyering@fb.com>
22718         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
22719         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
22720         file that uses the assume macro, claiming that verify.h is unused.
22722 2017-05-13  Bruno Haible  <bruno@clisp.org>
22724         Use symbolic values for _WIN32_WINNT.
22725         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
22726         * lib/sethostname.c (_WIN32_WINNT): Likewise.
22728 2017-05-13  Bruno Haible  <bruno@clisp.org>
22730         year2038: New module.
22731         * m4/year2038.m4: New file.
22732         * modules/year2038: New file.
22733         * doc/year2038.texi: New file.
22734         * doc/gnulib.texi: Include it.
22736 2017-05-13  Bruno Haible  <bruno@clisp.org>
22738         largefile: Simplify.
22739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
22740         of _GL_WINDOWS_64_BIT_ST_SIZE.
22742 2017-05-13  Bruno Haible  <bruno@clisp.org>
22744         largefile: Improve and document.
22745         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
22746         the mingw headers already define 'stat' appropriately.
22747         * modules/largefile (Description): Clarify.
22748         * doc/largefile.texi: New file.
22749         * doc/gnulib.texi: Include it.
22750         * doc/posix-headers/sys_types.texi: Update.
22752 2017-05-13  Bruno Haible  <bruno@clisp.org>
22754         truncate: New module.
22755         * lib/unistd.in.h (truncate): New declaration.
22756         * lib/truncate.c: New file.
22757         * m4/truncate.m4: New file.
22758         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
22759         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
22760         REPLACE_TRUNCATE.
22761         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
22762         HAVE_TRUNCATE, REPLACE_TRUNCATE.
22763         * modules/truncate: New file.
22764         * tests/test-unistd-c++.cc (truncate): Test signature.
22765         * doc/posix-functions/truncate.texi: Mention the new module.
22767         * tests/test-truncate.c: New file.
22768         * modules/truncate-tests: New file.
22770 2017-05-13  Bruno Haible  <bruno@clisp.org>
22772         windows-stat-timespec: New module.
22773         * modules/windows-stat-timespec: New file.
22774         * m4/windows-stat-timespec.m4: New file.
22775         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
22776         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
22777         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
22778         fields st_atim, st_mtim, st_ctim.
22779         (st_atime, st_mtime, st_ctime): Define as macros.
22780         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
22781         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
22782         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
22783         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
22784         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
22785         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
22786         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22787         FILETIME to 'struct timespec', not 'time_t'.
22788         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22789         FILETIME to 'struct timespec', not 'time_t'.
22790         * lib/stat-time.h (STAT_TIMESPEC): Define also if
22791         _GL_WINDOWS_STAT_TIMESPEC.
22792         * doc/windows-stat-timespec.texi: New file.
22793         * doc/gnulib.texi: Include it.
22795 2017-05-13  Bruno Haible  <bruno@clisp.org>
22797         windows-stat-override: New module.
22798         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
22799         definition. Define GNULIB_defined_struct_stat.
22800         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
22801         link error if this symbol is used and the corresponding module is not
22802         in use.
22803         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
22804         GNULIB_OVERRIDES_STRUCT_STAT.
22805         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22806         GNULIB_OVERRIDES_STRUCT_STAT.
22807         * modules/sys_stat (Makefile.am): Substitute
22808         GNULIB_OVERRIDES_STRUCT_STAT.
22809         * modules/windows-stat-override: New file.
22811 2017-05-13  Bruno Haible  <bruno@clisp.org>
22813         fstat: Fix module dependency conditions.
22814         * modules/fstat (Depends-on): Fix typo.
22816 2017-05-13  Bruno Haible  <bruno@clisp.org>
22818         stat, fstat: Complete removal of old native Windows code.
22819         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
22820         * lib/fstat.c: Likewise.
22821         * lib/stat-w32.c: Likewise.
22823 2017-05-13  Bruno Haible  <bruno@clisp.org>
22825         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
22826         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
22828 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22830         getopt-posix: port to mingw
22831         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
22832         Problem reported by Daniel P. Berrage in:
22833         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
22835 2017-05-11  Bruno Haible  <bruno@clisp.org>
22837         gettimeofday: Increase precision on mingw.
22838         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
22839         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
22840         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
22841         GetSystemTimePreciseAsFileTime based implementation always.
22842         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
22843         mingw.
22845 2017-05-11  Bruno Haible  <bruno@clisp.org>
22847         poll: Fix confusion between SOCKETs and FDs on native Windows.
22848         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
22849         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
22851 2017-05-11  Bruno Haible  <bruno@clisp.org>
22853         doc: Clarify doc about socket functions on native Windows.
22854         This reworks doc that was added on 2008-09-29.
22855         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
22856         clearer wording.
22857         * doc/posix-functions/accept.texi: Use clearer wording.
22858         * doc/posix-functions/bind.texi: Likewise.
22859         * doc/posix-functions/connect.texi: Likewise.
22860         * doc/posix-functions/getpeername.texi: Likewise.
22861         * doc/posix-functions/getsockname.texi: Likewise.
22862         * doc/posix-functions/getsockopt.texi: Likewise.
22863         * doc/posix-functions/ioctl.texi: Likewise.
22864         * doc/posix-functions/listen.texi: Likewise.
22865         * doc/posix-functions/recv.texi: Likewise.
22866         * doc/posix-functions/recvfrom.texi: Likewise.
22867         * doc/posix-functions/send.texi: Likewise.
22868         * doc/posix-functions/sendto.texi: Likewise.
22869         * doc/posix-functions/setsockopt.texi: Likewise.
22870         * doc/posix-functions/shutdown.texi: Likewise.
22871         * doc/posix-functions/socket.texi: Likewise.
22873 2017-05-10  Bruno Haible  <bruno@clisp.org>
22875         poll: Fix link error on native Windows.
22876         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
22878 2017-05-10  Bruno Haible  <bruno@clisp.org>
22880         time: Fix missing initialization of HAVE_TIMEZONE_T.
22881         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
22882         here...
22883         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
22884         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
22885         gl_HEADER_SYS_TIME_H_DEFAULTS.
22886         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
22887         (configure.ac): Remove useless quoting.
22889 2017-05-10  Bruno Haible  <bruno@clisp.org>
22891         Implement a way to opt out from MSVC support, part 2.
22892         * modules/msvc-inval (Include): Document recommended idiom.
22893         * modules/msvc-nothrow (Include): Likewise.
22895         Implement a way to opt out from MSVC support.
22896         This is useful for Emacs.
22897         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
22898         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
22899         * lib/error.c: Likewise.
22900         * lib/fcntl.c: Likewise.
22901         * lib/flock.c: Likewise.
22902         * lib/fstat.c: Likewise.
22903         * lib/fsync.c: Likewise.
22904         * lib/ioctl.c: Likewise.
22905         * lib/isapipe.c: Likewise.
22906         * lib/lseek.c: Likewise.
22907         * lib/nonblocking.c: Likewise.
22908         * lib/poll.c: Likewise.
22909         * lib/select.c: Likewise.
22910         * lib/sockets.h: Likewise.
22911         * lib/sockets.c: Likewise.
22912         * lib/stdio-read.c: Likewise.
22913         * lib/stdio-write.c: Likewise.
22914         * lib/utimens.c: Likewise.
22915         * lib/w32sock.h: Likewise.
22916         * lib/w32spawn.h: Likewise.
22917         * tests/test-cloexec.c: Likewise.
22918         * tests/test-dup-safer.c: Likewise.
22919         * tests/test-dup2.c: Likewise.
22920         * tests/test-dup3.c: Likewise.
22921         * tests/test-fcntl.c: Likewise.
22922         * tests/test-pipe.c: Likewise.
22923         * tests/test-pipe2.c: Likewise.
22924         * lib/ftruncate.c: Likewise.
22925         (chsize_nothrow): Renamed from chsize.
22926         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
22927         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22928         * lib/close.c: Likewise.
22929         * lib/dup.c: Likewise.
22930         * lib/fclose.c: Likewise.
22931         * lib/raise.c: Likewise.
22932         * tests/test-fgetc.c: Likewise.
22933         * tests/test-fputc.c: Likewise.
22934         * tests/test-fread.c: Likewise.
22935         * tests/test-fwrite.c: Likewise.
22936         * lib/getdtablesize.c: Likewise.
22937         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
22938         * lib/isatty.c: Don't include msvc-inval.h if
22939         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22940         Include <io.h> as an alternative to msvc-nothrow.h.
22941         * lib/read.c: Likewise.
22942         * lib/write.c: Likewise.
22943         * lib/dup2.c: Likewise.
22944         (dup2_nothrow): New function.
22945         (ms_windows_dup2): Use it.
22946         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
22947         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
22948         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22949         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
22950         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
22951         * m4/read.m4 (gl_FUNC_READ): Likewise.
22952         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
22953         * doc/windows-without-msvc.texi: New file.
22954         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
22955         section.
22957 2017-05-10  Bruno Haible  <bruno@clisp.org>
22959         wait-process: Adjust native Windows support.
22960         * lib/wait-process.c: Use the usual condition for recognizing a native
22961         Windows platform.
22963 2017-05-10  Bruno Haible  <bruno@clisp.org>
22965         doc: New chapter "Native Windows Support".
22966         * doc/gnulib.texi (Native Windows Support): New chapter.
22967         * doc/windows-libtool.texi: Small wording changes.
22968         * doc/windows-sockets.texi: Small wording and formatting changes.
22970 2017-05-10  Bruno Haible  <bruno@clisp.org>
22972         doc: Move section "Library version handling".
22973         * doc/gnulib.texi: Move section "Library version handling"
22974         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
22976 2017-05-10  Bruno Haible  <bruno@clisp.org>
22978         doc: Move section "Running self-tests under valgrind".
22979         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
22980         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
22982 2017-05-10  Bruno Haible  <bruno@clisp.org>
22984         doc: New chapter "Build Infrastructure Modules".
22985         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
22987 2017-05-10  Bruno Haible  <bruno@clisp.org>
22989         Prepare for reordering sections in the manual.
22990         * doc/gnulib.texi: Move several sections to separate files. Include
22991         these files.
22992         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
22993         * doc/obsolete.texi: Likewise.
22994         * doc/extra-tests.texi: Likewise.
22995         * doc/transversal.texi: Likewise.
22996         * doc/namespace.texi: Likewise.
22997         * doc/check-version.texi: Likewise.
22998         * doc/windows-sockets.texi: Likewise.
22999         * doc/windows-libtool.texi: Likewise.
23000         * doc/licenses-texi.texi: Likewise.
23001         * doc/build-automation.texi: Likewise.
23002         * doc/c-locale.texi: Likewise.
23004 2017-05-10  Bruno Haible  <bruno@clisp.org>
23006         Fix instructions how to update manual on www.gnu.org.
23007         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
23009 2017-05-09  Bruno Haible  <bruno@clisp.org>
23011         tzset: Expand comment about TZ problem on native Windows.
23012         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
23013         Paul Eggert.
23014         * lib/ctime.c (rpl_ctime): Likewise.
23015         * lib/localtime.c (rpl_localtime): Likewise.
23016         * lib/mktime.c (mktime): Likewise.
23017         * lib/strftime-fixes.c (rpl_strftime): Likewise.
23018         * lib/wcsftime.c (rpl_wcsftime): Likewise.
23020 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
23022         intprops: don’t depend on ‘verify’
23023         Problem reported by Ævar Arnfjörð Bjarmason in:
23024         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
23025         * lib/intprops.h: Do not include verify.h, and move compile-time
23026         checks from here ...
23027         * tests/test-intprops.c (main): ... to here, if they’re not here
23028         already.  Check widths of other standard integer types.
23029         * modules/intprops (Depends-on): Remove ‘verify’.
23031 2017-05-07  Bruno Haible  <bruno@clisp.org>
23033         utimens: On native Windows, support 100ns resolution also if fd < 0.
23034         * lib/utime.in.h: Include <time.h>.
23035         (_gl_utimens_windows): New declaration.
23036         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
23037         (utime): Invoke it.
23038         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
23039         instead of utime.
23040         * modules/utime (Depends-on): Add 'time'.
23042 2017-05-07  Bruno Haible  <bruno@clisp.org>
23044         utimens: Improve error code on native Windows.
23045         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
23046         error code EACCES, not EINVAL.
23048 2017-05-07  Bruno Haible  <bruno@clisp.org>
23050         utime: Handle more Windows error codes.
23051         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
23052         Based on explanations by Billy O'Neal.
23054 2017-05-05  Bruno Haible  <bruno@clisp.org>
23056         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
23057         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
23058         union.
23059         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
23060         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
23061         value of cipher->IV.
23063 2017-05-05  Bruno Haible  <bruno@clisp.org>
23065         wctype-h-c++-tests: Update.
23066         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
23068 2017-05-05  Bruno Haible  <bruno@clisp.org>
23070         wchar-c++-tests: Update.
23071         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
23073 2017-05-05  Bruno Haible  <bruno@clisp.org>
23075         utime-h-c++-tests: New module.
23076         * tests/test-utime-h-c++.cc: New file.
23077         (utime): Declare, missing since 2017-04-30.
23078         * modules/utime-h-c++-tests: New file.
23080 2017-05-05  Bruno Haible  <bruno@clisp.org>
23082         unistd-c++-tests: Update.
23083         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
23084         (read): Declare, missing since 2011-04-15.
23085         (sethostname): Declare, missing since 2011-12-03.
23087 2017-05-05  Bruno Haible  <bruno@clisp.org>
23089         time-c++-tests: Update.
23090         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
23091         (localtime, gmtime): Declare, missing since 2017-04-30.
23092         (ctime): Declare, missing since 2017-04-30.
23093         (strftime): Declare, missing since 2017-04-30.
23094         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
23095         2015-07-24.
23097 2017-05-05  Bruno Haible  <bruno@clisp.org>
23099         sys_resource-c++-tests: New module.
23100         * tests/test-sys_resource-c++.cc: New file.
23101         (getrusage): Declare, missing since 2012-04-13.
23102         * modules/sys_resource-c++-tests: New file.
23104 2017-05-05  Bruno Haible  <bruno@clisp.org>
23106         strings-c++-tests: New module.
23107         * tests/test-strings-c++.cc: New file.
23108         (ffs): Declare, missing since 2011-07-12.
23109         * modules/strings-c++-tests: New file.
23111 2017-05-05  Bruno Haible  <bruno@clisp.org>
23113         string-c++-tests: Update.
23114         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
23115         (ffsll): Declare, missing since 2011-07-15.
23117 2017-05-05  Bruno Haible  <bruno@clisp.org>
23119         stdlib-c++-tests: Update.
23120         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
23121         2011-10-18.
23122         (ptsname_r): Declare, missing since 2011-11-07.
23123         (qsort_r): Declare, missing since 2014-08-29.
23124         (random, srandom, initstate, setstate): Declare, missing since
23125         2012-01-14.
23126         (secure_getenv): Declare, missing since 2013-02-05.
23128 2017-05-05  Bruno Haible  <bruno@clisp.org>
23130         stdio-c++-tests: Update.
23131         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
23133 2017-05-05  Bruno Haible  <bruno@clisp.org>
23135         signal-h-c++-tests: Update.
23136         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
23138 2017-05-05  Bruno Haible  <bruno@clisp.org>
23140         math-c++-tests: Update.
23141         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
23142         (fma): Declare, missing since 2011-10-17.
23143         (fmal): Declare, missing since 2011-10-17.
23145 2017-05-05  Bruno Haible  <bruno@clisp.org>
23147         locale-c++-tests: Update.
23148         * tests/test-locale-c++.cc (localeconv): Declare, missing since
23149         2012-03-25.
23151 2017-05-05  Bruno Haible  <bruno@clisp.org>
23153         inttypes-c++-tests: New module.
23154         * tests/test-inttypes-c++.cc: New file.
23155         (strtoimax): Declare, missing since 2012-01-05.
23156         (strtoumax): Declare, missing since 2012-01-05.
23157         * modules/inttypes-c++-tests: New file.
23159 2017-05-05  Bruno Haible  <bruno@clisp.org>
23161         dirent-c++-tests: Update.
23162         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
23163         (rewinddir): Declare, missing since 2011-09-13.
23164         (dirfd): Declare, missing since 2010-03-08.
23166 2017-05-04  Bruno Haible  <bruno@clisp.org>
23168         argp: Fix mistake in 2017-04-23 commit.
23169         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
23170         assume that strerror_r returns 'int', not 'char *'.
23172 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
23174         argp: Fix typo.
23175         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
23177 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23179         utimens: port to Emacs + MS-Windows
23180         Skip the new MS-Windows-specific code if Emacs.
23181         * lib/utimens.c [EMACS_CONFIGUATION]:
23182         Avoid new MS-Windows-specific code.
23183         (USE_SETFILETIME): New macro.
23184         (fdutimens): Use it.
23186 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23188         tzset: update doc for TZ problems on MS-Windows
23189         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
23190         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
23191         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
23192         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
23193         * doc/posix-functions/wcsftime.texi:
23194         Mention some issues with TZ under MS-Windows.
23196 2017-05-01  Bruno Haible  <bruno@clisp.org>
23198         copy-file: Fix build error on mingw.
23199         * modules/copy-file (Depends-on): Add 'close'.
23201 2017-05-01  Bruno Haible  <bruno@clisp.org>
23203         tzset: Work around TZ problem on native Windows.
23204         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
23205         Windows, set REPLACE_TZSET to 1.
23206         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
23207         invoke '_tzset' instead of 'tzset'.
23208         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
23210         * modules/time_rz (Depends-on): Add tzset.
23211         * lib/time_rz.c (tzset): Remove fallback definition.
23212         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
23214 2017-05-01  Bruno Haible  <bruno@clisp.org>
23216         mktime: Fix dependencies.
23217         * modules/mktime (Depends-on): Add 'time'.
23219 2017-05-01  Bruno Haible  <bruno@clisp.org>
23221         New module 'localtime-buffer', split off from module 'gettimeofday'.
23222         * lib/localtime-buffer.h: New file.
23223         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
23224         * lib/time.in.h (tzset): New declaration.
23225         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
23226         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
23227         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
23228         moved to lib/localtime-buffer.c or lib/tzset.c.
23229         * m4/localtime-buffer.m4: New file.
23230         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
23231         HAVE_TZSET, REPLACE_TZSET.
23232         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
23233         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
23234         gl_LOCALTIME_BUFFER_NEEDED.
23235         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
23236         since 2007-01-18.
23237         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
23238         tzset.
23239         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
23240         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
23241         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
23242         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
23243         * modules/localtime-buffer: New file.
23244         * modules/time (Depends-on): Remove 'gettimeofday'.
23245         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
23246         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
23247         * modules/tzset (Description): Enable hyperlink to POSIX spec.
23248         (Files): Add lib/tzset.c.
23249         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
23250         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
23251         gl_TIME_MODULE_INDICATOR.
23252         * modules/gettimeofday (Depends-on): Add localtime-buffer.
23254 2017-05-01  Bruno Haible  <bruno@clisp.org>
23256         copy-file: Preserve sub-second time stamps.
23257         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
23258         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
23259         transport the time stamps from the original file to the destination
23260         file.
23261         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
23262         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
23263         utime-h.
23265 2017-05-01  Bruno Haible  <bruno@clisp.org>
23267         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
23268         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
23269         also on MSVC.
23270         Reported by Eli Zaretskii <eliz@gnu.org>.
23272 2017-05-01  Bruno Haible  <bruno@clisp.org>
23274         wchar: Fix compilation error with the original mingw.org mingw.
23275         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23276         <stddef.h> instead.
23277         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
23278         gl_WCTYPE_H.
23279         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
23280         gl_TYPE_WINT_T_PREREQ instead.
23281         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
23282         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
23283         Reported by Eli Zaretskii <eliz@gnu.org>.
23285 2017-04-30  Bruno Haible  <bruno@clisp.org>
23287         utimecmp: Add support for native Windows.
23288         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
23290 2017-04-30  Bruno Haible  <bruno@clisp.org>
23292         utimens: Add support for native Windows.
23293         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
23294         (fdutimens): Provide a native Windows implementation, like utime.c with
23295         added tv_nsec support.
23296         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
23297         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
23299 2017-04-30  Bruno Haible  <bruno@clisp.org>
23301         wcsftime: New module.
23302         * lib/wchar.in.h (wcsftime): New declaration.
23303         * lib/wcsftime.c: New file.
23304         * m4/wcsftime.m4: New file.
23305         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
23306         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
23307         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23308         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
23309         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23310         * modules/wcsftime: New file.
23311         * doc/posix-functions/wcsftime.texi: Mention the new module.
23313 2017-04-30  Bruno Haible  <bruno@clisp.org>
23315         strftime-fixes: New module.
23316         * lib/time.in.h (strftime): New declaration.
23317         * lib/strftime-fixes.c: New file.
23318         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
23319         (gl_FUNC_STRFTIME): Remove macro.
23320         * m4/strftime-fixes.m4: New file.
23321         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
23322         REPLACE_STRFTIME.
23323         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
23324         REPLACE_STRFTIME.
23325         * modules/strftime-fixes: New file.
23326         * doc/posix-functions/strftime.texi: Mention the new module.
23328 2017-04-30  Bruno Haible  <bruno@clisp.org>
23330         mktime: Work around TZ problem on native Windows.
23331         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
23332         from the native Windows workaround.
23333         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
23334         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
23335         'guessing no'.
23336         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
23337         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
23338         NEED_MKTIME_WINDOWS.
23339         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
23340         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
23341         NEED_MKTIME_INTERNAL.
23342         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
23343         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
23344         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
23345         not REPLACE_MKTIME.
23346         * doc/posix-functions/mktime.texi: Mention the native Windows
23347         workaround.
23349 2017-04-30  Bruno Haible  <bruno@clisp.org>
23351         localtime: New module.
23352         * lib/time.in.h (localtime): Declare also if requested by module
23353         'localtime'.
23354         * lib/localtime.c: New file.
23355         * m4/localtime.m4: New file.
23356         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
23357         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
23358         * modules/localtime: New file.
23359         * doc/posix-functions/localtime.texi: Mention the new module.
23361 2017-04-30  Bruno Haible  <bruno@clisp.org>
23363         ctime: New module.
23364         * lib/time.in.h (ctime): New declaration.
23365         * lib/ctime.c: New file.
23366         * m4/ctime.m4: New file.
23367         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
23368         REPLACE_CTIME.
23369         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
23370         * modules/ctime: New file.
23371         * doc/posix-functions/ctime.texi: Mention the new module.
23373 2017-04-30  Bruno Haible  <bruno@clisp.org>
23375         gettimeofday: Provide higher resolution on native Windows.
23376         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
23377         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
23378         (initialize): Initialize it.
23379         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
23380         'struct timeval'. Don't use _ftime().
23381         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
23382         <sys/timeb.h> and _ftime.
23384 2017-04-30  Bruno Haible  <bruno@clisp.org>
23386         Document the problem with the Cygwin environment variable TZ.
23387         * doc/posix-functions/tzset.texi: Add note about TZ.
23388         * doc/posix-functions/ctime.texi: Likewise.
23389         * doc/posix-functions/localtime.texi: Likewise.
23390         * doc/posix-functions/mktime.texi: Likewise.
23391         * doc/posix-functions/strftime.texi: Likewise.
23392         * doc/posix-functions/wcsftime.texi: Likewise.
23393         * doc/pastposix-functions/ftime.texi: Likewise.
23395 2017-04-30  Bruno Haible  <bruno@clisp.org>
23397         utime-tests: New module.
23398         * tests/test-utime.c: New file, based on tests/test-utimens.h.
23399         * tests/test-utimens-common.h: Include <sys/stat.h>.
23400         * modules/utime-tests: New file.
23402 2017-04-29  Bruno Haible  <bruno@clisp.org>
23404         utime: New module.
23405         * lib/utime.in.h: Add comment for snippets.
23406         (utime): New declaration.
23407         * lib/utime.c: New file.
23408         * m4/utime.m4: New file.
23409         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
23410         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
23411         REPLACE_UTIME.
23412         * modules/utime-h (Depends-on): Add snippets.
23413         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
23414         Insert snippets.
23415         * modules/utime: New file.
23416         * doc/posix-functions/utime.texi: Mention the new module.
23418 2017-04-29  Bruno Haible  <bruno@clisp.org>
23420         utime-h: Modernize handling of 'struct utimbuf'.
23421         * lib/utime.in.h: Include next <utime.h> if it exists.
23422         (utimbuf): Define to _utimbuf on native Windows.
23423         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
23424         Set UTIME_H on native Windows.
23425         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
23426         * modules/utime-h (Depends-on): Add include_next.
23427         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
23428         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
23430         * lib/utimens.c (utimbuf): Remove fallback definition.
23431         * m4/utimens.m4 (gl_UTIMENS): Don't require
23432         gl_CHECK_TYPE_STRUCT_UTIMBUF.
23433         * m4/utimbuf.m4: Remove file.
23434         * modules/utimens (Files): Remove m4/utimbuf.m4.
23436 2017-04-29  Bruno Haible  <bruno@clisp.org>
23438         Make use of module 'utime-h'.
23439         * modules/copy-file (Depends-on): Add utime-h.
23440         * lib/copy-file.c: Assume that <utime.h> exists.
23441         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
23443         * modules/utimens (Depends-on): Add utime-h.
23444         * lib/utimens.c: Assume that <utime.h> exists.
23446 2017-04-29  Bruno Haible  <bruno@clisp.org>
23448         utime-h: New module.
23449         * m4/utime_h.m4: New file.
23450         * lib/utime.in.h: New file.
23451         * modules/utime-h: New file.
23452         * doc/posix-headers/utime.texi: Mention the new module.
23454         * tests/test-utime-h.c: New file.
23455         * modules/utime-h-tests: New file.
23457 2017-04-30  Bruno Haible  <bruno@clisp.org>
23459         Fix a few typos.
23460         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
23461         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
23462         * doc/posix-functions/fstat.texi: Fix a plural typo.
23463         * doc/posix-functions/stat.texi: Likewise.
23464         * m4/include_next.m4: Update comments.
23466 2017-04-29  Bruno Haible  <bruno@clisp.org>
23468         error: Fix mistake in 2017-04-23 commit.
23469         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
23470         assume that strerror_r returns 'int', not 'char *'.
23472 2017-04-29  Bruno Haible  <bruno@clisp.org>
23474         stat: Fix time_t values and other problems on native Windows platforms.
23475         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
23476         implementations of stat().
23477         * lib/stat.c: Include filename.h instead of dosname.h. Include
23478         malloca.h, stat-w32.h.
23479         (is_unc_root): New function.
23480         (rpl_stat): New implementation for native Windows. Remove
23481         REPLACE_FUNC_STAT_DIR code.
23482         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
23483         Don't define REPLACE_FUNC_STAT_DIR.
23484         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
23485         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23486         (Depends-on): Remove dosname. Add filename, malloca.
23487         (configure.ac): Also compile lib/stat-w32.c.
23489 2017-04-29  Bruno Haible  <bruno@clisp.org>
23491         fstat: Fix time_t values on native Windows platforms.
23492         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
23493         * lib/stat-w32.h: New file.
23494         * lib/stat-w32.c: New file.
23495         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
23496         stat-w32.h instead.
23497         (fstat_nothrow): Remove function.
23498         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
23499         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
23500         always.
23501         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
23502         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23503         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
23504         (configure.ac): Also compile lib/stat-w32.c.
23506 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23508         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
23509         Problem reported by Assaf Gordon and Gavin Smith in:
23510         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
23511         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
23512         #define this, too.
23514 2017-04-29  Bruno Haible  <bruno@clisp.org>
23516         strerror_r-posix: Fixes for MSVC 14.
23517         * lib/strerror_r.c: Include <stdarg.h>.
23518         (strerror_r): Provide error messages for errno values 100...140.
23519         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
23521 2017-04-28  Bruno Haible  <bruno@clisp.org>
23523         noreturn: New module.
23524         * lib/noreturn.h: New file.
23525         * modules/noreturn: New file.
23526         * tests/test-noreturn.c: New file.
23527         * modules/noreturn-tests: New file.
23528         * tests/test-noreturn-c++.cc: New file.
23529         * modules/noreturn-c++-tests: New file.
23531 2017-04-27  Bruno Haible  <bruno@clisp.org>
23533         wctype-h: Fix compilation error with the original mingw.org mingw.
23534         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
23535         HAVE_CRTDEFS_H.
23536         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
23537         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23538         <stddef.h> instead.
23539         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
23541 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23543         nap.h: Fix compilation on non windows platforms
23544         * tests/nap.h: Move misplaced endif.
23546 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23547         and Paul Eggert  <eggert@cs.ucla.edu>
23549         time_rz: fix heap buffer overflow vulnerability
23550         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
23551         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
23552         whether there is enough buffer space available, thus avoiding
23553         the problematic promotion of signed to unsigned causing an invalid
23554         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
23555         the start of the buffer.
23556         * tests/test-parse-datetime.c (main): Add a test case written by
23557         Paul Eggert, which overwrites enough of the heap so that
23558         standard glibc will fail with "free(): invalid pointer"
23559         without the patch applied.
23561 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
23563         xalloc: add missing integer overflow check
23564         * lib/xalloc.h (x2nrealloc): Also check for multiplication
23565         overflow when P is null.
23567 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
23569         parse-datetime: make it standalone
23570         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
23571         (_GL_ATTRIBUTE_FORMAT): New macro.
23572         These are needed to get './gnulib-tool --test parse-datetime' to work.
23574 2017-04-23  Bruno Haible  <bruno@clisp.org>
23576         nap.h: Port to native Windows.
23577         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
23578         use nap_fd instead. On native Windows, close and reopen nap_fd.
23579         (nap_works): Don't compare the ctimes, because on native Windows, these
23580         are the creation times.
23581         (nap): Update.
23583 2017-04-23  Bruno Haible  <bruno@clisp.org>
23585         nap.h: Fix logic.
23586         * tests/nap.h (nap): Avoid signed integer overflow in loop.
23588 2017-04-23  Bruno Haible  <bruno@clisp.org>
23590         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23591         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
23592         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
23593         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
23594         * lib/argp-help.c (__argp_failure): Likewise.
23596 2017-04-23  Bruno Haible  <bruno@clisp.org>
23598         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
23599         * m4/strerror_r.m4: Revert changes since 2016-10-16.
23600         * lib/strerror_r.c: Likewise.
23602 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
23604         Target a C99 subset, not a C89 subset
23605         For many years Gnulib has targeted C89 and has resisted using C99
23606         features, as some Gnulib-using programs still wanted to target
23607         C89.  As this no longer seems to be the case, relax the porting
23608         requirements to allow some C99 features.  This is merely a change
23609         to the documentation, to give other Gnulib developers a chance to
23610         weigh in on the topic.
23611         * doc/extern-inline.texi (extern inline):
23612         * doc/gnulib-readme.texi (Portability guidelines):
23613         * doc/gnulib-tool.texi (Initial import):
23614         * doc/gnulib.texi (Header files):
23615         Modernize to talk about C99 and C11 instead of C89 and C99.
23616         * doc/gnulib-readme.texi (Portability guidelines):
23617         Now a section, not merely a subsection, so that it
23618         can be split up.  Modernize a bit.
23619         (C language versions, C99 features assumed)
23620         (C99 features avoided):
23621         New sections.
23623 2017-04-23  Bruno Haible  <bruno@clisp.org>
23625         doc: New section "Modules that modify the way other modules work".
23626         * doc/gnulib.texi (Modules that modify the way other modules work): New
23627         section.
23629 2017-04-23  Bruno Haible  <bruno@clisp.org>
23631         stat-time: Update comments.
23632         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
23633         * tests/test-utimens-common.h: Add reference regarding st_ctime on
23634         Windows.
23636 2017-04-01  Bruno Haible  <bruno@clisp.org>
23638         glob: Fix more memory leaks.
23639         * lib/glob.c (glob): Free allocated memory before returning.
23640         Reported by Coverity via Tim Rühsen.
23642 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23644         poll: improve fast check for out-of-range NFD
23645         * lib/poll.c: Do not include intprops.h.
23646         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
23647         * modules/poll (Depends-on): Remove intprops.
23649         ftoastr: cite a newer paper
23650         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
23651         instead of Loitsch 2010.
23653 2017-04-22  Bruno Haible  <bruno@clisp.org>
23655         poll: Enable argument check also in the Windows implementation.
23656         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
23657         Reported by Paul Eggert.
23659 2017-04-22  Bruno Haible  <bruno@clisp.org>
23661         getlogin_r: Work around bug in Mac OS X 10.12.
23662         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
23663         bug.
23664         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
23665         given size minus 1, call getlogin_r a second time, on a larger buffer.
23666         * modules/getlogin_r (Depends-on): Add malloca.
23667         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
23669 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23671         parse-datetime: fix %z and prefer signed int
23672         %z problem reported by Pádraig Brady in:
23673         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
23674         While fixing it, I decided to prefer signed ints to size_t, as
23675         they are less error-prone (e.g., ubsan catches overflow).
23676         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
23677         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
23678         counts, since signed integers make for better debugging.
23679         (date): Don’t assume %z works in printf formats.
23680         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
23681         sizes of buffers known to be small, e.g., because we’re using snprintf.
23682         (parse_datetime2): Simplify call to debug_mktime_not_ok.
23684 2017-04-22  Bruno Haible  <bruno@clisp.org>
23686         *printf: Work around rounding bug on Mac OS X.
23687         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
23688         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
23689         Mac OS X and FreeBSD.
23690         * doc/glibc-functions/*printf.texi: Likewise.
23692 2017-04-22  Bruno Haible  <bruno@clisp.org>
23694         vasnprintf tests: Avoid warnings.
23695         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
23696         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
23697         test.
23699 2017-04-22  Bruno Haible  <bruno@clisp.org>
23701         sys_file tests: Avoid warning.
23702         * tests/test-sys_file.c (main): Add a default clause to the switch
23703         statement.
23705 2017-04-22  Bruno Haible  <bruno@clisp.org>
23707         sethostname: Update doc.
23708         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
23709         Mac OS X.
23711 2017-04-22  Bruno Haible  <bruno@clisp.org>
23713         quotearg tests: Avoid warnings.
23714         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
23715         false.
23717 2017-04-22  Bruno Haible  <bruno@clisp.org>
23719         poll: Enable argument check.
23720         * lib/poll.c: Include intprops.h.
23721         (poll): Check value of nfd correctly.
23722         * modules/poll (Depends-on): Add intprops.
23724 2017-04-22  Bruno Haible  <bruno@clisp.org>
23726         get-rusage-data: Avoid warnings on Mac OS X.
23727         * lib/get-rusage-data.c: On Mac OS X, don't define
23728         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
23729         (get_rusage_data) [Mac OS X]: Just return 0.
23731 2017-04-22  Bruno Haible  <bruno@clisp.org>
23733         xbinary-io: Fix build error.
23734         * modules/xbinary-io (Depends-on): Add gettext-h.
23735         * lib/xbinary-io.c: Include gettext.h and define _().
23736         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
23737         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
23739 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23741         parse-datetime: overflow and debug cleanups
23742         This long patch was triggered by this bug report from Ruediger Meier:
23743         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
23744         I fixed the bug he noted, then found some others nearby, and then
23745         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
23746         up some of the code to follow GNU standards while I was at it.
23747         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
23748         use c_isdigit.
23749         (EPOCH_YEAR): Remove; unused.
23750         (TM_YEAR_BASE): Now an enum rather than a macro.
23751         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
23752         time zone offset, since timezones now are in terms of seconds and
23753         not minutes.
23754         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
23755         appropriate.  Verify that intmax_t is wide enough.
23756         (time_overflow, time_zone_str): New functions, used to deal
23757         more reliably with overflow.
23758         (dbg_printf): Add printf attribute, to help catch integer width errors.
23759         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
23760         (%union, to_hour, yylex, parse_datetime2):
23761         Use intmax_t instead of long int and/or long_time_t.
23762         All uses changed.
23763         (DBGBUFSIZE): Move earlier.
23764         (relative_time, set_hhmmss, parser_control):
23765         Just use int for nanoseconds and for time zones; that’s wide enough.
23766         (parser_control): Use bool for members like year_seen that can
23767         be booleans instead of counters.  All uses changed.
23768         Remove debug_default_input_timezone; no longer needed.
23769         All uses removed.
23770         (apply_relative_time): Return a bool overflow flag.
23771         All uses changed to check for overflow.
23772         (apply_relative_time, zone, date, relunit, relunit_snumber)
23773         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
23774         Check for integer overflow portably.
23775         (str_days): Use just int for N, as it’s wide enough.
23776         Prefer 2D char arrays to arrays of char * when it looks like
23777         2D is a win on typical platforms.
23778         Prefer snprintf to strncpy/strncat, for simplicity;
23779         all buffers are smaller than INT_MAX so this is safe.
23780         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
23781         (debug_print_current_time): Don’t assume tv_nsec is of type long,
23782         as this is not true on x32.  Output "." before any nanoseconds.
23783         (debug_print_current_time, parse_datetime2):
23784         Output local zones using a more-consistent format.
23785         (debug_print_current_time, date, parse_datetime2):
23786         (main) [TEST]:
23787         Don’t assume time_t is the same width as long.
23788         (print_rel_part): New function, replacing ...
23789         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
23790         (debug_print_relative_time): Use bool for boolean.
23791         (local_zone): dsts_seen now counts only tDST instances.
23792         (date): Fix printf of size_t to use %z.  Do not assume numeric
23793         tokens have negative values merely because the context suggests
23794         a syntax with "-" separating tokens.
23795         (time_zone_hhmm): Return bool success indicator, which checks for
23796         overflow.  Store result into PC->time_zone instead.  All callers
23797         changed.
23798         (tm_year_str): New function.  Return a bool success indicator and
23799         store the result into a buffer.  All callers changed.  Output the
23800         numerically correct string even if adding 1900 to the year would
23801         overflow.
23802         (to_tm_year): New function, replacing the old to_year.  All
23803         callers changed.
23804         (tm_diff): Sync with glibc.
23805         (lookup_word): Use to_uchar instead of doing it by hand.
23806         (TZBUFSIZE): Now local to the only function that needs it.
23807         (debug_strfdatetime): Simplify now that time zones are int seconds.
23808         (debug_strfdate): Work even if tm_year + 1900 would overflow.
23809         (get_effective_timezone): Remove.  All uses removed.
23810         (parse_datetime2): Use fprintf in pieces instead of snprintfing
23811         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
23812         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
23813         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
23814         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
23815         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
23816         * modules/parse-datetime (Depends-on): Add inttypes.
23818 2017-04-21  Bruno Haible  <bruno@clisp.org>
23820         gettext-h: Avoid -Wundef warning.
23821         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
23822         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
23823         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
23825 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
23827         error: Avoid "function declaration isn't a prototype" warning.
23828         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
23830 2017-04-21  Bruno Haible  <bruno@clisp.org>
23832         vasnprintf: Fix for MSVC 14.
23833         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
23834         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
23835         of !HAVE_SNPRINTF_RETVAL_C99.
23837 2017-04-21  Bruno Haible  <bruno@clisp.org>
23839         mbrtowc tests: Fix test failures on MSVC 14.
23840         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
23841         behaviour for invalid input.
23843 2017-04-21  Bruno Haible  <bruno@clisp.org>
23845         mbsinit: Fix for MSVC 14.
23846         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
23847         implementation that is in sync with mbrtowc.c. On other platforms, use
23848         an adequate ad-hoc implementation.
23850 2017-04-21  Bruno Haible  <bruno@clisp.org>
23852         Fix test-mbrtowc5.sh failure on native Windows.
23853         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
23854         "C".
23856 2017-04-21  Bruno Haible  <bruno@clisp.org>
23858         Avoid accidental use of native Windows APIs on Cygwin.
23859         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
23860         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
23861         * lib/localename.c (WINDOWS_NATIVE): Likewise.
23863 2017-04-20  Bruno Haible  <bruno@clisp.org>
23865         Remove red warnings from the generated MODULES.html.
23866         * modules/fcntl (Description): Disambiguate function references.
23867         * modules/getcwd-lgpl (Description): Likewise.
23868         * modules/hostent (Description): Likewise.
23869         * modules/servent (Description): Likewise.
23870         * modules/tempname (Description): Likewise.
23872 2017-04-20  Bruno Haible  <bruno@clisp.org>
23874         verify tests: Fix spurious failure with parallel make.
23875         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
23876         EXTRA_PROGRAMS.
23877         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
23878         * tests/test-verify-try.c: New file.
23879         * modules/verify-tests (Files): Add it.
23880         (EXTRA_PROGRAMS): Add test-verify-try.
23881         (MOSTLYCLEANFILES): Update accordingly.
23882         Reported by Adam James Stewart <ajstewart@anl.gov>.
23884 2017-04-18  Bruno Haible  <bruno@clisp.org>
23886         vma-iter: Fix compilation error on Solaris 7.
23887         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
23888         like on IRIX, OSF/1.
23889         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23891 2017-04-18  Bruno Haible  <bruno@clisp.org>
23893         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
23894         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
23895         included.
23896         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
23897         <sys/procfs.h>.
23898         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
23899         <sys/procfs.h> cannot be included.
23900         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23902 2017-04-18  Bruno Haible  <bruno@clisp.org>
23904         getopt-gnu: Add comments.
23905         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
23906         * modules/getopt-gnu (configure.ac): Likewise.
23908 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
23910         regex: port better to Solaris 10
23911         Solaris 10 <locale.h> includes <libintl.h>, which #defines
23912         gettext, and this causes a double #define.
23913         Problem reported by Gavin Smith in:
23914         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
23915         * lib/regex_internal.h (gettext): #undef before #defining.
23917 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23919         intprops: improve comments
23920         * lib/intprops.h: Improve and shorten commentary.
23921         For the record, if we ever run into a pedantic compiler that
23922         behaves differently from GCC when converting an out-of-range value
23923         to a signed integer, we can work around the problem with something
23924         like the following code, where UCT is the signed counterpart of T
23925         (UCT is sometimes narrower than UT) and all callers are changed
23926         accordingly:
23927         #if __SUNPRO_C <= 0x5120
23928         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23929            ((t) ((ut) (a) op (ut) (b)))
23930         #else
23931         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23932            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
23933             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
23934                + TYPE_MINIMUM (t)) \
23935             : (t) (uct) ((ut) (a) op (ut) (b)))
23936         #endif
23938 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23940         intprops: try to avoid tickling similar bugs
23941         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
23942         needs to be the same width as T; it can be wider.
23943         Change callers so that UT is at least as wide as unsigned int,
23944         as I suspect that this is less likely to run into compiler bugs.
23946         intprops: port to Oracle Studio 12.3 x86
23947         Problem reported by Gavin Smith in:
23948         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
23949         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
23950         Convert unsigned to signed via the usual rather than the standard way,
23951         to avoid a compiler bug in Oracle Studio 12.3 x86.
23953 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23955         getopt: prefer - to _ in new file names
23956         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
23957         * lib/getopt-core.h: Rename from lib/getopt_core.h.
23958         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
23959         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
23960         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
23961         All uses changed.
23963         getopt: port recent getopt changes to macOS
23964         Problem reported by Harald Maier (Bug#26398).
23965         The macOS C compiler uses __nonnull for its own purposes and that
23966         clashes with glibc's __nonnull.
23967         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
23968         * lib/getopt_cdefs.in.h (__nonnull): Remove.
23969         * lib/getopt_core.h (getopt):
23970         * lib/getopt_ext.h (getopt_long, getopt_long_only):
23971         Use _GL_ARG_NONNULL, not __nonnull.
23972         * lib/unistd.in.h: Move snippet hooks to before where the getopt
23973         .h files are included, so that _GL_ARG_NONNULL is defined in time.
23974         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
23975         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
23977 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23979         getopt-gnu: omit some duplicate code
23980         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
23981         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
23982         gnulib-tool already does this.
23983         * modules/getopt-gnu (configure.ac): Omit code duplicated from
23984         getopt-posix, which we depend on.
23986         getopt-posix: use angle-bracket include
23987         * lib/getopt1.c: Include <config.h>, not "config.h".
23989 2017-04-06  Zack Weinberg  <zackw@panix.com>
23991         getopt: annotate files with relationship to glibc
23993         As the final act in this patchset, adjust the message at the top of
23994         each file to indicate which files are synced with glibc.  (This has
23995         already been done for most of the headers.)
23997         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
23998         Mention in top-of-file boilerplate that these files are shared
23999         between glibc and gnulib.
24002         getopt: split up getopt.in.h and eliminate __need_getopt
24004         Over in glibc, all of the __need macros are being phased out in favor
24005         of small headers that declare only the necessary components, as this
24006         is much simpler and less prone to bugs.  As getopt is shared with
24007         glibc, gnulib needs to do the same for __need_getopt.
24009         __need_getopt is misnamed; what it really means is "we want only the
24010         getopt features specified in POSIX, not the GNU extensions".  glibc
24011         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
24012         these files can be shared verbatim with gnulib.  The portability
24013         wrapper, on the other hand, they have renounced altogether; glibc's
24014         getopt.h will no longer be shared with gnulib at all.  In exchange,
24015         certain glibc-specific quirks (having to do with __posix_getopt) no
24016         longer need appear in gnulib's headers at all.
24018         This patch merges getopt_core.h and getopt_ext.h from glibc, and
24019         splits up the current gnulib-side portability wrapper into three
24020         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
24021         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
24022         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
24023         unistd.in.h just use them.  All new files are clearly marked with
24024         whether they are shared with glibc.
24026         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
24027         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
24028         with glibc, and ...
24029         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
24030         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
24031         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
24032         instead of defining __need_getopt and including the full getopt.h.
24034         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
24035         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
24036         * modules/getopt-posix (Files): Add new headers and sort list.
24037         (Depends-on): No longer need snippet/arg-nonnull.
24038         (Makefile.am): Generate getopt_cdefs.h.
24041         getopt: better handling of ambiguous options
24043         glibc's getopt uses alloca to construct a linked list of possibilities
24044         for an "ambiguous" long option.  In gnulib, malloc should be used
24045         instead.  Providing for both cases complicates things a fair bit.
24047         This patch rewrites ambiguous-option handling to use a boolean vector
24048         instead of a linked list.  There is then only one allocation that
24049         might need freeing; in glibc it can honor __libc_use_alloca as usual,
24050         and in gnulib we define __libc_use_alloca to always be false, so we
24051         don't need ifdefs in the middle of the function.  This should also be
24052         slightly more efficient in the normal case of long options being fully
24053         spelled out -- I think most people aren't even aware they _can_
24054         sometimes abbreviate long options.
24056         One interesting consequence is that the list of possibilities is now
24057         printed in exactly the order they appear in the list of long options,
24058         instead of the first possibility being shuffled to the end.
24060         (The patch looks bigger than it really is because there's a fair bit
24061         of reindentation and code rearrangement.)
24063         * lib/getopt.c: When used standalone, define __libc_use_alloca
24064         as always false and alloca to abort if called.
24065         (process_long_option): Rewrite handling of ambiguous long options
24066         to use a single boolean vector, not a linked list; use
24067         __libc_use_alloca to decide whether to allocate this using alloca.
24070         getopt: refactor long-option handling
24072         There were two copies of the bulk of the code to handle long options.
24073         Now there is only one.
24075         This change temporarily removes the logic to avoid using alloca when
24076         standalone; the next patch in the series will restore it.
24078         * lib/getopt.c (process_long_option): New function split out
24079         from _getopt_internal_r.
24080         (_getopt_internal_r): Replace both copies of the long-option
24081         processing code with calls to process_long_option.
24084         getopt: tidy up _getopt_initialize a bit
24086         _getopt_data.__posixly_correct is completely redundant to
24087         _getopt_data.__ordering, and some work that logically belongs in
24088         _getopt_initialize was being done by _getopt_internal_r, making the
24089         code harder to understand.
24091         As a side effect, getenv will no longer be called if the first
24092         character of the options string is '+' or '-', which is probably a
24093         Good Thing.  (Perhaps we should have a flag character that
24094         specifically asks for the permutation behavior?)
24096         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
24097         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
24098         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
24101         getopt: merge from glibc: repetition reduction
24103         The definitions of the entry point functions 'getopt' and
24104         '__posix_getopt' can be made substantially less repetitive with a
24105         helper macro.
24107         While I was merging the const-correctness changes from gnulib into
24108         glibc I noticed there are still some unnecessary casts in
24109         _getopt_internal_r.
24111         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
24112         a macro.  Consistently cast 'argv' to 'char **' when calling
24113         _getopt_internal.
24114         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
24117         getopt: clean up error reporting
24119         getopt can print a whole bunch of error messages, and when used
24120         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
24121         cancellation point and getopt isn't, and also applying fprintf to a
24122         stream in wide-character mode is not allowed.  So every single error
24123         reporting case has an #ifdef _LIBC block in which it calls internal
24124         libc functions instead.  The counterpart patch series in glibc makes
24125         it possible to simplify all of that down to a set of #defines at the
24126         top of the file; core code is written as if it is safe to just call
24127         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
24128         call any *other* stdio functions.)
24130         * lib/getopt.c: When _LIBC is defined, define fprintf to
24131         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
24132         to _IO_funlockfile.  When neither _LIBC nor
24133         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
24134         funlockfile as no-ops.
24135         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
24136         standalone error-printing code can now be used for libc as well.
24137         Add an flockfile/funlockfile pair around one case where the error
24138         message is printed in several chunks.  Don't use fputc.
24141         getopt: fix fencepost error in ambiguous-W-option handling
24143         getopt_long contains an undocumented (AFAICT) feature in which, if you
24144         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
24145         treated as equivalent to '--foo'.  This is implemented with a partial
24146         second copy of the code for handling long options, and that code
24147         increments optind one too many times when recovering from an ambiguous
24148         abbreviated option, which can cause the main loop to walk past the end
24149         of argv and crash.
24151         I discovered this while writing a test case that tries to exercise all
24152         of getopt's error reporting paths; I wouldn't be surprised to learn
24153         that this feature is never used by real applications.
24155         * lib/getopt.c (_getopt_internal_r): Don't increment
24156         d->optind a second time when reporting ambiguous -W options.
24159         getopt: clean up getopt.c and getopt1.c file headers
24161         In getopt.c, there is no need to include wchar.h at all, and it is
24162         safe nowadays to assume that stdlib.h does declare getenv (several
24163         other gnulib modules make this assumption).
24165         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
24166         by using "" inclusions consistently, and there is no actual need to
24167         include stdlib.h (except in the #ifdef TEST block, where it should be
24168         unconditional), nor to provide a backup definition of NULL at all.
24170         * lib/getopt1.c: Simplify #ifdeffage at top of file.
24171         Move inclusion of stdlib.h to #ifdef TEST block and make
24172         unconditional.  Do not define NULL.
24173         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
24174         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
24175         * modules/getopt-gnu, modules/getopt-posix: Don't call
24176         gl_PREREQ_GETENV.
24179         getopt: harmonize comments with glibc
24181         The comments explaining how the behavior of 'getopt' varies depending
24182         on whether it's the standalone version and whether there are special
24183         characters at the beginning of the options string were inconsistent
24184         between gnulib and glibc, and also out of sync with the code.
24186         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
24189         getopt: remove USE_NONOPTION_FLAGS
24191         getopt includes code to parse an environment variable named
24192         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
24193         in decimal); but all of it has been #ifdefed out since 2001, with no
24194         official way to turn it back on.
24196         According to commentary in glibc's config.h.in, bash version 2.0
24197         set this environment variable to indicate argv elements that were
24198         the result of glob expansion and therefore should not be treated
24199         as options, but the feature was "disabled later" because "it
24200         caused problems".  According to bash's CHANGES file, "later" was
24201         release 2.01; it gives no more detail about what the problems
24202         were.
24204         Version 2.0 of bash was released on the last day of 1996, and version
24205         2.01 in June of 1997.  Twenty years later, I think it is safe to
24206         assume that this environment variable isn't coming back.
24208         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
24209         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
24210         __libc_argc and __libc_argv externs, which were only used by
24211         #ifdef USE_NONOPTION_FLAGS blocks.
24214         getopt: tabify, in preparation for merge with glibc
24216         glibc sticks to the GNU default of indenting with a mix of
24217         8-column tabs and spaces; make the gnulib copy match.
24219         getopt.h is not included because it is *not* going to be merged in its
24220         present form.
24222         * getopt.c, getopt1.c, getopt_int.h: Tabify.
24224 2017-04-02  Bruno Haible  <bruno@clisp.org>
24226         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
24227         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
24228         like it was done in modules/relocatable-lib on 2011-05-21 and in
24229         modules/relocatable-prog on 2011-08-15.
24230         Reported by Reuben Thomas <rrt@sc3d.org>.
24232 2017-03-31  Bruno Haible  <bruno@clisp.org>
24234         glob: Fix invalid free() call.
24235         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
24236         static storage to home_dir.
24237         Reported by Coverity via Tim Rühsen.
24239 2017-03-31  Bruno Haible  <bruno@clisp.org>
24241         glob: Fix memory leaks.
24242         * lib/glob.c (glob): Free allocated memory before returning.
24243         Reported by Coverity via Tim Rühsen.
24245 2017-03-31  Bruno Haible  <bruno@clisp.org>
24247         md5, sha1, sha256, sha512: Add comments regarding correctness.
24248         * lib/md5.h (buflen): Add comments regarding range.
24249         * lib/sha1.h (buflen): Likewise.
24250         * lib/sha256.h (buflen): Likewise.
24251         * lib/sha512.h (buflen): Likewise.
24252         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
24253         * lib/sha1.c (sha1_process_bytes): Likewise.
24254         * lib/sha256.c (sha256_process_bytes): Likewise.
24255         * lib/sha512.c (sha512_process_bytes): Likewise.
24256         Reported by Coverity via Tim Rühsen.
24258 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24260         getopt: merge from glibc
24261         This does not change anything substantial; it merely simplifies
24262         hypothetical merges back to glibc.
24263         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
24264         Change copyright notice to match what is in glibc.
24265         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
24266         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
24267         __open_memstream rather than open_memstream and __glibc_likely
24268         instead of __builtin_expect.
24269         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
24271 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24273         dfa: make [0-9] faster in non-C locales
24274         Problem reported by John P. Linderman (Bug#26193).
24275         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
24276         If both ends of the range are ASCII digits, do not worry about
24277         multi-character collating sequences and the like.  Be consistent
24278         about using isalpha as a precondition for setbit_case_fold_c.
24280 2017-03-19  Bruno Haible  <bruno@clisp.org>
24282         lock: Fix compilation error with HP-UX IA64 cc.
24283         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
24284         weak on non-glibc platforms.
24286 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24288         stdalign: tweak version# and test for HP-UX IA64
24289         Problems reported by Bruno Haible in:
24290         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
24291         * lib/stdalign.in.h (_Alignas):
24292         * m4/stdalign.m4 (gl_STDALIGN_H):
24293         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
24294         used octal (as that is how they document it), but it is decimal in
24295         practice now and the ancient implementations no longer matter.
24296         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
24298 2017-03-19  Bruno Haible  <bruno@clisp.org>
24300         vma-iter: Add support for Solaris.
24301         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
24302         approach.
24303         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
24304         * lib/get-rusage-as.c: Update comment about Solaris.
24305         * lib/get-rusage-data.c: Likewise.
24307 2017-03-19  Bruno Haible  <bruno@clisp.org>
24309         vma-iter: Prefer HP-UX specific API on HP-UX.
24310         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
24311         * lib/vma-iter.h: Update.
24312         Just in case HP-UX ever implements mquery().
24314 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
24316         stdalign: restore previous behavior for HP-UX IA64
24317         See Bruno Haible's email in:
24318         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24319         which cites p 150 of a manual saying that 'aligned' works on Itanium.
24320         * lib/stdalign.in.h (_Alignas):
24321         Assume the '061200' applies to Itanium, not to PA-RISC.
24322         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
24324 2017-03-17  Bruno Haible  <bruno@clisp.org>
24326         stat-time, timespec: Support use of the header files in C++ mode.
24327         * lib/stat-time.h: Add "C" linkage declaration.
24328         * lib/timespec.h: Likewise.
24330 2017-03-17  Bruno Haible  <bruno@clisp.org>
24332         stdalign: Make it work with HP-UX cc.
24333         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
24334         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
24335         for HP-UX cc.
24337 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
24339         flexmember: try to detect HP-UX 11.31 cc bug
24340         Problem reported by Bruno Haible in:
24341         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24342         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24343         Attempt to detect bug in HP-UX 11.31 cc.
24345 2017-03-16  Bruno Haible  <bruno@clisp.org>
24347         stdint: Fix test compilation failure with HP-UX 11 cc.
24348         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
24349         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
24350         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
24351         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
24353 2017-03-14  Bruno Haible  <bruno@clisp.org>
24355         gnulib-tool: Don't produce a tests directory with only snippet .h files.
24356         * gnulib-tool (func_modules_transitive_closure_separately): If
24357         testsrelated_modules ends up with no "real" modules, aside from
24358         modules with applicability 'all', set it to empty.
24360 2017-03-14  Bruno Haible  <bruno@clisp.org>
24362         vma-iter: Add support for HP-UX.
24363         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
24364         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
24365         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
24366         * lib/get-rusage-as.c: Update comment about HP-UX.
24367         * lib/get-rusage-data.c: Likewise.
24368         (get_rusage_data): Use get_rusage_data_via_setrlimit.
24370 2017-03-14  Bruno Haible  <bruno@clisp.org>
24372         limits-h: Make it work with HP-UX cc.
24373         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
24374         defined.
24376 2017-03-14  Bruno Haible  <bruno@clisp.org>
24378         Fix test failures on DragonFlyBSD.
24379         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
24380         * tests/test-select.h (test_bad_fd): Likewise.
24381         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
24383 2017-03-14  Bruno Haible  <bruno@clisp.org>
24385         freadahead: Silence warning on DragonFlyBSD.
24386         * lib/freadahead.c (__sreadahead): Declare ourselves.
24388 2017-03-14  Bruno Haible  <bruno@clisp.org>
24390         vma-iter: Add comment about AIX.
24391         * lib/vma-iter.c: Add comment about why this module is not implemented
24392         on AIX.
24394 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24396         snippets: move unadjusted snippet sources to lib
24397         Problem reported by Michal Privoznik in:
24398         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
24399         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
24400         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
24401         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
24402         * lib/unused-parameter.h: Rename from
24403         build-aux/snippet/unused-parameter.h.
24404         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
24405         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
24406         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
24407         * modules/snippet/c++defs (Files:, CXXDEFS_H):
24408         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
24409         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
24410         Adjust to file renamings.
24412 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
24414         gnulib-tool: don't automatically distribute files from top/
24415         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
24416         not distribute top/README-release by default, don't distribute files
24417         from top/ unconditionally.
24418         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
24419         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
24421 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24423         gnulib-tool: fix typo in comment output
24424         * gnulib-tool (func_import): Fix typo with previous change.
24426         snippets: work around GNU Make 3.82 VPATH
24427         When using 'gnulib-tool --gnu-make' on Emacs, and building
24428         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
24429         an out-of-source (VPATH) build failed because the sans-copyright
24430         snippet file was not built before the file that used it.
24431         Presumably this is some sort of VPATH thing.  Work around the
24432         problem by using the original snippet, i.e., don’t bother to
24433         remove its copyright notice.
24434         * modules/snippet/_Noreturn, modules/snippet/link-warning:
24435         Don’t assume Automake in comments.  Omit long-incorrect comment.
24436         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
24437         (MOSTLYCLEANFILES):
24438         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
24439         (MOSTLYCLEANFILES):
24440         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
24441         (MOSTLYCLEANFILES):
24442         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
24443         (MOSTLYCLEANFILES):
24444         Remove.
24445         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
24446         * modules/snippet/c++defs (CXXDEFS_H):
24447         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
24448         * modules/snippet/warn-on-use (WARN_ON_USE_H):
24449         Don’t bother to remove the copyright notice; just use the
24450         original snippet as-is.
24452 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24454         gnulib-tool: minor --gnu-make fixups
24455         * gnulib-tool (func_emit_lib_Makefile_am):
24456         Remove useless code that was a blind alley during implementation.
24457         Problem reported by Thien-Thi Nguyen in:
24458         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
24459         (func_import): Note the "--gnu-make" option in the output comment.
24461 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
24463         gnulib-tool: new option --gnu-make
24464         This is for applications like GNU Emacs that use GNU Make
24465         features instead of Automake.
24466         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
24467         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
24468         Do not assume Automake.
24469         * gnulib-tool (func_determine_path_separator)
24470         (func_modules_transitive_closure, func_update_file)
24471         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
24472         (func_import): Add support for --gnu-make.
24474 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
24476         gnulib-common.m4: avoid aclocal.m4 bloat
24477         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
24478         Hide AM_PROG_AR from aclocal, so that aclocal does not
24479         install irrelevant macro definitions into aclocal.m4.
24481 2017-03-10  Bruno Haible  <bruno@clisp.org>
24483         vma-iter: Let callers know about error.
24484         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
24485         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
24487 2017-03-05  Bruno Haible  <bruno@clisp.org>
24489         Fix value of LD for 64-bit compilers on AIX.
24490         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
24491         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
24493 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
24495         dtotimespec: simplify
24496         * lib/dtotimespec.c (dtotimespec): Simplify.
24498 2017-03-04  Bruno Haible  <bruno@clisp.org>
24500         test-calloc-gnu: Reenable test also for GCC 7.
24501         * tests/test-calloc-gnu.c (eight): New function.
24502         (main): Don't skip test; use eight() instead.
24504 2017-03-04  Jim Meyering  <meyering@fb.com>
24506         test-calloc-gnu: port to GCC7
24507         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
24508         that attempts to calloc more than SIZE_MAX bytes, because GCC7
24509         and newer would detect that at compilation time.
24511 2017-03-04  Bruno Haible  <bruno@clisp.org>
24513         tests: Avoid compiler warning about uses of null_ptr.
24514         * tests/null-ptr.h: New file.
24515         * tests/test-canonicalize.c: Include null-ptr.h.
24516         (null_ptr): Remove function.
24517         * tests/test-canonicalize-lgpl.c: Likewise.
24518         * tests/test-memmem.c: Likewise.
24519         * tests/test-ptsname_r.c: Likewise.
24520         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
24521         * modules/canonicalize-lgpl-tests: Likewise.
24522         * modules/memmem-tests: Likewise.
24523         * modules/ptsname_r-tests: Likewise.
24524         Reported by Jim Meyering.
24526 2017-03-03  Bruno Haible  <bruno@clisp.org>
24528         doc: Mention Mac OS X deficiencies regarding semaphores.
24529         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
24530         * doc/posix-functions/sem_destroy.texi: Likewise.
24531         * doc/posix-functions/sem_getvalue.texi: Likewise.
24533 2017-03-03  Bruno Haible  <bruno@clisp.org>
24535         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
24536         Reported by Assaf Gordon <assafgordon@gmail.com> via
24537         Pádraig Brady <P@draigBrady.com>.
24538         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
24539         semaphores.
24540         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
24541         (atomic_int_semaphore): New macro.
24543 2017-02-28  Bruno Haible  <bruno@clisp.org>
24545         perror tests: Tweak for z/OS.
24546         Reported by Daniel Richard G. <skunk@iskunk.org>.
24547         * tests/test-perror.sh: Don't fail z/OS style perror output.
24549 2017-02-26  Bruno Haible  <bruno@clisp.org>
24551         nproc: Refactor large function.
24552         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
24553         from num_processors.
24554         (num_processors): In this function, only deal with OMP.
24556 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24558         nproc: adjust handling of OpenMP environment variables
24559         to match the return value from omp_get_num_threads(), i.e.:
24560          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
24561          - Treat 0 as an invalid value and ignore
24562         Also remove the call to omp_get_num_threads() because
24563         it's ineffective without the omp pragmas in place.
24564         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
24565         so that it can be ignored.
24566         (num_processors): Honor OMP_THREAD_LIMIT even without
24567         OMP_NUM_THREADS being set.  Also fix a typo in the environment
24568         variable being checked, from the previous recent commit.
24570 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24572         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
24573         * lib/nproc.c (parse_omp_threads): A new function refactored
24574         from num_processors() to support parsing both of the
24575         above environment variables.
24576         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
24577         to accurately reflect the current OpenMP nesting level.
24578         Also support the OMP_THREAD_LIMIT environment variable
24579         to limit the max value determined from OMP_NUM_THREADS.
24580         * modules/nproc: Depend on minmax header.
24581         Suggested by Oliver Heimlich.
24583 2017-02-25  Bruno Haible  <bruno@clisp.org>
24585         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
24586         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
24588 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24590         ftoastr: port to -Wdouble-promotion
24591         Work around -Wdouble-promotion false alarm in recent GCCs.
24592         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
24593         (ftoastr_snprintf, FTOASTR): Use it.
24595 2017-02-21  Bruno Haible  <bruno@clisp.org>
24597         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
24598         Reported by Rene Saavedra <rennes@openmailbox.org> in
24599         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
24600         * lib/glthread/lock.h: On glibc systems without
24601         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
24602         implementation of rwlocks.
24603         * lib/glthread/lock.c: Likewise.
24605 2017-02-20  Bruno Haible  <bruno@clisp.org>
24607         lock tests: Fix build failure on z/OS.
24608         Reported by Daniel Richard G. <skunk@iskunk.org>.
24609         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
24610         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
24611         exist.
24613 2017-02-19  Bruno Haible  <bruno@clisp.org>
24615         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
24616         This helps when CC=clang.
24617         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
24618         of /usr/bin/gcc.
24620         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
24621         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
24623 2017-02-19  Bruno Haible  <bruno@clisp.org>
24625         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
24626         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
24627         --with-tests --single-configure is specified.
24629 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
24631         users.txt: Update links, use HTTPS where possible
24632         * users.txt: Updated to HTTPS where possible,
24633         fixed some links to new locations.
24635 2017-02-16  Bruno Haible  <bruno@clisp.org>
24637         xbinary-io: Fix inlining.
24638         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
24640 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24642         xbinary-io: rename from xsetmode
24643         This patch is taken from suggestions by Bruno Haible in:
24644         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
24645         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
24646         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
24647         not ENOTTY, when it is an inappropriate device.
24648         * lib/binary-io.h (SET_BINARY): Resurrect.
24649         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
24650         (xset_binary_mode_error): Rename from xsetmode_error.
24651         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
24652         (xset_binary_mode): Rename from xsetmode.
24653         All uses changed.
24654         * modules/xbinary-io: Rename from modules/xsetmode.
24655         Update file names.
24656         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
24657         * NEWS: Update to match revised behavior.
24659 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24661         tests: Adjust to recent SET_BINARY change
24662         * tests/test-binary-io.c (main):
24663         * tests/test-binary-io.sh: Remove test for SET_BINARY.
24664         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
24665         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
24666         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
24668         xsetmode: new module
24669         This is to fix a problem noted by Eric Blake.
24670         Code was using xfreopen to change files to binary mode, but this
24671         fails for stdout when in append mode.  Such code should use
24672         xsetmode instead.
24673         * NEWS: Document incompatible changes to binary-io module.
24674         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
24675         New function.
24676         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
24677         (set_binary_mode): New function, which also checks for tty.
24678         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
24680 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24682         headers: fix begin-end typos
24683         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
24684         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
24686         selinux-h: port to PGI 16.10
24687         * lib/se-selinux.in.h: Don't assume that include_next skips over
24688         duplicate -I DIR options.
24690         argp: port to PGI 16.10
24691         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
24693 2017-02-13  Darshit Shah  <darnir@gnu.org>
24695         unicase: Update function protoype to match definition.
24696         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
24697         uses 'size_t' as the datatype for the 'len' parameter in the functions
24698         it generates. Update the prototype specified here to match the newly
24699         generated function.
24701 2017-02-12  Bruno Haible  <bruno@clisp.org>
24703         times test: Avoid gcc warnings on Linux/x32.
24704         * tests/test-times.c (main): Really cast printf arguments from clock_t
24705         to 'long int'.
24707 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24709         glob: port better to emscripten
24710         Problem reported by Bruno Haible in:
24711         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
24712         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
24714 2017-02-11  Bruno Haible  <bruno@clisp.org>
24716         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
24717         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
24718         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
24719         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
24720         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
24721         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
24722         Distinguish hppa64 from hppa.
24724 2017-02-10  Bruno Haible  <bruno@clisp.org>
24726         search: Don't assume that tsearch() exists if 'VISIT' is defined.
24727         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
24728         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
24729         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
24731 2017-02-09  Bruno Haible  <bruno@clisp.org>
24733         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
24734         * doc/gnulib.texi (Libtool and Windows): Recommend
24735         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
24736         Reported by Reuben Thomas <rrt@sc3d.org>.
24738 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24740         stddef-tests: port to SIZE_MAX <= INT_MAX
24741         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
24742         Do not assume that INT_MAX < SIZE_MAX.
24744 2017-02-01  Bruno Haible  <bruno@clisp.org>
24746         lock tests: Fix link error.
24747         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
24748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24750 2017-01-31  Bruno Haible  <bruno@clisp.org>
24752         lock: Fix link error (regression from 2017-01-05).
24753         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
24754         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
24755         pthread_rwlockattr_destroy weak.
24756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24758 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24760         Port to PGI 16.10 x86-64
24761         This patch fixes one real bug in gl_anylinked_list2.h, along with
24762         some minor glitches that are not bugs.  It does not silence PGI’s
24763         thousands of bogus warnings when compiling test-intprops.c.
24764         Fortunately, the warnings do not cause a failure.
24765         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
24766         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
24767         My goodness, PGI goes back a long ways - this predates C89!
24768         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
24769         For example, ASYNCSAFE (const void *) should expand to
24770         ‘const void *volatile’, not to ‘volatile const void *’.
24771         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
24772         * lib/verify.h (verify) [!__GNUC__]:
24773         Use shorter albeit meaningless string to bypass silly compiler limits.
24774         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
24775         * tests/nan.h (NaNf, NaNd, NaNl):
24776         Use static functions to avoid misguided compiler diagnostics.
24777         Is there some reason we don’t use static functions on all platforms?
24779 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24781         parse-datetime: handle timezones reentrantly
24782         This API change was prompted by a report by Pádraig Brady in:
24783         https://bug.debian.org/851934#10
24784         To help fix the bug, make parse_datetime2 more reentrant.
24785         * NEWS: Document this incompatible change.
24786         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
24787         Add two arguments, the timezone and the timezone name.
24788         All callers changed.  If TZ="..." is specified, use it for
24789         calculating defaults.
24790         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
24791         this code should be usable in a library.
24792         (mktime_ok, get_effective_timezone):
24793         Accept timezone arg too.  All callers changed.
24794         (get_tz): Remove.
24795         (get_effective_timezone): Check for failures.
24797 2017-01-20  Eric Blake  <eblake@redhat.com>
24799         localename: port to cygwin 2.6
24800         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
24801         Cygwin.
24802         * modules/localename (Depends-on): Add extensions, since
24803         NL_LOCALE_NAME() is not visible without it.
24805 2017-01-17  Pádraig Brady  <P@draigBrady.com>
24807         parse-datetime: fix dependence on AC_PROG_SED
24808         * modules/parse-datetime: Use `sed` directly like all other modules.
24809         Reported by J William Piggott
24811 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24813         intprops: update doc URLs
24814         * doc/intprops.texi (Integer Range Overflow): Update URLs.
24816 2017-01-16  Bruno Haible  <bruno@clisp.org>
24818         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
24819         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
24820         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
24821         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
24822         distinguish s390 and s390x.
24823         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
24824         * NEWS: Mention the change regarding 'armel'.
24826 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24828         localeinfo: case_folded_counterparts and WEOF
24829         * NEWS: Document this.
24830         * lib/localeinfo.c (case_folded_counterparts):
24831         First arg is now wint_t, not wchar_t.  This generalizes the
24832         function to also work on WEOF, where it returns 0.
24834         dfa: port to gcc -fsanitize=undefined
24835         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
24836         as this runs afoul of gcc -fsanitize=undefined.
24838 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
24840         strftime: %z is -00 if unknown
24841         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
24842         the caller's responsibility to set 'negative_number'.  All uses changed.
24843         (__strftime_internal): Put '-' before a zero UTC offset if the time
24844         zone abbreviation starts with "-", which is the recently-introduced
24845         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
24846         * tests/test-strftime.c: Test for this.
24848 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24850         dfa: port to older GCC
24851         Problem reported by Assaf Gordon in:
24852         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
24853         * modules/c99: New module.  This merely attempts to use the latest
24854         C version, which should be enough to solve this particular problem.
24855         The idea is to document which Gnulib modules assume C99 or later.
24856         * modules/dfa (Depends-on): Add it.
24858 2017-01-10  Bruno Haible  <bruno@clisp.org>
24860         Update DEPENDENCIES.
24861         * DEPENDENCIES: List only https URLs. Update recommended version for
24862         autoconf, automake, gperf.
24864 2017-01-10  Jim Meyering  <meyering@fb.com>
24866         maint.mk: enforce spelling of "timestamp" (i.e., no space)
24867         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
24868         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
24870 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24872         dfa: minor simplification with emptyset
24873         * lib/dfa.c (build_state): Simplify by using emptyset.
24875 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24877         dfa: shrink constraints from 4 bits to 3
24878         * lib/dfa.c (newline_constraint, letter_constraint)
24879         (other_constraint, prev_newline_dependent)
24880         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
24881         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
24882         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
24883         Constraints need only 3 bits, not 4.  Using smaller integers
24884         shrinks the code a bit and makes grep a tad faster on x86-64.
24886         dfa: omit unnecessary ptrdiff_t check
24887         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
24888         overflow, since xnmalloc does that now.
24890         dfa: omit unnecessary allocation
24891         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
24892         an all-zero follow set works just fine.
24894         dfa: omit unused local
24895         * lib/dfa.c (build_state): Fix up recent change.
24897         maint: remove stray .texi files
24898         Although these were superseded by other files like
24899         doc/posix-functions/ctime.texi, the old files were not removed.
24900         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
24902 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
24904         getprogname: fix port to IRIX
24905         * lib/getprogname.c (getprogname) [__sgi]:
24906         Don't dump core if malloc returns NULL.
24908         dfa: fix reallocation bug when matching newlines
24909         Problem reported for sed by S. Gilles (Bug#25390).
24910         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
24911         (dfastate): Reallocate before moving any newline transition ...
24912         (build_state): ... instead of reallocating here, where it is too late.
24914 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24916         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
24917         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
24919 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24921         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
24922         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
24924 2017-01-07  Bruno Haible  <bruno@clisp.org>
24926         stdioext: Port to Minix 3.2 and newer.
24927         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
24928         * lib/fseeko.c (fseeko): Likewise.
24929         Reported by Nelson Beebe via Paul Eggert.
24931 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
24933         getprogname: port to IRIX
24934         * lib/getprogname.c (getprogname): Port to IRIX.
24935         Based on an idea by Bastien Roucariès at:
24936         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
24937         via code from Bruno Haible at:
24938         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24940         localename-tests: port to NetBSD 7
24941         Problem reported by Nelson H. F. Beebe.
24942         * tests/test-localename.c:
24943         Test newlocale and uselocale only if both exist.
24945         glob, intprops, xalloc: work around Clang bug
24946         Work around LLVM bug 16404, which is still not fixed.
24947         https://llvm.org/bugs/show_bug.cgi?id=16404
24948         Problem reported by Nelson H. F. Beebe.
24949         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
24950         Remove.
24951         * lib/glob.c (size_add_wrapv):
24952         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
24953         * lib/xalloc-oversized.h (xalloc_oversized):
24954         Do not use overflow builtins if Clang.
24956         dfa: fix 'return' typo
24957         Problem reported by Nelson H. F. Beebe.
24958         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
24960 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24962         parse-datetime: fix generated paths for coverage files
24963         * modules/parse-datetime: Adjust the paths for parse-datetime.y
24964         within parse-datetime.c, so that gcc generates appropriate .gcno
24965         files, allowing lcov to proceed without error.  Previously it
24966         would error trying to find "lib/lib/parse-datetime.y".
24968 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24970         maint.mk: support parallel execution of coverage
24971         * top/maint.mk (coverage): Run dependencies serially,
24972         thus supporting parallel processing of each one,
24973         particularly build-coverage, which builds and runs tests.
24975 2017-01-05  Bruno Haible  <bruno@clisp.org>
24977         lock tests: Prefer semaphore over mutex.
24978         * tests/test-lock.c (USE_SEMAPHORE): New constant.
24979         (struct atomic_int, init_atomic_int, get_atomic_int_value,
24980         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
24981         Suggested by Torvald Riegel <triegel@redhat.com>.
24983 2017-01-05  Bruno Haible  <bruno@clisp.org>
24985         lock: Provide guarantee to avoid writer starvation for rwlocks.
24986         The rationale is: 1) Read-preferring read-write locks are prone to
24987         writer starvation if the number of reader threads multiplied by the
24988         percentage of time they have the lock held is too high. 2) Write-
24989         preferring read-write locks are the only reliable way to avoid this.
24990         3) There have been reports of 'test-lock' hanging on glibc systems
24991         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
24992         and glibc indeed implements read-preferring rwlocks by default, see
24993         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
24994         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
24995         * m4/pthread_rwlock_rdlock.m4: New file.
24996         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24997         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
24998         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24999         of rwlock initialization on glibc systems without
25000         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25001         of rwlocks altogether on non-glibc systems without
25002         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25003         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
25004         * lib/glthread/lock.c [USE_POSIX_THREADS]
25005         (glthread_rwlock_init_for_glibc): New function.
25006         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
25007         comment.
25008         [USE_PTH_THREADS]: New implementation of rwlocks.
25009         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
25010         readers.
25011         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
25012         (Depends-on): Add 'extensions'.
25013         * tests/test-rwlock1.c: New file.
25014         * lock-tests (Files): Add it.
25015         (Depends-on): Add usleep.
25016         (Makefile.am): Add test-rwlock1 to the tests.
25018 2017-01-05  Bruno Haible  <bruno@clisp.org>
25020         thread: Fix pth port.
25021         * lib/glthread/thread.h (pth_init): Declare weak.
25022         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
25023         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
25024         function.
25026 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
25028         parse-datetime: fix debug message on lone year number
25029         Input dates such as
25030           date -d "Apr 11 22:59:00 2011"
25031         are parsed as date (Apr 11, with default year 2016), then time, then a
25032         number (2011). Based on the combination of previously seen tokens,
25033         'digits_to_date_time' determines 2011 to be a year value.
25034         This fixes the debug messages to correctly show the updated year.
25035         Before:
25036             $ date --debug -d 'Apr 11 22:59:00 2011'
25037             date: parsed date part: (Y-M-D) 2016-04-11
25038             date: parsed time part: 22:59:00
25039             date: parsed number part: today/this/now
25040         After:
25041             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
25042             date: parsed date part: (Y-M-D) 2016-04-11
25043             date: parsed time part: 22:59:00
25044             date: parsed number part: year: 2011
25045         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
25046         'debug_year_seen' member fields.
25047         (digits_to_date_time): Update 'year_seen' as needed.
25048         (debug_print_current_time): Inform about year updates.
25049         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
25051         parse-datetime: fix local timezone debug messages
25052         "Local timezones" are strings that affect only DST relative to the
25053         default timezone. The debug messages in parse-datetime.y printed
25054         wrong information when encountering local timezones.
25055         Examples:
25056         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
25057              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
25058              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
25059         When the default timezone relates to the zone strings, EET/EEST are
25060         parsed as local timezones (tLOCAL_ZONE), and only change the DST
25061         value (0/1, respectively):
25062              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
25063              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
25064         * lib/parse-datetime.y (debug_print_current_time): If local timezone
25065         was seen, inform about DST change, don't print actual timezone.
25066         (debug_strfdatetime): If local timezone was seen, use default timezone
25067         (and adjust as needed) instead of using incorrect timezone.
25068         (parse_datetime2): Use correct time-zone source string, and adjust
25069         default timezone as needed.
25071         parse-datetime: add debug warning about DST changes
25072         Incorrect date arithmetic due to daylight saving time (DST) are a
25073         common (false) bug report in coreutils.
25074         Detect two such cases and print a warning:
25075         1. year/month/day adjustments (performed on 'struct tm'),
25076            where 'mktime' returns a different isdst value.
25077         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
25078            where the result of 'localtime(3)' on the value will return a
25079            different isdst value.
25080         Note: DST changes could be harmless or unnoticeable.
25081         Examples (with 'TZ=America/New_York'):
25082         Unnoticeable: result is 2016-Dec-14
25083            $ date -d '2016-06-15 EDT + 6 months' +%b
25084            Dec
25085         Unnoticeable: result is 2016-Dec-15 11:00:00
25086            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
25087            2016-12-15
25088         This is unexpected:
25089            $ date -d '2016-06-01 EDT + 6 months' +%F
25090            2016-11-30
25091         The new debug warnings will show:
25092            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
25093            ...
25094            date: warning: daylight saving time changed after date adjustment
25095            ...
25096         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
25097         print an appropriate warning message.
25099         parse-datetime: add debug warning about date arithmetic
25100         Date arithmetic are done directly on the fields of 'struct tm',
25101         which can result in invalid dates. Normalization with 'mktime(3)'
25102         will then produce a different date - which might cause unexpected
25103         results.
25104         Examples:
25105           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
25106           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
25107         Note that date normalization is not inherently wrong and not rejected,
25108         as it has legitimate uses:
25109           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
25110         If the user asked to adjust months but 'mday' changed,
25111         or user asked to adjust years but 'month' changed - warn about it.
25112             $ ./src/date --debug -d '2016-10-31 - 1 month'
25113             ...
25114             date: warning: when adding relative months/years, \
25115                            it is recommended to specify the 15th of the month
25116             ...
25117             date: warning: month/year adjustment resulted in shifted dates:
25118             date:      adjusted Y M D: 2016 09 31
25119             date:    normalized Y M D: 2010 10 01
25120             ...
25121         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
25122         a warning message. Improve recommendation of when to use 15 of the
25123         month or noon for date arithmetic.
25125         parse-datetime: fix debug message of relative part after timezone
25126         Relative part (e.g '+8 days') after a timezone string was not
25127         reported (was only reported after a timezone number). Due to the
25128         parser's structure, timezone strings with numbers were handled
25129         separately.
25130         before:
25131              # Timezone number + relative part: OK
25132              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
25133              ...
25134              date: parsed relative part: -8 day(s)
25135              # Timezone string + relative part: missing
25136              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
25137              [ missing message ]
25138         After: messages are printed in both cases.
25139         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
25141         parse-datetime: fix incorrect debug message on lone number
25142         A lone number is an absolute value, not a relative time part.
25143         before:
25144            $ date --debug -d '20130101'
25145            date: parsed number part: today/this/now
25146         After:
25147            $ ./src/date --debug -d '20130101'
25148            date: parsed number part: (Y-M-D) 2013-01-01
25149         * lib/parse-datetime.y ('item'/'number' tokens): Call
25150         'debug_print_current_time' instead of 'debug_print_relative_time'.
25152 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25154         doc: modernize for C11 etc.
25155         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
25156         for C11, MinGW, etc.  This responds to Paul Smith's question in:
25157         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
25159         dfa: prefer functions to FETCH_WC macro
25160         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
25161         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
25162         wint_t result into DFA->lex.wctok instead of to a separate arg.
25163         All callers changed.  Move more local decls closer to where
25164         they're used.
25166         dfa: narrow more local var scopes
25167         * lib/dfa.c: Move more local decls to be more local.
25169         dfa: remove duplicate assignment
25170         Problem reported by Bruno Haible in:
25171         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
25172         * lib/dfa.c (parse_bracket_exp): Simplify.
25174 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25176         dfa: simplify constraint-dependency checking
25177         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
25178         (prev_other_constraint): Remove.
25179         (prev_newline_dependent, prev_letter_dependent):
25180         Simplify, to avoid an unnecessary bitwise AND operation.
25182         dfa: prefer functions and constants to macros
25183         * lib/dfa.c: Prefer constants to macros where either will do.
25184         (streq, isasciidigit, newline_constraint)
25185         (letter_constraint, other_constraint, succeeds_in_context)
25186         (prev_newline_constraint, prev_letter_constraint)
25187         (prev_other_constraint, prev_newline_dependent)
25188         (prev_letter_dependent, accepting, accepts_in_context):
25189         Now static functions instead of function-like macros.
25190         Use lower-case names accordingly.  All uses changed.
25192         dfa: narrow more local var scopes
25193         * lib/dfa.c: Move some more local decls down to nearer where
25194         they're needed.
25196 2016-12-31  Jim Meyering  <meyering@fb.com>
25198         dfa: narrow the scope of many local variables
25199         * lib/dfa.c: Now that we are no longer constrained to c89, move
25200         declarations of many variables (often indices) "down" into the
25201         scope(s) where used or to the point of definition.  This is a
25202         no-semantic-change diff.
25204 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25206         version-etc: new year
25207         * build-aux/gendocs.sh (version):
25208         * doc/gendocs_template:
25209         * doc/gendocs_template_min:
25210         * doc/gnulib.texi:
25211         * lib/version-etc.c (COPYRIGHT_YEAR):
25212         Update copyright dates by hand in templates and the like.
25213         * all files: Run 'make update-copyright'.
25215 2016-12-31  Eric Blake  <eblake@redhat.com>
25217         do-release-commit-and-tag: avoid shell syntax error
25218         * build-aux/do-release-commit-and-tag (curr_br): $branch can
25219         contain spaces when rebasing.
25221         maint.mk: hoist gnulib_dir definition earlier
25222         * top/maint.mk (gnulib_dir): Move near top of file.
25224 2016-12-31  Jim Meyering  <meyering@fb.com>
25226         maint.mk: do not always evaluate intprops-related shell
25227         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
25228         using gnulib_dir undefined (gnulib_dir is defined later in the
25229         file, which will be fixed separately), and besides, there is no
25230         need to incur the cost of this shell invocation for every single
25231         use of this .mk file.  Reported by Eric Blake in
25232         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
25234 2016-12-30  Jim Meyering  <meyering@fb.com>
25236         maint.mk: improve sc_prohibit_intprops_without_use
25237         * top/maint.mk (_intprops_names): Don't hard-code the list of
25238         symbol names.  Instead, derive it on the fly.
25240 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25242         dfa: shorten sbit, success
25243         * lib/dfa.c (struct regex_syntax.sbit):
25244         (struct dfa.success): Use char, not int, for array elements, since
25245         they are all in the range 0..7.
25247         dfa: simplify multibyte_prop etc.
25248         This follows up on a change made when dfa.c was in grep, namely grep
25249         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
25250         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
25251         That earlier simplification allows for some more simplification
25252         and trimming down here.
25253         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
25254         (struct lexer_state): New mamber brack.
25255         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
25256         since they must be in the range 0..3 now.
25257         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
25258         the brack member now supersedes them.
25259         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
25260         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
25261         (dfaparse): Remove unnecessary initializations of already-0 storage.
25262         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
25263         (dfassbuild): No need to clear sup->mbcsets.
25265         dfa: minor performance tweak
25266         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
25268         dfa: wrap charclass inside a struct
25269         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
25270         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
25271         about 5% faster, where list.txt is generated by 'aspell dump
25272         master | head -n 100000 >list.txt'.  See Bug#22239.
25273         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
25274         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
25275         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
25276         Adjust to this, e.g., by using charclass * rather than charclass.
25277         All callers changed as needed.
25278         (copyset): Remove.  All uses changed to simple assignment.
25279         (parse_bracket_exp): Use zeroset instead of memset.
25281 2016-12-30  Jim Meyering  <meyering@fb.com>
25283         maint.mk: update list of intprops.h symbol names
25284         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
25285         This avoids a false failure of the sc_prohibit_intprops_without_use
25286         rule in grep.
25288 2016-12-29  Eric Blake  <eblake@redhat.com>
25290         getopt: fix parallel test failure
25291         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
25292         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
25293         * tests/test-getopt-main.h (main): Use different file names
25294         in case test-getopt-gnu and test-getopt-posix run in parallel.
25296 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25298         xalloc: x2nrealloc check for ptrdiff_t overflow
25299         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
25300         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
25302 2016-12-24  Bruno Haible  <bruno@clisp.org>
25304         lock test: Fix performance problem on multi-core machines.
25305         * tests/test-lock.c (USE_VOLATILE): New macro.
25306         (struct atomic_int): New type.
25307         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
25308         functions.
25309         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
25310         as 'struct atomic_int'.
25311         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
25312         reclock_checker_thread, test_recursive_lock): Use the new functions.
25313         Reported by Eric Blake in
25314         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
25315         and by Pádraig Brady in
25316         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
25318 2016-12-19  Bruno Haible  <bruno@clisp.org>
25320         vma-iter: Fix endless loop on 64-bit Windows.
25321         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
25322         'unsigned long'.
25324 2016-12-19  Bruno Haible  <bruno@clisp.org>
25326         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
25327         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
25328         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
25329         Invoke gt_TYPE_WINT_T instead.
25330         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
25331         * modules/stdint (Files): Add m4/wint_t.m4.
25332         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25333         * modules/wctype-h (Makefile.am): Likewise.
25334         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
25335         not only on MSVC.
25336         * lib/wctype.in.h (wint_t): Likewise.
25338 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25340         getopt-posix-tests: fix Makefile typo
25341         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
25342         Fix typo: the last ‘_’ was missing in the name.
25343         I suspect that the typo explains this build failure:
25344         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
25345         although I can’t reproduce the problem on Solaris 10 sparc.
25347 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25349         dfa: improve worst-case 'replace' performance
25350         See my note in Bug#22357#71.
25351         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
25352         (merge_constrained): New function, which is like
25353         the old 'merge' function, except with a new argument C2.
25354         Simplify the body by avoiding the need for different sections
25355         of code depending on whether one input is exhausted.
25356         (merge): Use the new function.
25357         (delete): Return the constraint of the deleted position,
25358         not the entire position.  Caller changed.
25359         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
25361 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25363         dfa: performance improvement for removal of epsilon closure
25364         See Bug#22357#32.
25365         * lib/dfa.c (delete): Use binary search to find deleted index.
25366         (replace): New function.  It replaces a position with the followed set.
25367         (epsclosure): Replace it with a new algorithm.  Update caller.
25369 2016-12-18  Bruno Haible  <bruno@clisp.org>
25371         Split tests for getopt-posix and getopt-gnu.
25372         * tests/test-getopt-posix.c: New file.
25373         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
25374         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
25375         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
25376         GNULIB_TEST_GETOPT_GNU.
25377         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
25378         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
25379         (Makefile.am): Test test-getopt-posix instead of test-getopt.
25380         * modules/getopt-gnu-tests: New file.
25381         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
25383 2016-12-18  Bruno Haible  <bruno@clisp.org>
25385         posix-modules: Add options for specific platforms.
25386         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
25387         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
25388         Invoke func_tmpdir. Filter out the excludes.
25390 2016-12-18  Bruno Haible  <bruno@clisp.org>
25392         getopt: Fix link error for users of getopt() in <unistd.h>.
25393         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
25394         __need_getopt is defined. Undefine all macros before defining them.
25395         * modules/getopt (Include): Clarify that including <unistd.h> is also
25396         OK.
25397         * tests/test-getopt.c: Add comment.
25399 2016-12-17  Bruno Haible  <bruno@clisp.org>
25401         getaddrinfo tests: Avoid compilation error on MSVC.
25402         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
25403         getaddrinfo on native Windows.
25405 2016-12-17  Bruno Haible  <bruno@clisp.org>
25407         getlogin, getlogin_r: Fix link errors on MSVC.
25408         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
25409         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
25410         (Link): New section.
25411         * modules/getlogin_r (Files): Add m4/getlogin.m4.
25412         (configure.ac): Require gl_LIB_GETLOGIN.
25413         (Link): New section.
25414         * NEWS: Mention the new link requirements.
25415         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
25416         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
25418 2016-12-17  Bruno Haible  <bruno@clisp.org>
25420         Un-deprecate the 'progname' module.
25421         * NEWS: Describe the appropriate use-cases of 'progname' versus
25422         'getprogname'. Based on discussion summary at
25423         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
25425 2016-12-17  Bruno Haible  <bruno@clisp.org>
25427         Reorganize NEWS a bit.
25428         * NEWS: Move some not so important changes away from section
25429         "Important Notes".
25431 2016-12-17  Bruno Haible  <bruno@clisp.org>
25433         tanhf: Avoid redefinition error on MSVC.
25434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
25435         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
25436         may be defined as an inline function.
25437         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
25438         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
25440 2016-12-17  Bruno Haible  <bruno@clisp.org>
25442         tanf: Avoid redefinition error on MSVC.
25443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
25444         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
25445         may be defined as an inline function.
25446         * modules/math (Makefile.am): Substitute REPLACE_TANF.
25447         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
25449 2016-12-17  Bruno Haible  <bruno@clisp.org>
25451         sqrtf: Avoid redefinition error on MSVC.
25452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
25453         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
25454         may be defined as an inline function.
25455         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
25456         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
25458 2016-12-17  Bruno Haible  <bruno@clisp.org>
25460         sinhf: Avoid redefinition error on MSVC.
25461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
25462         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
25463         may be defined as an inline function.
25464         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
25465         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
25467 2016-12-17  Bruno Haible  <bruno@clisp.org>
25469         sinf: Avoid redefinition error on MSVC.
25470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
25471         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
25472         may be defined as an inline function.
25473         * modules/math (Makefile.am): Substitute REPLACE_SINF.
25474         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
25476 2016-12-17  Bruno Haible  <bruno@clisp.org>
25478         logf: Avoid redefinition error on MSVC.
25479         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
25480         may be defined as an inline function.
25482 2016-12-17  Bruno Haible  <bruno@clisp.org>
25484         log10l: Avoid redefinition error on MSVC.
25485         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
25486         may be defined as an inline function.
25488 2016-12-17  Bruno Haible  <bruno@clisp.org>
25490         log10f: Avoid redefinition error on MSVC.
25491         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
25492         may be defined as an inline function.
25494 2016-12-17  Bruno Haible  <bruno@clisp.org>
25496         hypotl: Avoid redefinition error on MSVC.
25497         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
25498         may be defined as an inline function.
25500 2016-12-17  Bruno Haible  <bruno@clisp.org>
25502         hypotf: Avoid redefinition error on MSVC.
25503         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
25504         may be defined as an inline function.
25506 2016-12-17  Bruno Haible  <bruno@clisp.org>
25508         fmodl: Avoid redefinition error on MSVC.
25509         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
25510         may be defined as an inline function.
25512 2016-12-17  Bruno Haible  <bruno@clisp.org>
25514         fmodf: Avoid redefinition error on MSVC.
25515         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
25516         may be defined as an inline function.
25518 2016-12-17  Bruno Haible  <bruno@clisp.org>
25520         expf: Avoid redefinition error on MSVC.
25521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
25522         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
25523         may be defined as an inline function.
25524         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
25525         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
25527 2016-12-17  Bruno Haible  <bruno@clisp.org>
25529         coshf: Avoid redefinition error on MSVC.
25530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
25531         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
25532         may be defined as an inline function.
25533         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
25534         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
25536 2016-12-17  Bruno Haible  <bruno@clisp.org>
25538         cosf: Avoid redefinition error on MSVC.
25539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
25540         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
25541         may be defined as an inline function.
25542         * modules/math (Makefile.am): Substitute REPLACE_COSF.
25543         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
25545 2016-12-17  Bruno Haible  <bruno@clisp.org>
25547         atan2f: Avoid redefinition error on MSVC.
25548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
25549         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
25550         may be defined as an inline function.
25551         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
25552         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
25554 2016-12-17  Bruno Haible  <bruno@clisp.org>
25556         atanf: Avoid redefinition error on MSVC.
25557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
25558         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
25559         may be defined as an inline function.
25560         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
25561         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
25563 2016-12-17  Bruno Haible  <bruno@clisp.org>
25565         asinf: Avoid redefinition error on MSVC.
25566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
25567         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
25568         may be defined as an inline function.
25569         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
25570         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
25572 2016-12-17  Bruno Haible  <bruno@clisp.org>
25574         acosf: Avoid redefinition error on MSVC.
25575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
25576         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
25577         may be defined as an inline function.
25578         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
25579         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
25581 2016-12-17  Bruno Haible  <bruno@clisp.org>
25583         Avoid redefinition errors on MSVC.
25584         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
25585         the function may be defined as an inline function.
25586         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
25587         the function may be defined as an inline function.
25589 2016-12-17  Bruno Haible  <bruno@clisp.org>
25591         Avoid redefinition errors on MSVC.
25592         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
25593         * lib/unistd.in.h: Include <stdio.h> when necessary.
25595 2016-12-17  Bruno Haible  <bruno@clisp.org>
25597         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
25598         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
25599         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25600         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
25601         WINT_MAX.
25603 2016-12-17  Bruno Haible  <bruno@clisp.org>
25605         Avoid autoconf warning.
25606         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
25607         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
25609 2016-12-17  Bruno Haible  <bruno@clisp.org>
25611         fpending: Revert workaround against Emacs bug.
25612         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
25613         The Emacs bug is fixed by Eli Zaretskii in
25614         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
25616 2016-12-17  Bruno Haible  <bruno@clisp.org>
25618         getlogin_r tests: Port to mingw.
25619         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
25620         regression introduced on 2014-05-19.
25622 2016-12-17  Bruno Haible  <bruno@clisp.org>
25624         getlogin: Port to newer mingw.
25625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
25626         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
25627         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
25628         HAVE_GETLOGIN.
25629         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
25630         HAVE_GETLOGIN.
25631         * doc/posix-functions/getlogin.texi: Mention the issue.
25632         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
25633         regression introduced on 2014-05-14.
25635 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25637         builtin-expect: improve port to IBM XL C
25638         Problem reported for z/OS by Daniel Richard G. in:
25639         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
25640         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25641         Test for <builtins.h> directly.
25643         builtin-expect: port to IBM XL C
25644         Problem reported for z/OS by Daniel Richard G. in:
25645         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
25646         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25647         Also allow __builtin_expect defined via a standard include file.
25649         regex: fix dependency
25650         Problem reported by Bruno Haible in:
25651         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
25652         * modules/regex: Depend on builtin-expect.
25654         builtin-expect: new module
25655         Fix fnmatch to use it.
25656         Problem reported for z/OS by Daniel Richard G.
25657         * lib/fnmatch.c (__builtin_expect):
25658         * lib/glob.c (__builtin_expect):
25659         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
25660         * lib/memmem.c (__builtin_expect) [!_LIBC]:
25661         * lib/scandir.c (__builtin_expect):
25662         * lib/strstr.c (__builtin_expect) [!_LIBC]:
25663         Remove macro; config.h now does this.
25664         * lib/gl_anytreehash_list1.h (add_to_bucket):
25665         * lib/regex_internal.h (BE):
25666         Assume __builtin_expect.
25667         * m4/builtin-expect.m4, modules/builtin-expect: New files.
25668         * modules/avltreehash-list, modules/fnmatch, modules/glob:
25669         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
25670         * modules/scandir, modules/strstr-simple:
25671         Depend on builtin-expect.
25673 2016-12-15  Bruno Haible  <bruno@clisp.org>
25675         init.sh: Add possibility to not delete temporary files.
25676         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
25677         to yes, don't erase the temporary directory.
25679 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25681         regex: fix integer-overflow bug in never-used code
25682         Problem reported by Clément Pit–Claudel in:
25683         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
25684         * lib/regex_internal.h: Include intprops.h.
25685         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
25686         behavior on integer overflow.
25687         * modules/regex (Depends-on): Add intprops.
25689         fpending: fix port to MinGW on Emacs
25690         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
25691         Problem reported by Eli Zaretskii in:
25692         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
25693         Is Plan 9 still a valid porting target, anyway?
25695 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25697         safe-alloc: use xalloc-oversized
25698         * lib/safe-alloc.c: Include xalloc-oversized.h.
25699         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
25700         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
25702         xalloc: do not exceed PTRDIFF_MAX
25703         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
25704         xalloc_oversized check, since objects larger than PTRDIFF_MAX
25705         bytes have pointer-subtraction problems.
25707         malloca: do not exceed PTRDIFF_MAX
25708         * lib/malloca.h: Include xalloc-oversized.
25709         (nmalloca): Use xalloc_oversized instead of rolling our own.
25710         * modules/malloca (Depends-on):
25711         * modules/relocatable-prog-wrapper (Depends-on):
25712         Add xalloc-oversized.
25714         quotearg: pacify GCC better
25715         * modules/quotearg (Depends-on): Add minmax, stdint.
25716         * lib/quotearg.c: Include minmax.h, stdint.h.
25717         (nslots): Now int, as there seems little point to going to extra
25718         work merely to support the INT_MAX slot, which nobody ever uses.
25719         (quotearg_n_options): Redo size-overflow checks to pacify GCC
25720         and to catch (mostly-theoretical) ptrdiff_t problems too.
25721         This can be done via one comparison.
25723 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
25725         xalloc-oversized: check for PTRDIFF_MAX too
25726         This avoids undefined behavior when subtracting pointers to
25727         objects containing more than PTRDIFF_MAX bytes.
25728         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
25729         Also return 1 if the result would exceed PTRDIFF_MAX>
25730         * modules/xalloc-oversized (Depends-on):
25731         Add stdint.
25733         dfa: fix glitches in previous commit
25734         Sorry, I don't know how I managed to commit the wrong version.
25735         * lib/dfa.c (MIN): Move up.
25736         (xpalloc): Now static.
25738         dfa: fix some unlikely integer overflows
25739         I found these while reviewing the recent Coverity-related fix.
25740         This patch changes part of dfa.c to prefer ptrdiff_t instead of
25741         size_t for object counts.  Using ptrdiff_t is the style typically
25742         used in Emacs; although it wastes a sign bit as sizes can never be
25743         negative, it makes -fsanitize=undefined more likely to catch
25744         integer overflows in index calculation, and nowadays the upside is
25745         typically more important than the downside.  Although perhaps the
25746         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
25747         of dfa.c already does, since it uses state_num which is signed),
25748         that is a bigger change and is not needed to fix the bugs I found.
25749         * lib/dfa.c: Include stdint.h and intprops.h.
25750         (TOKEN_MAX): New macro.
25751         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
25752         (charclass_index, parse_bracket_exp, addtok, insert, merge)
25753         (realloc_trans_if_necessary, free_mbdata):
25754         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
25755         This is safe because xpalloc checks that the sizes do not exceed
25756         either SIZE_MAX or PTRDIFF_MAX.
25757         (xpalloc): New function, mostly taken from Emacs.
25758         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
25759         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
25760         (charclass_index): Check for integer overflow in computing
25761         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
25762         added to it later.
25763         (alloc_position_set): Check for integer overflow.  On typical
25764         platforms this check has zero overhead, since the constant
25765         expression is false.
25766         (realloc_trans_if_necessary):
25767         Remove assertion, which I hope Coverity no longer needs.
25769         * modules/dfa (Depends-on): Add intprops, stdint.
25771 2016-12-12  Jim Meyering  <meyering@fb.com>
25773         dfa: add an assertion to avoid coverity false positive
25774         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
25775         warned that "newalloc1 - 2" could overflow.
25777 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
25779         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
25780         * dfa.h (DFA_CASE_FOLD): Remove.
25781         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
25783 2016-12-13  John W. Eaton  <gnu@jweaton.org>
25785         link: fix test to declare use of rename()
25786         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
25787         -Werror=implicit-function-declaration
25789 2016-12-12  Bruno Haible  <bruno@clisp.org>
25791         fpending: Port to native Windows with MSVC.
25792         * lib/fpending.c: Include stdio-impl.h.
25793         (__fpending): Include all known implementations. Err out if it's not
25794         ported.
25795         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
25796         * modules/fpending (Files): Add lib/stdio-impl.h.
25797         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
25799 2016-12-12  Bruno Haible  <bruno@clisp.org>
25801         stdioext: Port to native Windows with MSVC.
25802         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
25803         (struct _gl_real_FILE): New type.
25804         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
25805         Windows.
25806         * lib/fbufmode.c (fbufmode): Add code for native Windows.
25807         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
25808         other SystemV derived implementations.
25809         * lib/fpurge.c (fpurge): Likewise.
25810         * lib/freadable.c (freadable): Likewise.
25811         * lib/freadahead.c (freadahead): Likewise.
25812         * lib/freading.c (freading): Likewise.
25813         * lib/freadptr.c (freadptr): Likewise.
25814         * lib/freadseek.c (freadptrinc): Likewise.
25815         * lib/fseeko.c (fseeko): Likewise.
25816         * lib/fseterr.c (fseterr): Likewise.
25817         * lib/fwritable.c (fwritable): Likewise.
25818         * lib/fwriting.c (fwriting): Likewise.
25819         Reported by Gisle Vanem <gvanem@yahoo.no>.
25821 2016-12-11  Jim Meyering  <meyering@fb.com>
25823         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
25824         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
25825         to work with most shells, but not with the one provided by many
25826         Solaris 10 systems, so running configure with such a /bin/sh evokes
25827         e.g., "./configure: syntax error at line 33602: `(' unexpected".
25828         Reported by Assaf Gordon in
25829         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
25831 2016-12-10  Bruno Haible  <bruno@clisp.org>
25833         threadlib: Optimize out runtime test on Solaris >= 10.
25834         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
25835         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
25836         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
25838 2016-12-10  Bruno Haible  <bruno@clisp.org>
25840         stdint: Update doc about Solaris 9.
25841         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
25843 2016-12-09  Bruno Haible  <bruno@clisp.org>
25845         c-ctype tests: Fix link error on Solaris 9.
25846         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
25847         Reported at <https://savannah.gnu.org/bugs/?46827>.
25849 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
25851         dfa: fix performance bug that recomputes trans
25852         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
25853         25 on-demand changes.  The bug caused build_state to reset all
25854         d->trans elements to -2 even when d->trans was already non-null.
25855         Use C99 style decls after statements in this function.
25857         same-inode: port to MinGW
25858         Here st_ino is always 0, so change the definition of SAME_INODE so
25859         that 1 means the two files are the same, 0 with st_ino != 0 means
25860         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
25861         reported by Bruno Haible (Bug#25146).
25862         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
25863         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
25865 2016-12-04  Bruno Haible  <bruno@clisp.org>
25867         javacomp-script: Support Java 7 and 8.
25868         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
25869         target-version 1.7, 1.8.
25871 2016-12-02  Daiki Ueno  <ueno@gnu.org>
25873         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
25874         GPLv2" rewriting.
25876 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
25878         * gnulib-tool (func_import): Adhere to the license guideline when
25879         rewriting the license text to "LGPLv3+ or GPLv2":
25880         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
25882 2016-12-02  Bruno Haible  <bruno@clisp.org>
25884         localcharset: Avoid theoretical buffer overrun.
25885         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
25886         return value from setlocale if it would lead to a buffer overrun.
25888 2016-12-01  Bruno Haible  <bruno@clisp.org>
25890         Relicense some modules under LGPLv2+.
25891         Kevin Cernekee's approval is in
25892         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
25893         * modules/fseterr (License): Change to LGPLv2+.
25894         * modules/mbchar (License): Likewise.
25895         * modules/mbiter (License): Likewise.
25896         * modules/mbsnlen (License): Likewise.
25897         * modules/wcwidth (License): Likewise.
25899 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25901         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
25902         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
25903         OS/2 kLIBC.
25905 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25907         alphasort, scandir: Port to OS/2 kLIBC
25908         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
25909         declaration.
25910         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
25912 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25914         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
25915         * lib/relocatable.c (relocate): Do not touch pathname if it is started
25916         with '/@unixroot'.
25918 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25920         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
25921         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
25922         OS/2 kLIBC unless TCPV40HDRS is defined.
25924 2016-11-29  Jim Meyering  <meyering@fb.com>
25926         dfa: avoid new infinite loop
25927         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
25928         * lib/dfa.c (dfastate): When constructing a new state table, we could
25929         initially declare that we had found a match, and later find that
25930         constraints eliminate that possibility, yet continue to use the
25931         now stale "matched" indicator.  That would lead to an infinite loop.
25932         The solution is to update "matched" when necessary.
25933         Introduced by commit v0.1-983-g403adf1.
25935 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25937         dfa: avoid match middle in multibyte character
25938         * lib/dfa.c (transit_state): If fails in matching single byte characters
25939         on a state including period expression in non-UTF8 multibyte locales,
25940         skip trailing bytes.
25941         (dfa_supported): Revert previous change.
25943 2016-11-27  Jim Meyering  <meyering@fb.com>
25945         dfa: avoid false match in non-UTF8 multibyte locales
25946         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
25947         as "not supported" so that callers will resort to using regex-based
25948         matcher.  This will surely hurt performance, but correctness trumps
25949         performance here, and the affected locales are less and less relevant,
25950         these days.  See grep's bug report https://bugs.gnu.org/24975.
25952 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
25954         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
25955         * lib/ptsname_r.c: Include the appropriate headers.
25956         [__sun]: Delete sys/sysmacros.h include.
25957         [_AIX || __osf__]: Likewise.
25958         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
25960 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25962         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
25963         * lib/md4.c (md4_process_bytes): The existing define is made internal
25964         in recent versions of glibc, so also use this new public define.
25965         * lib/md5.c (md5_process_bytes): Likewise.
25966         * lib/sha1.c (sha1_process_bytes): Likewise.
25967         * lib/sha256.c (sha256_process_bytes): Likewise.
25968         * lib/sha512.c (sha512_process_bytes): Likewise.
25970 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25972         maint: use a more standard return from mbrtowc test
25973         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
25974         from the test program as this often indicates an
25975         unhandled case in the test program.
25976         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
25977         (gl_MBRTOWC_SANITYCHECK): Likewise.
25978         (gl_MBRTOWC_NULL_ARG2): Likewise.
25979         (gl_MBRTOWC_NUL_RETVAL): Likewise.
25981 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
25983         freopen: work around glibc bug with closed fd
25984         Work around glibc bug#15589, where freopen mishandles the case
25985         where stdin etc. are already closed.
25986         * doc/posix-functions/freopen.texi (freopen): Document the bug.
25987         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
25988         instead of __need_FILE, as the latter does not work with glibc.
25989         Include <fcntl.h>, for open flags.
25990         (rpl_freopen): Work around glibc bug.
25991         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
25992         * modules/freopen (Depends-on): Add fcntl-h.
25993         * tests/test-freopen.c (main): Test for bug.
25995 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25997         fnmatch: fix typo introduced on 2016-08-17
25998         This fixes the port to non-GCC compilers that lack __builtin_expect.
25999         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
26001         dfa: simplify with new function fillset
26002         * lib/dfa.c (fillset): New function.
26003         Use it for clarity when applicable.
26005         dfa: fix glitches with on-demand states
26006         Also, adjust commentary to better match new code.
26007         Some of these glitches predate the recent change.
26008         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
26009         only non-initial states.
26010         (dfastate): Rename locals to better match new roles.
26011         Move them into nested scopes if this is easy.
26012         Omit unnecessary calls to zeroset.
26013         Simplify test for whether to throw in the positions of state 0.
26014         Omit C99-ism (decl after statement) since Gawk still wants C89.
26015         (build_state): Omit unnecessary test and assignment.
26016         Fix some confusion that counted transition tables inaccurately
26017         and could cause a memory leak.
26018         (dfaexec_main): Redo to make it clearer to the compiler that
26019         -1 and -2 are the only negative state numbers here.
26021 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26023         dfa: addition of new state on demand
26024         * src/dfa.c (dfastate): Add argument UC, the current input character.
26025         Fill only a group including the character in transition table.
26026         (realloc_trans_if_necessary): Add the dummy state which means that a
26027         transition table is assigned but the next state is not assigned.
26028         (build_state): Return the next state.  All callers updated.
26029         (transit_state_singlebyte): If we get the dummy state,
26030         fill the transition table.
26031         (dfaexec_main): Handle the dummy state.
26032         (free_mbdata, dfafree): Consider the dummy state.
26034 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26036         srclist: sync with released gettext
26037         * config/srclist.txt: Set "release" option to the files under
26038         $GETTEXT.
26040 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26042         srclist: add "release" option
26043         * config/srclist.txt: Change the format so that the first column
26044         of each line points to the top-level directory of the source
26045         archive.
26046         * config/srclist-update: Accept "release" option that checks files
26047         from the most recently tagged revision in the source archive.
26049 2016-11-21  Bruno Haible  <bruno@clisp.org>
26051         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
26052         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26053         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
26054         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
26055         Inline and remove member function 'rpl ()' of the wrapper struct.
26057 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26059         dfa: fix logic typo
26060         Problem reported by Stephane Chazelas (Bug#24973).
26061         * lib/dfa.c (using_simple_locale): Fix typo that caused some
26062         non-simple locales like fr_FR to be treated as simple.
26064 2016-11-20  Jim Meyering  <meyering@fb.com>
26066         fix test driver leaks: exclude, malloc, realloc
26067         * tests/test-exclude.c (main): Fix trivial leak.
26068         * tests/test-malloc-gnu.c (main): Likewise.
26069         * tests/test-realloc-gnu.c (main): Likewise.
26070         With these changes, grep's tests are now leak free.
26071         I.e., running them with ASAN elicits no failure:
26072           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
26073             AM_LDFLAGS='-fsanitize=address -static-libasan' check
26075 2016-11-11  Bruno Haible  <bruno@clisp.org>
26077         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
26078         * modules/libunistring: (License): Change from LGPL to
26079         "LGPLv3+ or GPLv2".
26080         * modules/libunistring-optional: Likewise.
26081         * modules/unicase/*: Likewise.
26082         * modules/uniconv/*: Likewise.
26083         * modules/unictype/*: Likewise.
26084         * modules/unigbrk/*: Likewise.
26085         * modules/unilbrk/*: Likewise.
26086         * modules/uniname/*: Likewise.
26087         * modules/uninorm/*: Likewise.
26088         * modules/unistdio/*: Likewise.
26089         * modules/unistr/*: Likewise.
26090         * modules/uniwbrk/*: Likewise.
26091         * modules/uniwidth/*: Likewise.
26093 2016-11-12  Bruno Haible  <bruno@clisp.org>
26095         Relicense some modules under LGPLv2+.
26096         Paul Eggert's approval is in
26097         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
26098         Eric Blake's approval is in
26099         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
26100         Ludovic Courtès's approval is in
26101         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
26102         * modules/isnand-nolibm (License): Change to LGPLv2+.
26103         * modules/isnanf-nolibm (License): Likewise.
26104         * modules/isnanl-nolibm (License): Likewise.
26106 2016-11-19  Bruno Haible  <bruno@clisp.org>
26108         Relicense some modules under LGPLv2+.
26109         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
26110         modules/vasnprintf.
26111         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
26112         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
26113         All other significant changes to the files in lib/ of these modules
26114         are from me.
26115         * modules/memcmp2 (License): Change to LGPLv2+.
26116         * modules/amemxfrm (License): Likewise.
26117         * modules/fpieee (License): Likewise.
26118         * modules/fpucw (License): Likewise.
26119         * modules/frexp-nolibm (License): Likewise.
26120         * modules/frexpl-nolibm (License): Likewise.
26121         * modules/printf-frexp (License): Likewise.
26122         * modules/printf-frexpl (License): Likewise.
26123         * modules/printf-safe (License): Likewise.
26124         * modules/signbit (License): Likewise.
26126 2016-11-17  Bruno Haible  <bruno@clisp.org>
26128         Enable Unicode decoder safety unconditionally.
26129         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
26130         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
26131         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26132         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26133         * lib/unistr/u8-prev.c (u8_prev): Likewise.
26134         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
26135         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
26136         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
26137         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
26138         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
26139         * lib/unistr/u16-prev.c (u16_prev): Likewise.
26140         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
26141         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
26142         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
26143         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
26144         * lib/unistr/u32-prev.c (u32_prev): Likewise.
26145         * lib/unistr/u32-next.c (u32_next): Likewise.
26146         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
26147         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
26148         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26149         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
26150         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
26151         CONFIG_UNICODE_SAFETY tests unconditionally.
26152         * tests/unistr/test-u32-mblen.c (main): Likewise.
26153         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
26154         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
26155         * tests/unistr/test-u32-next.c (main): Likewise.
26156         * tests/unistr/test-u32-strmblen.c (main): Likewise.
26157         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
26158         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
26159         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
26160         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
26161         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26162         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
26163         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
26164         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
26165         * lib/unistr/u16-check.c (u16_check): Update comment.
26166         * NEWS: Mention the changes that callers should be aware of.
26168 2016-11-19  Bruno Haible  <bruno@clisp.org>
26170         relocatable-prog-wrapper: Fix breakage on Cygwin.
26171         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
26172         (Depends-on): Remove intprops.
26173         * lib/relocwrapper.c: Update dependency tree.
26174         (strerror): Undefine.
26175         * build-aux/install-reloc (func_create_wrapper): Do not compile
26176         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
26178 2016-11-19  Bruno Haible  <bruno@clisp.org>
26180         strerror: Make it compile in C++ mode.
26181         * lib/strerror.c (strerror): Ignore the return value of memcpy().
26183 2016-11-15  Pedro Alves  <palves@redhat.com>
26185         sys_time: add gnulib::timeval for C++
26186         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
26187         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
26188         timeval macro.
26190 2016-11-14  Pedro Alves  <palves@redhat.com>
26192         snippet/c++defs: fix real-floating arg functions in C++ mode
26193         Also, define isfinite, isinf, isnan, signbit in the gnulib
26194         namespace instead of in the global namespace.
26195         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
26196         (_GL_END_NAMESPACE): New.
26197         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
26198         (isfinite, isinf, isnan, signbit) [__cplusplus &&
26199         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
26200         instead of in the global namespace.
26201         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
26202         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
26203         of in the global namespace.
26205 2016-11-13  Jim Meyering  <meyering@fb.com>
26207         strftime: don't use __THROW
26208         Each use of __THROW would provoke this from gcc-7-to-be:
26210           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
26211             on unit local functions [-Wattributes]
26212           static int iso_week_days (int, int) __THROW;
26213           ^~~~~~
26214         * lib/strftime.c (__THROW): Don't define.
26215         Remove each use of __THROW.
26216         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
26217         (tm_diff, iso_week_days, __strftime_internal): Likewise.
26219 2016-11-14  Paul Eggert  <eggert@union>
26221         obstack: port to gcc -fcheck-pointer-bounds
26222         Problem found by 'make check' failure on bleeding-edge coreutils
26223         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
26224         6.2.0-5ubuntu12), configured via "./configure
26225         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
26226         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
26227         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
26228         New macro, copied from fts_.h.
26229         (struct _obstack_chunk.contents): Use it.
26231 2016-11-14  Eric Blake  <eblake@redhat.com>
26233         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
26234         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
26235         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
26237 2016-11-14  Pádraig Brady  <P@draigBrady.com>
26239         strptime: fix compile error in recent change
26240         * lib/strptime.c (__strptime_internal): Fix ported code.
26242 2016-11-11  Bruno Haible  <bruno@clisp.org>
26244         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
26245         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
26246         (func_import): Extend determination of license_incompatibilities.
26247         (func_create_testdir): Extend table of license compatibility. Handle
26248         also the licenses GPLv3+, GPL, LGPLv3+.
26250 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26252         strftime: tune %q
26253         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
26255         Merge strftime.c changes from glibc
26256         This incorporates:
26257         2007-10-16 [BZ #5184] Add tzset_called argument
26258         2008-06-13 [BZ #6612] pass reference to tzset_called around
26259         2009-10-30 Implement Burmese language locale for Myanmar
26260         2010-01-09 Add support for XPG7 testing
26261         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
26262         2015-10-20 Convert miscellaneous function definitions to prototype style
26263         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
26264         it anyway and this lessens the difference between gnulib and glibc.
26265         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
26266         (__THROW): Define if standard headers do not.
26267         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
26268         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
26269         Declare with __THROW.
26270         (__strftime_internal): Rename from strftime_case_. Add arg for
26271         whether tzset is called.  All uses changed.  Call tzset at most
26272         once.  Allow %OC, for Burmese.
26273         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
26274         Don't assume values are in range.
26276 2016-11-12  Eric Blake  <eblake@redhat.com>
26278         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
26279         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
26280         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
26281         different value.
26283 2006-11-12  Pedro Alves  <palves@redhat.com>
26285         Fix gnulib C++ namespace support and std::frexp
26286         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
26287         _GL_CXXALIASWARN.
26289 2006-11-12  Pedro Alves  <palves@redhat.com>
26291         GNULIB_NAMESPACE::func need not pull in rpl_func
26292         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26293         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
26294         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
26295         struct instead of a function pointer.
26297 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
26299         manywarnings: fix -Wno-missing-field-initializers detection
26300         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
26301         to be independent of -Wunused-variable.  I.E. ensure the latter
26302         warning doesn't occur so that detection of the former is accurate.
26304 2016-11-05  Pádraig Brady  <pbrady@fb.com>
26306         strftime,strptime: support %q to represent the quarter
26307         * lib/strftime.c (strftime_case_): Add %q case.
26308         * lib/strptime.c (__strptime_internal): Likewise.
26309         * tests/test-strftime.c (quarter_test): A new test case.
26311 2016-11-03  Eric Blake  <eblake@redhat.com>
26313         bootstrap: Fix get_version() for AIX 5.3
26314         * build-aux/bootstrap (get_version): Factor out sed script, since
26315         indented comments choke AIX 5.3 sed.
26316         Reported-by: Michael Felt <aixtools@gmail.com>
26318 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26320         intprops: port to older XL C
26321         Problem reported by Alexander Samoilov in:
26322         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
26323         http://savannah.nongnu.org/bugs/?49448
26324         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
26325         Define to 1 only for XL C 12.1 or later, since this bug
26326         occurs in XL C for AIX 6.0 but not in 12.1.
26328 2016-11-02  Pádraig Brady  <P@draigBrady.com>
26330         backupfile: initialize default suffix within the implementation
26331         * lib/backupfile.c (find_backup_file_name): Initialize the
26332         global variable here, to simplify usage, and to only call
26333         getenv() when needed.
26335 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26337         futimens: remove FIXME for old Linux kernels
26338         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
26339         this in 2012" FIXME, like that for utimensat.
26341         utimensat: remove FIXME for old Linux kernels
26342         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
26343         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
26344         this in 2012" FIXME, by assuming the file system bug is absent
26345         unless demonstrated to be present.  We no longer need to worry
26346         about Linux kernel 2.6.32 when building with newer kernels.
26348 2016-10-16  Bruno Haible  <bruno@clisp.org>
26350         qsort_r: Fix macrology for platforms that lack the function.
26351         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
26352         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
26353         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
26354         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
26355         not exist.
26356         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
26357         the function exists.
26358         * modules/qsort_r: Add comments.
26360 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26362         sys_types: fix Texinfo typos
26363         * doc/glibc-functions/gnu_dev_major.texi:
26364         * doc/glibc-functions/gnu_dev_makedev.texi:
26365         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
26367 2016-10-26  John David Anglin  <dave.anglin@bell.net>
26369         getprogname: port to HP-UX
26370         See Bug#24805.
26371         * lib/getprogname.c (getprogname) [__hpux]: Port.
26372         * tests/test-getprogname.c (STREQ) [__hpux]:
26373         Special-case for HP-UX limitations on program name length.
26375 2016-10-20  Bruno Haible  <bruno@clisp.org>
26377         Update doc about target platforms.
26378         * doc/gnulib-intro.texi (Target Platforms): Update list.
26380 2016-10-15  Bruno Haible  <bruno@clisp.org>
26382         opendir, readdir, closedir: Relicense under LGPLv2+.
26383         * modules/opendir (License): Change to LGPLv2+.
26384         * modules/readdir (License): Likewise.
26385         * modules/closedir (License): Likewise.
26387 2016-10-16  Bruno Haible  <bruno@clisp.org>
26389         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
26390         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
26391         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
26392         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
26393         HAVE_DECL_STRERROR_R.
26395 2016-10-16  Bruno Haible  <bruno@clisp.org>
26397         Make the 'argp' module work without the 'error' module.
26398         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
26400 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26402         diffseq: restore TOO_EXPENSIVE heuristic
26403         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
26404         (Bug#24715).  The simplest solution is to restore the
26405         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
26406         using a higher threshold to avoid Bug#16848 on smaller files.
26407         * lib/diffseq.h (struct context): Restore member too_expensive.
26408         (struct partition): Restore members lo_minimal, hi_minimal.
26409         (diag, compareseq): Restore arg find_minimal.  All uses changed.
26410         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
26411         1993 to make 'diff' run faster (but not as well) on large inputs,
26412         but use a threshold of 4096 instead of the old 256.
26413         * lib/fstrcmp.c (strcmp_bounded):
26414         * lib/git-merge-changelog.c (compute_differences):
26415         Adjust to diffseq.h changes.
26417 2016-10-22  Bruno Haible  <bruno@clisp.org>
26419         iconv: Avoid compilation error when bootstrapping GNU libiconv.
26420         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
26421         declaration yet, define ICONV_CONST to empty.
26423 2016-10-15  Bruno Haible  <bruno@clisp.org>
26425         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
26426         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
26427         module.
26429 2016-10-16  Bruno Haible  <bruno@clisp.org>
26431         system-quote tests: Avoid compiler warning on AIX.
26432         * tests/test-system-quote-child.c (fopen): Redefine like the system's
26433         <stdio.h> does.
26435 2016-10-16  Bruno Haible  <bruno@clisp.org>
26437         Fix some "gcc -Wall" warnings.
26438         * tests/test-ffsl.c (main): Use variable x, not i.
26439         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
26440         freopen.
26441         * tests/test-sethostname1.c (main): Explicitly ignore the return value
26442         of sethostname.
26444 2016-10-16  Bruno Haible  <bruno@clisp.org>
26446         gnulib-tool: Make --create-testdir on all modules work again.
26447         * gnulib-tool (func_create_testdir): Don't include the
26448         non-recursive-gnulib-prefix-hack module.
26450 2016-10-21  Daiki Ueno  <ueno@gnu.org>
26452         libunistring: change the maintainer to 'all'
26453         * modules/gen-uni-tables, modules/libunistring:
26454         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
26455         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
26456         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
26457         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
26458         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
26459         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
26460         * modules/uniwidth/*: Change the maintainer to 'all'.
26462 2016-10-16  Bruno Haible  <bruno@clisp.org>
26464         Simplify "configure: checking ..." messages.
26465         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
26466         AC_MSG_NOTICE.
26467         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26469 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26471         quotearg-tests: pacify gcc -Wall
26472         Problem reported by Bruno Haible in:
26473         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
26474         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
26475         * tests/test-quotearg.h: ... from here.
26477 2016-10-20  Pádraig Brady  <P@draigBrady.com>
26479         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
26480         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
26481         Needed on Centos <= 4.
26483 2016-10-20  Jim Meyering  <meyering@fb.com>
26485         printf.m4: fix a bug in detecting printf %j support
26486         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
26487         uintmax_t is defined in neither stdint.h nor inttypes.h.
26488         Before, this macro might have mistakenly set
26489         gl_cv_func_printf_sizes_c99=yes on such a system.
26490         Spotted by Zev Weiss.
26492 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
26494         sched: substitute HAVE_SYS_CDEFS_H too
26495         Problem reported by Tom G. Christensen in:
26496         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
26497         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
26498         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
26500 2016-10-19  Pádraig Brady  <P@draigBrady.com>
26502         quotearg: never write beyond the returned length
26503         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
26504         scan of the string when we initially encounter a single quote when
26505         shell quoting, so that if we then switch to a more concise quoting method
26506         we will not have written beyond that returned length.
26507         This is significant for sh-quote, which has separate routines
26508         to determine the length and do the actual quoting.
26509         * tests/test-quotearg.h: Reinstate the buffer bounds checking
26510         now that we never write more than the returned length.
26512 2016-10-18  Bruno Haible  <bruno@clisp.org>
26514         getprogname tests: Avoid failure in packages that use libtool.
26515         * tests/test-getprogname.c (main): Strip "lt-" prefix.
26516         Based on a patch by Jim Meyering.
26518 2016-10-16  Bruno Haible  <bruno@clisp.org>
26520         getprogname: Fix test failure on Cygwin. Comments.
26521         * lib/getprogname.h: Add comments.
26522         * lib/getprogname.c: Add comments. Fix #elif indentation.
26523         * tests/test-getprogname.c (main): On Cygwin, expect a result without
26524         ".exe" suffix.
26526 2016-10-16  Bruno Haible  <bruno@clisp.org>
26528         Make sure the libunistring detection rejects older versions with a
26529         known bug.
26530         * modules/unistr/u8-strtok (configure.ac): Bump required version.
26531         * modules/unistr/u16-strtok (configure.ac): Likewise.
26532         * modules/unistr/u32-strtok (configure.ac): Likewise.
26534 2016-10-18  Bruno Haible  <bruno@clisp.org>
26536         sh-quote, system-quote: revert regression of unit test.
26537         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
26538         * tests/test-system-quote-main.c (check_one): Likewise.
26540 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26542         quotearg: fix stale tests
26543         * tests/test-quotearg.c [locale_results]: Add the missing str7
26544         entries to the expected results.
26545         * tests/test-system-quote-main.c (check_one): Don't enforce that we
26546         don't write beyond the returned length, since that's no longer the
26547         case if we switch to a more concise quoting style.
26548         * tests/test-sh-quote.c (check_one): Likewise.
26549         (main): Adjust for the new more concise quoting style.
26550         Reported by Bruno Haible.
26552 2016-10-16  Jim Meyering  <meyering@fb.com>
26554         non-recursive-gnulib-prefix-hack: fix inconsequential typo
26555         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
26556         to "$1".  This macro is always invoked with $1 == lib.
26557         Spotted by Bruno Haible
26559 2016-10-16  Bruno Haible  <bruno@clisp.org>
26561         Fix a test crash.
26562         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
26563         fails.
26565 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26567         test-limits-h: suppress -Woverlength-strings
26568         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
26570 2016-10-15  Bruno Haible  <bruno@clisp.org>
26572         gettime, timespec, utimens: Relicense under LGPL.
26573         * modules/gettime (License): Change to LGPL.
26574         * modules/timespec (License): Likewise.
26575         * modules/utimens (License): Likewise.
26577 2016-10-14  Bruno Haible  <bruno@clisp.org>
26578             Pádraig Brady  <P@draigBrady.com>
26580         canonicalize-lgpl: Support the case path_max > INT_MAX.
26581         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
26582         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
26584 2016-10-13  Jim Meyering  <meyering@fb.com>
26586         getprogname: IBM z/OS: avoid NULL-dereference
26587         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
26588         upon strdup failure.
26590 2016-10-12  Jim Meyering  <meyering@fb.com>
26592         test-stdint: use _GL_VERIFY rather than "verify" for some tests
26593         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
26594         and an abbreviated diagnostic rather than verify with the full one,
26595         because the full-length strings would evoke warnings from gcc with
26596         -Woverlength-strings.
26598 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26600         stdint: port SIZE_MAX to glibc s390
26601         Problem reported by Eric Blake in:
26602         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
26603         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
26604         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
26605         correct type, if possible.
26607 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
26609         getprogname: port to IBM z/OS
26610         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
26612 2016-10-11  Jim Meyering  <meyering@fb.com>
26614         maint: remove stray space after "." in AC_DEFINE comment.
26615         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
26616         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26618 2016-10-05  Jim Meyering  <meyering@fb.com>
26620         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26621         * lib/long-options.c (parse_long_options): Add a break statement
26622         to avoid this new warning/failure:
26623         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26624           --create-testdir --dir=/t/x --with-tests --test long-options
26625         ../../gllib/long-options.c: In function 'parse_long_options':
26626         ../../gllib/long-options.c:66:12: error: this statement may \
26627           fall through [-Werror=implicit-fallthrough]
26628                    (*usage_func) (EXIT_SUCCESS);
26629                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26631 2016-10-05  Jim Meyering  <meyering@fb.com>
26633         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26634         Testing this module would fail when using GCC 7 like this:
26635         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26636           --dir=/tmp/x --with-tests --test utimecmp
26637         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26638         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26639           [-Werror=bool-operation]
26640                          time_t s = src_s & ~ (res == 2 * BILLION);
26641                                             ^
26642         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26643           [-Werror=bool-operation]
26644                src_s &= ~ (res == 2 * BILLION);
26645                         ^
26646         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26647         Instead, make it explicit that we intend to apply it to 0 or 1.
26649 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26651         dfa: save memory for states
26652         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
26653         states if dfa has a lot of caches.
26655 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
26657         wchar, wctype-h: fix for MinGW 3.22.2
26658         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
26659         special invocation, to fix issues with MinGW 3.22.2 wchar.h
26660         when included from <string.h>.
26661         * lib/wctype.in.h [__MINGW32__]: Add special invocation
26662         convention for MinGW 3.22.2, to solve issues with their
26663         wctype.h when included from <ctype.h>.
26665 2016-10-05  Jim Meyering  <meyering@fb.com>
26667         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26668         * lib/long-options.c (parse_long_options): Add a break statement
26669         to avoid this new warning/failure:
26670         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26671           --create-testdir --dir=/t/x --with-tests --test long-options
26672         ../../gllib/long-options.c: In function ‘parse_long_options’:
26673         ../../gllib/long-options.c:66:12: error: this statement may \
26674           fall through [-Werror=implicit-fallthrough]
26675                    (*usage_func) (EXIT_SUCCESS);
26676                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26678         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26679         Testing this module would fail when using GCC 7 like this:
26680         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26681           --dir=/tmp/x --with-tests --test utimecmp
26682         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26683         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26684           [-Werror=bool-operation]
26685                          time_t s = src_s & ~ (res == 2 * BILLION);
26686                                             ^
26687         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26688           [-Werror=bool-operation]
26689                src_s &= ~ (res == 2 * BILLION);
26690                         ^
26691         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26692         Instead, make it explicit that we intend to apply it to 0 or 1.
26694 2016-10-03  Pádraig Brady  <P@draigBrady.com>
26696         quotearg: minimize shell quoting using double quotes
26697         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
26698         quote in encountered then use double quotes (c style quoting)
26699         when possible, as it simplifies the quoting.
26700         * tests/test-quotearg-simple.c: Add test cases.
26701         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
26702         for the fact we now may write beyond the returned length.
26704 2016-10-02  Jim Meyering  <meyering@fb.com>
26706         vasnprintf.c: avoid spurious warning from GCC 7
26707         The presence of cpp directives renders this "FALLTHROUGH" comment
26708         ineffective, so does not suppress the -Wimplicit-fallthrough warning
26709         from GCC 7 built from git on 2016-10-02.
26710         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
26711         directives, so that it takes effect once again.  This is clearly
26712         not a proper change, and I will revert it once this bug is fixed:
26713         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
26715 2016-10-01  Jim Meyering  <meyering@fb.com>
26717         getprogname: correct the test for a __progname variable
26718         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
26719         and AC_LINK_IFELSE to check for a global __progname.  If found,
26720         define HAVE_VAR___PROGNAME.
26721         * lib/getprogname.c (getprogname): Reflect the new name of the
26722         feature- checked preprocessor symbol:
26723         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
26725 2016-09-28  Jim Meyering  <meyering@fb.com>
26727         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
26728         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
26729         fall-through case with a /* fallthrough */ comment.
26731         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
26732         * lib/dfa.c (dfassbuild): Mark the end of this case with a
26733         /* fallthrough */ comment.
26735         getprogname: avoid __progname vs program_invocation_short_name pitfall
26736         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
26737         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
26738         not with Fedora 24's glibc-2.23.1-10.
26739         * lib/getprogname.c (__progname): Move this declaration down...
26740         (getprogname): ... into the #elif block where used, and make it
26741         explicitly "extern".
26743         getprogname: port to OpenBSD 5.1
26744         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
26745         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
26746         * modules/getprogname (configure.ac): Move most of this code...
26747         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
26748         increment serial number, and add a test for __progname.
26749         https://bugs.gnu.org/24562
26750         Reported by Nelson H. F. Beebe.
26752 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26754         sched: port to GCC 6.2.1 on macOS Sierra
26755         Problem reported by Denis Davydov in:
26756         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
26757         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
26758         Include <sys/cdefs.h> before <sched.h>.
26759         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
26760         so that we needn’t worry about the sched.h include bug here.
26761         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
26762         and include it before <sched.h> if it exists, when
26763         checking for <sched.h>.
26765         tests/init.sh: port Alpine fix to AIX 7.1
26766         * tests/init.sh (compare_): When attempting to use diff -U3,
26767         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
26768         diff -u not outputting a space after leading '+', as the users
26769         of 'compare' should not be that picky about its output format.
26770         In the AIX 7.1 case, return with diff exit status (or with 2 if
26771         trouble), instead of some random nonzero exit status.
26772         * tests/test-init.sh (test_compare): Remove space after leading
26773         '+', so that AIX 7.1 'diff' passes the test.
26775 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26777         nl_langinfo: pacify GCC
26778         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
26779         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
26781         stdint: also set GL_GENERATE_LIMITS_H
26782         Problem reported by Jim Meyering in:
26783         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
26784         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
26786         limits-h, stdint: Don't assume extensions, fix typo
26787         * m4/limits-h.m4 (gl_LIMITS_H):
26788         * m4/stdint.m4 (gl_STDINT_H):
26789         Don't assume AC_USE_SYSTEM_EXTENSIONS.
26790         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
26791         reported by Jim Meyering in:
26792         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
26794 2016-09-21  Jim Meyering  <meyering@fb.com>
26796         getprogname: port to AIX
26797         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
26798         and strdup to obtain a short program name string.  Using code from
26799         Bruno Haible and an idea from Bastien ROUCARIÈS, in
26800         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26801         Assaf Gordon reported that this new file would fail to compile on
26802         AIX-7.1 32bit.
26804 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26806         extensions: fix typo in comment
26807         * m4/extensions.m4: Sync from Autoconf master.
26809         stdint: support new _WIDTH macros
26810         * doc/posix-headers/stdint.texi: Document this.
26811         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
26812         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
26813         support for INTMAX_WIDTH, etc. as well as for support for just C99.
26814         * modules/stdint (Depends-on): Add limits-h.
26815         (Makefile.am): Substitute HAVE_C99_STDINT_H.
26816         * modules/stdint-tests (Depends-on): Add extensions, so that
26817         INTMAX_MAX etc. are defined.
26818         * tests/test-stdint.c: Verify the new macros.
26820         limits-h: new module
26821         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
26822         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
26823         * doc/posix-headers/limits.texi: Document new module.
26824         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
26825         * modules/limit-h-tests, tests/test-limits-h.c: New files.
26827         stdio: don't redefine __USE_MINGW_ANSI_STDIO
26828         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
26829         if it is already defined.  Apparently GNU Emacs relies on this.  See:
26830         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
26832 2016-09-15  Eric Blake  <eblake@redhat.com>
26834         sys_types: avoid glibc 2.25 warnings about major()
26835         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
26836         older autoconf.
26837         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
26838         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
26839         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
26840         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
26842         mountlist: include sysmacros.h for glibc
26843         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
26844         AC_HEADER_MAJOR.
26845         * lib/mountlist.c (includes): Use correct headers.
26847 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26849         extensions: port to more ISO C TSes
26850         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
26851         master, to add support for more recent ISO C TRs and TSes.
26853 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26855         intprops: new macro TYPE_WIDTH
26856         * lib/intprops.h (TYPE_WIDTH): New macro.
26857         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
26858         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
26859         * lib/parse-datetime.y (parse_datetime2):
26860         Use it.
26862         extensions: port to recent ISO C TRs
26863         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
26864         Sync from Autoconf master, to add support for recent ISO C TRs.
26865         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
26866         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
26867         the MinGW option is not an extension.
26869 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
26871         dfa: port to Solaris 9
26872         Problems reported by Tom G. Christensen in:
26873         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
26874         * modules/dfa (Depends-on): Add isblank.
26875         * modules/dfa-tests (dfa_match_aux_LDADD):
26876         Rename from test_stat_LDADD, to fix typo.
26877         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
26879 2016-09-10  Jim Meyering  <meyering@fb.com>
26881         strverscmp: avoid link failure on OS X
26882         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
26883         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
26885 2016-08-16  Jim Meyering  <meyering@fb.com>
26887         dfa: new module, importing grep's DFA matcher
26888         Since grep's DFA matcher is now being used by two gnulib-enabled
26889         projects, grep and sed, it makes sense to version-control its
26890         sources and unit tests in one place: here.
26891         * modules/dfa: New module.
26892         * modules/dfa-tests: New file.
26893         * lib/dfa.c: New file, from grep.
26894         * lib/dfa.h: Likewise.
26895         * lib/localeinfo.c: Likewise.
26896         * lib/localeinfo.h: Likewise.
26897         * tests/dfa-match-aux.c: Likewise.
26898         * tests/dfa-invalid-char-class.sh: Likewise.
26899         * tests/dfa-match.sh: Likewise, with minor changes.
26900         * MODULES.html.sh (Misc): Add "dfa" to this list.
26902 2016-09-09  Jim Meyering  <meyering@fb.com>
26904         getprogname-tests: don't depend on assert-h
26905         * modules/getprogname-tests (Depends-on): Remove assert-h.
26906         It was not needed, and in fact would cause build failure for
26907         coreutils on some systems.  Reported by Assaf Gordon in https:
26908         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
26910 2016-09-07  Jim Meyering  <meyering@fb.com>
26912         getprogname-tests: work also when EXEEXT is nonempty
26913         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
26914         * tests/test-getprogname.c (main): Use it.
26915         Suggested by Gisle Vanem.
26917 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
26919         getprogname: fix errors in previous change
26920         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
26921         s/program_invocation_name/base/
26922         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
26924 2016-09-08  Pádraig Brady  <P@draigBrady.com>
26926         parse-datetime: restrict debug output to input string
26927         * lib/parse-datetime.y (parse_datetime2): If we parse
26928         all of the input but determine it's invalid, ensure
26929         we don't output the now invalid input pointer.
26930         This issue was seen with `date -d 'now +1'`.
26932 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26934         flexmember: new macro FLEXALIGNOF
26935         * lib/flexmember.h: Include <stddef.h>, for offsetof.
26936         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
26937         this macro.  Update comments.
26939 2016-09-07  Jim Meyering  <meyering@fb.com>
26941         getprogname: port to systems with __argv (mingw, msvc)
26942         * lib/getprogname.c (getprogname): Include "dirname.h" and use
26943         last_component: more general than open coding it with hard-coded "/".
26944         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
26945         * modules/getprogname (Depends-on): Add dirname-lgpl.
26946         (configure.ac): Check for __argv in <stdlib.h>.
26947         * modules/getprogname-tests: New file.
26948         * tests/test-getprogname.c: New file.
26949         Suggested by Gisle Vanem in
26950         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
26952 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26954         flexmember: port better to GCC + valgrind
26955         With a char[] flexible array member in a struct with nontrivial
26956         alignment, GCC-generated code can access past the end of the
26957         array, because GCC assumes there are padding bytes to get the
26958         struct aligned.  So the common idiom of malloc (offsetof (struct
26959         s, m), n) does not properly allocate an n-byte trailing member, as
26960         malloc’s argument should be the next multiple of alignof (struct s).
26961         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26962         Although C11 apparently permits this GCC optimization (i.e., there
26963         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
26964         See the thread containing:
26965         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
26966         * lib/flexmember.h: New file.
26967         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
26968         * lib/localename.c, lib/time_rz.c:
26969         Include flexmember.h.
26970         * lib/fnmatch_loop.c (struct patternlist):
26971         * lib/localename.c (struct hash_node):
26972         Use FLEXIBLE_ARRAY_MEMBER.
26973         * lib/fnmatch_loop.c (EXT):
26974         * lib/fts.c (fts_alloc):
26975         * lib/glob.c (glob_in_dir):
26976         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26977         * lib/localename.c (gl_lock_define_initialized):
26978         * lib/time_rz.c (tzalloc):
26979         Use FLEXSIZEOF instead of offsetof.
26980         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26981         Check that the size of the struct can be taken.
26982         * modules/flexmember (Files): Add lib/flexmember.h.
26983         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
26984         Add flexmember.
26986 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26988         getprogname: port to Solaris 10
26989         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
26990         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
26991         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
26993         stdalign: correct mistake in alignof doc
26994         Problem reported by Joseph Myers in:
26995         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
26996         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
26997         alignof(S) where S is a structure containing a flexible array
26998         member.  The Gnulib substitute does not support this, but C11 does.
27000 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27002         main.mk: remove sc_program_name, since there is no more need to
27003         use set_program_name in tools (getprogname is enough for most
27004         of the cases).
27005         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
27006         * top/maint.mk (sc_program_name): Remove.
27008 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27010         Port tests away from progname, since modules that need the
27011         program name already depend on getprogname.
27012         * modules/acl-tests (Depends-on): Remove progname.
27013         * modules/argmatch (Depends-on): Likewise.
27014         * modules/argmatch-tests (Depends-on): Likewise.
27015         * modules/argp-tests (Depends-on): Likewise.
27016         * modules/argp-version-etc-tests (Depends-on): Likewise.
27017         * modules/array-list-tests (Depends-on): Likewise.
27018         * modules/array-oset-tests (Depends-on): Likewise.
27019         * modules/avltree-list-tests (Depends-on): Likewise.
27020         * modules/avltree-oset-tests (Depends-on): Likewise.
27021         * modules/avltreehash-list-tests (Depends-on): Likewise.
27022         * modules/carray-list-tests (Depends-on): Likewise.
27023         * modules/copy-file-tests (Depends-on): Likewise.
27024         * modules/exclude-tests (Depends-on): Likewise.
27025         * modules/fchownat-tests (Depends-on): Likewise.
27026         * modules/fdopendir-tests (Depends-on): Likewise.
27027         * modules/filenamecat-tests (Depends-on): Likewise.
27028         * modules/fstatat-tests (Depends-on): Likewise.
27029         * modules/fstrcmp-tests (Depends-on): Likewise.
27030         * modules/linked-list-tests (Depends-on): Likewise.
27031         * modules/linkedhash-list-tests (Depends-on): Likewise.
27032         * modules/mkdirat-tests (Depends-on): Likewise.
27033         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
27034         * modules/nonblocking-socket-tests (Depends-on): Likewise.
27035         * modules/obstack-printf-tests (Depends-on): Likewise.
27036         * modules/openat-tests (Depends-on): Likewise.
27037         * modules/parse-datetime-tests (Depends-on): Likewise.
27038         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
27039         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
27040         * modules/quotearg-simple-tests (Depends-on): Likewise.
27041         * modules/quotearg-tests (Depends-on): Likewise.
27042         * modules/rbtree-list-tests (Depends-on): Likewise.
27043         * modules/rbtree-oset-tests (Depends-on): Likewise.
27044         * modules/rbtreehash-list-tests (Depends-on): Likewise.
27045         * modules/spawn-pipe-tests (Depends-on): Likewise.
27046         * modules/system-quote-tests (Depends-on): Likewise.
27047         * modules/uniname/uniname-tests (Depends-on): Likewise.
27048         * modules/uninorm/nfc-tests (Depends-on): Likewise.
27049         * modules/uninorm/nfd-tests (Depends-on): Likewise.
27050         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
27051         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
27052         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
27053         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
27054         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
27055         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
27056         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
27057         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
27058         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
27059         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
27060         * modules/unlinkat-tests (Depends-on): Likewise.
27061         * modules/version-etc-tests (Depends-on): Likewise.
27062         * modules/xalloc-die-tests (Depends-on): Likewise.
27063         * modules/xmemdup0-tests (Depends-on): Likewise.
27064         * modules/xprintf-posix-tests (Depends-on): Likewise.
27065         * modules/xvasprintf-tests (Depends-on): Likewise.
27066         * tests/test-argmatch.c: Do not include progname.h.
27067         (main) Stop calling set_program_name.
27068         * tests/test-argp-version-etc.c: Likewise.
27069         * tests/test-argp.c: Likewise.
27070         * tests/test-argv-iter.c: Likewise.
27071         * tests/test-array_list.c: Likewise.
27072         * tests/test-array_oset.c: Likewise.
27073         * tests/test-avltree_list.c: Likewise.
27074         * tests/test-avltree_oset.c: Likewise.
27075         * tests/test-avltreehash_list.c: Likewise.
27076         * tests/test-carray_list.c: Likewise.
27077         * tests/test-copy-acl.c: Likewise.
27078         * tests/test-copy-file.c: Likewise.
27079         * tests/test-exclude.c: Likewise.
27080         * tests/test-fchownat.c: Likewise.
27081         * tests/test-fdopendir.c: Likewise.
27082         * tests/test-filenamecat.c: Likewise.
27083         * tests/test-fstatat.c: Likewise.
27084         * tests/test-fstrcmp.c: Likewise.
27085         * tests/test-linked_list.c: Likewise.
27086         * tests/test-linkedhash_list.c: Likewise.
27087         * tests/test-mkdirat.c: Likewise.
27088         * tests/test-nonblocking-pipe-main.c: Likewise.
27089         * tests/test-nonblocking-socket-main.c: Likewise.
27090         * tests/test-obstack-printf.c: Likewise.
27091         * tests/test-openat.c: Likewise.
27092         * tests/test-parse-datetime.c: Likewise.
27093         * tests/test-pipe-filter-gi1.c: Likewise.
27094         * tests/test-pipe-filter-gi2-main.c: Likewise.
27095         * tests/test-pipe-filter-ii1.c: Likewise.
27096         * tests/test-pipe-filter-ii2-main.c: Likewise.
27097         * tests/test-quotearg-simple.c: Likewise.
27098         * tests/test-quotearg.c: Likewise.
27099         * tests/test-rbtree_list.c: Likewise.
27100         * tests/test-rbtree_oset.c: Likewise.
27101         * tests/test-rbtreehash_list.c: Likewise.
27102         * tests/test-sameacls.c: Likewise.
27103         * tests/test-set-mode-acl.c: Likewise.
27104         * tests/test-spawn-pipe-main.c: Likewise.
27105         * tests/test-system-quote-main.c: Likewise.
27106         * tests/test-unlinkat.c: Likewise.
27107         * tests/test-version-etc.c: Likewise.
27108         * tests/test-xalloc-die.c: Likewise.
27109         * tests/test-xfprintf-posix.c: Likewise.
27110         * tests/test-xmemdup0.c: Likewise.
27111         * tests/test-xprintf-posix.c: Likewise.
27112         * tests/test-xvasprintf.c: Likewise.
27113         * tests/uniname/test-uninames.c: Likewise.
27114         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27115         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27116         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27117         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27118         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27119         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27120         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27121         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27122         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27123         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27124         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27125         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27126         * tests/test-c-stack.c: (program_name): Do not define.
27127         (main): Do not set program_name.
27128         * tests/test-closein.c: Likewise.
27129         * tests/test-xstrtol.c: Likewise.
27130         * tests/test-yesno.c: Likewise.
27132 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27134         Port modules to use getprogname explicitly, instead of requiring
27135         progname to be used (or program_name to be provided).
27136         * lib/argmatch.c: Do not include progname.h.
27137         [TEST] (program_name): Do not define.
27138         [TEST] (main): Call getprogname instead of using program_name.
27139         * lib/c-stack.c: Do not include progname.h.
27140         (program_name): Do not define.
27141         (die): Call getprogname instead of using program_name.
27142         * lib/chdir-long.c: Do not include progname.h.
27143         [TEST_CHDIR] (main): Do not set program_name.
27144         * lib/error.c [!_LIBC]: Include progname.h.
27145         [!_LIBC] (program_name): Define using getprogname.
27146         * lib/euidaccess.c: Do not include progname.h.
27147         [TEST] (main): Do not set program_name.
27148         * lib/git-merge-changelog.c: Include getprogname.h instead of
27149         progname.h.
27150         (usage): Call getprogname instead of using program_name.
27151         (main): Likewise.  Stop calling set_program_name.
27152         * lib/group-member.c: Do not include progname.h.
27153         [TEST] (main): Do not set program_name.
27154         * modules/argmatch (Depends-on): Add getprogname.
27155         * modules/c-stack (Depends-on): Likewise.
27156         * modules/error (Depends-on): Likewise.
27157         * modules/git-merge-changelog (Depends-on): Likewise.
27158         Also remove progname.
27160 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
27162         * NEWS: Document the deprecation of the 'progname' module.
27164 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27166         getprogname: new module
27167         This provides a LGPL module for getting the name of the current
27168         program, using the same API found on *BSD systems.
27169         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
27170         * modules/getprogname: New files.
27171         * MODULES.html.sh (Misc): Add getprogname.
27173 2016-09-02  Jim Meyering  <meyering@fb.com>
27175         manywarnings: add -fno-common
27176         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
27177         to the list.  Quoting the manual, "Compiling with -fno-common is
27178         useful on targets for which it provides better performance, or if
27179         you wish to verify that the program will work on other systems that
27180         always treat uninitialized variable declarations this way [putting
27181         it in the data section]."  If diffutils had been using this sooner,
27182         it would have prevented this duplicate declaration issue:
27183         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
27185 2016-08-31  Simon Josefsson  <simon@josefsson.org>
27187         parse-datetime: Fix typo.
27188         * lib/parse-datetime.y (parse_datetime2): Fix typo.
27190 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27192         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
27193         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
27194         GCC 5 and 6 that have __builtin_sub_overflow but not
27195         __builtin_sub_overflow_p.  With the recent changes, these
27196         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
27197         implementation than with INT_SUBTRACT_OVERFLOW implementation,
27198         since the former needs just one runtime comparison whereas the
27199         latter needs two.
27201         strverscmp: sync with glibc
27202         Although this doesn't exactly synchronize with glibc
27203         byte-for-byte, it makes the code behave the same as glibc.
27204         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
27205         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
27206         difference shouldn't matter in practical use.  All uses changed
27207         back to isdigit.
27208         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
27209         (next_state): Now unsigned char array; redo elements.
27210         (result_type): Now signed char array; redo elements.
27211         (__strverscmp): Fix glibc bug 9913 by using new states.
27212         * tests/test-strverscmp.c (main): Test glibc bug 9913.
27214 2016-08-29  Jim Meyering  <meyering@fb.com>
27216         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
27217         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
27218         similarly to how it was done to intprops.h.
27220 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27222         intprops.h: port recent changes to GCC 6.2.0
27223         * lib/intprops.h (__has_builtin): Move earlier.
27224         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
27225         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
27226         the last argument can be null.  All uses changed.
27227         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
27228         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27229         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
27230         and it's not clear which GCC versions it works for.
27231         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
27232         its definiens.
27234         intprops.h: use __typeof__ with GCC 7
27235         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
27236         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
27237         This avoids computing the expression's value (which might overflow!).
27239 2016-08-29  Jim Meyering  <meyering@fb.com>
27241         intprops.h, xalloc-oversized.h: work with gcc 7
27242         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
27243         __builtin_mul_overflow each accept a NULL pointer as the third
27244         argument.  However in gcc 7, that is no longer accepted.
27245         Instead, one must use the "_p"-suffixed names, with which, the
27246         third parameter is no longer a pointer.
27247         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
27248         the definition: not true for gcc 7 and subsequent.
27249         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
27250         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27251         Provide new definitions for gcc 7 and subsequent.
27252         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
27253         that works with gcc-7.
27255         intprops.h: fix missing-backslash problems
27256         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
27257         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
27259 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27261         intprops: fix paren typo on old platforms
27262         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
27263         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
27264         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
27265         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
27266         && !defined LLONG_MAX]:
27267         Remove stray paren.
27269         intprops: port to OpenVMS
27270         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
27271         * doc/posix-headers/limits.texi: Document the problem.
27272         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
27273         Define if not already defined.
27275 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
27277         parse-datetime: improve debug implementation
27278         Follow-up to commit 12ad79069 ("add optional debug printing").
27279         Improve parse-datetime's debug implementation: remove macros,
27280         replace global debug flag variable with a function parameter,
27281         use nstrftime for formatting.
27282         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
27283         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
27284         (parse_datetime2): New function, accepts 'flags' parameter, supporting
27285         debug flag. Existing interface 'parse_datetime' left unmodified.
27286         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
27287         (struct parser_control): add 'parse_datetime_debug' member variable.
27288         (parse_datetime): Call new function 'parse_datetime2' without debug.
27289         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
27290         pc.parse_datetime_debug variable as needed.
27291         (to_year): Accept new flags parameter, instead of using global variable.
27292         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
27293         use struct 'debug' variable instead of global variable.
27294         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
27295         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
27296         correspnding functions directly instead of using macros.
27297         * modules/parse-datetime: Add gnulib's strftime module.
27299 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
27301         c-strcase-tests: port to EBCDIC
27302         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
27303         which assume ASCII encoding semantics to run only in ASCII
27304         mode, as they fail in EBCDIC.
27306         sigpipe-tests: fix typo
27307         * tests/test-sigpipe.sh: C, not B.
27309 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27311         canonicalize-lgpl: fix errno after malloca fails
27312         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
27313         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
27314         * lib/canonicalize-lgpl.c (__realpath):
27315         Don't assume malloca sets errno on failure.
27317 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27319         strtod: port errno handling to z/OS
27320         * lib/strtod.c (strtod): Save and restore errno more reliably.
27322 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27324         strtod: port to z/OS
27325         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27326         implementation.
27328 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27330         strtod: port to z/OS
27331         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27332         implementation.
27334         regex, string: rename to avoid '__string'
27335         * lib/regex.h, lib/string.in.h: Do not use the identifier
27336         '__string', as it is effectively reserved by string.h on z/OS.
27338         c-strcase-tests, wcwidth-tests: depend on c-ctype
27339         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
27340         Add c-ctype.
27342 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27344         thread: port to z/OS
27345         * lib/glthread/thread.c, lib/glthread/thread.h:
27346         Rudimentary gl_thread support for z/OS.
27348         maint: port tests to z/OS errno behavior
27349         * tests/test-nonblocking-reader.h:
27350         * tests/test-nonblocking-writer.h:
27351         Accommodate z/OS errno code preferences. (I believe this should
27352         still be within spec; IBM is good at following the letter if not
27353         the spirit of such things.)
27355         maint: preprocessor changes to support z/OS
27356         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
27357         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
27358         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
27359         * tests/test-nonblocking-pipe.h:
27361         fclose, strstr-simple, wchar: port to z/OS
27362         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
27363         Changes to the Autoconf M4 code to support z/OS.  Note that
27364         fclose() is broken in a different way on z/OS than it is on other
27365         systems, thus the special-case in fclose.m4.
27367         iconv_open-utf-tests, iconv-tests: port to EBCDIC
27368         * tests/test-iconv-utf.c, tests/test-iconv.c:
27369         Added appropriately conditional #pragmas so that the test strings
27370         in test-iconv-utf.c are correctly interpreted in ASCII instead of
27371         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
27372         addressed in a more portable way by simply rewriting all the ASCII
27373         literal characters as octal escapes, but then you would lose the
27374         partial readability that the strings have now. Also, iconv_open()
27375         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
27377         c-strcase-tests, wcwidth-tests: port to EBCDIC
27378         * tests/test-c-strcasecmp.c: Include c-ctype.h.
27379         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
27380         * tests/test-wcwidth.c: Likewise.
27382 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27384         stdbool: don't require _Bool for C++
27385         Problem reported by David Seifert in:
27386         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
27387         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
27388         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
27389         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
27390         stricter about checking that bool and _Bool are compatible in C.
27392 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27394         getdelim: remove dependency on realloc-posix
27395         * lib/canonicalize-lgpl.c (alloc_failed)
27396         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
27397         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
27398         Use __set_errno where needed, for consistency.
27399         * lib/getdelim.c (alloc_failed): New function.
27400         (getdelim): Use it.
27402 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
27404         parse-datetime: add optional debug printing
27405         Print parsing information, warnings, and errors to stderr.
27406         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
27407         * lib/parse-datetime.y:
27408         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
27409         (PROGRESS*): Same as DEBUG, for progress reporting.
27410         (dbg_printf): Print message to stderr, with 'date' prefix.
27411         (struct parser_control): Add 'debug_*_seen' variables.
27412         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
27413         (debug_print_current_time, debug_print_relateive_time): Prints the
27414         current/relative date/time value of parser_control.
27415         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
27416         (to_year): Warn about 2-digit year parsing.
27417         (yylex):   Warn about unrecognized words.
27418         (get_effective_timezone): Returns current timezone in minutes.
27419         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
27420         clearly and unambigiously as possible.
27421         (debug_mktime_not_ok): Print detailed information about failed
27422         date/time values.
27423         (parse_datetime): Add DEBUG messages for failures, warnings. Add
27424         PROGRESS messages for status messages.
27425         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
27427 2016-08-06  Jim Meyering  <meyering@fb.com>
27429         tests/init.sh: exclude dash with bad "local" semantics
27430         * tests/init.sh (gl_shell_test_script_): Add a function to
27431         eliminate a shell like "dash" (unlike bash, zsh) that has
27432         surprising/risky "local var='...'" semantics.  Inspired by
27433         the problem and discussion in https://bugs.gnu.org/24116#11.
27435 2016-08-02  Ján Tomko  <jtomko@redhat.com>
27437         maint.mk: expand the prohibit_doubled_word regex
27438         This check has a static list of words that are checked for
27439         repetitions.  Expand it before running the perl script to
27440         avoid using expensive captures.  This decreases the cost
27441         for libvirt from 1.66s to 0.66s.
27442         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
27443         (sc_prohibit_doubled_word): Use it.
27445 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27447         useless-if-before-free: skip non-matching lines early
27448         * build-aux/useless-if-before-free: First match each line with the
27449         simple/quick /\bif\b/ and reject if there is no match. This often
27450         saves the cost of the much more involved regular expression.
27451         For libvirt, this decreases the cost from 1.44s to 1.02s.
27453 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27455         maint.mk: speed up sc_po_check
27456         sc_po_check would skip files based on their names, or on the
27457         existence of files with derived names. Rewrite it to use perl
27458         instead of shell to make the check faster.
27459         * top/maint.mk (perl_translatable_files_list_): Define.
27460         (sc_po_check): Use it.
27462 2016-07-30  Ján Tomko  <jtomko@redhat.com>
27464         maint.mk: speed up require_config_h_first
27465         Instead of spawning three processes per file,
27466         rewrite the check in perl and run it once for all the files.
27467         * top/maint.mk (perl_config_h_first_): Define.
27468         (sc_require_config_h_first): Use it in place of shell code.
27470 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27472         maint.mk: speed up sc_po_check
27473         sc_po_check would skip files based on their names, or on the
27474         existence of files with derived names. Rewrite it to use perl
27475         instead of shell to make the check faster.
27476         * top/maint.mk (perl_translatable_files_list_): Define.
27477         (sc_po_check): Use it.
27479 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27481         obstack: pacify GCC 6 with -Wnull-dereference
27482         Problem reported by Assaf Gordon in:
27483         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
27484         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
27485         Declare with __attribute_noreturn__.
27486         * lib/obstack.h (__attribute_noreturn__): New macro.
27488 2016-07-13  Eric Blake  <eblake@redhat.com>
27490         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
27491         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
27492         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
27494 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
27496         doc: mention glibc SSIZE_MAX buglet
27497         * doc/posix-headers/limits.texi (limits.h): Document the bug.
27499 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
27501         printf-posix: Fix mingw build
27502         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
27503         expression for detecting C symbol prefixes but forgot to qoute square
27504         brackets in the command line arguments for grep.  That way when
27505         building with mingw the condition was false although it ought to be
27506         true instead.  In particular scenarios this led to the following
27507         compile error:
27509             Cannot export rpl_printf: symbol not found
27510             Cannot export rpl_scanf: symbol not found
27511             collect2: error: ld returned 1 exit status
27513         Fix this by properly quoting square brackets.
27515 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27517         mktime: call tzset as per POSIX
27518         Problem reported by Ludovic Courtès in:
27519         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
27520         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
27521         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
27523 2016-06-26  Pádraig Brady  <P@draigBrady.com>
27525         fts: handle readdir() errors
27526         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
27527         but also upon error when it will also set errno.  Therefore
27528         flag the error case from readdir().  We treat the case where
27529         no items are read the same as if the dir can't be accessed,
27530         i.e. by setting fts_errno to FTS_DNR.
27532 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
27534         intprops: port better to GCC 7
27535         GCC 7 __builtin_add_overflow supports a new usage form, where the
27536         last argument is a null pointer, and which merely returns 1 if an
27537         overflow would occur.  This is a constant expression if all
27538         arguments are constants, and should generate faster code when code
27539         needs to be generated.
27540         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
27541         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27542         Use builtin operations if available.
27543         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
27544         operations are available, as it's almost surely faster.
27546 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27548         intprops-test: port to GCC 6
27549         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
27550         since the bug is not fixed in GCC 6.1.
27552 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
27554         xalloc-oversized: port to GCC 7; fewer warnings
27555         GCC 7 will have a better way to deal with integer overflow.
27556         Plus, fix a warnings problem reported by Tim Ruehsen in:
27557         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
27558         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
27559         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
27560         For GCC 5, use __xalloc_oversized if both args are constants,
27561         or if pedantic.
27563 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
27565         regex: port to Sun C
27566         Reported by Daiki Ueno.
27567         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
27568         __restrict, in prototype.  This fixes a problem I introduced in
27569         the 2016-02-19 merge from glibc.
27571 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27573         stdbool: Restore __bool_true_false_are_defined check
27574         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
27575         __bool_true_false_are_defined is still defined, even with C++11.
27577 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
27579         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
27580         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
27582 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27584         Use GCC_LINT, not lint
27585         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
27586         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
27587         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
27588         Document problem with lint and _Noreturn.
27589         * lib/diffseq.h (IF_LINT, IF_LINT2):
27590         * lib/fts.c (sccsid):
27591         * lib/getndelim2.c (IF_LINT):
27592         * lib/gl_anylinked_list2.h (gl_linked_iterator)
27593         (gl_linked_iterator_from_to):
27594         * lib/gl_anytree_list2.h (gl_tree_iterator)
27595         (gl_tree_iterator_from_to):
27596         * lib/gl_anytree_oset.h (gl_tree_iterator):
27597         * lib/gl_array_list.c (gl_array_iterator)
27598         (gl_array_iterator_from_to):
27599         * lib/gl_array_oset.c (gl_array_iterator):
27600         * lib/gl_carray_list.c (gl_carray_iterator)
27601         (gl_carray_iterator_from_to):
27602         * lib/idcache.c:
27603         * lib/inet_ntop.c (IF_LINT):
27604         * lib/regcomp.c (build_charclass_op, create_tree):
27605         * lib/regex_internal.c (re_acquire_state)
27606         (re_acquire_state_context):
27607         * lib/trigl.c (rcsid):
27608         * lib/trim.c (IF_LINT):
27609         * lib/vasnprintf.c (IF_LINT):
27610         * lib/verify.h (assume):
27611         Treat GCC_LINT like lint.
27613 2016-05-29  Bruno Haible  <bruno@clisp.org>
27615         secure_getenv: Port to many more platforms.
27616         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
27617         functions.
27618         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
27619         for non-BSD Unix platforms and for native Windows.
27620         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
27621         Prompted by a request from Nikos Mavrogiannopoulos.
27623 2016-05-27  Eric Blake  <eblake@redhat.com>
27625         canonicalize: Fix broken probe for realpath.
27626         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
27627         in logic introduced in 54615b95.
27629 2016-05-26  Eric Blake  <eblake@redhat.com>
27631         unsetenv: relax to LGPLv2+
27632         * modules/unsetenv (License): Match setenv license.
27634 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
27636         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
27637         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
27638         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
27639         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
27640         (commonarg, dirargs, dirs, infoarg, generate_ascii)
27641         (generate_html, generate_info, generate_tex, outdir)
27642         (source_extra, split, srcfile, texarg): Move above 'version'.
27643         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
27645 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27647         manywarnings: update for GCC 6.1
27648         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
27649         Add GCC 6.1 options that apply to C.
27650         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
27651         do not apply to C, are obsolescent, etc.
27653 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
27655         glob: size_t overflow checks
27656         * lib/glob.c (__has_builtin): New macro.
27657         (size_add_wrapv, glob_use_alloca): New static functions.
27658         (glob, glob_in_dir): Check for size_t overflow in several places,
27659         and fix some size_t checks that were not quite right.
27661         glob: don't assume INT_MAX < SIZE_MAX
27662         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
27663         latter is not portable to (probably theoretical) hosts where
27664         SIZE_MAX <= INT_MAX.
27666 2016-05-09  Bruno Haible  <bruno@clisp.org>
27668         Fix undefined behaviour in gettext.h.
27669         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
27670         pointer's value after the storage it points to has been freed.
27671         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
27672         Spotted by Coverity.
27674 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
27676         git-version-gen: avoid undefined shift
27677         Problem reported by Mosè Giordano in:
27678         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
27679         * build-aux/git-version-gen: Avoid undefined behavior if invoked
27680         with --prefix or --fallback but without a later argument.  While
27681         we're at it, omit unnecessary quotes.
27683 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
27685         glob: merge glibc changes into lib/glob.c
27686         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
27687         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
27688         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
27689           struct dirent [BZ #19779]
27690         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
27691           callback gl_readdir
27692         2015-10-20 Convert miscellaneous function definitions to prototype style
27693         2015-10-20 Convert 113 more function definitions to prototype style
27694           (files with assertions)
27695         2015-06-12 Fix getlogin_r namespace (bug 18527).
27696         2014-02-10 Use glibc_likely instead __builtin_expect.
27697         2013-10-20 When glob pattern contains a trailing slash match only
27698           directories. Fixes bug 10278.
27699         2013-09-04 glob: silence -Wattribute warnings
27700         2013-06-07 Avoid use of "register" as optimization hint.
27701         2012-09-25 Use size_t instead of int for internal variables in glob
27702           (bug 14621)
27703         2011-07-20 Check for overflows in expressions
27704         2011-05-28 Remove unused variable
27705         2011-05-22 Add a few more alloca size checks
27706         2010-03-27 Whitespace fixes
27707         2010-03-27 Fix one more issue with the glob patch
27708         2010-03-24 Fix glob with empty pattern
27709         2008-05-27 Remove useless more "if" tests before "free"
27710         * modules/glob (Depends-on): Add stdint.
27712 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27714         mktime: port to stricter signed overflow checking
27715         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
27716         (long_int): Require width for INT_MAX * 3 * (seconds per year),
27717         instead of merely for INT_MAX * 2.  In practice platforms that
27718         do the latter also do the former.
27719         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
27720         (shr): New static function, replacing SHR.  All uses changed.
27721         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
27722         and TIME_T_MAX.  All uses changed.
27723         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
27724         Use long_int, not time_t.
27725         (long_int_avg): New static function, replacing time_t_avg.
27726         All uses changed.  Round toward positive infinity, as that
27727         generates slightly better code.
27728         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
27729         by INT_ADD_WRAPV.
27730         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
27731         (convert_time): New static function.
27732         (ranged_convert): Use it
27733         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
27734         Use simpler test for loop exit.
27735         (__mktime_internal): Store negative of guessed offset, to simplify
27736         overflow checking.  Remove no-longer-needed test for small time_t
27737         overflows.
27739         mktime: speed up DEBUG_MKTIME benchmarks
27740         Call tzset just once, at the start, rather than for every test
27741         case.  This lets us measure the CPU cost of mktime as opposed to
27742         that of tzset.  This is relevant when TZ is not set and glibc is
27743         being used.  This speeds up tests by a factor of 40 on my Fedora
27744         23 x86-64 platform.
27745         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
27746         to call tzset and as a sanity check.  Later on, use localtime_r
27747         instead of localtime.
27749         mktime: resurrect DEBUG_MKTIME testing
27750         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
27751         Include <string.h>, for strcmp.
27753         mktime: simplify DEBUG_MKTIME
27754         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
27755         Simplify later usage accordingly.
27757         Port mktime_internal offset to unsigned time_t
27758         This avoids some assumptions about wraparound arithmetic on
27759         signed integer overflow.
27760         * lib/mktime-internal.h (mktime_offset_t): New type.
27761         (mktime_internal): Use it in decl.
27762         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
27764         * lib/mktime.c (__mktime_internal, localtime_offset):
27765         * lib/timegm.c (timegm): Use it.
27766         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
27767         (gl_FUNC_MKTIME): Require it.
27769 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27771         xstrtol: prohibit monstrosities like "1bB"
27772         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
27773         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
27774         "B" only if the first suffix needs a base.
27775         * tests/test-xstrtol.sh: Test this.
27777 2016-04-21  Pádraig Brady  <P@draigBrady.com>
27779         xstrtod: reinstate setting of *result upon ERANGE
27780         * lib/xstrtod.c (XSTRTOD): The user may decide to use
27781         the returned limits upon ERANGE, so allow and document that.
27783 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
27785         xstrtod: modify *result only if no errors
27786         * lib/xstrtod.c (XSTRTOD).
27788 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
27790         btowc: document problems in C locale
27791         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
27792         with mbrtowc.  See: http://bugs.gnu.org/23269#32
27794 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27796         mktime: improve integer overflow checking
27797         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
27798         (WRAPV): Remove; no longer needed.
27799         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
27800         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27801         Remove.  Use intprops.h defns instead.
27802         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
27803         Use bool for Boolean, for clarity.
27804         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
27805         detect integer overflow.
27806         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
27808         intprops: check two's complement assumption
27809         Suggested by Eric Blake in:
27810         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
27811         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
27812         short, int, long, and (if available) long long are two's complement.
27813         * modules/intprops (Depends-on): Add 'verify'.
27815         intprops, mktime, strtol: assume two's complement
27816         These macros were not portable to every conforming C11 ones'
27817         complement platform.  It's not worth the hassle of porting to some
27818         platforms that use ones' complement or signed magnitude, as such
27819         platforms are almost purely theoretical nowadays and porting even
27820         to some of them makes the code harder to review for little
27821         practical benefit.  Problem reported by Florian Weimer in:
27822         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
27823         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27824         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
27825         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
27826         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27827         (TYPE_SIGNED_MAGNITUDE):
27828         Remove.  All uses rewritten to assume two's complement, which is
27829         all we can reasonably test nowadays anyway.
27830         * top/maint.mk (_intprops_names): Remove the removed macros.
27832 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27834         stdint: port to strict C11 left shift
27835         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
27836         Pacify clang -Wshift-negative-value, which should be an issue only
27837         on clang setups where stdint.h does not conform to C11 or to C++11.
27838         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
27840 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
27842         mbrtowc: work around glibc bug#19932
27843         Fix mbrtowc so that it never returns -1 in the C locale,
27844         as this conflicts with a future version of POSIX
27845         http://austingroupbugs.net/view.php?id=663#c2738
27846         and causes problems with GNU grep: http://bugs.gnu.org/23234
27847         See glibc bug 19932:
27848         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
27849         * doc/posix-functions/mbrlen.texi (mbrlen):
27850         * doc/posix-functions/mbrtowc.texi (mbrtowc):
27851         Document the glibc bug.
27852         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
27853         Include hard-locale.h, locale.h.
27854         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
27855         if the bug is possible.
27856         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
27857         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
27858         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
27859         * modules/mbrtowc (Depends-on): Add hard-locale.
27860         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
27861         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
27862         * tests/test-mbrtowc5.sh: New file.
27864 2016-04-03  Pedro Alves  <palves@redhat.com>
27866         stdint: detect good enough pre-C++11 stdint.h in C++ mode
27867         When gnulib is configured in C++ mode for a system with a working C99
27868         implementation of stdint.h that predates C++11, gnulib ends up
27869         substituting stdint.h anyway.  This works on most targets, but on e.g.,
27870         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
27871         MinGW is LLP64.  Instead of trying to detect the right types, detect
27872         good-enough-pre-C++11 stdint.h and in such case define
27873         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
27874         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
27875         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
27876         conforms to C99.  If it does, check whether it hides symbols
27877         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
27878         does, define those macros in config.h.
27880 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27882         argp: merge changes from glibc
27883         Among other things, this should fix problems found by a Coverity
27884         scan and reported by Andrei Borzenkov:
27885         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
27886         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
27887         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
27888         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
27889         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
27890         * lib/argp.h:
27891         Merge changes from glibc.
27892         * tests/test-argp-2.sh: Adjust to match new behavior.
27894 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
27896         stddef: support configuring with g++
27897         Problem reported by Ángel González in:
27898         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
27899         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
27900         Do not define if _GCC_MAX_ALIGN_T is defined.
27902 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27904         test-framework-sh: minor cleanups
27905         * tests/init.sh (testdir_prefix_): Output a trailing newline,
27906         since strictly speaking POSIX requires this.
27907         (setup_): Do not use the variable 'fail', as that makes the
27908         trace output harder to read ('fail' is typically used by
27909         tests to mean the test failed).  Treat // portably.
27910         Check that new directory is not merely a sibling of the tmp dir.
27911         Avoid unnecessary invocation of tr.
27913         test-framework-sh: revert port to NetBSD 7.0
27914         It was a false alarm; I misinterpreted Assaf Gordon's report.
27915         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27916         Restore.
27917         (test_dir_): Adjust to mktempd_ change.
27918         (mktempd_): Restore 2nd arg.  Use -t again.
27919         (base_template_, template_, nx_): Resurrect old code.
27921         Port better to Alpine Linux
27922         Its diff implementation does not support -c, but does support -U3.
27923         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27924         * tests/init.sh (diff_opt_): New var.
27925         (compare_): Prefer diff -U3 to diff -c to plain diff.
27927 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
27929         test-framework-sh: port to NetBSD 7.0
27930         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27931         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27932         Remove.  All uses removed.
27933         (test_dir_): Adjust to mktempd_ change.
27934         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
27935         (base_template_, template_, nx_): Simplify by hardcoding.
27937 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27939         gitlog-to-changelog: suppress ignored chatter
27940         * build-aux/gitlog-to-changelog: Do not warn about skipping
27941         an SHA if it would have been ignored anyway.
27943 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
27945         setlocale: add "sv" to Windows language table
27946         * lib/setlocale.c (language_table) [W32]: Add "sv".
27947         Reported in <https://savannah.gnu.org/bugs/?44588>.
27949 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27951         sys_select: port to new Cygwin
27952         Problem reported by Ken Brown in:
27953         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
27954         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
27955         diagnostics.
27957 2016-03-17  Jim Meyering  <meyering@fb.com>
27959         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
27960         * tests/test-userspec.c (main): Remove unnecessary braces and fix
27961         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
27962           test-userspec.c:176:9: error: statement is indented as if it were \
27963             guarded by... [-Werror=misleading-indentation]
27964                    {
27965                    ^
27966           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
27967                  if (!diag && !T[i].result)
27968                  ^~
27970 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27972         time_rz: port to clang -Wunused-const-variable
27973         * lib/time_rz.c (TZ): Remove.  All uses removed.
27975         std-gnu11: improve clang support
27976         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
27977         2016-03-15 Also try clang
27978         2016-03-15 Port C11 and C++11 testing to clang
27980         select: port more to Intel 2016.1.150 compiler
27981         Problem reported by Balázs Hajgató in:
27982         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
27983         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
27985 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27987         select: try to port to 2016.1.150 compiler
27988         Problem reported by Balázs Hajgató in:
27989         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
27990         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
27991         POSIX specifies 'restrict'.
27993 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
27995         localename-tests: memory allocation fixes
27996         * tests/test-localename.c (test_locale_name)
27997         (test_locale_name_thread): Don't call freelocale on a locale
27998         that was the base of a successful newlocale, as that
27999         results in a double free.  Problem reported by Assaf Gordon.
28000         (test_locale_name_thread): Free saved names after use, to pacify
28001         gcc -fsanitize=address.
28003 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
28005         intprops: make .h file license match module
28006         * lib/intprops.h: Change the license wording to match glibc format.
28007         This is what is in modules/intprops anyway.  See:
28008         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
28010 2016-03-08  Eric Blake  <eblake@redhat.com>
28012         acl: fix missing return on Cygwin
28013         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
28014         fall off end of function. Fixes http://bugs.gnu.org/22949
28016 2016-03-05  Bruno Haible  <bruno@clisp.org>
28018         extern-inline: port to PGI CC
28019         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
28020         keyword 'inline'.
28021         Reported by Adam James Stewart in:
28022         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
28024 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28026         signbit: port back to pre-C++11 GCC
28027         * lib/math.in.h (signbit): Do previous change only if
28028         __cplusplus < 201103.  See Jonathan Wakely in:
28029         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
28031 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
28033         mountlist: recognize autofs-mounted remote file systems, too
28034         Originally reported at: https://bugzilla.redhat.com/1309247
28035         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
28036         "-hosts" because it is used by autofs to mount remote file systems.
28038 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
28040         signbit: port to C++ with GCC 6
28041         * lib/math.in.h (signbit) [__cplusplus]:
28042         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
28043         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
28045         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
28047         regex: make it closer to libc
28048         Make Idx a signed type, rather than possibly unsigned.
28049         The unsignedness was not really buying us anything, since the code
28050         overflows for other reasons before getting to PTRDIFF_MAX.  Making
28051         it signed allows us to use -1 and -2 with abandon, like libc does,
28052         thus lessening the number of differences between gnulib and libc.
28053         Also, it should help avoid gratuitous warnings like the one
28054         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
28055         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
28058         regex: merge patches from libc
28060         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
28061         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
28062         Convert miscellaneous function definitions to prototype style.
28063         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
28064         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
28065         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
28066         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
28067         (re_search_internal):
28068         Convert to prototype-style function definition.
28069         Use internal_function for internal functions.
28071 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
28073         stdalign: port to older HP and IBM cc
28074         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
28075         C compilers, by checking their version numbers.  These version
28076         numbers appear in MariaDB and in Qt code that dates way back and
28077         that conditiionally uses the 'aligned' attribute.
28079 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
28081         stdalign: port to clang 3.7.0
28082         Problem reported by Herbert J. Skuhra in:
28083         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
28084         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
28085         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
28086         https://llvm.org/bugs/show_bug.cgi?id=26547
28088 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
28090         readdir_r: now obsolescent
28091         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
28092         * lib/mountlist.c (read_file_system_list): Add a FIXME.
28094 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
28096         misc: port better to gcc -fsanitize=address
28097         Without these patches, ./configure CFLAGS='-fsanitize=address'
28098         would compute incorrect values.  This patch fixes some (but not all)
28099         test failures with recent glibc, with this configuration.
28100         * m4/acl.m4 (gl_ACL_GET_FILE):
28101         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
28102         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
28103         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
28104         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
28105         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
28106         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
28107         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
28108         * m4/getline.m4 (gl_FUNC_GETLINE):
28109         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
28110         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
28111         * m4/regex.m4 (gl_REGEX):
28112         * m4/strndup.m4 (gl_FUNC_STRNDUP):
28113         * tests/test-calloc-gnu.c (main):
28114         * tests/test-duplocale.c (main):
28115         * tests/test-getgroups.c (main):
28116         * tests/test-getline.c (main):
28117         * tests/test-inttostr.c (main):
28118         * tests/test-localename.c (test_locale_name)
28119         (test_locale_name_thread, test_locale_name_environ)
28120         (test_locale_name_default):
28121         * tests/test-regex.c (main):
28122         * tests/test-setlocale1.c (main):
28123         * tests/test-stat.h (test_stat_func):
28124         Free heap-allocated storage before exiting.
28125         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
28126         Don't match *_foo symbols inserted by AddressSanitizer.
28127         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
28129 2016-02-02  Jim Meyering  <meyering@fb.com>
28131         verify-tests: also remove stray test-verify.Tpo
28132         * modules/verify-tests (Makefile.am): Arrange for "make clean"
28133         to remove the test-verify.Tpo file that is left behind by
28134         the automake-generated rule upon compilation failure.
28135         Otherwise, that .Tpo file would cause a failed "make distcheck"
28136         at least for grep.
28138 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
28140         std-gnu11: new module
28141         This makes it easier for applications to prefer C11 and C++11
28142         to older variants, when compiling C and C++ code.
28143         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
28144         a nontrivial chunk of GPLed Autoconf source code.
28145         * COPYING: Mention the m4/*.m4 copyright situation.
28146         * MODULES.html.sh (std-gnu11): New module.
28147         * m4/std-gnu11.m4, modules/std-gnu11: New files.
28149 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28151         get-permissions, strftime: fix grammar in comments
28152         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
28153         some grammar fixes Alan Mackenzie made to GNU Emacs.
28155 2016-01-25  Daiki Ueno  <ueno@gnu.org>
28157         gettext: mark as obsolete
28158         Suggested by Paul Eggert in:
28159         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
28160         * modules/gettext (Status): Mark as obsolete.
28161         (Notice): Suggest to use 'gettext-h' instead.
28162         * modules/gettext-h (Description): Suggest GNU gettext, instead of
28163         the 'gettext' module.
28165 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28167         gnulib-tool: don't give up on ln -s so easily
28168         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
28169         because an earlier one failed.  The targets could be on different
28170         file systems.  Problem reported by KO Myung-Hun in:
28171         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
28173         closedir: fix OS/2-related typos
28174         Problem reported by KO Myung-Hun in:
28175         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
28176         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
28177         in the last couple of changes.
28179 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
28181         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
28182         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
28183         copying a directory.
28185 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28187         regex: treat [x] as x if x is a unibyte encoding error
28188         Problem reported by Aharon Robbins in:
28189         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
28190         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
28191         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
28193         closedir, dirfd, opendir: port to OpenSolaris 5.10
28194         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
28195         * m4/dirfd.m4 (gl_FUNC_DIRFD):
28196         * m4/opendir.m4 (gl_FUNC_OPENDIR):
28197         Don't use ${word##pat} substitution, as it doesn't work in
28198         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
28199         http://bugs.gnu.org/22443#11
28201 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28203         bootstrap: use American spelling
28204         * build-aux/bootstrap: Honor American spelling.
28206 2016-01-22  Karl Berry  <karl@freefriends.org>
28208         * doc/posix-functions/localtime.texi,
28209         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
28211 2016-01-21  Bruno Haible  <bruno@clisp.org>
28213         hash-pjw-bare: fix comment
28214         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
28216         wcwidth: Replace also on OpenBSD 5.8
28217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
28218         * doc/posix-functions/wcwidth.texi: Update.
28220 2016-01-20  Pádraig Brady  <P@draigBrady.com>
28222         gnu-web-doc-update: fix addition of new files
28223         If there were already added (emnpty) dirs,
28224         then cvs aborts the add with the message:
28225           cvs [add aborted]: there is a version in <./dirname> already
28226         * build-aux/gnu-web-doc-update: Add directories separately
28227         to the addition of files, to avoid the above issue
28228         impacting the addition of files.
28230 2016-01-19  Daiki Ueno  <ueno@gnu.org>
28232         utimens-tests: avoid pulling gettext .m4 files
28233         Although this is not the right fix to the original problem:
28234         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
28235         it makes it possible again for consumer projects to use arbitrary
28236         version of gettext, through the steps described at:
28237         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
28238         See here for details:
28239         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
28240         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
28241         'gettext'.
28242         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
28243         'gettext'.
28245 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28247         regex: pacify static checkers
28248         Problem and draft fix reported by Aharon Robbins in:
28249         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28250         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
28251         Clear memory to pacify static checkers.
28253         regex: fix [ diagnostic
28254         Problem and fix reported by Aharon Robbins in:
28255         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28256         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
28258         regex: fix memory leaks
28259         Problem and draft fix reported by Aharon Robbins in:
28260         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28261         * lib/regcomp.c (build_range_exp, build_charclass_op)
28262         * lib/regex_internal.c (re_dfa_add_node):
28263         Fix memory leak on failure.
28265 2016-01-18  Pádraig Brady  <P@draigBrady.com>
28267         fts: don't unconditionally use leaf optimization for NFS
28268         NFS st_nlink are not accurate on all implementations,
28269         leading to aborts() if that assumption is made.
28270         See <https://bugzilla.redhat.com/1299169>
28271         * lib/fts.c (leaf_optimization_applies): Remove NFS from
28272         the white list, and document the issue.
28274 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28275             KO Myung-Hun  <komh@chollian.net>
28277         gnulib-tool: don't assume ln -s works
28278         * gnulib-tool (func_ln_s): New function.
28279         (func_ln): Use it.
28281 2016-01-15  KO Myung-Hun  <komh@chollian.net>
28283         utimes: detect utimes() correctly on OS/2 kLIBC
28284         utimes() of OS/2 kLIBC has some limitations.
28285         1. OS/2 itself supports a file date since 1980 year in local time.
28286         2. OS/2 itself supports only even seconds for a file time.
28287         3. utimes() of OS/2 kLIBC does not work on an opened file.
28288         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
28289         * doc/posix-functions/utimes.texi: Document the above limitations of
28290         utimes() on OS/2 kLIBC.
28292 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28293             KO Myung-Hun  <komh@chollian.net>
28295         openat_proc_name: port to OS/2 kLIBC
28296         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
28297         instead of /proc/self/fd.
28298         * lib/openat-proc.c (openat_proc_name):
28299         Don't assume file name length is less than INT_MAX.
28300         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
28302 2016-01-14  KO Myung-Hun  <komh@chollian.net>
28304         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
28305         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
28306         definitions of intptr_t and uintptr_t (which use int and unsigned)
28307         to avoid clashes with declarations of system functions like sbrk.
28308         * lib/stdint.in.h (intptr_t, uintptr_t): Check
28309         _INTPTR_T_DECLARED before defining them.
28311         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
28312         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
28313         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
28314         Declare on kLIBC.
28315         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
28316         fd associated with dirp.
28317         (_gl_register_dirp_fd): New. Register fd associated with dirp to
28318         dirp_fd_list.
28319         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
28320         (dirfd): Implemented for kLIBC.
28321         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
28322         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
28323         succeeds.
28324         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
28325         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28326         (REPLACE_DIRFD): Define to 1 if replaced.
28327         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
28328         * modules/closedir (Depends-on): Add dirfd.
28329         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
28330         condition.
28331         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
28332         * modules/opendir (Depends-on): Add dirfd.
28334         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
28335         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
28336         * lib/dup.c (dup_nothrow): New.
28337         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
28338         (klibc_dup2): New.
28339         * lib/fcntl.c (klibc_fcntl): New.
28340         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
28341         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
28342         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
28343         fd.
28345         pipe_filter_ii_execute: port to OS/2 kLIBC
28346         Pipes on kLIBC do not support O_NONBLOCK like Win32.
28347         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
28348         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
28349         Reuse Win32 code on OS/2 kLIBC.
28350         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
28351         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
28353         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
28354         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
28355         static inline function.  The implementation of wcwidth in wcwidth.c
28356         causes a "conflicting types" error.
28357         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
28359         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
28360         spawn() on OS/2 kLIBC is not silly like one on Windows
28361         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
28362         empty string on OS/2 kLIBC.
28364         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
28365         On OS/2 kLIBC, select() works only on sockets.
28366         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
28368         binary-io: don't put fd in binary mode if it is a console on EMX
28369         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
28370         a console on EMX.
28372 2016-01-15  Pádraig Brady  <P@draigBrady.com>
28374         doc: mention unfixed issues with unsupported localtime() values
28375         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
28376         returns nonsense for localtime(2^56).
28377         * doc/posix-functions/localtime_r.texi: Likewise.
28379 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28381         doc: mention setlocale() issues on OpenBSD
28382         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
28383         never fails, and the need to check categories individually.
28385 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28387         sig2str: list all signals on FreeBSD >= 7
28388         FreeBSD >= 7 is contravening POSIX by not defining NSIG
28389         to the maximal statically defined signal value.
28390         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
28391         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
28392         where available, even when NSIG is defined.
28394 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
28396         acl-permissions: port to USE_ACL==0 platforms
28397         I ran into this problem when building bleeding-edge GNU Emacs
28398         with gcc -fsanitize=address on Fedora 23.  On this platform
28399         the ACL library does not pass the 'configure' test and Emacs
28400         then does not build due in part to what appear to be typos in the
28401         ACL part of Gnulib.
28402         * lib/acl-internal.c (free_permission_context):
28403         * lib/acl-internal.h (struct permission_context):
28404         Test whether USE_ACL is nonzero, not whether it is defined.
28406 2016-01-12  Martin Sebor  <msebor@redhat.com>
28408         mktime: rename macro to avoid glibc clash
28409         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
28410         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
28412 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
28414         Port "$@" to OpenIndiana ksh93
28415         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
28416         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
28417         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
28418         bug long-dead shells, so remove the workaround.
28419         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
28420         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28421         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
28422         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
28423         Use "$@" instead of ${1+"$@"}.
28425         Port Universal Time settings to strict POSIX
28426         * build-aux/announce-gen, build-aux/bootstrap:
28427         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
28428         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28429         * build-aux/gnupload, build-aux/mkinstalldirs:
28430         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
28431         * build-aux/update-copyright, build-aux/useless-if-before-free:
28432         * build-aux/vc-list-files, tests/test-strftime.c:
28433         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
28434         but POSIX says the behavior of TZ="UTC" is undefined.
28436 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
28438         msvc-inval: fix problem with unset shell var
28439         Problem reported by Karl Berry in:
28440         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
28441         * modules/msvc-inval (Depends-on):
28442         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
28443         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
28445 2016-01-01  Pádraig Brady  <P@draigBrady.com>
28447         tests: for compare_(), use cmp -s where available
28448         * tests/init.sh (compare_): Only fall back to cmp without
28449         the POSIX defined -s option, where this is not available.
28451 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28453         version-etc: new year
28454         * build-aux/gendocs.sh (version):
28455         * doc/gendocs_template:
28456         * doc/gendocs_template_min:
28457         * doc/gnulib.texi:
28458         * lib/version-etc.c (COPYRIGHT_YEAR):
28459         Update copyright dates by hand in templates and the like.
28460         * all files: Run 'make update-copyright'.
28462 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28464         human: fix output buffer overrun by 1
28465         * lib/human.c (human_readable): Fix off-by-one typo in buffer
28466         calculation that could lead to a one-byte buffer overrun.
28468 2015-12-28  Daiki Ueno  <ueno@gnu.org>
28470         maint: fix operator precedence in mbrtowc test
28471         This is a fix for test breakage introduced by commit 45228d96; the
28472         equality expression must be parenthesized when negated with '!',
28473         otherwise we always get:
28475           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
28477         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
28478         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28480 2015-12-23  James Youngman  <jay@gnu.org>
28482         regexprops-generic: update from regex.h
28483         * doc/regexprops-generic.texi: update by running the regexprops binary
28484         from findutils (the command line is 'regexprops "Regular Expressions"
28485         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
28486         gnulib with GNU grep had made this document out-of-date.
28488 2015-12-23  Pádraig Brady  <P@draigBrady.com>
28490         strftime-tests: avoid false failure on OS X
28491         * tests/test-strftime.c (struct localtime_rz_test): Add an
28492         ahistorical member which is used to warn rather than fail
28493         when tm_isdst isn't set for such entries.  This is the case for
28494         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
28496 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
28498         fts: ensure leaf optimization is used for NFS
28499         NFS provides usable dirent.d_type but not necessarily for all entries
28500         of large directories.  See <https://bugzilla.redhat.com/1252549>
28501         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
28503 2015-12-20  Pádraig Brady  <P@draigBrady.com>
28505         fts: enable leaf optimization for XFS
28506         XFS provides usable dirent.d_type only for DT_DIR,
28507         but the noleaf optimization still applies.
28508         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
28510 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28512         intprops: comment fix
28513         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
28514         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
28516         intprops-test: work around GCC bug 68971
28517         Problem reported by Pádraig Brady in:
28518         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
28519         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
28520         (main): Add a case that better tests 64-bit long in this area.
28522 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
28524         gnulib-tool: allow multiple --local-dir usage
28525         * gnulib-tool: Use --local-dir to construct compound
28526         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
28527         PATH_SEPARATOR early.
28528         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
28529         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
28530         func_determine_path_separator because that needs to be detected
28531         earlier now.
28532         (func_determine_path_separator): New function.
28533         (func_path_foreach, func_path_foreach_inner): New functions.
28534         (func_path_prepend, func_path_append): Likewise.
28535         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
28536         (func_lookup_file, func_all_modules): Use new functions to work
28537         with local_gnulib_path.
28538         (func_modules_in_dir, func_exists_module): New callbacks for
28539         func_path_foreach.
28540         (func_exists_module, func_get_tests_module): Likewise.
28541         (func_is_local_file, func_should_symlink): New helper methods.
28542         (func_add_file, func_update_file): Use new func_should_symlink
28543         instead, DRY.
28544         (func_reconstruct_cached_local_gnulib_path): New helper.
28545         (func_reconstruct_cached_dir): New callback.
28546         (func_import): The cached_local_gnulib_dir renamed to
28547         cached_local_gnulib_path similarly to local_gnulib_dir.
28548         Use new func_reconstruct_cached_local_gnulib_path.
28549         (func_count_relative_local_gnulib_path): New sub-method.
28550         (func_create_testdir): Use func_should_symlink, DRY.
28551         (func_create_megatestdir): Use new functions to work with
28552         local_gnulib_path correctly.
28553         (func_append_local_dir): New helper.
28555 2015-12-08  Pádraig Brady  <P@draigBrady.com>
28557         fix freadptr to work with ungetc on all uClibc configs
28558         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
28559         where GNU coreutils cut(1) generates invalid output on uClibc
28560         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
28561         * lib/freadptr.c (freadptr): Return NULL if there are
28562         ungotten chars.  In this case freadseek() will iterate
28563         again to process the ungotten character.
28565 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
28567         xalloc-oversized: improve performance with GCC 5
28568         * lib/xalloc-oversized.h (xalloc_oversized):
28569         Improve performance with GCC 5 by using __builtin_mul_overflow.
28571 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28573         intprops: new public macro EXPR_SIGNED
28574         Emacs can use this macro, so make it public.
28575         * doc/intprops.texi (Arithmetic Type Properties): Rename from
28576         'Integer Type Determination', since some of these macros apply
28577         to non-integer types.  Clarify what kinds of constant expressions
28578         these macros return.  Say when the arguments can be non-integers.
28579         Mention newly published macro EXPR_SIGNED.
28580         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
28581         make it public.  All uses changed.
28583         intprops: fix typo in clang port
28584         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
28585         '__builtin_add_overflow' that is not caught by compiler.
28587 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28589         test-timespec: fix typo in previous change
28590         * tests/test-timespec.c (main): Fix typo that reduced test quality.
28592         timespec-sub: fix overflow bug; add tests
28593         * lib/timespec-add.c (timespec_add):
28594         * lib/timespec-sub.c (timespec_sub):
28595         Work even if time_t is narrower than int (a theoretical
28596         possibility).  Redo code for a bit more clarity.
28597         * lib/timespec-sub.c (timespec_sub):
28598         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
28599         * modules/timespec-tests, tests/test-timespec.c: New files.
28601         intprops-test: suppress -Woverlength-strings
28602         Problem reported by Pádraig Brady in:
28603         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
28604         It is not worth the hassle to port this test to compilers that
28605         cannot handle long strings in diagnostics.
28606         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
28608 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28610         quotearg: add quotearg_n_style_colon()
28611         This quotes with default options of the specified style,
28612         but with quoting enabled for instances of ':'.
28613         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
28614         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
28616 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28618         intprops: revise _WRAPV macros, revert _OVERFLOW
28619         The incompatible changes to the _OVERFLOW macros were too much of
28620         a hassle in practice, so revert them.  Instead, change the new
28621         _WRAPV macros to make them closer in behavior to GCC 5's new
28622         builtin_add_overflow etc. functions.  No other software was using
28623         these newly-added macros yet, so this should be OK.
28624         * NEWS: Revert previous change, since the incompatible change
28625         has been reverted, and nobody used the incompatible version.
28626         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
28627         Document revised behavior.
28628         (Integer Range Overflow): Adjust example to match above revisions.
28629         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
28630         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
28631         these can be used in integer constant expressions again.
28632         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
28633         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
28634         needed.
28635         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28636         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28637         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
28638         Remove, as they did not seem that useful.
28639         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
28640         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
28641         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
28642         Support new semantics.
28643         (__has_builtin): New macro, if not alreay defined.
28644         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
28645         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28646         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28647         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28648         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
28649         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
28650         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
28651         New macros.
28652         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
28654 2015-11-03  Jim Meyering  <meyering@fb.com>
28656         intprops: add parentheses for when OP has precedence lower than "-"
28657         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
28658         "a OP b" must be parenthesized for when OP is like "<<", which has
28659         lower precedence than the following "-". Reported by Pádraig Brady.
28661 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28663         quotearg: constify get_quoting_style parameters
28664         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
28665         * lib/quotearg.c (get_quoting_style): Likewise.
28667 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28669         quotearg: add support for $'' shell escaping
28670         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
28671         items and descriptions.
28672         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
28673         above types by quoting like "shell", but using $'...' syntax
28674         for non printable characters, which should provide unambiguous
28675         printable output for any input.
28676         * tests/test-quotearg-simple.c: Update accordingly.
28678 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28680         maint: use a more standard return from mbrtowc test
28681         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
28682         from the test program as this is non standard and often
28683         indicates an unhandled case in the test program.
28684         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28686 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28688         intprops: add WRAPV and const flavors for GCC 5
28689         If available, use GCC 5's builtin functions for efficient integer
28690         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
28691         and safely compute the low-order bits of the correct answer.
28692         A downside of these efficient functions is that they cannot be
28693         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
28694         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
28695         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
28696         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
28697         Document the changes.
28698         (Wraparound Arithmetic): New section.
28699         (Integer Range Overflow):
28700         Put this subsection last, since it's least useful.
28701         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
28702         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
28703         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
28704         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28705         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28706         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
28707         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
28708         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
28709         New macros.
28710         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
28711         Generate calls to GCC builtins if available, for speed.
28712         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28713         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28714         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28715         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
28716         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
28717         (CHECK_QUOTIENT, CHECK_REMAINDER):
28718         Test WRAPV and CONST flavors (when available) too.
28720 2015-10-30  Pádraig Brady  <P@draigBrady.com>
28722         doc: use extended timezone format in iso-8601 example
28723         * doc/parse-datetime.texi: The standard states that extended format
28724         is to be used consistently throughout.
28725         Note that lib/parse-datetime.y can handle either tz format.
28727 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
28729         stdalign: port to Sun C 5.9
28730         * doc/posix-headers/stdalign.texi: Document this.
28731         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
28732         __attribute__ ((__aligned__ (...))).
28734 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
28736         time_rz: fix comment about tzalloc
28737         * lib/time_rz.c (tzalloc): Fix comment.
28739 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28741         stdalign: work around pre-4.9 GCC x86 bug
28742         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
28743         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
28744         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
28746 2015-10-18  Pádraig Brady  <P@draigBrady.com>
28748         maint.mk: sc_tight_scope: remove extraneous expressions
28749         * top/maint.mk (tight_scope): This is not really required since
28750         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
28751         that matches all nm entries.  But it does remove extraneous entries
28752         that may be confusing or cause issue in future maintenance.
28754 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28756         time_rz: return NULL if localtime_r fails
28757         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
28758         while still attempting to pacify bleeding-edge GCC.
28760         fts: port to C11 alignof
28761         * doc/posix-headers/stdalign.texi (stdalign.h):
28762         Document the C11 restriction.
28763         * lib/fts.c: Include stddef.h, for max_align_t.
28764         (fts_alloc): Align using max_align_t, not FTSENT.
28765         * modules/fts (Depends-on): Add stddef.
28767 2015-10-18  Jim Meyering  <meyering@fb.com>
28769         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
28770         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
28771         would see this:
28773         lib/time_rz.c: In function 'localtime_rz':
28774         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
28775           [-Werror=nonnull]
28776                    if (tm && !save_abbr (tz, tm))
28777                        ^
28779         That was complaining about "tm" because it is a parameter that was
28780         declared with the __nonnull__ attribute.
28781         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
28782         result of localtime_r.
28784 2015-10-17  Jim Meyering  <meyering@fb.com>
28786         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
28787         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
28788         name-extraction regexp mistakenly used \S+, and would mistakenly
28789         extract "*F" from "extern int *F()" rather than the desired "F".
28790         Use \w+ instead.
28792 2015-10-17  Jim Meyering  <meyering@fb.com>
28794         maint.mk: sc_tight_scope: factor and support OS X
28795         * top/maint.mk (_gl_tight_scope): Address three issues:
28796         - factor out four instances of code that wraps a string in "^...$"
28797         - allow nm-reported symbol names to have an optional leading "_"
28798         - add "main" to the list of ignored variable names, because on os x,
28799         "main" has nm-reported type "S" in the variable-checking section.
28801 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
28803         safe-alloc-tests: fix typo in license header
28804         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
28806 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
28808         copy-file: fix mem leak in error case
28809         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
28810         upon error opening or performing I/O to the src and dest files.
28812 2015-10-15  Mike Frysinger  <vapier@chromium.org>
28814         localename: control langinfo.h inclusion
28815         This header is only used to work around buggy behavior in old
28816         versions of glibc, so do not include it all the time.  Otherwise
28817         we get build failures on systems that do not provide langinfo.h.
28818         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
28819         in the source later on.
28820         The patch was originally submitted to gettext as:
28821         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
28823 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28825         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
28826         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
28827         * lib/u64.c, lib/unistd.c:
28828         Append 'typedef int dummy;', to pacify compilers that are picky
28829         about empty translation units.
28831 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
28833         accept4-tests: fix to avoid non portable flags
28834         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
28835         as they are the only documented ones, and passing others may trigger
28836         EINVAL (seen on FreeBSD 10.1-RELEASE).
28837         * doc/glibc-functions/accept4.texi: Mention that we don't provide
28838         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
28840 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
28842         gnulib-tool: fix tests of 'extensions' module
28843         This complements f8fe25fab60e3c687a124 commit.
28844         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
28845         emitting of initial gl_EARLY macros.
28846         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
28847         replaced with func_emit_pre_early_macros call.
28849 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28851         unicase/locale-language: fix typo in utf-8 cookie
28852         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
28853         Problem reported by Zbigniew Jędrzejewski-Szmek.
28855 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28857         xalloc: do not worry about GCC 5 warning on 32 bit
28858         * lib/xalloc.h: Revert previous change.
28859         I found a better way to fix this in coreutils.
28861 2015-10-02  Pádraig Brady  <P@draigBrady.com>
28863         xalloc: avoid GCC 5.1 warning on 32 bit
28864         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
28865         xalloc_oversized(), which was seen to give this warning
28866         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
28867         when simplifying conditional".
28869 2015-10-02  Daiki Ueno  <ueno@gnu.org>
28871         uniname/uniname-tests: avoid compiler warnings
28872         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
28873         unused local variables.
28874         (test_alias_lookup): Fix alias name display in failure cases.
28876 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28878         c-ctype: do not worry about EBCDIC + char signed
28879         Drop support for EBCDIC with char being signed, as this breaks too
28880         many programs.  Problem reported by Ben Pfaff in:
28881         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
28882         * lib/c-ctype.h: Verify that we are not using EBCDIC with
28883         char being signed.
28884         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
28885         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
28886         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
28887         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
28888         * tests/test-c-ctype.c (test_all):
28889         Simplify by assuming standard char values cannot be negative.
28890         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
28892 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28894         c-ctype: port better to z/OS EBCDIC
28895         Problems reported by Daniel Richard G. in:
28896         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
28897         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
28898         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
28899         (_C_CTYPE_OTHER_CNTRL): New macro.
28900         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
28901         from SCHAR_MIN, as the functions are defined only from values
28902         promoted from char or from unsigned char, not necessarily from
28903         signed char.
28905 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
28907         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
28909         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
28910         and ARFLAGS variables.  Doing this unconditionally could break
28911         later Automake's AM_PROG_AR invocation (at least it's
28912         AC_CHECK_TOOLS call to detect correct 'ar' binary).
28914         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
28915         Amsterdam Compiler Kit, so make the previous code to have effects
28916         only on ACK, and rather automatically call the Automake's
28917         AM_PROG_AR as soon as possible to decide other cases.
28919         References:
28920         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
28922         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
28923         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
28924         is possible, keep setting AR/ARFLAGS to reasonable defaults.
28925         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
28926         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
28927         'extensions' module is used.
28928         * modules/extensions (configure.ac-early): Remove as this snippet
28929         is added to gnulib-comp.m4 earlier anyway.
28931 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28933         sockets: MS Windows initalization fixes
28934         Problem reported by Test User in:
28935         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
28936         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
28937         Correct the endianness.
28938         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
28939         number mismatch, not just on <.  Cleanup before any such failure.
28941 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
28943         gc: fix detection of installed libgcrypt version
28944         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
28945         at least as recent as 1.4.4.  The previously used macro is not
28946         available now, since modules were removed in version 1.6.0.
28948 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28950         c-ctype: rewrite to use inline functions
28951         This simplifies maintenance, since it makes for just one
28952         implementation of each function, letting the compiler have the fun
28953         of optimization.  In practice this works well nowadays with GCC.
28954         E.g., c_isascii might need only three instructions even though the
28955         source code lists every ASCII character individually in a large
28956         switch statement.
28957         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
28958         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
28959         * NEWS: Document the API change.
28960         * lib/c-ctype.c: Drastically simplify, since this now just expands
28961         inline functions.
28962         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28963         (C_CTYPE_INLINE): New macro.
28964         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
28965         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
28966         Verify that either ASCII or EBCDIC is being used.
28967         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
28968         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
28969         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
28970         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
28971         New private macros.
28972         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
28973         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
28974         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
28975         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
28976         (c_tolower, c_toupper): When converting, return the unsigned char,
28977         as that is what z/OS does.
28978         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
28979         of some c-ctype.h macros.
28980         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
28981         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
28982         c_tolower promotion to be compatible with z/OS.
28984 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
28986         gitlog-to-changelog: trim only trailing whitespaces
28987         This is fix for --format regression introduced by commit
28988         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
28989         doubled %n string) had no effect anymore.  This format
28990         specification has been used e.g. by GNU paxuitils (commit
28991         edfd8bcc3).
28993         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
28994         newlines in commmit messages.
28996 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28998         Test that c_iscntrl agrees with iscntrl, etc.
28999         Suggested by Daniel Richard G. in:
29000         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
29001         * modules/c-ctype-tests (Depends-on): Add ctype.
29002         * tests/test-c-ctype.c: Include <ctype.h>.
29003         (NCHARS): New constant.
29004         (test_agree_with_C_locale): New function.
29005         (main): Use it.
29006         (test_all): Use named constants.
29008         c-ctype: improve c_isascii testing
29009         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
29010         Add a test to count the number of ASCII characters.
29012 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29014         savewd: remove SAVEWD_CHDIR_READABLE
29015         It was problematic in the light of file systems that ignore umask.
29016         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
29017         * NEWS: Document this.
29018         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
29019         successful, -1 (setting errno) on failure, rather than something
29020         more complicated than that.
29021         * lib/mkdir-p.c (make_dir_parents):
29022         Do not use SAVEWD_CHDIR_READABLE.
29023         * lib/savewd.c (savewd_chdir):
29024         Remove support for SAVEWD_CHDIR_READABLE.
29025         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
29027         c-ctype: port better to EBCDIC
29028         Problems reported by Daniel Richard G. in
29029         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
29030         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
29031         Include "verify.h".
29032         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
29033         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
29034         Define as enum constants with value false, if not defined, so that
29035         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
29036         code more portable, as both branches of the 'if' are compiled on
29037         all platforms.
29038         (C_CTYPE_EBCDIC): New constant.
29039         Verify that the character set is either ASCII or EBCDIC.
29040         (to_char): New static function.
29041         (c_isascii, c_iscntrl):
29042         Assume standard control-character assignments for EBCDIC.
29043         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
29044         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
29045         Rewrite to use 'if' instead of 'ifdef'.
29046         Use to_char if non-ASCII.  Prefer <= to >=.
29047         Prefer true and false to 1 and 0, for booleans.
29048         (c_iscntrl): Use 'if', not 'ifdef'.
29049         * modules/c-ctype (Depends-on): Add verify.
29050         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
29051         (to_char): New function.
29052         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
29054 2015-09-21  Pádraig Brady  <P@draigBrady.com>
29056         nanosleep: fix return code for interrupted replacement
29057         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
29058         that we return -1 in the case the call is interrupted by a signal,
29059         rather than the current value of 1.
29060         Diagnosed and tested by Daniel Richard G.
29062 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
29064         Diagnose ERE '()|\1'
29065         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
29066         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
29067         track of the set of previously-completed subexpressions available
29068         before the first alternative, and restore this set just before
29069         parsing each subsequent alternative.  This lets us diagnose the
29070         invalid back-reference in the ERE '()|\1'.
29072         regex: merge patches from libc
29074         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
29075         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
29076         * lib/regex_internal.h:
29077         Include <libc-lock.h> instead of <bits/libc-lock.h>.
29079         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
29080         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
29081         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
29082         wcscoll.
29083         * lib/regexec.c (check_node_accept_bytes): Likewise.
29085         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29086         Fix regex wcrtomb namespace (bug 18496).
29087         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
29088         instead of wcrtomb.
29090         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29091         Fix regex wctype namespace (bug 18495).
29092         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
29093         instead of towlower.
29094         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
29095         instead of iswlower.  Call __towupper instead of towupper.
29096         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
29097         instead of iswalnum.
29099         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
29100         * lib/regcomp.c (parse_bracket_exp): Initialize type to
29101         COLL_SYM in a couple of places to avoid uninitialized variable
29102         wanings on tilegx gcc 4.8.2.
29104         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29105         * lib/regex_internal.h: Remove NOT_IN_libc.
29107         2014-11-17  Andreas Schwab  <schwab@suse.de>
29108         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
29110         2014-09-11  Roland McGrath  <roland@hack.frob.com>
29111         Move findidx nested functions to top-level.
29112         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
29113         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
29114         Pass new arguments to findidx.
29115         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
29116         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
29117         Don't #include it inside the function.  Pass new arguments to findidx.
29118         * lib/regex_internal.h:
29119         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
29120         (re_string_elem_size_at): Don't #include it inside the function.
29121         Pass new arguments to findidx.
29123         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29124         Check if DEBUG is defined in regex_internal.c
29125         * lib/regex_internal.c: Check if DEBUG is defined and is set.
29127 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
29129         ceill: detect buggy OpenBSD implementation
29130         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
29131         which returns zero for small values.  Discussed here:
29132         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
29134 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
29136         mountlist: add me_mntroot field on Linux machines
29137         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
29138         mount_entry so Linux machines based on /proc/self/mountinfo can
29139         distinguish between bind mounts and original mounts.  In reality bind
29140         mounts aren't treated differently than mountroot=/ mounts by the
29141         kernel, but the user often wants these bind mounts distinguished.
29142         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
29143         More details at https://pad.lv/1432871
29145 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
29147         doc: Describe to use multiple instances of gnulib
29148         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
29149         instances of gnulib with different modules can be used, for example one
29150         for a lib and another one for associated tools.
29152 2015-09-01  Pádraig Brady  <P@draigBrady.com>
29154         base32: mark function as __attribute__ const
29155         * lib/base32.h (isbase32): Mark __attribute__ const as
29156         suggested by GCC, and consistent with the base64 module.
29158 2015-08-20  Daiki Ueno  <ueno@gnu.org>
29160         gnulib-tool: don't transform binary files with sed
29161         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
29162         .mo and .class files.
29163         Reported by Denis Denisov.
29165 2015-08-10  Daiki Ueno  <ueno@gnu.org>
29167         gperf: respect silent rules
29168         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
29169         V_GPERF_0 for silent rules.
29170         * modules/iconv_open (Makefile.am): Use V_GPERF.
29171         * modules/unicase/locale-language (Makefile.am): Likewise.
29172         * modules/unicase/special-casing (Makefile.am): Likewise.
29173         * modules/unictype/category-byname (Makefile.am): Likewise.
29174         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
29175         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
29176         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
29177         * modules/unictype/property-byname (Makefile.am): Likewise.
29178         * modules/unictype/scripts (Makefile.am): Likewise.
29179         * modules/uninorm/composition (Makefile.am): Likewise.
29181 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29183         Improve port of stdalign to C++11
29184         Problem reported by Sundaram in:
29185         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
29186         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
29187         (__alignas_is_defined): Define if C++11 or newer.
29189 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
29191         pmccabe2html: fix gawk regex escaping
29192         * build-aux/pmccabe2html: Add one more backslash to properly
29193         escape the gsub replacement value.  Fixes this error:
29194         gawk: ./build-aux/pmccabe2html:425: \
29195         warning: escape sequence `\&' treated as plain `&'
29197 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
29199         time_rz: port to pedantic memcpy
29200         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
29201         that reject memcpy (..., NULL, 0).
29203 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
29205         time_rz: port better to MinGW
29206         Don't change tzname, as this makes MinGW dump core (Bug#21020).
29207         Instead, store the tzname copy in the struct tm_zone object.
29208         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
29209         * lib/strftime.c [!_LIBC]:
29210         * lib/time_rz.c: Include time-internal.h.
29211         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
29212         name from *TZ rather than from TZNAME, doable because *TZ now has
29213         a tzname_copy member.
29214         * lib/time-internal.h: New file, with contents taken from
29215         lib/time_rz.c.  It's separate because strftime.c now accesses
29216         struct tm_zone members.
29217         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29218         New member tzname_copy.
29219         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
29220         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29221         Initialize tzname_copy member.
29222         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
29223         in tzname_copy member.
29224         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
29225         (restore_tzname): Remove; no longer needed.  All calls removed.
29226         * modules/time_rz (Files): Add lib/time-internal.h.
29228         time: port __need_time_t to MinGW
29229         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
29230         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
29232 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29234         strftime: fix newly-introduced bug on Solaris
29235         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
29236         consistently at the start, rather than doing some of the setup at
29237         the start and some in the %Z format spec.  This is cleaner, and
29238         works better with time_rz on platforms like Solaris where struct
29239         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
29240         mktime_z and localtime_rz can mess up the tzname cache.
29242         test-strftime: test for Solaris bug
29243         * modules/strftime-tests (Depends-on): Add strerror.
29244         * tests/test-strftime.c: Include <errno.h>.
29245         (posixtm_test): New function, containing the old 'main'.
29246         (struct tzalloc_test, struct localtime_rz_test): New types.
29247         (TZ, LT): New static vars.
29248         (tzalloc_test): New function.
29249         (main): Rewrite in terms of posixtm_test and tzalloc_test.
29251         time_rz: port to Solaris etc.
29252         Works around a tzname problem on platforms like Solaris that have
29253         tzname but not tm_zone, by setting tzname at the appropriate time
29254         and restoring it later.
29255         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
29256         New static vars.
29257         (save_abbr) [HAVE_TZNAME]: Set them.
29258         (revert_tz) [HAVE_TZNAME]: Clear or use them.
29259         (restore_tzname): New function.
29260         (localtime_rz, mktime_z): Use it.
29262         time_rz: now LGPL
29263         * modules/time_rz (License): Now LGPL, because strftime depends on it.
29265         time_rz: make a constant 'const'
29266         * lib/time_rz.c (local_tz): Now const.
29268         time_rz: fix off-by-one typo
29269         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
29271 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
29273         fprintftime, strftime: use timezone_t args
29274         * NEWS: Document the change.
29275         * lib/fprintftime.h (fprintftime):
29276         * lib/strftime.c (extra_args) [my_strftime]:
29277         * lib/strftime.h (nstrftime):
29278         Time zone arg is now of type timezone_t, not int.
29279         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
29280         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
29281         (my_strftime) [emacs && !my_strftime]:
29282         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
29283         Remove; Emacs doesn't need this any more.
29284         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
29285         fprintftime and nstrftime to call tzset.
29286         (ut) [!my_strftime]: Remove, replacing with ...
29287         (tz) [!my_stftime]: ... this new macro.  All uses changed.
29288         (strftime_case_): Use localtime_rz and mktime_z instead
29289         of localtime_r and mktime.
29290         * modules/fprintftime (Depends-on): Add time_rz.
29291         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
29292         * tests/test-strftime.c (main): Adjust to new nstrftime API.
29294         time_rz: new module
29295         * MODULES.html.sh: Add time_rz.
29296         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
29297         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
29298         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
29299         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
29300         New var HAVE_TIMEZONE_T (default 0).
29301         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29302         New var GNULIB_TIME_RZ (default 0).
29303         * modules/time (time.h): Substitute the new vars.
29305         flexmember: license is now unlimited
29306         * modules/flexmember (License): Change to unlimited,
29307         since its only source file gives an unlimited license.
29309 2015-07-15  Eric Blake  <eblake@redhat.com>
29311         maint: update copyright paper procedures
29312         * config/srclist.txt: Drop outdated files.
29313         * doc/Copyright/conditions.txt: Update to latest.
29314         * doc/Copyright/assign.changes.manual: Delete.
29315         * doc/Copyright/assign.future.manual: Likewise.
29316         * doc/Copyright/assign.manual: Likewise.
29317         * doc/Copyright/assign.translation.manual: Likewise.
29318         * doc/Copyright/disclaim.changes.manual: Likewise.
29319         * doc/Copyright/disclaim.manual: Likewise.
29320         * doc/Copyright/disclaim.program: Likewise.
29322 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29324         localename: fix link error on Illumos
29325         Illumos defines __sun, but does not have getlocalename_l nor the
29326         equivalent.  This partially reverts commit 387c214.
29327         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
29328         available, as well as uselocale.
29329         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
29330         use getlocalename_l if it is not available.
29332 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29334         unistr/uN-strtok-tests: avoid a trivial leak
29335         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
29336         input and delim after the multibyte delimiter tests.
29338 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
29340         file-has-acl, acl-permissions: fix HP-UX typos
29341         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
29342         * lib/file-has-acl.c (file_has_acl):
29343         * lib/set-permissions.c (context_acl_from_mode)
29344         (context_aclv_from_mode, set_acls):
29345         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
29346         They were introduced by the recent ACL changes.
29348         regex: match current GNU grep behavior
29349         These symbols have not matched GNU grep behavior for quite some time.
29350         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
29351         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
29352         Change to match current GNU behavior.
29353         Simplify by expressing it as differences from POSIX BREs and EREs.
29354         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
29356 2015-07-03  Jim Meyering  <meyering@fb.com>
29358         set-permissions.c: adjust acl_from_mode's cpp guard
29359         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
29360         directives identical to those guarding the sole use.
29361         Otherwise, on some systems, we'd get a warning about
29362         the function being defined but not used.
29363         Also, filter through cppi to correct misleading indentation
29364         of cpp directives.
29366 2015-07-03  Pádraig Brady  <P@draigBrady.com>
29368         tests: restrict shells to those that support 'local'
29369         The local keyword is very widely supported and used
29370         in tests in coreutils and grep at least.  Therefore
29371         restrict to testing with shells that support it.
29372         This mainly excludes /bin/sh on Solaris.
29373         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
29375 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
29376         and Daiki Ueno  <ueno@gnu.org>
29378         unistr/uN-strtok: handle multibyte delimiters
29379         Previously, uN_strtok moved PTR to the next unit to the token end.
29380         When DELIM contained a multibyte character, the new position could
29381         be a middle of a multibyte character.
29382         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
29383         after the token.
29384         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
29385         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
29386         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
29387         * modules/unistr/u8-strtok (Depends-on): Depend on
29388         unistr/u8-strmblen.
29389         * modules/unistr/u16-strtok (Depends-on): Depend on
29390         unistr/u16-strmblen.
29391         * modules/unistr/u32-strtok (Depends-on): Depend on
29392         unistr/u32-strmblen.
29393         * tests/unistr/test-u-strtok.h: New file.
29394         * tests/unistr/test-u8-strtok.c: New file.
29395         * tests/unistr/test-u16-strtok.c: New file.
29396         * tests/unistr/test-u32-strtok.c: New file.
29397         * modules/unistr/u8-strtok-tests: New file.
29398         * modules/unistr/u32-strtok-tests: New file.
29399         * modules/unistr/u16-strtok-tests: New file.
29401 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
29403         update-copyright: fix test failure with perl >= 5.22 (trivial)
29404         * build-aux/update-copyright: Escape a literal left curly bracket,
29405         required with perl >= 5.22
29407 2015-07-02  Daiki Ueno  <ueno@gnu.org>
29409         u{16,32}-strstr-tests: relax timeout condition
29410         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
29411         tests can take longer than 5 seconds to complete.
29412         Reported by Dagobert Michelsen in:
29413         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
29414         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
29415         seconds to 10 seconds.
29416         * tests/unistr/test-u32-strstr.c (main): Likewise.
29418 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29420         gnulib-common.m4: change the ARFLAGS default to 'cr'
29421         In some GNU/Linux distributions people started to compile 'ar'
29422         binary with --enable-deterministic-archives (binutils project).
29423         That, however, in combination with previous autotools long time
29424         working default AR{_,}FLAGS=cru causes warnings on such
29425         installations:
29426         ar: `u' modifier ignored since `D' is the default (see `U')
29427         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
29428         set already.
29430 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29432         selinux-h: avoid double free after *getfilecon()
29433         Originally reported by Ben Shelton on bug-tar:
29434         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
29435         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
29436         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
29437         param should be freed by freecon(3) (regardless the return value).
29439 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
29441         fix pty related tests issues on Windows (trivial)
29442         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
29443         however it's still present in tests/ subdirectory of the final project.
29444         Therefore avoid it to pass `make check`.
29445         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
29446         will just return -ENOSYS, so avoid this non applicable test allowing
29447         the build to proceed.
29449 2015-07-01  Pádraig Brady  <P@draigBrady.com>
29451         acl: fix definition of acl_from_mode on FreeBSD
29452         This was causing basic coreutils copy operations to fail
29453         with ENOTSUP or ENOENT error messages.
29454         * lib/acl-internal.h (acl_from_mode): Only define when
29455         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
29456         of acl_from_mode() defined in lib/set-permissions.c to
29457         be used on FreeBSD at least.
29458         * lib/set-permissions.c: Fix up comment spelling,
29459         and a redundant variable assignment; noticed in passing.
29461 2015-06-30  Pádraig Brady  <P@draigBrady.com>
29463         readutmp: port to FreeBSD >= 9
29464         * lib/readutmp.h: Map utmpxname() to setutxdb().
29465         With that coreutils who(1) and pinky(1) tests pass.
29467 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
29469         mgetgroups: port to strict OS X
29470         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
29471         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
29472         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
29473         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
29475 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
29477         mgetgroups: port to strict OS X
29478         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
29479         Document the getgrouplist problem.
29480         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
29481         New macro.
29482         (mgetgroups): Use it.
29483         * m4/mgetgroups.m4 (gl_MGETGROUPS):
29484         Check for OS X signature for getgrouplist.
29486 2015-06-29  Jim Meyering  <meyering@fb.com>
29488         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
29489         It started like this when building coreutils' latest on OS X,
29490         invoking ./configure with a nonempty --cache=.cache:
29492           lib/linkat.c:46:42: error: operator '||' has no right operand
29493           lib/linkat.c: In function 'rpl_linkat':
29494           lib/linkat.c:330:27: error: #if with no expression
29496         Here's linkat.c's line 46:
29498           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
29500         Here's some context:
29502           $ grep linkat_nofoll .cache
29503           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
29504           $ grep LINKAT_SYM lib/config.h
29505           #define LINKAT_SYMLINK_NOTSUP
29507         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
29508         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
29509         but that violates a tenet of AC_CACHE_CHECK: it must
29510         have no side effect other than setting its cache variable.
29512         What happens is that when the cache is set, we'd skip the
29513         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
29514         defined to whatever value it happened to have in configure's
29515         environment.  In my case, it was not defined, so this later code:
29517           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
29518             [Define to 1 if linkat can create hardlinks to symlinks])
29520         would emit code with an empty RHS.
29522         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
29523         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
29525 2015-06-28  Jim Meyering  <meyering@fb.com>
29527         mountlist: avoid an unused-label warning on OS X
29528         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
29529         Building on OS X, I saw a warning about the "free_then_fail" label
29530         being unused.  Give it the _GL_UNUSED_LABEL attribute.
29532         error.c: correct printf-style format: %d -> %u
29533         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
29534         rather than %d, to match the type of "line_number", unsigned int.
29536 2015-06-25  Pádraig Brady  <P@draigBrady.com>
29538         fts: avoid reading beyond the heap allocation
29539         GCC 5.1.1 with -O2 and -fsanitize=address reports
29540         a read of size 4 from a heap object of size 3 is indeed invalid,
29541         though this may be due to incorrect padding assumptions by GCC, see:
29542         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
29543         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
29544         * modules/fts: Depend on stdalign.
29546 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29548         savedir: avoid undefined behavior in qsort call
29549         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29550         "runtime error: null pointer passed as argument 1,
29551          which is declared to never be null"
29552         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
29554 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29556         userspec: avoid undefined behavior in gettext call
29557         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29558         "runtime error: null pointer passed as argument 2,
29559          which is declared to never be null"
29560         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
29562 2015-06-20  Glenn Morris  <rgm@gnu.org>
29564         gitlog-to-changelog: improve gitmerge.el commits
29565         Let the Emacs ChangeLog generation process exclude "skipped"
29566         messages from merge commits (Bug#20717).
29567         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
29569 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29571         wchar: fix MinGW compilation warnings
29572         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
29573         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
29574         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
29576 2015-06-20  Daiki Ueno  <ueno@gnu.org>
29578         uniname/uniname-tests: use pristine data files
29579         For copyright and maintenance reasons, use the data files from UCD
29580         without modification.
29581         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
29582         (getfield): Remove.
29583         (aliases_count): New global variable.
29584         (fill_names): Skip comments and empty lines in the input.  Don't
29585         use getfield.
29586         (fill_aliases): Likewise.
29587         (main): Change the expected command line arguments to:
29588         NAMES... ["--" ALIASES...].
29589         * tests/uniname/test-uninames.sh: Adjust to the change in
29590         test-uninames.c.
29591         * tests/uniname/UnicodeDataNames.txt: Remove.
29592         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
29593         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
29594         file from Unicode 8.0.0.
29596 2015-06-19  Pádraig Brady  <P@draigBrady.com>
29598         linked-list, linkedhash-list: avoid compiler warnings
29599         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29600         -Werror=suggest-attribute=pure (from GCC 5.1.1).
29602 2015-06-19  Daiki Ueno  <ueno@gnu.org>
29604         libunistring: bump minimum version to 0.9.6
29605         * all modules depending on updated Unicode data: Regenerate.
29606         The modules are listed by a script that does:
29607         - for each file listed by: git show --oneline --name-only 705f4efc
29608           - deduce the containing modules, based on "Files:"
29609         - deduce the modules which depend on the containing modules, based
29610           on "Depends-on:"
29612 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29614         uniname/uniname: update to Unicode 8.0.0
29615         * lib/uniname/uninames.h: Regenerate.
29616         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
29617         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
29619 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29621         libunistring: update to Unicode 8.0.0
29622         * lib/gen-uni-tables.c (SIZEOF): New macro.
29623         (output_numeric): Increase the maximum number of fractions from
29624         128 to 160.  Increase the level3 value width from 7 bits to 8
29625         bits.  Use SIZEOF instead of a hard-coded integer.
29626         (output_blocks): Decrease the cut-off threshold from 0x30000 to
29627         0x28000.
29628         (fill_blocks): Increase the maximum number of blocks from 256 to
29629         384.  Use SIZEOF instead of a hard-coded integer.
29630         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
29631         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
29632         value width.
29633         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
29634         a new case added to LBP22.
29635         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
29636         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
29637         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
29638         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
29639         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
29640         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29641         lib/uniwidth/width.c.
29642         * all generated files under lib/uni* and tests/uni*: Regenerate.
29644 2015-06-16  Pádraig Brady  <P@draigBrady.com>
29646         gnu-web-doc-update: add --mirror to remove stale files
29647         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
29648         out of date files from the CVS server.  Since this is usually
29649         appropriate, a prompt is given when the option is not specified,
29650         along with the `cvs remove` command that would be run.
29652 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29654         acl-permissions: pacify -Wsuggest-attribute=const
29655         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
29656         * lib/acl-internal.h (free_permission_context):
29657         Declare with attribute const if ! (defined USE_ACL &&
29658         (HAVE_ACL_GET_FILE || defined GETACL)).
29660         fsync: document AIX misbehavior
29661         * doc/posix-functions/fsync.texi (fsync):
29662         Document failure on AIX with read-only file descriptor.
29664 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
29666         stdio: Don't redefine gets when using C++
29667         * lib/stdio.in.h (gets): Disable warning on C++.
29669 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
29671         acl-permissions: port to AIX, C89 HP-UX
29672         Problems reported by Michael Felt.
29673         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
29674         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
29675         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
29676         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
29677         Add cast for AIX, whose system calls are declared to accept
29678         char * even though the arguments are really char const *.
29679         * lib/get-permissions.c (get_permissions):
29680         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
29681         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
29682         that broke a build.
29683         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
29684         Rework types to pacify xlc.
29686 2015-06-03  Pádraig Brady  <P@draigBrady.com>
29688         vasprintf-posix: avoid compiling vasnprintf where possible
29689         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
29690         module where not required.  For example on a GNU/Linux system
29691         when gnulib-tool is run with the --conditional-dependencies option.
29693 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29695         file-has-acl: fix build on Mac OS X 10
29696         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
29697         which has an incompatible 6 parameter getxattr() call.
29698         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
29699         call on Mac OS X >= 10.4.
29700         * doc/glibc-functions/fgetxattr.texi: Likewise.
29701         * lib/file-has-acl.c: Revert to more complete combined check.
29702         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
29703         Reported by Jack Howarth.
29705 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29707         prefix-gnulib-mk: remove no longer needed special case
29708         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
29709         continued lib_SOURCES lines are no longer present,
29710         so special case handling of such entries is not required.
29712 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29714         acl: don't depend on the deprecated qacl module
29715         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
29717 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29719         gnulib-tool: concatenate lib_SOURCES to a single line
29720         * gnulib-tool: Refactor the line merging sed logic,
29721         and use that to output a single lib_SOURCES line for each module.
29722         gnulib using projects often postprocess this output to prepend
29723         subdir paths to each item, and having a single line simplifies this
29724         processing allowing better decoupling from the gnulib-tool output.
29726 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
29728         pthread_sigmask: discount system version if a simple macro (trivial)
29729         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
29730         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
29731         function to ensure it's available.
29733 2015-05-31  Pádraig Brady  <P@draigBrady.com>
29735         readlinkat: avoid OS X 10.10 trailing slash bug
29736         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
29737         has this bug.
29738         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
29739         that OS X 10.10 has this function.
29740         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
29741         as done for readlink().
29742         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
29743         trailing slash bug, and assume readlinkat() has the same issue.
29744         Also fix a typo where $gl_cv_decl_readlink_works was tested,
29745         rather than the correct $gl_cv_decl_readlinkat_works.
29747 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29749         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
29750         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
29751         module rewrite.
29753         acl-permissions: Fix build on Solaris and Cygwin
29754         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
29755         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
29756         ace_entries variables have moved into struct permission_context but
29757         they were still accessed as local variables here.
29759 2015-05-29  Pádraig Brady  <P@draigBrady.com>
29761         linkat: avoid OS X 10.10 trailing slash with symlink bug
29762         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
29763         causes the symlink to be dereferenced, and if it points
29764         to a non existent file, that file will be created as
29765         a hard link to "path1".
29766         This fixes a test failure in test-linkat.c.
29767         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
29768         this case.  The existing workaround in linkat.c for
29769         trailing slash issues, suffices for this case.
29770         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
29771         the list of platforms with trailing slash issues.
29773 2015-05-28  Pádraig Brady  <P@draigBrady.com>
29775         unlinkat: handle ignoring of ".." on Darwin 14
29776         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
29777         on Mac OS X 10.10, where it ignores paths with a trailing "..",
29778         so handle in the same manner.
29779         * m4/unlinkat.m4: Comment on this Darwin issue.
29780         * doc/posix-functions/unlink.texi: Update the latest version
29781         where the issue was seen.
29782         * doc/posix-functions/unlinkat.texi: Mention this issue.
29783         Fixes a test failure in test-unlinkat.c.
29785 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29787         qacl: split into qcopy-acl and qset-acl
29788         Emacs needs the former, but not the latter.
29789         * modules/acl-permissions: New file, containing most of the old qacl.
29790         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
29791         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
29792         * modules/qcopy-acl, modules/qset-acl: New files.
29793         * MODULES.html.sh (File system functions):
29794         Mention the new modules, and mention qacl while we're at it.
29796 2015-05-27  Glenn Morris  <rgm@gnu.org>
29798         gitlog-to-changelog: new option --ignore-line
29799         (This patch is imported from the GNU Emacs master.)
29800         This option ignores individual commit lines matching a pattern.
29801         * build-aux/gitlog-to-changelog: Add --ignore-line option.
29803 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
29805         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
29806         Implement get_permissions and set_permissions primitives for getting all
29807         the permissions of a file, storing them, and later setting them. (In the
29808         minimal case, the permissions consist only of a file mode.) Reimplement
29809         qset_acl and qcopy_acl based on these new primitives: this avoids code
29810         duplication and makes error handling more consistent.
29811         The Solaris and Cygwin code still uses duplicate code paths for setting
29812         a file mode while making sure that no acls exist and setting an explicit
29813         acl; this is no worse than before, but could be cleaned up.  The AIX
29814         code still doesn't read ACLs, it only makes sure that acls don't get in
29815         the way when setting a file mode.
29816         * lib/acl-internal.h (struct permission_context): New data structure.
29817         (get_permissions, set_permissions, free_permission_context): Declare.
29818         * lib/acl-internal.c (free_permission_context): New helper function.
29819         * lib/get-permissions.c (get_permissions): New helper function split off
29820         from qcopy_acl.
29821         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
29822         AIX, set a file's permissions based only on a file mode.
29823         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
29824         other platforms construct a temporary acl from the file mode and set
29825         that acl in the same way as setting an acl read from the source file.
29826         This should help avoid code duplication and inconsistent / buggy
29827         behavior.
29828         (set_acls): New helper function Split off from qcopy_acl.
29829         (chmod_or_fchmod): Moved here from qset-acl.c.
29830         (set_permissions): New helper function.
29831         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
29832         set_permissions.
29833         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
29834         * modules/qacl: Add get-permissions.c and set-permissions.c.
29836         file-has-acl: Split feature tests again (Bug#20667)
29837         * lib/file-has-acl.c: Instead of testing for
29838         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
29839         define them when needed.
29840         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
29841         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
29843 2015-05-27  Pádraig Brady  <P@draigBrady.com>
29845         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
29846         This avoids a conflict with "FORTIFY_SOURCE" variants
29847         of the string functions when they're replaced on NetBSD-6.0.1
29848         and Darwin-14.3.0 at least.
29849         * lib/string.in.h: Avoid including our "lib/string.h" while
29850         including the system <string.h>.
29852 2015-05-26  Eric Blake  <eblake@redhat.com>
29854         stdio: limit __gnu_printf__ witness to gcc 4.4+
29855         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
29856         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
29858         error: use correct printf attributes on mingw
29859         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
29861         inttypes: force correct mingw PRIdMAX even without <stdio.h>
29862         * modules/inttypes (Depends-on): Require extensions, so that mingw
29863         always uses GNU style inttypes.
29864         * lib/inttypes.in.h: On mingw, include <stdio.h>.
29866         stdio: fix probe on mingw under gcc 5.1
29867         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
29868         around new gcc preprocessor rules.
29870 2015-05-07  Glenn Morris  <rgm@gnu.org>
29872         gitlog-to-changelog: parse "Tiny-change"
29873         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
29874         "Copyright-paperwork-exempt".  (Bug#20324)
29876 2015-05-06  Pádraig Brady  <P@draigBrady.com>
29878         doc: document glibc posix_fallocate() issues
29879         * doc/posix-functions/posix_fallocate.texi: Mention the
29880         glibc efficiency problems and issues with NFS.
29882 2015-05-05  Karl Berry  <karl@freefriends.org>
29884         * build-aux/gendocs.sh (usage): document new css default
29885         for HTML (--htmlarg).
29887 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29889         extern-inline: no need for workaround in GCC 5.1
29890         * doc/extern-inline.texi (extern inline):
29891         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
29892         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
29893         around these bugs in GCC 5.1 and later.  Maybe in a decade or
29894         two we can remove these workarounds.
29896 2015-04-28  Pádraig Brady  <P@draigBrady.com>
29898         eealloc, pagealign_alloc, xalloc: avoid clang warnings
29899         Avoid [-Wunknown-attributes] warnings like:
29900         warning: unknown attribute '__alloc_size__' ignored
29901         * lib/xalloc.h: Don't use the __alloc_size__  attribute
29902         with clang, as support has been fully removed as of clang 3.5:
29903         https://github.com/llvm-mirror/clang/commit/c047507a
29904         * lib/eealloc.h: Likewise.
29905         * lib/pagealign_alloc.h: Likewise.
29907 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29909         tests: pacify GCC 5.1's stricter printf checking
29910         * tests/test-dirname.c (main):
29911         * tests/test-getaddrinfo.c (simple):
29912         * tests/test-getlogin.c (main):
29913         * tests/test-getndelim2.c (main):
29914         * tests/test-inttostr.c (CK):
29915         * tests/test-md5.c (main):
29916         * tests/test-read-file.c (main):
29917         * tests/test-sha1.c (main):
29918         Fix mismatches between printf format and value signedness.
29919         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
29920         Remove, as CAST_VAL always returned a value of type uintmax_t.
29922         fts: port to GCC 5.1 with --enable-gcc-warnings
29923         Without this fix, GCC 5.1 (correctly) warns about a subscript
29924         error on the fts_name component of FTSENT.  It's actually a
29925         flexible member, so define it that way on C99 or later hosts.
29926         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
29927         structure that now has a flexible array member.
29928         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
29929         (FTSENT): fts_name is now flexible on C99-or-later platforms.
29930         * modules/fts (Depends-on): Add flexmember.
29932 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
29934         file-has-acl: port to CentOS 6
29935         Problem reported by Tom G. Christensen in:
29936         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
29937         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
29938         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
29939         HAVE_GETXATTR.
29940         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
29941         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
29942         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
29943         file-has-acl.c actually needs.
29945 2015-04-26  Pádraig Brady  <P@draigBrady.com>
29947         file-has-acl: always return false when ACLs aren't supported
29948         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
29949         change the GNU/Linux getxattr path, to transform "not supported"
29950         errors to a false return rather than an error.  This is handled
29951         within file_has_acl() due to the platform specific tests to
29952         determine if ACLs are not supported.
29954 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
29956         gettext: propagate po/Makefile.in.in too
29957         * build-aux/po/Makefile.in.in: Copy from latest gettext.
29958         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
29959         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
29960         between Makefile.in.in and the gettext-runtime m4 files.
29962 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
29964         file-has-acl: new module, split from acl
29965         And add a new module file-has-acl-tests to match.
29966         I ran into a problem with the recent changes to the acl module,
29967         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
29968         When using the fixed version with Emacs, I discovered that
29969         file-has-acl wasn't separated out well enough for Emacs (e.g., it
29970         had multiple libraries, but needed only one), so I fixed that too.
29971         * NEWS: Document this incompatible change.
29972         * modules/file-has-acl, modules/file-has-acl-tests: New files.
29973         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
29974         Initialize gl_need_lib_has_acl.
29975         (gl_FUNC_ACL): Require it.
29976         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
29977         Move the file-has-acl.c-relevant stuff to ...
29978         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
29979         use_xattrs = 0' typo, and omit some needless work.  Set
29980         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
29981         when gl_FUNC_ACL is called.
29982         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
29983         (Link): Remove $(LIB_HAS_ACL).
29984         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
29985         (check_PROGRAMS): Move stuff relevant to file-has-acl to
29986         modules/file-has-acl-tests.
29987         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
29989         manywarnings: add GCC 5.1 warnings
29990         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
29991         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
29992         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
29993         -Wsuggest-override, -Wuse-without-only.  Change
29994         -Wnormalized=... operands to match 5.1.
29995         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
29996         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
29997         -Wdiscarded-qualifiers, -Wformat-signedness,
29998         -Wincompatible-pointer-types, -Wint-conversion,
29999         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
30000         -Wshift-count-negative, -Wshift-count-overflow,
30001         -Wsizeof-array-argument, -Wsuggest-final-methods,
30002         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
30003         and add -Warray-bounds=2 as a special case.
30005 2015-04-21  Simon Josefsson  <simon@josefsson.org>
30007         doc: update FDL template to match FDL examples.
30008         * doc/alloca-opt.texi:
30009         * doc/alloca.texi:
30010         * doc/c-ctype.texi:
30011         * doc/c-strcase.texi:
30012         * doc/c-strcaseeq.texi:
30013         * doc/c-strcasestr.texi:
30014         * doc/c-strstr.texi:
30015         * doc/c-strtod.texi:
30016         * doc/c-strtold.texi:
30017         * doc/ctime.texi:
30018         * doc/error.texi:
30019         * doc/gcd.texi:
30020         * doc/gnulib-tool.texi:
30021         * doc/inet_ntoa.texi:
30022         * doc/intprops.texi:
30023         * doc/lib-symbol-visibility.texi:
30024         * doc/maintain.texi:
30025         * doc/parse-datetime.texi:
30026         * doc/quote.texi:
30027         * doc/regexprops-generic.texi:
30028         * doc/standards.texi: Remove spurious 'with' in FDL license
30029         template.
30031 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
30033         lstat: fix cross-compilation 'ln -s' problem
30034         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
30035         Have the test program call 'symlink' rather than a separate
30036         script run 'ln -s'; this is more likely to work in
30037         cross-compilation environments.  Reported by Pavel Fedin in:
30038         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
30040 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
30042         gendocs.sh: default to a common CSS style sheet for HTML output
30043         * build-aux/gendocs.sh (htmlarg): Change default value.
30045 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
30047         gnulib-tool: output bold attribute more portably
30048         * gnulib-tool (func_show_module_list): Change hexadecimal
30049         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
30050         encoded numbers as arguments to `printf' is not portable,
30051         and is not claimed by POSIX.  This is the case with FreeBSD.
30053 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30055         qacl: Simplify HP-UX acl_nontrivial check
30056         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
30057         acl_nontrivial. Check if the acl has at most three entries instead (it must
30058         have exactly three entries according to the HP-UX documentation). Ignore
30059         uids and gids as long as an entry is either for a user (i.e., the owner),
30060         a group (i.e., the owning group), or others.
30061         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
30062         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
30064 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
30066         acl: On Linux, check for acls without libacl
30067         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
30068         library function to check for the presence of acls, avoiding a library.
30069         * lib/file-has-acl.c: Include xattr headers if we have them.
30070         (file_has_acl): On Linux, use getxattr().
30071         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
30072         file_has_acl(). Check for xattr headers and getxattr().
30074 2015-04-14  Ángel González  <keisial@gmail.com>
30076         tempname: avoid unused parameter warnings (trivial)
30077         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
30078         (try_nocreate): Likewise.
30080 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
30082         fseeko: fix build failure on NetBSD >= 6 (trivial)
30083         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
30084         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
30086 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30088         gitlog-to-changelog: port to MS-Windows
30089         * build-aux/gitlog-to-changelog (git_dir_option):
30090         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
30091         MS-Windows Perl.  Reported by Eli Zaretskii in:
30092         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
30094 2015-04-07  Karl Berry  <karl@gnu.org>
30096         gendocs: new option --tex for passing args to texi2dvi.
30097         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
30098         (TEXI2DVI): cut to just command name.
30099         (usage): mention new option, and update copyright.
30100         <generate_tex>: use it.
30102 2015-04-07  Karl Berry  <karl@gnu.org>
30104         * config/srclistvars.sh (GETTEXT): new definition.
30105         * config/srclist.txt: use it for gettext .m4 files.
30106         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
30107         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
30108         and continuing into April.
30110 2015-04-07  Daiki Ueno  <ueno@gnu.org>
30112         uniname/uniname-tests: fix failure due to alias
30113         Reported by Jack Howarth in:
30114         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
30115         * tests/uniname/test-uninames.c (name_has_alias): New function.
30116         (test_inverse_lookup): Exclude character name with valid alias,
30117         from randomly generated character names.
30118         (main): Fill unicode_aliases before calling test functions.
30120 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
30122         hash: remove deprecated hash_insert0 function
30123         * lib/hash.h (hash_insert0): Remove deprecated function.
30124         * lib/hash.c (hash_insert0): Likewise.
30126 2015-04-02  Pádraig Brady  <P@draigBrady.com>
30128         mountlist: remove dependency on libmount
30129         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
30130         directly, rather than depending on libmount, which has many
30131         dependencies due to its dependence on libselinux, as detailed at:
30132         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
30133         Note we restrict this to __linux__ as that's probably where this
30134         interface will remain.  If ever porting, it would be best
30135         to first pull the makedev() wrapper from coreutils to a gnulib module.
30136         Note also we don't add a getline dependency to the mountlist module,
30137         as all Linux versions are sufficient.
30139 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
30141         stddef: port to pre-C11 GCC on x86
30142         On this platform, max_align_t should have an alignment of 8 even
30143         though the storage alignments of double, long, etc. max out at 4.
30144         Inspired by a comment of Andreas Schwab's here:
30145         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
30146         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
30147         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
30148         * tests/test-stddef.c: Test __alignof__ too, if available.
30150 2015-03-24  Pádraig Brady  <P@draigBrady.com>
30152         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
30153         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
30155 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
30157         yesno: make EOL optional in ENABLE_NLS case also (trival)
30158         * lib/yesno.c (yesno): Check for EOL before replacing.
30159         * tests/test-yesno.sh: Add a test case (test along with gettext).
30161 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
30163         fdopendir-tests: test it does not close its arg
30164         * tests/test-fdopendir.c (main): Test that fdopendir does not
30165         close its argument.  From a suggestion by David Grayson in:
30166         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
30168 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
30170         gitlog-to-changelog: trim trailing white space
30171         * build-aux/gitlog-to-changelog (main):
30172         Trim trailing white space from commit message lines.
30173         This is helpful for processing the GNU Emacs repository,
30174         which dates back to 1985 and contains a lot of such lines.
30176         gitlog-to-changelog: new option --ignore-matching
30177         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
30178         Support new option --ignore-matching=PAT, which ignores all
30179         commit messages whose first line matches PAT.
30181 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30183         fdopendir: port better to MinGW
30184         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
30185         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
30186         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
30187         * modules/fdopendir (Depends-on): Add dirfd.
30189 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30191         fdopendir: fix typo in comment
30192         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
30194 2015-03-09  Eric Blake  <eblake@redhat.com>
30196         error: document all entry points provided
30197         * doc/glibc-functions/error_print_progname.texi
30198         (error_print_progname): Mention the error module.
30199         * doc/glibc-functions/error_at_line.texi (error_at_line):
30200         Likewise.
30201         * doc/glibc-functions/error_message_count.texi
30202         (error_message_count): Likewise.
30203         * doc/glibc-functions/error_one_per_line.texi
30204         (error_one_per_line): Likewise.
30206 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
30208         vasnprintf: pacify clang 3.5.0
30209         Problem reported by Werner Lemberg in:
30210         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
30211         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
30212         The casts aren't needed, since the characters in question are ASCII.
30214 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
30216         glob, etc.: port to MSVC v18 on MS-Windows 8.1
30217         * lib/dirent--.h (GNULIB_defined_opendir):
30218         * lib/dirent.in.h (GNULIB_defined_opendir)
30219         (GNULIB_defined_closedir):
30220         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
30221         #undef only if Gnulib defined it.
30223         poll: port to MSVC v18 on MS-Windows 8.1
30224         Problem reported by Gisle Vanem in:
30225         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
30226         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
30227         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
30228         Add sys_socket.
30230 2015-02-24  Pádraig Brady  <P@draigBrady.com>
30232         tests: support stderr verification with returns_()
30233         * tests/init.sh (returns_): Disable tracing for this wrapper
30234         function, so that stderr of the wrapped command is unchanged,
30235         allowing for verification of the contents.
30237 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
30239         passfd: avoid valgrind uninitalised data warning
30240         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
30241         to include just the fd we've initialized, rather than including
30242         the extra space used for alignment.
30244 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30246         uniwbrk/u32-wordbreaks-tests: fix copyright
30247         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
30249         dup2: doc and test for Android bug
30250         Reported by Kevin Cernekee in:
30251         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
30252         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30253         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
30255 2015-02-23  Kevin Cernekee  <cernekee@google.com>
30257         Replace dup2() on Android
30258         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
30259         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
30260         fails.  Using rpl_dup2() fixes this because it has an explicit test
30261         for this condition.
30263 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
30265         Android doesn't define RLIM_SAVED_*
30266         Portability problem reported by Kevin Cernekee in:
30267         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
30268         * doc/posix-headers/sys_resource.texi (sys/resource.h):
30269         Mention the portability problem.
30270         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
30271         Define if not defined.
30272         * m4/dup2.m4 (gl_FUNC_DUP2):
30273         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30274         Likewise.
30276 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
30278         vasnprintf-posix-tests: use consistent test
30279         * tests/test-vasnprintf-posix.c (test_function):
30280         Use "<" in assert instead of "<=", for consistency with other tests.
30282 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30284         printf, isinf, etc.: noncanonical != NaN
30285         Do not require that isinf, printf, etc. treat noncanonical
30286         values as NaNs.  Instead, require only that they do not crash.
30287         Problem reported by Joseph Myers in:
30288         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
30289         * doc/posix-functions/dprintf.texi (dprintf):
30290         * doc/posix-functions/fprintf.texi (fprintf):
30291         * doc/posix-functions/isfinite.texi (isfinite):
30292         * doc/posix-functions/isinf.texi (isinf):
30293         * doc/posix-functions/isnan.texi (isnan):
30294         * doc/posix-functions/printf.texi (printf):
30295         * doc/posix-functions/snprintf.texi (snprintf):
30296         * doc/posix-functions/sprintf.texi (sprintf):
30297         * doc/posix-functions/vdprintf.texi (vdprintf):
30298         * doc/posix-functions/vfprintf.texi (vfprintf):
30299         * doc/posix-functions/vprintf.texi (vprintf):
30300         * doc/posix-functions/vsnprintf.texi (vsnprintf):
30301         * doc/posix-functions/vsprintf.texi (vsprintf):
30302         Document this.
30303         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
30304         * m4/isinf.m4 (gl_ISINFL_WORKS):
30305         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
30306         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
30307         * tests/test-isfinite.c (test_isfinitel):
30308         * tests/test-isinf.c (test_isinfl):
30309         * tests/test-isnan.c (test_long_double):
30310         * tests/test-isnanl.h (main):
30311         * tests/test-snprintf-posix.h (test_function):
30312         * tests/test-sprintf-posix.h (test_function):
30313         * tests/test-vasnprintf-posix.c (test_function):
30314         * tests/test-vasprintf-posix.c (test_function):
30315         Test only that noncanonical values do not cause crashes, not that
30316         they are treated as NaNs.  In some cases this means a larger
30317         output buffer is needed.
30319 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
30321         fts: remove redundant close() (trivial)
30322         * lib/fts.c (fts_read): Remove redundant call to close().
30323         Spotted by coverity.
30325 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30327         getdtablesize: port better for Android
30328         Problem reported by Kevin Cernekee in:
30329         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
30330         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
30331         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
30332         Instead, just use getrlimit, taking care to avoid Cygwin bug.
30334         poll: fixes for large fds
30335         * lib/poll.c (poll): Don't check directly for NFD too large.
30336         Don't rely on undefined behavior in FD_SET when an arg exceeds
30337         FD_SETSIZE.  Always set revents afterwards, even if to zero.
30338         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
30339         as that makes the test a bit stricter.
30341 2015-02-19  Kevin Cernekee  <cernekee@google.com>
30343         fcntl: Fix cross compiling
30344         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
30345         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
30347 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
30349         dup2, fcntl: cross-compile better for Android
30350         Problem reported by Kevin Cernekee in:
30351         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
30352         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
30353         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
30354         there's little need to cross-compile for older kernels nowadays.
30355         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
30356         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
30358 2015-02-18  Pádraig Brady  <P@draigBrady.com>
30360         getopt: don't crash on memory exhaustion
30361         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
30362         memory exhaustion.  In the _LIBC case we use alloca() as is
30363         already done in glibc, so we don't need to consider the separate
30364         error path in that awkward case.  Also fix a memory leak when
30365         ambiguous options are present.
30366         Reported by Tobias Stoeckmann
30368 2015-02-17  Mike Miller  <mtmiller@ieee.org>
30370         tempname: allow compilation with C++ (trivial)
30371         * lib/tempname.h [C++]: Specify extern "C" linkage.
30372         * lib/tempname.h (try_tempname):
30373         * lib/tempname.c (__try_tempname, __gen_tempname):
30374         Rename 'try' to 'tryfunc'.
30376 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
30378         dup2, fcntl: port to AIX
30379         * m4/dup2.m4 (gl_FUNC_DUP2):
30380         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30381         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
30382         The former works on AIX 7.1 but the latter does not.
30383         Also, this may work better with Android; see:
30384         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
30386 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
30388         getdtablesize, dup2, fcntl: port to Android
30389         Problem reported by Kevin Cernekee in:
30390         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
30391         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
30392         Mention that getdtablesize doesn't work on Android.
30393         * lib/getdtablesize.c: Use getrlimit substitute only if
30394         getdtablesize is declared.  This should suffice for Cygwin
30395         while not breaking Android.
30396         * m4/dup2.m4 (gl_FUNC_DUP2):
30397         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30398         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
30399         standardized but the latter is not, and sysconf works on Android.
30400         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
30401         Also check that getdtablesize is declared.
30402         This removes the need for a special case for Android.
30404 2015-02-16  Kevin Cernekee  <cernekee@google.com>
30406         localename: Implement gl_locale_name_thread_unsafe for Android
30407         * lib/localename.c: Android API level >= 21 supports two hardcoded
30408         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
30409         the internal __locale_t struct.
30411 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
30413         fts: avoid crash when a cycle is added while traversing
30414         This could be triggered by auto-mounting a recursive bind mount.
30415         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
30416         * lib/fts.c (fts_read): Avoid removing the original hash table item
30417         when leaving a directory that caused a cycle, and preserve the FTS_DC
30418         flag.
30420 2015-02-16  Daiki Ueno  <ueno@gnu.org>
30422         uniname/uniname: support character alias
30423         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
30424         Generate one-way mapping from aliases to codepoints in the
30425         generated tables.  Special case variation selectors to reduce
30426         table size.
30427         * lib/uniname/uniname.c (unicode_character_name): Special case
30428         variation selectors.
30429         (unicode_name_character): Special case variation selectors and
30430         their aliases.
30431         * lib/uniname/uninames.h: Regenerate.
30432         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
30433         * modules/uniname/uniname-tests (Files): Add
30434         tests/uniname/NameAliases.txt.
30435         * tests/uniname/test-uninames.c: Mark as static.
30436         (ALIASLEN): Define.
30437         (struct unicode_alias): New struct.
30438         (unicode_aliases): New variable.
30439         (fill_aliases): New function.
30440         (test_alias_lookup): New test function.
30441         (main): Run the 'test_alias_lookup' test if the second argument is
30442         given.
30443         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
30444         second argument.
30446 2015-02-11  Kevin Cernekee  <cernekee@google.com>
30448         Fix FILE struct compatibility with Android API level >= 21
30449         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
30450         __sferror.  Recent versions of Bionic's stdio.h no longer define
30451         __sferror.
30452         * lib/fbufmode.c: Likewise.
30453         * lib/fflush.c: Likewise.
30454         * lib/fpurge.c: Likewise.
30455         * lib/freadable.c: Likewise.
30456         * lib/freadahead.c: Likewise.
30457         * lib/freading.c: Likewise.
30458         * lib/freadptr.c: Likewise.
30459         * lib/freadseek.c: Likewise.
30460         * lib/fseeko.c: Likewise.
30461         * lib/fseterr.c: Likewise.
30462         * lib/fwritable.c: Likewise.
30464         Assume unbroken ungetc() on Android
30465         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
30466         test case passed when running on an Android host, and the code
30467         hasn't really changed since 2009.
30469         getdtablesize: Fix Android build
30470         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
30471         versions have this symbol in the .so library (at least 32-bit
30472         platforms) but are missing the declaration in the header file,
30473         causing the m4 logic to guess incorrectly.
30475         localename: Fix Android build
30476         * modules/localename (Depends-on): Add langinfo.
30478         getugroups: Fix Android build
30479         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
30480         functions.
30482         euidaccess: Fix Android build
30483         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
30484         AT_EACCESS gets declared.
30486         linkat_nofollow: Add fallback case for cross compiling
30487         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
30489         net_if: Handle content-free <net/if.h> system headers
30490         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
30491         struct if_nameindex.  If not, enable the replacement header.
30493         signal_h: Fix Android build
30494         * lib/signal.in.h: Add Android to the list of platforms that declare
30495         pthread_sigmask() in <pthread.h> instead of <signal.h>.
30497         duplocale: Fix Android build of duplocale-tests
30498         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
30499         is included by test-duplocale.c (but not by duplocale.c).
30500         * modules/duplocale-tests (configure.ac): Check for monetary.h.
30501         * tests/test-duplocale.c: Skip test if monetary.h is absent.
30502         * doc/posix-headers/monetary.texi: Add Android to the list of
30503         platforms missing monetary.h.
30505 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30507         tests: avoid recent -Werror=unused-variable regression in test-locale
30508         * tests/test-locale.c (main): Reference the variable to avoid the
30509         "unused variable" warning.
30511 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30513         maint: various whitespace cleanups in tempname
30514         * lib/tempname.c: Normalize spacing and line length.
30515         * lib/tempname.h: Likewise.
30516         * modules/tempname: Likewise.
30518 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30520         tests: provide returns_() to simplify exit status checking
30521         * tests/init.sh (returns_): A new function for use in tests,
30522         to allow for easier checking of return values, where you expect
30523         a command to exit with failure status.  By checking for a particular
30524         exit code, you don't hide any crashes for example.
30526 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30528         mountlist: only use libmount when specified
30529         There are currently many shared libs dependencies introduced by
30530         libmount with associated runtime and virt mem overhead.
30531         Therefore don't enable by default.
30532         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
30534 2015-02-08  Daiki Ueno  <ueno@gnu.org>
30536         uniname/unimame-tests: don't link with -lunistring
30537         * modules/uniname/uniname-tests (Makefile.am): Don't link against
30538         $(LIBUNISTRING).  Document the rationale why we need to
30539         conditionalize the test.
30541 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
30543         fstrcmp: don't assume strlen < INT_MAX
30544         * lib/fstrcmp.c: Include stddef.h and stdint.h.
30545         (uintptr_t): Remove, as we're now assuming stdint.
30546         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
30547         Prefer ptrdiff_t to int when the value could exceed INT_MAX
30548         if the input string is long.
30549         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
30550         uintptr_t to size_t when the underlying value is a pointer casted
30551         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
30552         * modules/fstrcmp (Depends-on): Add stdint.
30554         diffseq: prefer ptrdiff_t to ssize_t
30555         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
30556         ptrdiff_t is the natural type for signed indexes.
30557         On a few older platforms, ssize_t is narrower than size_t.
30559         xalloc: fix typo that suppressed warnings
30560         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
30561         This typo, introduced a couple of years ago, mistakenly suppressed
30562         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
30563         -Wmissing-declarations warnings.
30565         full-read: fix license notice typo
30566         * lib/full-read.h: Remove a stray line in the license notice.
30567         Reported by Sam Ellis in: http://bugs.gnu.org/19808
30569         crypto/gc: fix a -Wswitch warning
30570         Reported by Bruce Korb in:
30571         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
30572         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
30574 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30576         gnulib-tool: fix handling of patch(1) diagnostics
30577         * gnulib-tool: Send diagnostics from patch(1) to stderr,
30578         as otherwise gnulib-tool will reparse that output and attempt
30579         to lookup modules.
30581 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30583         bootstrap: exit immediately upon gnulib-tool failure
30584         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
30585         This was noticed when gnulib-tool exited early due to failure
30586         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
30587         but various confusing errors were then given as the build proceeded.
30589 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
30591         symlinkat: include all required header files
30592         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
30593         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
30594         Reported at https://savannah.gnu.org/bugs/index.php?44151
30595         and by Jack Howarth.
30597 2015-01-29  Pádraig Brady  <P@draigBrady.com>
30599         localename: support Solaris 12 and illumos
30600         * lib/localename.c (gl_locale_name_thread_unsafe): call
30601         getlocalename_l() on newer __sun platforms.
30602         Reported by Alexander Pyhalov.
30603         Fix suggested by Rich Burridge.
30605 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
30607         locale: fix tests on illumos (trivial)
30608         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
30609         so move from global scope to main().
30611 2015-01-24  Daiki Ueno  <ueno@gnu.org>
30613         unictype: avoid undefined left-shift behavior
30614         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
30615         gcc's -fsanitize=shift and running its tests triggered:
30616           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
30617             places cannot be represented in type 'int'
30618         Cast LHS to 'unsigned int' after integer promotion.
30619         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
30620         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
30622 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30624         libunistring: bump version of unitypes dependants
30625         Due to the header file search order, all the headers which depend
30626         on unitypes.h need to be generated, when the preinstalled
30627         libunistring is older.
30628         * modules/unicase/base (configure.ac): Bump minimum version to
30629         0.9.4.
30630         * modules/uniconv/base (configure.ac): Likewise.
30631         * modules/unilbrk/base (configure.ac): Likewise.
30632         * modules/uninorm/base (configure.ac): Likewise.
30633         * modules/unistdio/base (configure.ac): Likewise.
30634         * modules/unistr/base (configure.ac): Likewise.
30635         * modules/uniwbrk/base (configure.ac): Likewise.
30636         * modules/uniwidth/base (configure.ac): Likewise.
30638 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30640         unictype/category-none: fix link with libunistring
30641         Since _UC_CATEGORY_NONE is not a public symbol, it will be
30642         prefixed with "libstring_" when compiled as part of libunistring.
30643         To avoid undefined symbol at link time, increase the minimum
30644         version when the dependant modules are updated.
30645         * modules/unictype/category-none (configure.ac): Bump minimum
30646         version to 0.9.5.
30648 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30650         unitypes: fix build with installed libunistring
30651         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
30652         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
30653         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
30655 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30657         time: port to MinGW32 3.21
30658         Problem reported by Eli Zaretskii in:
30659         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
30660         * lib/time.in.h:
30661         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
30662         * modules/time (Depends-on):
30663         Fall back on unistd.h if the other include files don't define
30664         struct timespec.
30666         update-copyright: apply to self
30667         * build-aux/update-copyright: Fix copyright date.  How ironic!
30669 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30671         libunistring: update to Unicode 7.0.0
30672         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
30673         Manichaean names.
30674         * lib/unictype/joininggroup_name.h: Likewise.
30675         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
30676         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
30677         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
30678         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
30679         (fill_arabicshaping, joining_group_as_c_identifier): Support those
30680         enum values.
30681         (is_property_alphabetic): Accept newly added characters to
30682         cuneiform numeric signs.
30683         (is_property_default_ignorable_code_point): Reject U+0605.
30684         (FIELDLEN): Increase from 120 to 160.
30685         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
30686         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
30687         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
30688         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
30689         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
30690         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
30691         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
30692         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
30693         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
30694         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
30695         U+1E8D0..U+1E8D6.
30696         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
30697         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30698         lib/uniwidth/width.c.
30699         * all generated files under lib/uni* and tests/uni*: Regenerate.
30701 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30703         libunistring: update to Unicode 6.3.0
30704         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30705         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
30706         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
30707         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
30708         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
30709         Update WB5, WB9, WB10, WB13a, and WB13b.
30710         * tests/uniwbrk/test-uc-wordbreaks.c
30711         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
30712         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30713         (UC_BIDI_PDI): New enumeration values.
30714         (bidi_category_byname): Support those enum values.
30715         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
30716         dedicated property assigned.
30717         (is_property_case_ignorable): Check 0x0027.
30718         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30719         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30720         (output_wbp): Support those enum values.
30721         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30722         (UC_BIDI_PDI): New enumeration values.
30723         * lib/unictype/bidi_byname.gperf: Add those property names.
30724         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
30725         U+180E, U+1A1B, and U+2066..U+2069.
30726         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30727         lib/uniwidth/width.c.
30728         * all generated files under lib/uni* and tests/uni*: Regenerate.
30730 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30732         libunistring: update to Unicode 6.2.0
30733         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
30734         (unilbrk_table): Adjust table size.
30735         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30736         for LBP_RI.
30737         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
30738         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
30739         Normalize table index skipping ignored properties.
30740         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
30741         WBP_EXTEND and WBP_FORMAT, which are now computed without using
30742         the table.
30743         * lib/uniwbrk/wbrktable.h: Adjust table size.
30744         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
30745         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
30746         Support rule GB8a.
30747         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
30748         * tests/unigbrk/test-uc-is-grapheme-break.c
30749         (graphemebreakproperty_to_string): Support GBP_RI.
30750         * tests/uniwbrk/test-uc-wordbreaks.c
30751         (wordbreakproperty_to_string): Support WBP_RI.
30752         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
30753         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
30754         (output_lbp): Support LBP_RI.  Adjust some characters changed from
30755         LBP_AL to LBP_ID.
30756         (output_lbp): Support LBP_RI.
30757         (WBP_RI): New enumeration value.
30758         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30759         (output_wbp): Support WBP_RI.
30760         (GBP_RI): New enumeration value.
30761         (output_gbp_test, fill_org_gbp): Support GBP_RI.
30762         * all generated files under lib/uni* and tests/uni*: Regenerate.
30764 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30766         libunistring: update to Unicode 6.1.0
30767         * lib/gen-uni-tables.c (output_joining_group): Switch to
30768         3-level table to accommodate joining groups defined with higher
30769         codepoint value.  Since there are only 88 groups defined in
30770         Unicode 7.0.0, use 7-bit packed format for level3 entries.
30771         (get_lbp): Update for Unicode 6.1.0.
30772         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
30773         3-level table.
30774         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
30775         joining group name.
30776         * lib/unictype/joininggroup_name.h: Likewise.
30777         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
30778         (unilbrk_table): Adjust table size.
30779         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30780         for LBP_HL.
30781         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
30782         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
30783         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
30784         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
30785         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
30786         U+302E..U+302F.
30787         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30788         lib/uniwidth/width.c.
30789         * all generated files under lib/uni* and tests/uni*: Regenerate.
30790         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
30792 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30794         uniwbrk/u32-wordbreaks-tests: add conformance test
30795         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
30796         tests/uniwbrk/test-uc-wordbreaks.c,
30797         tests/uniwbrk/test-uc-wordbreaks.sh, and
30798         tests/uniwbrk/WordBreakTest.txt.
30799         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
30800         test-uc-wordbreaks to $(check_PROGRAMS), and define
30801         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
30802         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
30803         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
30805 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30807         uniwbrk: ignore Extended/Format characters at BOL not BOS
30808         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
30809         characters if the previous character property is one of
30810         WBP_NEWLINE, WBP_CR, and WBP_LF.
30812 2015-01-11  Jim Meyering  <meyering@fb.com>
30814         test-strstr.c: avoid a trivial leak
30815         * tests/test-strstr.c (main): Free haystack.
30817         update-copyright: recognize groff's \(co marker
30818         * build-aux/update-copyright (circle_c_re): Also accept
30819         uses of \(co, as found in gzip.1.
30821 2015-01-08  Pádraig Brady  <P@draigBrady.com>
30823         maint.mk: fix compatibility with OS X nm
30824         * top/maint.mk (_gl_tight_scope): Use the -g option to
30825         show exported items rather than the -e option which is
30826         ignored on all platforms except OS X where it gives an error.
30827         Reported by Assaf Gordon.
30829 2015-01-07  KO Myung-Hun  <komh@chollian.net>
30831         localcharset: improve charset detection on OS/2
30832         Use system codepage when appropriate.  Map OS/2 codepages to
30833         GNU canonical charset names if possible.
30834         * lib/config.charset: Don't output aliases if "$os" is os2*.
30835         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
30836         result for OS/2.
30837         (locale_charset) [OS2]: Use system codepage if codeset is omitted
30838         from the locale name which is neither "C" nor "POSIX".
30840 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
30842         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
30843         This reverts the last patch but one, as it shouldn't be needed now
30844         that the typo is fixed.
30845         * lib/count-leading-zeros.h (count_leading_zeros_ll):
30846         * lib/count-trailing-zeros.h:
30847         * lib/count-one-bits.h:
30848         Go back to using 64-bit intrinsics.
30850         count-leading-zeros: fix pragma typos
30851         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
30852         Fix typos in declaration of intrinsics when _MSC_VER.
30854 2015-01-06  Pádraig Brady  <P@draigBrady.com>
30856         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
30857         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
30858         intrinsics in this case.
30859         * lib/count-trailing-zeros.h: Likewise.
30860         * lib/count-one-bits.h: Likewise.
30862 2015-01-06  Daiki Ueno  <ueno@gnu.org>
30864         uniname/uniname: update to Unicode 7.0.0
30865         To accommodate new characters added since Unicode 5.1.0, this
30866         changes the internal representation of codepoint ranges.
30867         Previously, we grouped codepoint ranges by manually assigned 4-bit
30868         tag, which only allowed 16 groups.  This removes the limitation by
30869         switching to binary search on a table.  For the detail rationale
30870         and the benchmark results, see:
30871         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
30872         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
30873         to INDEX, as it no longer represents a codepoint.
30874         (range): New struct.
30875         (main): Switch to intervals list from a bit-pattern based
30876         classification.
30877         * lib/uniname/uninames.h: Regenerate.
30878         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
30879         * modules/uniname/base (configure.ac): Bump minimum version to
30880         0.9.5.
30881         * modules/uniname/uniname (configure.ac): Bump minimum version to
30882         0.9.5.
30884 2015-01-05  Eric Blake  <eblake@redhat.com>
30886         doc: update INSTALL from autoconf
30887         * doc/install.texi: Resync from autoconf.
30888         * doc/INSTALL: Reflect recent autoconf update.
30889         * doc/INSTALL.ISO: Likewise.
30890         * doc/INSTALL.UTF-8: Likewise.
30892         stdio: fix use of PRIdMAX on modern mingw
30893         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
30894         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
30895         to work with modern mingw.
30897 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
30899         pthread: detect git mingw builds with only partial pollution
30900         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
30901         pollution, as seen temporarily in Fedora 21.
30903 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30905         lib-symbol-versions: cache script check
30906         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
30907         Cache the check for linker version scripts.
30908         From a suggestion by Christophe Curis in:
30909         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
30911 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
30913         maint: fix grammar nits in propername (trivial change)
30914         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
30915         and use an adequate verb and tense.
30917 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
30919         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30920         * module/gendocs: Add 'doc/gendocs_template_min'.
30922         * build-aux/gendocs.sh: Change email addresses and upstream URLs
30923         from to Gnulib's.
30924         (scripturl, templateurl): Adjust accordingly.
30926 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30928         gendocs: copyright date and version fix
30929         Reported by Karl Berry in:
30930         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
30931         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
30932         Fix copyright date.
30933         * build-aux/gendocs.sh (scriptversion): Update.
30935 2015-01-01  Karl Berry  <karl@gnu.org>
30937         * doc/install.texi,
30938         * build-aux/mdate-sh,
30939         * build-aux/depcomp,
30940         * build-aux/config.guess,
30941         * build-aux/config.sub,
30942         * build-aux/ar-lib,
30943         * build-aux/compile: revert copyright updates (some from last
30944         year) in slaved files.
30946 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30948         version-etc: new year
30949         * doc/gnulib.texi:
30950         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
30951         * all files: Run 'make update-copyright'.
30953 2014-12-30  Pádraig Brady  <P@draigBrady.com>
30955         xstrtol: ensure errno is reset
30956         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
30957         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
30959         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
30961 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30963         utimens: fix dependency typo
30964         * modules/utimens (Depends-on): Remove 'assure'.
30965         This bug was introduced in the recent 'assure' patch.
30967 2014-12-22  Eric Blake  <eblake@redhat.com>
30969         docs: mention why libgen.h is bad
30970         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
30972 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
30974         assure: new module
30975         This works better than 'assert' when compiling with -DNDEBUG,
30976         as it avoids some compiler diagnostics in that case.
30977         Reported by Norihiro Tanaka in:
30978         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
30979         * MODULES.html.sh (func_all_modules): Add 'assure'.
30980         * lib/assure.h, modules/assure: New files.
30981         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
30982         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
30983         Prefer 'assure' to 'assert'.
30984         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
30985         * modules/chdir-long, modules/cycle-check, modules/fchdir:
30986         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
30987         Depend on 'assure'.
30989 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
30991         stdalign: port better to HP compilers
30992         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
30993         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
30995         stdalign: work around Apple GCC 4.0 bug
30996         Reported by David Fang in:
30997         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
30998         * lib/stdalign.in.h (_Alignas):
30999         * m4/stdalign.m4 (gl_STDALIGN_H):
31000         Do not use aligned attribute with GCC 4.0 on Apple.
31002 2014-12-16  Pádraig Brady  <P@draigBrady.com>
31004         getcwd: fix test failure on OS X 10.9
31005         * m4/getcwd-path-max.m4: Avoid the replacement if it
31006         won't be effective due to the PATH_MAX limitation of lstat().
31007         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
31008         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
31009         for this case for use in tests, and also exclude this
31010         case when setting REPLACE_GETCWD.
31011         * tests/test-getcwd.c (test_long_name): Restrict the
31012         tested path length so that lstat() will not be passed
31013         a path greater than PATH_MAX.
31014         Also key a test condition on HAVE_OPENAT_SUPPORT rather
31015         than AT_FDCWD, since the latter is set unconditionally
31016         since Sep 2009 in commit 52c658e9.
31018 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
31020         parse-datetime: avoid a compiler warning with byacc (trivial)
31021         * lib/parse-datetime.y (yylex): Use the same prototype in the
31022         function definition as the declaration, to avoid a -Wstrict-prototypes
31023         warning seen when using byacc.
31025 2014-12-12  Daiki Ueno  <ueno@gnu.org>
31027         unicase/locale-language-tests: fix LOCALE_FR test
31028         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
31029         a French locale with traditional encoding.
31030         Reported by umerqayam in:
31031         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
31033 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31035         stddef: support C11's max_align_t
31036         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
31037         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
31038         Do not undef, as that might cause max_align_t to be defined twice.
31039         Instead, change use to check for _GL_STDDEF_WINT_T too.
31040         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
31041         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
31042         Check for max_align_t.
31043         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
31044         * modules/stddef-tests (Depends-on): Add stdalign.
31045         * tests/test-stddef.c: Test max_align_t.
31047 2014-12-11  Daiki Ueno  <ueno@gnu.org>
31049         unistd: fix iOS check conditional
31050         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
31051         as 0 or 1 in <TargetConditionals.h>, and the previous check always
31052         yielded true on non-iOS environment.
31053         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
31054         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
31055         they are defined.
31057 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
31059         posixtm: avoid compiler warning in a better way
31060         * lib/posixtm.c (IF_LINT): Remove.
31061         (year, posix_time_parse):
31062         Return true (not 0) if successful.  All callers changed.
31063         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
31065 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31067         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
31068         started with '/' on EMX.
31070 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31072         freopen: workaround freopen() on OS/2 kLIBC
31073         * lib/freopen.c (rpl_freopen): Workaround.
31074         * m4/freopen.m4: Add os2* case.
31076         get_shared_library_fullname: port to EMX
31077         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
31078         on EMX, respectively.
31079         (_DLL_InitTerm): New on EMX.
31080         (get_shared_library_fullname): Implement on EMX.
31082         find_executable: port to EMX
31083         * lib/progreloc.c (find_executable): Implement on EMX.
31085         sched: check struct sched_param in spawn.h as well
31086         * lib/sched.in.h: Include spawn.h on kLIBC.
31087         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
31089 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
31091         bootstrap: Allow perl modules in $buildreq
31092         * build-aux/bootstrap: Add case for perl modules.
31094 2014-12-08  Pádraig Brady  <P@draigBrady.com>
31096         apply _GL_ATTRIBUTE_PURE to some inline functions
31097         clang 3.4.2 flagged these inline functions as pure
31098         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
31099         * lib/sig-handler.h (get_handler): Likewise.
31100         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
31101         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
31103 2014-12-06  Pádraig Brady  <P@draigBrady.com>
31105         vasnprintf: fix potential use after free
31106         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
31107         flagged by clang-analyzer 3.4.2.
31109 2014-12-05  Pádraig Brady  <P@draigBrady.com>
31111         filevercmp, posixtm: avoid compiler warnings with -O3
31112         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
31113         * lib/posixtm.c: (IF_LINT): Define.
31114         (posix_time_parse): Use it to void a "may be used uninitialized"
31115         warning, seen only with -O3.
31117 2014-12-05  Bruno Haible  <bruno@clisp.org>
31119         Fix LDBL80_WORDS macro on big endian platforms.
31120         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
31121         LDBL80_WORDS macro.
31122         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31123         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31124         * tests/test-isfinite.c (test_isfinitel): Likewise.
31125         * tests/test-isinf.c (test_isinfl): Likewise.
31126         * tests/test-isnan.c (test_long_double): Likewise.
31127         * tests/test-isnanl.h (main): Likewise.
31128         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
31129         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
31130         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
31131         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
31132         Reported by Pádraig Brady.
31134 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
31136         git-version-gen: do not print new line characters
31137         * build-aux/git-version-gen: Use printf instead of echo and tr.
31139         gnulib-tool: recognize x:* as an absolute path
31140         * gnulib-tool (func_gnulib_dir): Add ?:* case.
31141         (func_relconcat): Likewise.
31143 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
31145         argp: avoid extraneous translation and mem leak with empty pre doc
31146         * lib/argp-help.c (argp_doc): Never translate the empty string,
31147         when "\v" is the first or last character of the string, as that
31148         has a reserved meaning to return the header info from a po file.
31149         This also fixes a small memory leak in the !post case.
31150         The issue can be seen with this command for example:
31151         LC_MESSAGES=en_US grub2-mknetdir --help
31153 2014-11-27  Daiki Ueno  <ueno@gnu.org>
31155         uniname/uniname-tests: skip if system's libunistring is used
31156         * modules/uniname/uniname-tests (Makefile.am): Skip test if
31157         uniname/uniname module is not compiled.
31159 2014-11-27  Pádraig Brady  <P@draigBrady.com>
31161         printf: fix configure check on big endian systems
31162         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
31164 2014-11-22  Daiki Ueno  <ueno@gnu.org>
31166         pipe-filter-gi, pipe-filter-ii: port to AIX
31167         On AIX 7.1, 'select' is defined as static and cannot be referred
31168         to from inline function.
31169         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
31170         the definition...
31171         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
31172         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
31174 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31176         gitlog-to-changelog: add --until
31177         * build-aux/gitlog-to-changelog: Support new --until option.
31178         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
31180 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
31182         extern-inline: update commentary about GCC bugs
31183         * m4/extern-inline.m4: Add another GCC bug number to comments.
31185 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31187         gen-uni-tables: untabify
31188         * lib/gen-uni-tables.c: Untabify.
31190 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31192         gen-uni-tables: check out-of-range values added to 3-level tables
31193         * lib/gen-uni-tables.c (output_category, output_bidi_category)
31194         (output_joining_type, output_ident_category): Check out-of-range
31195         values added to 3-level tables.
31197 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31199         gen-uni-tables: utilize 'assert'
31200         * lib/gen-uni-tables.c: Include <assert.h>.
31201         (output_category, output_combclass, output_decimal_digit_test)
31202         (output_decimal_digit, output_digit_test, output_digit)
31203         (output_numeric, get_mirror_value, fill_properties)
31204         (fill_property30, is_property_alphabetic)
31205         (is_property_default_ignorable_code_point)
31206         (is_property_uppercase, is_property_lowercase)
31207         (is_property_cased, is_property_case_ignorable)
31208         (is_property_changes_when_lowercased, is_property_iso_control)
31209         (is_property_math, fill_arabicshaping, output_joining_group)
31210         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
31211         (output_wbp, fill_org_gbp, get_decomposition)
31212         (output_decomposition, fill_composition_exclusions)
31213         (debug_output_composition_tables, output_composition_tables)
31214         (redistribute_casefolding_rules, output_casing_rules): Use
31215         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
31216         reporting.
31218 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31220         gen-uni-tables: cosmetic improvements
31221         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
31222         variables specification.
31223         (is_outdigit): Remove unused function.
31225 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
31227         fcntl-h-tests: port to PA-RISC GNU/Linux
31228         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
31230 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31232         fts: port to C89
31233         Problem reported for MSVC 16 by Gisle Vanem in:
31234         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
31235         * lib/fts.c (fts_build): Avoid declaration before statement.
31237 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
31239         unistd: port to iOS
31240         Problem reported by André Klitzing in:
31241         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
31242         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
31244 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
31246         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
31247         Problem reported by Alan Modra in:
31248         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
31249         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
31250         Always cast the function arg, reverting this part of the previous
31251         change.
31253 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
31255         obstack: avoid potentially-nonportable function casts
31256         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
31257         Remove, replacing with ...
31258         (call_chunkfun, call_freefun): New static functions.
31259         All uses changed.  Avoid potentially-nonportable casts.
31260         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
31261         (_obstack_begin_worker): Omit last two args, since they
31262         rely on potentially-nonportable casts.  All callers changed.
31263         * lib/obstack.h (_OBSTACK_CAST): New macro.
31264         Use it everywhere the old API used a potentially-nonportable cast.
31265         The new API doesn't cast.
31266         (struct obstack): Use unions rather than requiring
31267         potentially-nonportable casts.
31268         (obstack_chunkfun, obstack_freefun): Return void.
31270 2014-11-03  Alan Modra  <amodra@gmail.com>
31272         obstack: fix macro return values
31273         * lib/obstack.h (obstack_next_free): Return void *.
31274         (obstack_1grow_fast, obstack_blank_fast): Return void.
31275         For __GNUC__ macros:
31276         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
31277         For !__GNUC__ macros:
31278         (obstack_make_room, obstack_grow, obstack_grow0)
31279         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
31281 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31283         obstack: do not assume system-supplied obstack is size_t safe
31284         * m4/obstack.m4: New file.
31285         * modules/obstack (Files): Add it.
31287         obstack: port to platforms that #define __alignof__
31288         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
31289         not if !_LIBC.  We don't know of any platforms that #define
31290         __alignof__, but it might be useful in tests.  Conversely,
31291         glibc assumes GCC.
31293 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31295         linkat: don't unconditionally replace on GNU/Linux
31296         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
31297         was redundant for a few reasons.  It was present to support compiling
31298         on new systems but running on the old narrow window of Linux 2.6.1[67].
31299         It setup and cleaned up test files which weren't actually used.
31300         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
31301         implicit in the following check.
31303 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31305         linkat: wrap to handle symlinks on OS X 10.10
31306         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
31307         but not usable because it doesn't support creating hardlinks
31308         to symlinks.  Therefore add a generic test for this capability
31309         and fallback to our emulation if linkat() fails with ENOTSUP.
31311 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31313         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
31314         * doc/posix-functions/open.texi (open):
31315         * doc/posix-functions/openat.texi (openat):
31316         Document that these functions do not set errno to ELOOP when
31317         a symlink is opened with O_NOFOLLOW.
31319 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31321         obstack: add NEWS entry for recent incompatible changes
31322         * NEWS: Describe recent changes.
31324 2014-10-30  Pádraig Brady  <P@draigBrady.com>
31326         mountlist: don't use libmount to decide on dummy/remote
31327         * lib/mountlist.c (read_file_system_list): Don't use the libmount
31328         routines to determine whether a file system is dummy or remote,
31329         as they're not currently compatible.  For example the remoteness
31330         is determined on file system type (for which the list seems incomplete),
31331         rather than simply checking for a ':' in the device name.
31332         Also libmount currently determines that 'tmpfs' is a dummy file system
31333         even though it has associated storage.
31335 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31337         obstack: prefer __alignof__ to alignof
31338         This is for portability to pre-4.7 GCC when compiling glibc.
31339         See Joseph S. Myers in:
31340         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
31341         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
31342         New macro, defined by including and using <alignof.h>.
31343         (MAX): New macro.
31344         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
31345         Do not use enums as they are not portable to some broken compilers.
31346         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
31348         obstack: prefer alignof to calculating alignments by hand
31349         * lib/obstack.c: Include <stdalign.h>.
31350         (struct fooalign): Remove.
31351         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
31352         * modules/obstack (Depends-on): Add stdalign.
31354 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
31356         obstack: use size_t alignments and check for overflow
31357         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
31358         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
31359         * lib/obstack.h (struct obstack.alignment_mask):
31360         Use _OBSTACK_SIZE_T, not int, for alignments.
31361         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
31362         overflows, e.g., when adding the alignment.
31364 2014-10-29  Alan Modra  <amodra@gmail.com>
31366         obstack: 64-bit obstack support, part 3
31367         This finally enables full 64-bit obstack support.  The glibc
31368         shared library specific code is removed from obstack.c too, and
31369         the error handling code conditionally compiled under control of
31370         another macro, _OBSTACK_NO_ERROR_HANDLER.
31371         * lib/obstack.h: Include string.h earlier.
31372         (_OBSTACK_INTERFACE_VERSION): Define.
31373         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
31374         * lib/obstack.c: Don't include shlib-compat.h.
31375         (OBSTACK_INTERFACE_VERSION): Delete.
31376         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
31377         glibc code is compatible with version 2.  Don't include stdio.h for
31378         __GNU_LIBRARY.
31379         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
31380         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
31381         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
31382         glibc shared library specific source.
31384         obstack: 64-bit obstack support, part 2
31385         This gets us 4G obstack support, without changing ABI
31386         compatibility, apart from possibly introducing some
31387         signed/unsigned comparison warnings in code that uses obstack.h.
31388         a) Replace "int" size parameters, return values, and macro local vars
31389            with _OBSTACK_SIZE_T, an "unsigned int" for now.
31390         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
31391         c) Make all obstack macros checking available room use obstack_room.
31392            "next_free + desired > chunk_limit" may wrap the lhs for chunks
31393            allocated near the top of memory.
31394         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
31395         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
31396         in place of "int" size parameters, return values and local vars.
31397         (_CHUNK_SIZE_T): Define.
31398         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
31399         union use an _OBSTACK_SIZE_T integer type.
31400         For __GNUC__ versions of the following macros...
31401         (obstack_room): Rename local var.
31402         (obstack_make_room): Use obstack_room.
31403         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31404         obstack_int_grow, obstack_blank): Likewise.
31405         (obstack_finish): Use unsigned comparison when comparing aligned
31406         next_free against chunk_limit.
31407         (obstack_free): Cast OBJ to remove possible const qualifier.
31408         For !__GNUC__ versions of the following macros...
31409         (obstack_make_room): Use obstack_room.
31410         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31411         obstack_int_grow, obstack_blank): Likewise.
31412         (obstack_finish): Use unsigned comparision when comparing aligned
31413         next_free against chunk_limit.
31414         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
31415         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
31416         _OBSTACK_SIZE_T.
31417         (_obstack_begin, _obstack_begin_1): Likewise.
31418         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
31419         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
31421         obstack: 64-bit obstack support, part 1
31422         a) Correct calls to alloc function, to use a size_t arg.  "long" is
31423            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
31424            and "size_t" 64 bits.
31425         b) Consolidate _obstack_begin and _obstack_begin1 code.
31426         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
31427         use "size_t" rather than "long".
31428         (_obstack_begin, _obstack_begin1): Likewise.
31429         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
31430         obstack_chunkfun): Update alloc function casts.
31431         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
31432         (chunkfun_type, freefun_type): New typdefs.
31433         (_obstack_begin_worker): Split out from ..
31434         (_obstack_begin, _obstack_begin_1): ..here.
31436         obstack: tidy part 2
31437         a) Don't be concerned about "not polluting the namespace with stddef.h
31438            symbols" in obstack.h, since gnulib string.h includes stddef.h
31439            anyway, and it seems unlikely that anyone would care.
31440         b) Don't roll our own slow memcpy in _obstack_newchunk.
31441         c) Rename obstack_free to _obstack_free.  This makes the naming
31442            consistent with other obstack functions and obviates the need for
31443            __obstack_free.  Ancient obstack.c defined both obstack_free and
31444            _obstack_free.  We continue to do that for _LIBC via an alias.
31445         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
31446            is clever, but nowadays gcc warns on undefined macros.  You'll get
31447            an undefined macro warning if simulating an old gcc with -U__GNUC__
31448            -U__GNUC_MINOR__ -D__GNUC__=1.
31449         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
31450         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
31451         (__obstack_free): Delete, update refs.
31452         (_obstack_free): Rename from obstack_free.
31453         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
31454         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
31455         * lib/obstack.c: Don't include stddef.h.
31456         (COPYING_UNIT): Delete.
31457         (_obstack_begin): Formatting fix.
31458         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
31459         (_obstack_free): Rename from __obstack_free, update alias.  Move
31460         undef of obstack_free to where it is needed.
31462         obstack: tidy part 1
31463         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
31464            to me, and result in overlong lines after later patches.
31465         b) Move error handling code, to avoid a forward declaration and to
31466            simplify later patches in this series.
31467         * lib/obstack.h (struct obstack <temp>): Rename fields of union
31468         and update all uses.
31469         * lib/obstack.c: Include stdlib.h earlier.
31470         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
31471         in file.
31472         (print_and_abort): Remove now redundant forward declaration.
31474 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31476         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
31477         Without this change, in bleeding-edge fileutils Autoconf complains
31478         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
31479         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
31480         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
31481         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
31483 2014-10-24  Daiki Ueno  <ueno@gnu.org>
31485         iconv: avoid false detection of non-working iconv
31486         The INBUF arguments of iconv can be either 'const char **'
31487         or 'char **'.  If CC is g++, the difference causes a compile error
31488         and thus leads to a false detection of non-working iconv.
31489         Reported by Eli Zaretskii and Werner LEMBERG in:
31490         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
31491         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
31492         iconv.  Bump serial number.
31494 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31496         bootstrap: print more diagnostics for missing programs
31497         * build-aux/bootstrap: only suppress stderr when checking for
31498         alternative program names.  This supports programs issuing non
31499         standard error messages.
31501 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31503         bootstrap: only update the gnulib submodule
31504         * build-aux/bootstrap: Restrict the "submodule update" command
31505         to the gnulib path.
31507 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
31509         symlinkat: port to AIX 7.1
31510         * doc/posix-functions/symlinkat.texi (symlinkat):
31511         Mention AIX porting problem.
31512         * lib/symlinkat.c: Always include errno.h.
31513         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
31514         * lib/unistd.in.h (symlinkat): Add replacement machinery.
31515         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
31516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
31517         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
31518         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
31519         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
31521         readlinkat: port to AIX 7.1
31522         * doc/posix-functions/readlink.texi (readlink):
31523         * doc/posix-functions/readlinkat.texi (readlinkat):
31524         Mention AIX porting problem.
31525         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
31526         New function.
31527         * lib/unistd.in.h (readlinkat): Add replacement machinery.
31528         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
31529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
31530         * modules/readlinkat (configure.ac): Also compile replacement
31531         if REPLACE_READLINKAT.
31532         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
31534 2014-10-12  Karl Berry  <karl@gnu.org>
31536         * doc/posix-functions/dirname.texi: remove spurious {.
31538 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
31540         basename, dirname: Improve documentation.
31541         * doc/posix-functions/basename.texi: Mention dirname module and
31542         base_name() function.
31543         * doc/posix-functions/dirname.texi: Mention dir_name() and
31544         mdir_name() functions.
31545         Suggested by Werner LEMBERG <wl@gnu.org>.
31547 2014-09-24  Jim Meyering  <meyering@fb.com>
31549         exclude: declare exclude_patopts static
31550         * lib/exclude.c (exclude_patopts): Declare static,
31551         to avoid triggering a -Wmissing-prototypes warning.
31552         The alternative (declaring it in the .h file) would
31553         require publicizing the private "struct patopts".
31555 2014-09-21  Werner Lemberg  <wl@gnu.org>
31557         dirname: support compilation with C++
31558         * lib/dirname.h: Add necessary C linkage declarations.
31560 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
31562         qsort_r: include <config.h>
31563         Problem reported by Tom G. Christensen in:
31564         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
31565         * lib/qsort.c [!_LIBC]: Include <config.h> first.
31567 2014-09-16  Dylan Cali  <calid1984@gmail.com>
31569         avltree-list: avoid compiler warnings (trivial)
31570         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
31571         -Werror=suggest-attribute=pure.
31572         * lib/gl_array_list.c: Likewise.
31573         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
31574         declaration to avoid -Werror=missing-prototypes.  This is not added
31575         to a header as only exported for tests.  Add (void) to the
31576         check_invariants() call to indicate we're discarding the result
31577         in this context which avoids -Werror=unused-value.  Note we don't
31578         use ignore_value here to avoid a dependency as we know we'll not
31579         be adding __attribute__((warn_unused_result)) to check_invariants().
31580         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
31582 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31584         qsort_r: new module, for GNU-style qsort_r
31585         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
31587 2014-09-15  Werner LEMBERG  <wl@gnu.org>
31589         strerror_r-posix: support compilation with C++
31590         * lib/strerror_r.c: Add necessary C linkage declarations.
31592 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
31594         fcntl-h: fix compilation with Intel C++ compiler (trivial)
31595         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
31597 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
31599         mountlist: use /proc/self/mountinfo when available
31600         Use libmount to propagate device IDs provided by Linux in
31601         /proc/self/mountinfo.  This will give more accurate output when
31602         using df in chroot'ed environments as the device IDs are not
31603         determined by stat() which may be inaccurate within the chroot.
31604         * lib/mountlist.c (read_file_system_list): Use the libmount routines
31605         from util-linux to parse "/proc/self/mountinfo" or fall back to
31606         standard getmntent() processing.
31607         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
31608         getmntent() is used, as is the case on GNU/Linux.
31610 2014-09-07  Eric Wong  <normalperson@yhbt.net>
31612         users.txt: add cmogstored
31613         cmogstored has used gnulib since the beginning in 2012 to support
31614         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
31616 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31618         Trivial change.
31619         * gnulib-tool: Use same options as build-aux/bootstrap to download
31620         PO files.
31622 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31624         Trivial change.
31625         * gnulib-tool: Fallback to wget when rsync of PO files fails.
31627 2014-09-04  Eric Blake  <eblake@redhat.com>
31629         maintainer-makefile: add syntax check for useless ';;'
31630         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
31632 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
31634         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
31635         Problem reported by Assaf Gordon in:
31636         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
31637         Apparently Ubuntu is doing some fancy link-time optimization
31638         that doesn't work with -lpthread but does work with -pthread.
31639         Work around the bug by preferring -pthread to -lpthread.
31640         * m4/pthread.m4 (gl_PTHREAD_CHECK):
31641         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
31642         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31643         Treat -pthread like -lpthread.
31645 2014-09-04  Eric Blake  <eblake@redhat.com>
31647         error: drop spurious semicolon
31648         * lib/error.c (__error_at_line): Fix ';;'.
31650 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31652         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
31653         * m4/gnulib-common.m4 (AC_C_RESTRICT):
31654         Override AC_C_RESTRICT unconditionally.
31655         Update from autoconf, incorporating:
31656         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
31657         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
31659 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31661         manywarnings: add GCC 4.9 warnings
31662         Also, make it easier to maintain this in the future.
31663         * build-aux/gcc-warning.spec: Add -Wabi-tag,
31664         -Wconditionally-supported, -Wdelete-incomplete,
31665         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
31666         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
31667         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
31668         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
31669         only for older GCC versions that need them.  Handle
31670         -Wnormalized=nfc specially, so that the 'comm' command used
31671         for maintenance doesn't get confused.
31673 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31675         vasnprintf: fix bugs in width computation
31676         * lib/vasnprintf.c (VASNPRINTF):
31677         Rework previous change, which introduced a bug,
31678         to avoid the warning in a different way.
31679         Avoid undefined behavior if the width arg is less than -INT_MAX.
31680         Avoid unnecessary use of HAS_WIDTH local.
31682 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
31684         vasnprintf: Avoid signed/unsigned comparison warning.
31685         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
31686         compare end addr of generated string w/ maximum end addr.
31688 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31690         parse-datetime: Avoid pointer difference.
31691         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
31692         instead of calculating difference of pointers.  This removes an
31693         annoying warning, devoid of any use.
31695 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31697         qsort_r: new module, for GNU-style qsort_r
31698         This works even on FreeBSD, which has an incompatible qsort_r API.
31699         * MODULES.html.sh: Add it.
31700         * doc/glibc-functions/qsort_r.texi: It's now supported.
31701         * lib/qsort.c: New file, taken from glibc with minor changes
31702         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
31703         removed.
31704         * lib/qsort_r.c: New file, compiled only on FreeBSD.
31705         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
31706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
31707         * modules/qsort_r, modules/qsort_r-tests: New files.
31708         * modules/stdlib (Makefile): Set up its defaults.
31709         * tests/test-qsort_r.c: New file.
31711 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31713         vla: new module
31714         GNU RCS can use this, mostly for documentation I expect.  See:
31715         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
31716         * MODULES.html.sh: Add vla.
31717         * lib/vla.h, modules/vla: New files.
31719 2014-08-07  Daiki Ueno  <ueno@gnu.org>
31721         localename: make gl_locale_name_thread really thread-safe on Windows
31722         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
31723         "glthread/lock.h".
31724         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
31725         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
31727 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
31729         getpass: don't assume struct termios
31730         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
31731         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
31732         * lib/getpass.c (getpass): Port to systems lacking struct termios.
31734         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
31735         Problem reported by Jonas 'Sortie' Termansen in:
31736         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
31737         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
31738         Implement via sysconf for platforms that lack getdtablesize.
31740         vararrays: modernize AC_C_VARARRAYS for C11
31741         This backports a change I recently made to Autoconf.
31742         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
31743         VLAs are not supported, as this is what C11 does.  The old macro
31744         HAVE_C_VARARRAYS is still defined if they are supported, but is
31745         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
31747 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
31749         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
31750         * build-aux/install-reloc (func_create_wrapper): Also wrap
31751         strerror-override, stat, stat.
31753 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31755         sys_select: fix FD_ZERO problem on Solaris 10
31756         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
31757         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
31758         to expand to an expression that invoked memset without necessarily
31759         including <string.h>.  The problem was that the first include
31760         defined _SYS_TIME_H, causing the second include to short-circuit.
31761         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
31762         Also, fix what appears to be a cut-and-paste typo, by replacing
31763         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
31764         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
31766         accept: document Solaris 10 type glitch
31767         * doc/posix-functions/accept.texi (accept): Mention that
31768         Solaris 10 'accept' takes void * last arg, not socklen_t *.
31770 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
31772         extern-inline: port to FreeBSD, DragonFly
31773         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
31774         is present if either __DragonFly__ or __FreeBSD__ is defined.
31775         FreeBSD problem reported by Andrey Borzenkov in:
31776         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
31777         Also, worry about __APPLE__ only if __MACH__ is also defined,
31778         as this is more consistent with the rest of gnulib.
31779         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
31780         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
31782 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31784         regex: Make #if/#ifdef usage consistent for DEBUG
31785         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
31786         of the inconsistent usage of #if and #ifdef as that works with
31787         both Glibc and Gnulib's style.
31789 2014-07-31  Eric Blake  <eblake@redhat.com>
31791         openat-die: use _Noreturn markup
31792         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
31793         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
31794         _Noreturn.
31796 2014-07-30  Eric Blake  <eblake@redhat.com>
31798         test-open: port to cygwin, which lacks Fortify
31799         * tests/test-open.h (ALWAYS_INLINE): New macro.
31800         (__always_inline): Don't abuse internal symbol on non-glibc.
31802 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
31804         localename: Enforce declarations before statements.
31805         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
31806         first statement.
31808 2014-07-18  Jim Meyering  <meyering@fb.com>
31810         test-userspec: don't look up numeric user names
31811         * tests/test-userspec.c: I found a system for which getpwnam("0")
31812         returned a pointer to a non-root user's entry, and that made the
31813         test fail.
31814         (T): Prefix each numeric input with "+", to inhibit lookup.
31816 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
31818         localcharset, localename: MS-Windows support for non-default locales
31819         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
31820         falling back on the default system codepage, try extracting
31821         the codepage from what 'setlocale' returns.  This allows to
31822         take into account changes of the codeset due to non-default
31823         locale set by a previous call to 'setlocale'.
31824         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
31825         Define if not already defined.
31826         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
31827         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
31828         current locale by calling 'setlocale', then converting the
31829         locale name into LCID by calling 'get_lcid'.  This allows to
31830         take into account changes in the current locale from the
31831         default one, in contrast to GetThreadLocale.
31833 2014-07-14  Daiki Ueno  <ueno@gnu.org>
31835         announce-gen: avoid failure when Digest::SHA is installed
31836         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
31837         Digest::SHA1->new in print_checksums fails.
31838         * build-aux/announce-gen (digest_classes): New associative array
31839         for available message digest implementations.
31840         (print_locations): Use it.
31842 2014-07-13  Pádraig Brady  <P@draigBrady.com>
31844         gettext: revert "update macros to version 0.19"
31845         This reverts commit 9b9370ca, as it currently requires that
31846         developers of any project that explicitly uses the gettext module
31847         or implicitly uses it through the utimens-tests or
31848         futimens-tests modules, use gettext >= 0.19.
31849         However there are some stability and availablity issues with
31850         that version at present.  We can reinstate this soon, when stability
31851         is addressed and packages are more readily available.
31853 2014-07-12  Jim Meyering  <meyering@fb.com>
31855         regex: don't deref NULL upon heap allocation failure
31856         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
31857         failure in one more place.
31858         To trigger the segfault, configure grep -with-included-regex,
31859         build it, and run these commands:
31860         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
31861         I discovered this while replying to a private report from
31862         Jens Schleusener about excessive memory consumption by grep
31863         when using a regular expression like the one above.
31865 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
31867         regex: fix memory leak in compiler
31868         Fix by Andreas Schwab in:
31869         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
31870         * lib/regcomp.c (parse_reg_exp): Deallocate partially
31871         constructed tree before returning error.
31873 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31875         announce-gen: avoid perl warnings
31876         * build-aux/announce-gen: add two minor checks to avoid
31877         "use of uninitialized value" warnings when command-line parameters are
31878         missing.
31880 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31882         localename: avoid -Wsuggest-attribute={const,pure} warnings
31883         * lib/localename.c (string_has): Tag internal function as pure.
31884         * lib/localename.h (gl_locale_name_default): Tag extern declaration
31885         as const when appropriate.
31887 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
31889         nl_langinfo: Fix last change.
31890         * lib/nl_langinfo.c (includes): Drop redundant include.
31892 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
31894         error: Fix -Wundef warnings in glibc
31895         * lib/error.c [_LIBC]: Define default macros for
31896         glibc.
31897         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
31898         Check _LIBC before STRERROR_R_CHAR_P.
31900         error: Sync from glibc master
31901         * lib/error.c [_LIBC]: Remove INTUSE usage.
31902         (error_tail): Remove unused macro ALLOCA_LIMIT.
31903         Fix potential buffer overflow.  Fix potential NULL dereference
31904         in strcmp.
31906 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
31908         nl_langinfo: fix build under mingw
31909         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
31911 2014-07-09  Andrew D Warshall  <warshall@99main.com>
31913         mountlist: do not classify a bind-mounted dir entry as "dummy"
31914         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
31915         1-argument getmntent() (instead of assuming absence).
31917 2014-07-08  Eric Blake  <eblake@redhat.com>
31919         maint.mk: less syntax-check noise when SIGPIPE is ignored
31920         * top/maint.mk (_sc_header_without_use)
31921         (sc_require_config_h_first): Parse full list.
31923 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
31924             Paul Eggert  <eggert@cs.ucla.edu>
31926         nl_langinfo: CODESET on MS-Windows and more items from localeconv
31927         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
31928         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
31929         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
31930         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
31931         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
31932         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
31933         Include <stdio.h> if Microsoft Windows.
31934         Include <time.h> if !REPLACE_NL_LANGINFO.
31935         (ctype_codeset): New function, taken from rpl_nl_langinfo,
31936         and with improvements for Microsoft Windows.
31937         (rpl_nl_langinfo): Use it.
31938         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
31939         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
31940         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
31941         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
31942         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
31943         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
31944         corresponding values returned by 'localeconv'.  Compute the values
31945         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
31946         'strftime' with a suitable struct tm value.
31948 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31950         Bruno Haible has stepped down as maintainer.
31951         See Karl Berry in:
31952         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
31953         Daiki Ueno has volunteered to maintain libunistring; see:
31954         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
31955         * modules/gen-uni-tables, modules/libunistring:
31956         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
31957         * modules/unicase/base, modules/unicase/cased:
31958         * modules/unicase/empty-prefix-context:
31959         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
31960         * modules/unicase/locale-language, modules/unicase/special-casing:
31961         * modules/unicase/tocasefold, modules/unicase/tolower:
31962         * modules/unicase/totitle, modules/unicase/toupper:
31963         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
31964         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
31965         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
31966         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
31967         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
31968         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
31969         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
31970         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
31971         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
31972         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
31973         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
31974         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
31975         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
31976         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
31977         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
31978         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
31979         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
31980         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
31981         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
31982         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
31983         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
31984         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
31985         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
31986         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
31987         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
31988         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
31989         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
31990         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
31991         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
31992         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
31993         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
31994         * modules/unicase/ulc-casexfrm, modules/unicodeio:
31995         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
31996         * modules/uniconv/u16-conv-to-enc:
31997         * modules/uniconv/u16-strconv-from-enc:
31998         * modules/uniconv/u16-strconv-from-locale:
31999         * modules/uniconv/u16-strconv-to-enc:
32000         * modules/uniconv/u16-strconv-to-locale:
32001         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
32002         * modules/uniconv/u32-strconv-from-enc:
32003         * modules/uniconv/u32-strconv-from-locale:
32004         * modules/uniconv/u32-strconv-to-enc:
32005         * modules/uniconv/u32-strconv-to-locale:
32006         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
32007         * modules/uniconv/u8-strconv-from-enc:
32008         * modules/uniconv/u8-strconv-from-locale:
32009         * modules/uniconv/u8-strconv-to-enc:
32010         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
32011         * modules/unictype/bidicategory-all:
32012         * modules/unictype/bidicategory-byname:
32013         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
32014         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
32015         * modules/unictype/bidiclass-byname:
32016         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
32017         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
32018         * modules/unictype/block-all, modules/unictype/block-list:
32019         * modules/unictype/block-of, modules/unictype/block-test:
32020         * modules/unictype/category-C, modules/unictype/category-Cc:
32021         * modules/unictype/category-Cf, modules/unictype/category-Cn:
32022         * modules/unictype/category-Co, modules/unictype/category-Cs:
32023         * modules/unictype/category-L, modules/unictype/category-LC:
32024         * modules/unictype/category-Ll, modules/unictype/category-Lm:
32025         * modules/unictype/category-Lo, modules/unictype/category-Lt:
32026         * modules/unictype/category-Lu, modules/unictype/category-M:
32027         * modules/unictype/category-Mc, modules/unictype/category-Me:
32028         * modules/unictype/category-Mn, modules/unictype/category-N:
32029         * modules/unictype/category-Nd, modules/unictype/category-Nl:
32030         * modules/unictype/category-No, modules/unictype/category-P:
32031         * modules/unictype/category-Pc, modules/unictype/category-Pd:
32032         * modules/unictype/category-Pe, modules/unictype/category-Pf:
32033         * modules/unictype/category-Pi, modules/unictype/category-Po:
32034         * modules/unictype/category-Ps, modules/unictype/category-S:
32035         * modules/unictype/category-Sc, modules/unictype/category-Sk:
32036         * modules/unictype/category-Sm, modules/unictype/category-So:
32037         * modules/unictype/category-Z, modules/unictype/category-Zl:
32038         * modules/unictype/category-Zp, modules/unictype/category-Zs:
32039         * modules/unictype/category-all, modules/unictype/category-and:
32040         * modules/unictype/category-and-not, modules/unictype/category-byname:
32041         * modules/unictype/category-longname, modules/unictype/category-name:
32042         * modules/unictype/category-none, modules/unictype/category-of:
32043         * modules/unictype/category-or, modules/unictype/category-test:
32044         * modules/unictype/category-test-withtable:
32045         * modules/unictype/combining-class:
32046         * modules/unictype/combining-class-all:
32047         * modules/unictype/combining-class-byname:
32048         * modules/unictype/combining-class-longname:
32049         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
32050         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
32051         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
32052         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
32053         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
32054         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
32055         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
32056         * modules/unictype/digit, modules/unictype/joininggroup-all:
32057         * modules/unictype/joininggroup-byname:
32058         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
32059         * modules/unictype/joiningtype-all:
32060         * modules/unictype/joiningtype-byname:
32061         * modules/unictype/joiningtype-longname:
32062         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
32063         * modules/unictype/mirror, modules/unictype/numeric:
32064         * modules/unictype/property-all, modules/unictype/property-alphabetic:
32065         * modules/unictype/property-ascii-hex-digit:
32066         * modules/unictype/property-bidi-arabic-digit:
32067         * modules/unictype/property-bidi-arabic-right-to-left:
32068         * modules/unictype/property-bidi-block-separator:
32069         * modules/unictype/property-bidi-boundary-neutral:
32070         * modules/unictype/property-bidi-common-separator:
32071         * modules/unictype/property-bidi-control:
32072         * modules/unictype/property-bidi-embedding-or-override:
32073         * modules/unictype/property-bidi-eur-num-separator:
32074         * modules/unictype/property-bidi-eur-num-terminator:
32075         * modules/unictype/property-bidi-european-digit:
32076         * modules/unictype/property-bidi-hebrew-right-to-left:
32077         * modules/unictype/property-bidi-left-to-right:
32078         * modules/unictype/property-bidi-non-spacing-mark:
32079         * modules/unictype/property-bidi-other-neutral:
32080         * modules/unictype/property-bidi-pdf:
32081         * modules/unictype/property-bidi-segment-separator:
32082         * modules/unictype/property-bidi-whitespace:
32083         * modules/unictype/property-byname:
32084         * modules/unictype/property-case-ignorable:
32085         * modules/unictype/property-cased:
32086         * modules/unictype/property-changes-when-casefolded:
32087         * modules/unictype/property-changes-when-casemapped:
32088         * modules/unictype/property-changes-when-lowercased:
32089         * modules/unictype/property-changes-when-titlecased:
32090         * modules/unictype/property-changes-when-uppercased:
32091         * modules/unictype/property-combining:
32092         * modules/unictype/property-composite:
32093         * modules/unictype/property-currency-symbol:
32094         * modules/unictype/property-dash:
32095         * modules/unictype/property-decimal-digit:
32096         * modules/unictype/property-default-ignorable-code-point:
32097         * modules/unictype/property-deprecated:
32098         * modules/unictype/property-diacritic:
32099         * modules/unictype/property-extender:
32100         * modules/unictype/property-format-control:
32101         * modules/unictype/property-grapheme-base:
32102         * modules/unictype/property-grapheme-extend:
32103         * modules/unictype/property-grapheme-link:
32104         * modules/unictype/property-hex-digit:
32105         * modules/unictype/property-hyphen:
32106         * modules/unictype/property-id-continue:
32107         * modules/unictype/property-id-start:
32108         * modules/unictype/property-ideographic:
32109         * modules/unictype/property-ids-binary-operator:
32110         * modules/unictype/property-ids-trinary-operator:
32111         * modules/unictype/property-ignorable-control:
32112         * modules/unictype/property-iso-control:
32113         * modules/unictype/property-join-control:
32114         * modules/unictype/property-left-of-pair:
32115         * modules/unictype/property-line-separator:
32116         * modules/unictype/property-logical-order-exception:
32117         * modules/unictype/property-lowercase, modules/unictype/property-math:
32118         * modules/unictype/property-non-break:
32119         * modules/unictype/property-not-a-character:
32120         * modules/unictype/property-numeric:
32121         * modules/unictype/property-other-alphabetic:
32122         * modules/unictype/property-other-default-ignorable-code-point:
32123         * modules/unictype/property-other-grapheme-extend:
32124         * modules/unictype/property-other-id-continue:
32125         * modules/unictype/property-other-id-start:
32126         * modules/unictype/property-other-lowercase:
32127         * modules/unictype/property-other-math:
32128         * modules/unictype/property-other-uppercase:
32129         * modules/unictype/property-paired-punctuation:
32130         * modules/unictype/property-paragraph-separator:
32131         * modules/unictype/property-pattern-syntax:
32132         * modules/unictype/property-pattern-white-space:
32133         * modules/unictype/property-private-use:
32134         * modules/unictype/property-punctuation:
32135         * modules/unictype/property-quotation-mark:
32136         * modules/unictype/property-radical:
32137         * modules/unictype/property-sentence-terminal:
32138         * modules/unictype/property-soft-dotted:
32139         * modules/unictype/property-space:
32140         * modules/unictype/property-terminal-punctuation:
32141         * modules/unictype/property-test, modules/unictype/property-titlecase:
32142         * modules/unictype/property-unassigned-code-value:
32143         * modules/unictype/property-unified-ideograph:
32144         * modules/unictype/property-uppercase:
32145         * modules/unictype/property-variation-selector:
32146         * modules/unictype/property-white-space:
32147         * modules/unictype/property-xid-continue:
32148         * modules/unictype/property-xid-start:
32149         * modules/unictype/property-zero-width, modules/unictype/scripts:
32150         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
32151         * modules/unictype/syntax-c-whitespace:
32152         * modules/unictype/syntax-java-ident:
32153         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
32154         * modules/unigbrk/u16-grapheme-breaks:
32155         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
32156         * modules/unigbrk/u32-grapheme-breaks:
32157         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
32158         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
32159         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
32160         * modules/unigbrk/uc-is-grapheme-break:
32161         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
32162         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
32163         * modules/unilbrk/u16-width-linebreaks:
32164         * modules/unilbrk/u32-possible-linebreaks:
32165         * modules/unilbrk/u32-width-linebreaks:
32166         * modules/unilbrk/u8-possible-linebreaks:
32167         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
32168         * modules/unilbrk/ulc-possible-linebreaks:
32169         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
32170         * modules/uniname/uniname, modules/uninorm/base:
32171         * modules/uninorm/canonical-decomposition:
32172         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
32173         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
32174         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
32175         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
32176         * modules/uninorm/nfkc, modules/uninorm/nfkd:
32177         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
32178         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
32179         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
32180         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
32181         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
32182         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
32183         * modules/unistdio/base, modules/unistdio/u-printf-args:
32184         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
32185         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
32186         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
32187         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
32188         * modules/unistdio/u16-u16-sprintf:
32189         * modules/unistdio/u16-u16-vasnprintf:
32190         * modules/unistdio/u16-u16-vasprintf:
32191         * modules/unistdio/u16-u16-vsnprintf:
32192         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
32193         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
32194         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
32195         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
32196         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
32197         * modules/unistdio/u32-u32-asnprintf:
32198         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
32199         * modules/unistdio/u32-u32-sprintf:
32200         * modules/unistdio/u32-u32-vasnprintf:
32201         * modules/unistdio/u32-u32-vasprintf:
32202         * modules/unistdio/u32-u32-vsnprintf:
32203         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
32204         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
32205         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
32206         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
32207         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
32208         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
32209         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
32210         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
32211         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
32212         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
32213         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
32214         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
32215         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
32216         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
32217         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
32218         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
32219         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
32220         * modules/unistr/u16-check, modules/unistr/u16-chr:
32221         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
32222         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
32223         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
32224         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
32225         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
32226         * modules/unistr/u16-move, modules/unistr/u16-next:
32227         * modules/unistr/u16-prev, modules/unistr/u16-set:
32228         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
32229         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
32230         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
32231         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
32232         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
32233         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
32234         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
32235         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
32236         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
32237         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
32238         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
32239         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
32240         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
32241         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
32242         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
32243         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
32244         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
32245         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
32246         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
32247         * modules/unistr/u32-next, modules/unistr/u32-prev:
32248         * modules/unistr/u32-set, modules/unistr/u32-startswith:
32249         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
32250         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
32251         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
32252         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
32253         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
32254         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
32255         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
32256         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
32257         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
32258         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
32259         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
32260         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
32261         * modules/unistr/u8-check, modules/unistr/u8-chr:
32262         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
32263         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
32264         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
32265         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
32266         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
32267         * modules/unistr/u8-next, modules/unistr/u8-prev:
32268         * modules/unistr/u8-set, modules/unistr/u8-startswith:
32269         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
32270         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
32271         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
32272         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
32273         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
32274         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
32275         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
32276         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
32277         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
32278         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
32279         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
32280         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
32281         * modules/uniwbrk/base, modules/uniwbrk/table:
32282         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
32283         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
32284         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
32285         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
32286         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
32287         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
32288         * modules/uniwidth/width, modules/utf16-ucs4:
32289         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
32290         * modules/utf8-ucs4-unsafe:
32291         Change maintainer from Bruno Haible to Daiki Ueno.
32292         This is my guess at the libunistring modules; please feel free
32293         to fix if I guessed incorrectly.
32294         * modules/accept4, modules/acl, modules/acos, modules/acosf:
32295         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
32296         * modules/areadlink, modules/array-list, modules/array-mergesort:
32297         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
32298         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
32299         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
32300         * modules/binary-io, modules/bison-i18n, modules/btowc:
32301         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
32302         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
32303         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
32304         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
32305         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
32306         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
32307         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
32308         * modules/closedir, modules/concat-filename, modules/copy-file:
32309         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
32310         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
32311         * modules/csharpcomp-script, modules/csharpexec:
32312         * modules/csharpexec-script, modules/ctype, modules/diffseq:
32313         * modules/dprintf, modules/dprintf-posix, modules/dup:
32314         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
32315         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
32316         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
32317         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
32318         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
32319         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
32320         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
32321         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
32322         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
32323         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
32324         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
32325         * modules/findprog, modules/findprog-lgpl, modules/floor:
32326         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
32327         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
32328         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
32329         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
32330         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
32331         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
32332         * modules/freadable, modules/freadahead, modules/freadptr:
32333         * modules/freadseek, modules/freopen, modules/frexp:
32334         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
32335         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
32336         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
32337         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
32338         * modules/ftello, modules/full-read, modules/full-write:
32339         * modules/fwritable, modules/fwriteerror, modules/gcd:
32340         * modules/get-rusage-as, modules/get-rusage-data:
32341         * modules/getdtablesize, modules/getrusage, modules/gettext:
32342         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
32343         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
32344         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
32345         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
32346         * modules/iconv, modules/iconv-h, modules/iconv_open:
32347         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
32348         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
32349         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
32350         * modules/integer_length_ll, modules/ioctl, modules/isatty:
32351         * modules/isblank, modules/isnand, modules/isnand-nolibm:
32352         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
32353         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
32354         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
32355         * modules/javaexec, modules/javaexec-script, modules/javaversion:
32356         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
32357         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
32358         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
32359         * modules/lib-symbol-visibility, modules/libsigsegv:
32360         * modules/linked-list, modules/linkedhash-list, modules/list:
32361         * modules/localcharset, modules/locale, modules/localeconv:
32362         * modules/localename, modules/lock, modules/log, modules/log-ieee:
32363         * modules/log10, modules/log10-ieee, modules/log10f:
32364         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
32365         * modules/log1p, modules/log1p-ieee, modules/log1pf:
32366         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
32367         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
32368         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
32369         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
32370         * modules/logf, modules/logf-ieee, modules/login_tty:
32371         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
32372         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
32373         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
32374         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
32375         * modules/mbscspn, modules/mbsinit, modules/mbslen:
32376         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
32377         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
32378         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
32379         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
32380         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
32381         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
32382         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
32383         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
32384         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
32385         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
32386         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
32387         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
32388         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
32389         * modules/posix_spawn, modules/posix_spawn-internal:
32390         * modules/posix_spawn_file_actions_addclose:
32391         * modules/posix_spawn_file_actions_adddup2:
32392         * modules/posix_spawn_file_actions_addopen:
32393         * modules/posix_spawn_file_actions_destroy:
32394         * modules/posix_spawn_file_actions_init:
32395         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
32396         * modules/posix_spawnattr_getpgroup:
32397         * modules/posix_spawnattr_getschedparam:
32398         * modules/posix_spawnattr_getschedpolicy:
32399         * modules/posix_spawnattr_getsigdefault:
32400         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
32401         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
32402         * modules/posix_spawnattr_setschedparam:
32403         * modules/posix_spawnattr_setschedpolicy:
32404         * modules/posix_spawnattr_setsigdefault:
32405         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
32406         * modules/pow, modules/powf, modules/printf-frexp:
32407         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
32408         * modules/progname, modules/propername, modules/pselect:
32409         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
32410         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
32411         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
32412         * modules/read, modules/readdir, modules/readlink:
32413         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
32414         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
32415         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
32416         * modules/relocatable-script, modules/remainder:
32417         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
32418         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
32419         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
32420         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
32421         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
32422         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
32423         * modules/setlocale, modules/sh-quote, modules/shutdown:
32424         * modules/signal, modules/signbit, modules/sigpipe:
32425         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
32426         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
32427         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
32428         * modules/snippet/link-warning, modules/snippet/unused-parameter:
32429         * modules/snprintf, modules/snprintf-posix, modules/spawn:
32430         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
32431         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
32432         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
32433         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
32434         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
32435         * modules/streq, modules/strerror_r-posix, modules/striconv:
32436         * modules/striconveh, modules/striconveha, modules/strncat:
32437         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
32438         * modules/sublist, modules/sys_resource, modules/sys_utsname:
32439         * modules/sys_wait, modules/system-posix, modules/system-quote:
32440         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
32441         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
32442         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
32443         * modules/truncf, modules/truncf-ieee, modules/truncl:
32444         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
32445         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
32446         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
32447         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
32448         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
32449         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
32450         * modules/wait-process, modules/waitpid, modules/wcpcpy:
32451         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
32452         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
32453         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
32454         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
32455         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
32456         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
32457         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
32458         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
32459         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
32460         * modules/write, modules/xconcat-filename, modules/xlist:
32461         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
32462         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
32463         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
32464         * modules/y0, modules/y1, modules/yn:
32465         Remove Bruno Haible as maintainer; if he's the sole maintainer,
32466         change the maintainer to 'all'.  Let's hope someone volunteers.
32468 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
32470         mktime: merge #if/#ifdef usage from glibc
32471         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
32472         as that works with both Glibc's and Gnulib's style.
32473         See thread starting at Siddhesh Poyarekar's bug report at:
32474         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
32476 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
32478         git-version-gen: improve option descriptions
32479         * build-aux/git-version-gen: Mention that --prefix and --fallback
32480         have a mandatory argument.
32482 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32484         regex: fix memory leak in compiler
32485         Fix by Andreas Schwab in:
32486         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
32487         * lib/regcomp.c (parse_expression): Deallocate partially
32488         constructed tree before returning error.
32490         regex: merge patch from libc
32491         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
32492         Combine __USE_BSD and __USE_SVID into __USE_MISC.
32493         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
32495 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
32497         acl: port to gcc -Wredundant-decls
32498         From a request by Dmitry Antipov in:
32499         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
32500         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
32501         "#ifndef _GL_ACL_H".
32503 2014-06-11  Bruce Korb  <bkorb@gnu.org>
32504         Jim Meyering  <meyering@fb.com>
32506         parse-duration: eliminate 68-year duration limit
32507         * lib/parse-duration.c: Include "intprops.h".
32508         (TIME_MAX): Rename to MAX_DURATION and define to
32509         TYPE_MAXIMUM(time_t).
32510         * modules/parse-duration (Depends-on): Add intprops.
32511         Reported by Jonas 'Sortie' Termansen.
32513 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32515         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
32516         * modules/pthread (Depends-on): Add 'extensions', as it defines
32517         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
32518         (configure.ac-early): New section.
32519         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
32520         it is no longer needed.
32522 2014-06-14  Pádraig Brady  <P@draigBrady.com>
32524         pthread: define thread-safe macros on some platforms
32525         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
32526         for thread-safe operation on some platforms.
32528 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32530         regex: don't be multithreaded if USE_UNLOCKED_IO.
32531         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
32532         * lib/regex_internal.h: Do not use multithreaded version if
32533         USE_UNLOCKED_IO is defined.  This is a hack, but it works
32534         around a porting bug with coreutils 8.22 on AIX 7.1.
32536 2014-06-11  Daiki Ueno  <ueno@gnu.org>
32538         gettext: update macros to version 0.19
32539         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
32540         depend on gl_EXTERN_INLINE and drop support for older Bison
32541         versions.
32543 2014-06-10  Pádraig Brady  <P@draigBrady.com>
32545         select,poll: fix console handle check on windows 8
32546         lib/poll.c (IsConsoleHandle): Change from testing the lower
32547         2 bits of the handle to the more expensive but accurate syscall.
32548         lib/select.c: Likewise.
32550 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32552         select: fix waiting on anonymous pipes on MS-Windows
32553         * lib/select.c (rpl_select): Fall back to polling when select()
32554         indicates there is nothing to check, while due to the timeout not
32555         expiring, activity is indicated on one of the handles.
32556         Also clear the TIMEOUT argument if the timer does expire.
32558 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32560         times: fix to return non constant value on MS-Windows
32561         * lib/times.c (times): Don't use the process creation time,
32562         rather clock() which on windows returns the number of
32563         clock ticks since the process started.
32565 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
32567         isatty: fix to work on windows 8
32568         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
32569         2 bits of the handle to the more expensive but accurate syscall.
32571 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32573         maint: fix typo in fdl.texi
32574         * doc/fdl.texi: Fix typo (missing '@').
32575         Somehow this was in fdl.texi but not fdl-1.3.texi.
32577 2014-06-06  Ben Walton  <bdwalton@gmail.com>
32579         mountlist: avoid hasmntopt const type warning on solaris
32580         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
32581         with char * instead of const char *.  Passing the constant string
32582         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
32583         to avoid the warning.
32585 2014-06-04  Eric Blake  <eblake@redhat.com>
32587         maintainer-makefile: delete obsolete code
32588         * top/maint.mk (build_aux): Drop old code, as threatened.
32590         maintainer-makefile: avoid spurious error messages
32591         * top/maint.mk (syntax-check): Guard definition and use of
32592         $(shell) by whether Makefile is present.
32594 2014-06-03  Ben Walton  <bdwalton@gmail.com>
32596         rename: avoid unused-but-set-variable compiler warning
32597         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
32598         it is possible that dst_exists may be set but not used.  Mark it with
32599         the unused attribute to avoid compiler warnings.
32601 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32603         rename: mark a label as potentially unused
32604         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
32605         by marking the out label as potentially unused.
32606         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
32608 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32610         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
32611         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
32613 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32615         acl: apply pure attribute to two functions
32616         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
32617         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
32619 2014-06-01  Pádraig Brady  <P@draigBrady.com>
32621         gnulib-common.m4: add _GL_UNUSED_LABEL
32622         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
32623         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
32625 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32627         dup2, fcntl, fcntl-h: port to AIX 7.1
32628         This fixes some porting problems discovered when testing the latest
32629         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
32630         in grep but it could be important for other applications.
32631         * doc/posix-functions/dup2.texi:
32632         * doc/posix-functions/fcntl.texi:
32633         * doc/posix-headers/fcntl.texi:
32634         Document AIX bugs.
32635         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
32636         Define to 0 if outside 'int' range.
32637         * m4/dup2.m4 (gl_FUNC_DUP2):
32638         * m4/fcntl.m4 (gl_FUNC_FCNTL):
32639         Check for getdtablesize.  If it's available, test a value just
32640         outside its range instead of testing 1000000.  When cross-compiling,
32641         guess that AIX will fail this improved test.
32643 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32645         printf, config.rpath: Port to FreeBSD 10.
32646         Problem reported by Tijl Coosemans in:
32647         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
32648         * build-aux/config.rpath (hardcode_libdir_flag_spec)
32649         (hardcode_direct): Simplify FreeBSD configuration.
32650         (library_names_spec): Don't mishandle FreeBSD 10+.
32651         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
32652         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
32653         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
32654         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
32655         Don't mishandle FreeBSD 10+ when cross-compiling.
32657         ftoastr: work around compiler bug in IBM xlc 12.1
32658         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
32659         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
32660         around a compiler bug in IBM xlc 12.1.0.0: it complains
32661         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
32662         _GL_FLT_PREC_BOUND.'
32664 2014-05-30  Kieran Colford  <colfordk@gmail.com>
32666         valgrind-tests: fixed misleading help message
32667         * m4/valgrind-tests.m4: The help message generated by configure
32668         implied that valgrind was disabled by default, which it wasn't.
32669         Adjusted the help message using s/enable/disable/ to clarify.
32671 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
32673         isfinite, isinf, isnan tests: fix for little-endian PowerPC
32674         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
32675         first double of a PowerPC "double double" pair.
32676         * tests/test-isinf.c (test_isinfl): Likewise.
32677         * tests/test-isnan.c (test_long_double): Likewise.
32678         * tests/test-isnanl.h (main): Likewise.
32679         * tests/test-signbit.c (test_signbitl): Likewise.
32681 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32683         exclude-tests: port to AIX 7.1
32684         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
32685         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
32686         the regex code uses locks.
32688 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
32690         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
32691         Without this fix, Emacs would sometimes call sigprocmask instead
32692         of pthread_sigmask, which is a no-no in multithreaded applications.
32693         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
32694         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32695         Suppress check for pthread_sigmask working without -lpthread if
32696         the application always links with -lpthread.  Do not link with
32697         $LIBMULTITHREAD if gl_THREADLIB is not defined.
32698         * m4/timer_time.m4 (gl_TIMER_TIME):
32699         Require gl_THREADLIB only if it is defined.  Do not append
32700         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
32702 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
32704         gnulib-tool: wget translations using --no-verbose rather than --quiet
32705         This allows the user to see error messages if any (--quiet hides them)
32706         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
32708 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
32710         gnulib-tool: adjust translation wget to avoid a https redirection
32711         Context: http://translationproject.org/latest/gnulib redirects to
32712            https://translationproject.org/latest/gnulib/
32713         Rationale: if the user falls back to wget, she doesn't have rsync and
32714         is probably in a minimal build environment, where packages such as
32715         'ca-certificates' are missing as well, resulting in a failed (and
32716         difficult to detect since ignored) translation initial fetch.
32717         Consequently let's avoid https if possible, and add the missing
32718         trailing slash.  This also avoids an unnecessary 302 redirection.
32719         * gnulib-tool: Add trailing slash to gnulib URL.
32721 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32723         getlogin_r-tests: check return value rather than errno
32724         * tests/test-getlogin_r.c (main): As per POSIX we should be
32725         verifying the return value from getlogin_r() rather than errno.
32727 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32729         getlogin_r-tests: fix various issues in recent change
32730         * tests/test-getlogin_r.c: Include required headers that were
32731         missed in recent commit eec20b4e.
32732         Also consistently check the errno rather than the return value from
32733         getlogin_r as POSIX only specifies that non zero is returned on error.
32734         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
32736 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
32738         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
32739         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
32740         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
32741         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
32742         * lib/spawn-pipe.c:
32743         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
32744         and then 'int open64(const char *, int, ...);', which means the
32745         declaration for 'open' gets lost if we later '#undef open'.
32746         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
32747         where the compilation reported the non-fatal error "In function
32748         'openat_proc_name' ... warning: implicit declaration of function
32749         'open'".  In this case the error is relatively harmless, but in
32750         other cases it might not be so minor.
32752 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32754         xalloc: don't potentially generate invalid code for xmemdup calls
32755         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
32756         this function can initialize the newly-allocated storage with new
32757         pointers, which means this function is not malloc-like.  See:
32758         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
32760 2014-05-19  Pádraig Brady  <P@draigBrady.com>
32762         getlogin_r-tests: avoid false failure under sudo/ssh etc.
32763         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
32764         changes from commit 97249cf29 to not depend on environment variables.
32766 2014-05-18  Pádraig Brady  <P@draigBrady.com>
32768         getlogin-tests: avoid false failure under cron
32769         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
32770         since that's not what's under test.  Centos 6 was seen to return
32771         EINVAL for ttyname() when run from cron.
32773 2014-05-16  Jim Meyering  <meyering@fb.com>
32775         mbrtowc.m4: fix a comment typo
32776         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
32777         emitted documentation string.
32779 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32781         mbrlen, mbrtowc: fix bug with empty input
32782         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
32783         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
32784         so this is mainly for documentation.
32785         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
32786         (gl_FUNC_MBRTOWC): Use it.
32787         * tests/test-mbrtowc.c (main): Test for the bug.
32789 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32791         doc: document mbrtowc and mbrlen problem with empty input
32792         * doc/posix-functions/mbrlen.texi (mbrlen):
32793         * doc/posix-functions/mbrtowc.texi (mbrtowc):
32794         Document portability problem when the input string is empty.  See:
32795         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
32797         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
32798         Problem reported by Eli Zaretskii in:
32799         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
32800         * doc/posix-functions/execl.texi (execl):
32801         * doc/posix-functions/execle.texi (execle):
32802         * doc/posix-functions/execlp.texi (execlp):
32803         * doc/posix-functions/execv.texi (execv):
32804         * doc/posix-functions/execve.texi (execve):
32805         * doc/posix-functions/execvp.texi (execvp):
32806         Mention spawn+exit problem on non-Cygwin Windows platforms.
32808 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
32810         getlogin-tests: avoid false failure under sudo/ssh etc.
32811         * modules/getlogin-tests (configure.ac): Check for ttyname().
32812         * tests/test-getlogin.c (main): Don't depend on environment variables
32813         to correlate with getlogin(), since sudo and ssh etc. can tamper
32814         with the LOGNAME and USER env vars.  Instead lookup the name from
32815         the uid associated with the stdin tty.
32817 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32819         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
32820         These were found when building the latest grep snapshot on IRIX 6.5.
32821         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
32822         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
32823         never used later.
32824         * lib/quotearg.c (quoting_options_from_style):
32825         * lib/xstrtol.c (__xstrtol):
32826         Use enum instead of 0, to pacify IRIX 6.5 cc.
32828 2014-04-18  Pádraig Brady  <P@draigBrady.com>
32830         gitlog-to-changelog: revert inclusion of git-log-fix file
32831         * build-aux/git-log-fix: Delete dummy file.
32832         * modules/gitlog-to-changelog: Don't reference (overwrite)
32833         the project specific git-log-fix file.
32835 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
32837         maint.mk: Relax the copyright check to cater for non FSF projects
32838         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
32839         to not require the "Free" suffix after the copyright years.
32841 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
32843         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
32844         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
32845         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
32846         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
32847         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
32849 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
32851         exclude: port to strict C99
32852         Strict C does not allow converting a function pointer to void *
32853         and vice versa.  Pass a pointer to a function pointer instead.
32854         * lib/exclude.c (add_exclude_file):
32855         Pass the address of the function pointer.
32856         (call_addfn): And deference the address here, to match.
32858 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32860         regex: do not depend on malloc-gnu
32861         * modules/regex (Depends-on): Remove malloc-gnu.
32862         It's no longer needed, because of the 2012-12-29 patch
32863         "regex: port to hosts where malloc (0) == NULL".
32864         Reported by Nathan Kennedy in:
32865         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
32867 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
32869         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
32870         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
32871         * doc/posix-functions/expl.texi: Mention the workaround.
32873 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32875         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
32876         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
32877         size to be zero even when the pointer is nonnull.  This
32878         accommodates the use case where P is malloc (0) and *PN is 0 on a
32879         host where malloc (0) yields nonnull.
32881 2014-04-09  Eric Blake  <eblake@redhat.com>
32883         fts: avoid unnecessary strlen calls
32884         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
32886 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32888         fts: avoid unnecessary strlen calls
32889         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
32890         when that can be faster than strlen.
32892 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32894         fts: avoid unnecessary strlen calls
32895         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
32896         (fts_build): Store the length of the dp->d_name entry in a local variable
32897         instead of calling strlen() several times via the above, removed macro.
32898         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
32899         run by ~4%, yet this reduces the execution time by about a third if run
32900         via "ltrace -c rm -rf some-dir".
32902 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32904         obstack: Remove ancient NeXTSTEP gcc support conditional
32905         This change will ease merging with glibc.  The "#if ... __NEXT__"
32906         causes a warning with -Wundef which glibc now enables by default.
32907         Problem reported by Will Newton in
32908         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
32909         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
32910         so go with that.
32911         * lib/obstack.h (__extension__):
32913 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32915         obstack: merge with glibc changes
32916         * lib/obstack.c, lib/obstack.h: Merge from glibc.
32917         This is mostly indenting and commentary changes.
32918         Instances of 'register' have been removed.
32920 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32922         strftime: wrap macros in "do {...} while(0)"
32923         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
32924         this macro in "do {...} while(0)" to prevent false use as a
32925         single statement, e.g., in an un-braced "{}" else-block.
32926         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
32927         (strftime_case_): Remove 'else' after 'goto' - which was the
32928         only non-fatal, un-braced use of one of the above macros.
32929         Spotted by coverity (NESTING_INDENT_MISMATCH).
32931 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32933         modechange: avoid memory leaks for invalid octal modes
32934         * lib/modechange.c (mode_compile): During the parsing of
32935         notations like +40, free the 'mc' buffer for invalid mode
32936         strings like +17777 (greater than the maximum octal mode),
32937         =18 (bad octal mode characters) or u=1 ('affected' with
32938         octal modes).
32939         Reproducer, e.g.:
32940             $ valgrind --leak-check=full chmod +17777 file
32941         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
32942         add notations +40, 00440, etc.".
32943         Spotted by coverity (RESOURCE_LEAK).
32945 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
32947         gitlog-to-changelog: include a dummy git-log-fix file
32948         Problem reported by Nathan Stratton Treadway in:
32949         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
32950         * build-aux/git-log-fix: New file.
32952 2014-03-13  Jim Meyering  <meyering@fb.com>
32954         gitlog-to-changelog: also include the file, git-log-fix
32955         * modules/gitlog-to-changelog (Files): Add git-log-fix.
32956         Reported by Assaf Gordon.
32958 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
32960         regex: port to OS X 10.8.5 en_US.UTF-8 locale
32961         This fixes a bug when ignoring case and when comparing the
32962         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
32963         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
32964         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
32965         titlecase letter is neither lowercase nor uppercase, but
32966         uppercasing the titlecase letter (via towupper) yields the
32967         uppercase letter, so the two letters should match when ignoring case.
32968         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
32969         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
32970         Don't test whether a character is lowercase before uppercasing it.
32972 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
32974         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
32975         This is basically one of the options Bruno Haible proposed in:
32976         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
32977         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
32978         * lib/stdint.in.h: Use it.
32979         * modules/stdint (Depends-on): Add sys_types.
32981 2014-02-26  Pádraig Brady  <P@draigBrady.com>
32983         parse-datetime: fix crash or infloop in TZ="" parsing
32984         * lib/parse-datetime.y (parse_datetime): Break out of the
32985         TZ="" parsing loop once the second significant " is found.
32986         Also skip over any subsequent whitespace to be consistent
32987         with the non TZ= case.
32988         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
32990 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32992         savedir: new symbol for fast-read version
32993         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
32994         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
32995         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
32996         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
32998 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33000         unistd: port readlink to Mac OS X 10.3.9
33001         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
33002         around self-include problem in Mac OS X 10.3.9 when combined with
33003         readlink module.  Problem reported by Klaus Zietler in
33004         <http://bugs.gnu.org/16825>.
33006 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
33008         diffseq: remove TOO_EXPENSIVE heuristic
33009         Problem with diffutils reported by Vincent Lefevre in
33010         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
33011         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
33012         Although appropriate for circa-1993 hardware, these days the heuristic
33013         seems to be more trouble than it's worth.
33014         * lib/diffseq.h: Modernize citations.
33015         (struct context): Remove member too_expensive.
33016         All uses changed.
33017         (struct partition): Remove members lo_minimal, hi_minimal.
33018         All uses changed.
33019         (diag, compareseq): Remove arg find_minimal.  All uses changed.
33020         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
33021         1993 to make 'diff' run faster (but not as well) on large inputs.
33022         These days, computers are fast enough that it's typically better
33023         to run slower but more accurately.
33024         * lib/fstrcmp.c: Remove duplicate comment.
33025         * lib/fstrcmp.c (strcmp_bounded):
33026         * lib/git-merge-changelog.c (compute_differences):
33027         Adjust to diffseq.h changes.
33028         * NEWS: Document the change.
33030         savedir: simplify by using stpcpy
33031         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
33032         (streamsavedir): Use stpcpy instead.
33033         * modules/savedir (Depends-on): Add stpcpy.
33035 2014-02-21  Pádraig Brady  <P@draigBrady.com>
33037         spawn: fix link error on uclibc
33038         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
33039         to incorporate -lrt if needed (on uclibc for example).
33040         * modules/posix_spawn: Reference the substituted LIB.
33042 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
33043         timer: fix uClibc detection of threading
33044         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
33045         enabled in uClibc.
33047 2014-02-21  Eric Blake  <eblake@redhat.com>
33049         maintainer-makefiles: provide AC_PROG_SED for older autoconf
33050         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
33052 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33054         exclude: add support for posix regexps
33056         This commit adds support for POSIX extended regular expressions
33057         and fixes a long-standing memory leak (pattern buffer was never
33058         freed).  It also implements a new interface function to read
33059         exclude patterns from a FILE, which passes an additional parameter
33060         to its callback function, thereby allowing to preserve its state
33061         between invocations.
33063         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
33064         (pattern_buffer): New struct.
33065         (exclude): New member patbuf.
33066         (exclude_add_pattern_buffer): New function.
33067         (free_exclude_segment): Free regexps.
33068         (free_exclude): Free allocated pattern buffers.
33069         (exclude_patopts): New function.
33070         (file_pattern_matches): Use exclude_patopts.
33071         (add_exclude): support regexps.
33072         (add_exclude_fp): New function.
33073         (add_exclude_file): Rewrite using add_exclude_fp.
33074         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33075         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33076         (add_exclude_fp)
33077         (add_exclude_file): Rewrite using add_exclude_fp.
33078         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33079         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33080         (add_exclude_fp)
33081         (exclude_add_pattern_buffer): New prototypes.
33082         * modules/exclude: Depends on regex and filename.
33084 2014-02-20  Eric Blake  <eblake@redhat.com>
33086         maintainer-makefiles: use $(SED) for syntax check
33087         * modules/maintainer-makefile (configure.ac): Check for sane sed.
33088         * top/maint.mk: Change sed to $(SED).
33090 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
33091             Paul Eggert  <eggert@cs.ucla.edu>
33093         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
33094         Patch based on an idea by Dick Streefland in
33095         <https://savannah.gnu.org/patch/?7892>.
33096         * NEWS: Document this.
33097         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
33098         (direntry_t, comparison_function): New types.
33099         (direntry_cmp_name): New function.
33100         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
33101         (streamsavedir, savedir): New arg OPTION.
33102         (streamsavedir): Simplify memory allocation.
33103         (fdsavedir): Remove.
33104         * lib/savedir.h (enum savedir_option): New type.
33105         (streamsavedir, savedir): New arg OPTION.
33106         (fdsavedir): Remove.
33108 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33110         file-type: add support for doors and other less-common file types
33111         Problem with S_ISDOOR reported by Rich Burridge.
33112         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
33113         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
33114         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
33116 2014-01-23  Eric Blake  <eblake@redhat.com>
33118         pthread: work around winpthread header pollution on mingw
33119         * lib/time.in.h: Move pthread workarounds...
33120         * lib/pthread.in.h: ...here.
33121         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
33122         detect macro pollution on mingw.
33123         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
33125 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33127         qacl: check for fchmod
33128         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
33129         and qset-acl.c both use HAVE_FCHMOD.
33131 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33133         fdopen-tests: port to Tru64
33134         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
33135         descriptor that is not open, as POSIX doesn't specify the
33136         resulting behavior and the test does not work on Tru64.
33137         Problem reported by Steven M. Schweda in:
33138         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
33140         stdalign: port to HP-UX compilers
33141         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
33142         if __HP_cc or __HP_aCC are nonzero.
33144 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33146         strtoimax: port to platforms lacking 'long long'
33147         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
33148         check whether strtoll is declared, which causes the C file to
33149         wrongly report an error.  Problem reported by Steven M. Schweda in:
33150         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
33151         * lib/strtoimax.c (strtoull):
33152         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
33153         (strtoll): Declare only if HAVE_LONG_LONG_INT.
33155 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
33157         relocatable-perl: fix texi syntax
33158         * doc/relocatable-maint.texi: Escape braces.
33160 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
33162         relocatable-perl: like relocatable-script, but for Perl scripts
33163         * build-aux/relocatable.pl.in: Add.
33164         * doc/relocatable-maint.texi: Add documentation.
33165         * modules/relocatable-perl: Add.
33167 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
33169         tests: fix export bug in previous patch
33170         Problem reported by Jim Meyering.
33171         * tests/init.sh (re_shell): New var, which is exported instead of
33172         re_shell_.
33174         tests: simplify porting to Solaris 10 /bin/sh
33175         Some test cases in 'grep' need a shell that groks '$(';
33176         export re_shell_ for their benefit.  Problem reported for 'grep'
33177         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
33178         * tests/init.sh (re_shell_): Export if it's used.
33180 2014-01-06  Eric Blake  <eblake@redhat.com>
33182         md5, sha1, sha256, sha512: support older autoconf
33183         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
33184         for autoconf < 2.63b.
33186         include_next: port to autoconf 2.63
33187         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
33189 2014-01-04  Jim Meyering  <meyering@fb.com>
33191         maint: add a gnulib-local rule to keep non-ascii out of .texi files
33192         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
33193         so that "make sc_maint" will ding anyone who puts non-ascii
33194         in any of gnulib's .texi files.
33196 2014-01-03  Jim Meyering  <meyering@fb.com>
33198         freadable, fwritable, fwriting: declare with the "pure" attribute
33199         * lib/freadable.h (freadable): Declare with the "pure" attribute.
33200         * lib/fwritable.h (fwritable): Likewise.
33201         * lib/fwriting.h (fwriting): Likewise.
33202         Suggested by Bruno Haible.
33204         maint.mk: adapt openat.h-include-without-use test
33205         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
33206         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
33207         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
33208         With this change, running "make sc_maint" in gnulib's top-level
33209         directory now passes for me.
33211 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33213         doc: use ASCII in .texi files where UTF-8 isn't needed
33214         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
33215         * doc/posix-functions/setkey.texi, doc/regex.texi:
33216         Use ASCII input, not UTF-8.
33218 2014-01-02  Jim Meyering  <meyering@fb.com>
33220         freading: declare with the "pure" attribute
33221         * lib/freading.h (freading): Declare with the "pure" attribute.
33223         manywarnings: remove -Wmudflap
33224         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
33225         it is no longer supported in gcc-4.9-to-be.
33227 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33229         relocatable-script: remove unused code
33230         Problem reported by Reuben Thomas in:
33231         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
33232         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
33234 2014-01-01  Jim Meyering  <meyering@fb.com>
33236         maint: fix public-submodule-commit to work with newer git
33237         * top/maint.mk (public-submodule-commit): Remove excess quoting.
33238         We were over-quoting the test arguments, and somewhere prior to
33239         version 1.8.5.2.229, git stopped removing those excess quotes,
33240         which made the test fail, since the unexpanded strings would
33241         always differ; using GIT_TRACE=1 confirmed that the git merge-base
33242         command wasn't even being run.
33244 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33246         doc: update main copyright year
33247         * doc/gnulib.texi: Update copyright date.
33249 2014-01-01  Eric Blake  <eblake@redhat.com>
33251         version-etc: new year
33252         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
33253         * all files: run 'make update-copyright'
33255 2013-12-24  Eric Blake  <eblake@redhat.com>
33257         passfd: give nicer error for recvfd at eof
33258         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
33259         * tests/test-passfd.c (main): Enhance test to cover this.
33261 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33263         gettimeofday: port recent C++ fix to Emacs
33264         Without this further patch, Emacs won't build due to
33265         the portcheck failing.  Also, this simplifies the patch a bit.
33266         * lib/time.in.h (localtime, gmtime): Don't replace unless
33267         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
33268         * lib/time.in.h (localtime, gmtime):
33269         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
33270         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33271         * modules/time (time.h):
33272         Don't worry about the possibility of localtime and gmtime
33273         being absent; they're present in all C libraries we know about.
33274         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33275         Don't assume sys_time is present and has been initialized.
33276         Instead, use a hack that should work even if it hasn't been.
33277         Don't use a portcheck for gmtime or localtime; this supports
33278         the hack.
33279         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
33281 2013-12-17  John W. Eaton  <jwe@gnu.org>
33283         gettimeofday: fix C++ crosscompilation
33285         Never replace gmtime and localtime by macros when compiling with
33286         C++, this prevents <ctime> from being included.
33288         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
33289         define gmtime and localtime as preprocessor macros.  Instead
33290         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
33291         REPLACE_LOCALTIME substitutions.
33292         * lib/time.in.h: Declare gmtime and localtime when needed.
33293         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
33294         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
33295         * modules/time: Depend on gettimeofday, and substitute the above
33296         variables in time.h.
33298 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33300         qacl: port to Windows better
33301         See Eli Zaretskii in
33302         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
33303         * lib/file-has-acl.c (acl_access_nontrivial):
33304         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
33305         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
33307 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
33309         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
33310         * lib/gl_openssl.h: Cast void pointers to a specific type.
33312 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33314         open-tests: fix build failure with -Werror=old-style-declaration
33315         * tests/test-open.h: Reorder the inline to avoid the issue.
33317 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33319         md5, sha1, sha256, sha512: fix link error with partial libcrypto
33320         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
33321         init time, so that if early checks find crypto routines,
33322         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
33323         avoiding link failures.
33325 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33327         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
33328         This provides a new way to specify the default for
33329         gl_CRYPTO_CHECK, one that is reflected in the --help message.
33330         Emacs uses this, as well as the old way.
33331         This attempts to implement a suggestion by Pádraig Brady in
33332         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
33333         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
33334         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
33336         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
33337         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
33338         Add support for a new option, --with-openssl=auto, which causes
33339         the library to be used if available and silently ignored if not.
33340         Add support to allow configure.ac to specify its own
33341         default, by setting with_openssl_default before invoking gl_INIT.
33343 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33345         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
33346         Problem reported by Daiki Ueno in:
33347         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
33348         * tests/test-open.h (__always_inline):
33349         New macro, if not already defined.
33350         (test_open): Use it.
33352 2013-12-04  Eric Blake  <eblake@redhat.com>
33354         include_next: minimize code duplication
33355         * modules/include_next (Depends-on): Add absolute-header.
33356         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
33357         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
33359 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33361         getcwd: fix compile error in configure check
33362         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
33364 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33366         regex: suppress core dumps from detection code
33367         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
33368         to suppress core dumps that may well occur on glibc systems.
33369         These core dumps might not be cleaned up automatically, or could
33370         trigger some system core dump handling logic.
33372 2013-12-03  Pádraig Brady  <P@draigBrady.com>
33374         md5, sha1, sha256, sha512: support mandating use of openssl
33375         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
33376         description, to list the now 3 separate options.  also don't
33377         mention the default=no, since this is implicit given the option
33378         is described as --with-openssl rather than --without-openssl.
33379         If projects change the default they're free to document that.
33380         with --with-openssl[=yes] we now error out when the specified
33381         hash algorithm is not available in libcrypto.
33383 2013-12-03  Ivailo  <xakepa10@gmail.com>
33385         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
33386         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
33387         -Wformat-nonliteral checks, as these edge cases are part of the test.
33389 2013-12-03  Eric Blake  <eblake@redhat.com>
33391         regex: avoid glibc deadlock during configure
33392         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
33393         glibc bug 15078 in turn triggers bug 16159.
33394         Reported by Michal Privoznik.
33396 2013-12-02  Pádraig Brady  <P@draigBrady.com>
33398         md5, sha1, sha256, sha512: use openssl routines if available.
33399         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
33400         routines will be used if available, requiring apps to link @LIB_CRYPTO@
33401         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
33402         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
33403         in the standard system location.
33404         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
33405         * m4/sha256.m4: Likewise with SHA256.
33406         * m4/sha512.m4: Likewise with SHA512.
33407         * m4/md5.m4: Likewise with MD5.
33408         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
33409         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
33410         * lib/sha256.h: Likewise with SHA256.
33411         * lib/sha512.h: Likewise with SHA512.
33412         * lib/md5.h: Likewise with MD5.
33413         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
33414         * lib/sha256.c: Likewise with SHA256.
33415         * lib/sha512.c: Likewise with SHA512.
33416         * lib/md5.c: Likewise with MD5.
33417         * modules/crypto/sha1 (Link:): Add the new optional lib.
33418         (Depends-on:): Add dependency on extern-inline.
33419         * modules/crypto/sha256: Likewise.
33420         * modules/crypto/sha512: Likewise.
33421         * modules/crypto/md5: Likewise.
33422         * modules/crypto/sha1-tests: Reference the lib here too.
33423         * modules/crypto/md5-tests: Likewise.
33424         * modules/crypto/gc-des-tests: Likewise.
33425         * modules/crypto/gc-hmac-md5-tests: Likewise.
33426         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33427         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33428         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33429         * modules/crypto/gc-md5-tests: Likewise.
33430         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33431         * modules/crypto/gc-sha1-tests: Likewise.
33432         * modules/crypto/gc-tests: Likewise.
33433         * modules/crypto/hmac-md5-tests: Likewise.
33434         * modules/crypto/hmac-sha1-tests: Likewise.
33435         * modules/crypto/hmac-sha256-tests: Likewise.
33436         * modules/crypto/hmac-sha512-tests: Likewise.
33438 2013-11-29  RV1971  <rv1971@web.de>
33440         base64: (trivial) fix compilation regression on some compilers
33441         * lib/base64.c: Don't return the void function,
33442         instead split to a separate return statement.
33444 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33446         ignore-value: revert previous code change
33447         * lib/ignore-value.h (ignore_value): Use __extension__ and
33448         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
33449         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
33450         Change the comment to try to explain this better.
33452 2013-11-27  Pádraig Brady  <P@draigBrady.com>
33454         selinux-h: improve stub types and add more stub functions
33456         * lib/se-selinux.in.h: Change security_context_t to a typedef
33457         rather than a define, as it's a pointer type and so is better
33458         as a typedef to avoid issues declaring multiple variables
33459         with the comma operator.  Also add stub for string_to_security_class().
33460         * lib/se-context.in.h: Add stub functions for
33461         context_{type,range,role,user}_get().
33463 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
33465         ignore-value: prefer GCC version back through 2.0
33466         The code didn't match the comments, so I did a bit of software
33467         archaeology.  GCC 2.0 seems to support __extension__ and
33468         __typeof__, so fix both code and comments to use 2.0.
33469         * lib/ignore-value.h (ignore_value): Use __extension__ and
33470         __typeof__ for GCC 2.0 through 3.3, too.
33472 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
33474         pty: Activate the signature wrapper of forkpty.
33475         The intended preprocessor macro HAVE_FORKPTY is
33476         never defined, yet `lib/forkpty.c' depends on it.
33478         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
33479         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
33480         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
33482 2013-11-18  Jim Meyering  <meyering@fb.com>
33483         and Paul Eggert  <eggert@cs.ucla.edu>
33485         quotearg: don't attempt to store 1 << 31 into an "int"
33486         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
33487         gcc's new -fsanitize=undefined and running its tests triggered some
33488         new test failures due to undefined behavior, all with this diagnostic:
33489           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
33490             cannot be represented in type int
33491         Rather than shifting "1" left to form a mask, shift the bits right and
33492         simply use "1" as the mask.
33494 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
33496         error: depend on stdio
33497         Problem reported by Nikos Mavrogiannopoulos in
33498         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
33499         * modules/error (Depends-on): Add stdio.
33501 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
33503         * doc/relocatable-maint.texi (Supporting Relocation): Improve
33504         wording.
33505         Reported by Reuben Thomas <rrt@sc3d.org>.
33507 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
33509         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
33510         New function and macro, to work around _DARWIN_C_SOURCE problem.
33511         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
33513 2013-11-11  Pádraig Brady  <P@draigBrady.com>
33515         base64: provide a fast path for encoding well sized buffers
33516         Avoid conditionals in the base64 encoding loop,
33517         which was seen to give 60% better throughput.
33518         * lib/base64.c (base64_encode_fast): A new function to be called
33519         when we don't want to NUL terminate, and we have enough space
33520         in the output to encode the given input.
33521         (base64_encode): Call the _fast() version when appropriate.
33522         Also remove a redundant mask with 0x3F on the first encoded byte.
33524 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33526         extern-inline: port better to OS X 10.9
33527         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
33528         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
33529         OS X 10.9, except for g++ where the bug is still present.
33530         See <http://trac.macports.org/ticket/41033>.
33532 2013-11-08  Eric Blake  <eblake@redhat.com>
33534         fpending: fix regression on DragonFly BSD
33535         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
33536         * lib/fpending.h (__fpending): Don't declare twice.
33537         Reported by GW in
33538         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
33540 2013-11-05  Jim Meyering  <meyering@fb.com>
33542         hash: relax license to LGPLv2+, for libguestfs
33543         * modules/hash (License): Change from GPL to LGPLv2+.
33545 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
33547         intprops: port to Oracle Studio c99
33548         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
33549         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
33551 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
33553         obstack: pacify HP C
33554         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
33555         warning "conversion from pointer to smaller integer" from HP
33556         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
33557         C89 or later nowadays, so cast to void instead of int.  Privately
33558         reported by H.Merijn Brand.  Also, change header to match glibc's,
33559         to make checking against glibc easier.
33561 2013-10-29  Jim Meyering  <meyering@fb.com>
33563         maint.mk: prefer gpgv2 over gpgv
33564         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
33565         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
33566         Reported by Gary Vaughan.
33568 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33570         isnan: port to VAX
33571         Reported by John Klos for NetBSD-5/VAX in
33572         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
33573         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
33574         (FUNC): Use it.
33576 2013-10-28  Jim Meyering  <meyering@fb.com>
33578         gnulib-tool: protect against CDPATH
33579         * gnulib-tool: Many "cd" built-in functions print a directory name
33580         to stdout when CDPATH is set, e.g.,
33581           $ bash -c 'CDPATH=/; cd tmp'
33582           /tmp
33583         Unset it, when possible.  Prompted by a comment from Bruce Korb.
33585         maint.mk: restore functionality removed by recent change...
33586         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
33587         the context of a shallow-cloned gnulib repository: "git describe"
33588         would fail in such a directory.  However, that change made it so
33589         the reported gnulib revision no longer includes the version number
33590         or a commit count, even when run from a full clone.
33591         * top/maint.mk (gnulib-version): Use the full "git describe"
33592         output when possible, e.g., the form above, rather than the
33593         abbreviated, no-tag, no-commit-count string, and fall back to
33594         using a 10-byte hash, rather than the default minimal-length
33595         hash prefix, since while the minimal-length one may be fine today,
33596         it is likely not to be unique for very long.
33598 2013-10-26  Jim Meyering  <meyering@fb.com>
33600         maint.mk: fix "release" target to build _version
33601         This fixes a bug in README-release whereby following the outlined
33602         steps, one would publish a tarball whose programs would report
33603         --version output not consistent with the package version number.
33604         This bug caused grep-2.15 to produce a grep program whose
33605         --version option made it print 2.14.56-1e3d rather than 2.15.
33606         * top/maint.mk (release): Making this target build "_version"
33607         ensures that the new version number is reflected in configure.
33609 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
33611         install-reloc: Support multi-binary installation.
33612         * build-aux/install-reloc: Support installing multiple programs in
33613         one invocation, as done by Automake starting with commit
33614         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
33615         Haible <bruno@clisp.org>, archived at
33616         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
33617         Reported by Sylvain <beuc@gnu.org>.
33619 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33621         selinux-h: Really build without selinux when library is missing.
33622         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
33623         continue without selinux, as already told in the warning message.
33625 2013-10-21  Jim Meyering  <meyering@fb.com>
33627         regex: also remove dependency on HAVE_WCSCOLL
33628         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
33630 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
33632         xfreopen: Fix typo. s/frepoen/freopen/
33633         * lib/xfreopen.c: Fix description.
33634         * modules/xfreopen: Likewise.
33636 2013-10-21  Jim Meyering  <meyering@fb.com>
33638         regex: don't depend on wcscoll
33639         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
33640         It is no longer used.
33642 2013-10-20  Jim Meyering  <meyering@fb.com>
33644         error: add the printf attribute to a static function
33645         * lib/error.c (error_tail): Add the printf attribute, to placate
33646         gcc's -Werror=suggest-attribute=format option.
33648 2013-09-30  Jim Meyering  <meyering@fb.com>
33650         fpending, obstack, strerror-override: use pure+const function attrs
33651         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
33652         * lib/obstack.c (_obstack_allocated_p): Likewise.
33653         * lib/obstack.h (_obstack_memory_used): Likewise.
33654         (_obstack_memory_used): Likewise.
33655         * lib/strerror-override.h (strerror_override): Declare with
33656         the "const" attribute.
33658 2013-10-18  Eric Blake  <eblake@redhat.com>
33660         extern-inline: make safe for -Wundef usage
33661         Reported by Vladimir 'phcoder' Serbinenko in
33662         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
33663         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
33665 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33667         mkfifo-tests, etc.: allow HP-UX 11.11 bug
33668         Problem reported by Daniel Richard G. in
33669         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
33670         * doc/posix-functions/mkfifo.texi (mkfifo):
33671         * doc/posix-functions/mkfifoat.texi (mkfifoat):
33672         * doc/posix-functions/mknod.texi (mknod):
33673         * doc/posix-functions/mknodat.texi (mknodat):
33674         Document the HP-UX 11.11 bug.
33675         * tests/test-mkfifo.h (test_mkfifo):
33676         Allow the HP-UX 11.11 bug.
33678 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33680         acl: allow cross-compilation to Gentoo
33681         Problem reported by Gabriel Marcano in
33682         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
33683         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
33684         test only whether it links.
33686 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
33688         mgetgroups: remove dependency on realloc-gnu
33689         The dependency violates the comment in realloc-gnu, which
33690         says that tests can't depend on realloc-gnu; some tests depend
33691         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
33692         Problem reported by Daniel Richard G. in
33693         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
33694         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
33695         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
33696         not realloc-gnu.
33698 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33700         regex-tests: port to HP-UX 11.11
33701         Problem reported by Daniel Richard G. in
33702         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
33703         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
33705 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33707         verify: document some 'assume' pitfalls
33708         * doc/verify.texi (Compile-time Assertions):
33709         Mention that 'assume (E)' can sometimes slow things down.
33710         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
33712 2013-10-10  Eric Blake  <eblake@redhat.com>
33714         strtoumax: fix typo in previous commit.
33715         * modules/strtoumax (Depends-on): Fix typo.
33716         * modules/strtoimax (Depends-on): Likewise.
33718 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33720         strtoumax: port to Solaris 8
33721         This problem was introduced in the recent HP-UX patch.
33722         Reported by Tom G. Christensen in
33723         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
33724         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
33725         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
33727 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33729         strtoimax, strtoumax: port to HP-UX 11.11
33730         Problem reported by Daniel Richard G. in
33731         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
33732         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
33733         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
33734         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
33735         REPLACE_STRTOUMAX.
33736         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
33737         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
33738         Replace the function if defined as a macro but not as a function.
33739         * modules/inttypes-incomplete (inttypes.h): Substitute
33740         REPLACE_STRTOUMAX.
33741         * modules/strtoumax (configure.ac): Replace strtoumax if
33742         REPLACE_STRTOUMAX.
33744 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33746         strtoimax: port to HP-UX 11.11
33747         Problem reported by Daniel Richard G.
33748         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
33749         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
33750         they might clash with inttypes.h.
33752 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33754         New module 'count-trailing-zeros'.
33755         * MODULES.html.sh: Mention it.
33756         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
33757         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
33758         * modules/count-trailing-zeros-tests:
33759         * tests/test-count-trailing-zeros.c:
33760         New files.
33762         count-leading-zeros: port to MSC; support types wider than 64 bits
33763         The ideas behind the MSC port are stolen from Emacs.
33764         * lib/count-leading-zeros.h:
33765         Don't include verify.h: it's no longer needed, as types wider than
33766         64 bits are now supported.
33767         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
33768         performance with MSC.  All uses changed.  Do not assume that TYPE
33769         has at most 64 bits.
33770         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
33771         All uses changed.  Fold the subtraction from 31 into the table.
33773         count-one-bits: port to MSC; support types wider than 64 bits
33774         The ideas behind the MSC port are stolen from Emacs.
33775         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
33776         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
33777         Don't include verify.h: it's no longer needed, as types wider than
33778         64 bits are now supported.
33779         (COUNT_ONE_BITS_GENERIC): New macro.
33780         (popcount_supported) [_MSC_VER]: New inline function.
33781         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
33782         performance with MSC.  All uses changed.  Do not assume that TYPE
33783         has at most 64 bits.
33784         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
33786 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
33788         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
33789         * lib/mountlist.c (read_file_system_list): fix leak of directory
33790         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
33792 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33794         tests: improve diagnostic when an assertion fails
33795         * tests/macros.h (ASSERT): Report the assertion that failed.
33797 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33799         verify: new macro 'assume'
33800         This is taken from Emacs, and should be generally useful.
33801         * doc/verify.texi (assume): Document it.
33802         * lib/verify.h (assume): New macro.
33803         (__has_builtin): Expand to 0 if not defined.
33805 2013-09-26  Eric Blake  <eblake@redhat.com>
33807         dup2, dup3: work around another cygwin crasher
33808         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
33809         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
33810         * tests/test-dup2.c (main): Likewise.
33811         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
33812         * lib/dup3.c (dup3): Likewise.
33813         * doc/posix-functions/dup2.texi (dup2): Document it.
33814         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33816         getdtablesize: work around cygwin issue
33817         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
33818         * modules/getdtablesize (configure.ac): Build replacement.
33819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
33820         * modules/unistd (Makefile.am): Expose the witness.
33821         * lib/unistd.in.h (getdtablesize): Declare replacement.
33822         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
33823         * tests/test-getdtablesize.c (main): Test it.
33824         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
33826 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
33828         pmccabe2html: escaping of special characters
33829         Escape all '<', '>', and '&' in HTML output.
33830         * build-aux/pmccabe2html (html_fnc): Call gsub()
33831         instead of sub() to capture all '<', '>', and '&'.
33832         Neither of '<' and '>' is special in a regexp,
33833         so first arguments to gsub() are corrected. Also,
33834         in replacement strings, ampersand must be escaped.
33835         Finally, '&' must be handled first, then '<' and '>'.
33837 2013-09-24  Eric Blake  <eblake@redhat.com>
33839         manywarnings: enable nicer gcc warning messages
33840         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
33841         some -f options for optimal warnings.
33843 2013-09-21  Jim Meyering  <meyering@fb.com>
33845         timespec: use the new TIMESPEC_RESOLUTION in a few more places
33846         * lib/timespec-add.c (timespec_add): Also replace 999999999
33847         with TIMESPEC_RESOLUTION - 1.
33848         * lib/timespec-sub.c (timespec_sub): Likewise.
33850 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
33852         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
33853         Problem reported by Dagobert Michelsen via Eric Blake in
33854         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
33855         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
33856         not AC_COMPILE_IFELSE.
33858 2013-09-23  Eric Blake  <eblake@redhat.com>
33860         configmake: support new --runstatedir option
33861         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
33862         even if autoconf was too old to provide the command line option.
33863         * modules/configmake (Makefile.am): Propagate it to .h file.
33865 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33867         ctype, string: depend on extern-inline
33868         This is needed to complete the recent OS X fixes.
33869         Also, fix related documentation as suggested by Eric Blake.
33870         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33871         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
33872         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
33873         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
33874         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
33875         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
33876         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
33877         * doc/posix-functions/toupper.texi:
33878         List the 'ctype' gnulib module.
33879         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
33880         * doc/posix-functions/strncpy.texi:
33881         List the 'string' gnulib module.
33882         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
33883         Add string.
33884         * modules/ctype, modules/string (Depends-on): Add extern-inline.
33886 2013-09-19  Pádraig Brady  <P@draigBrady.com>
33888         userspec: support optional parameters to parse_user_spec()
33889         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
33890         then avoid group processing and treat the full spec as a user.
33891         (parse_with_separator): Allow the USERNAME and GROUPNAME to
33892         be optional params (NULL), in which case they're ignored.
33894 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
33896         timespec: new function make_timespec, and new constants
33897         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
33898         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
33899         (make_timespec): New function.
33900         * lib/dtotimespec.c (dtotimespec):
33901         * lib/timespec-add.c (timespec_add):
33902         * lib/timespec-sub.c (timespec_sub):
33903         * lib/utimens.c (validate_timespec):
33904         * lib/utimensat.c (rpl_utimensat):
33905         Use these new constants and functions.
33907         stdio: OS X port of putc_unlocked + extern inline
33908         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
33909         * doc/posix-functions/putc_unlocked.texi:
33910         * doc/posix-functions/putchar_unlocked.texi:
33911         Document this portability problem.
33913         signal: OS X port of sigaddset etc. + extern inline
33914         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
33915         (sigismember): #undef on problematic Apple platforms.
33916         * doc/posix-functions/sigaddset.texi:
33917         * doc/posix-functions/sigdelset.texi:
33918         * doc/posix-functions/sigemptyset.texi:
33919         * doc/posix-functions/sigfillset.texi:
33920         * doc/posix-functions/sigismember.texi:
33921         Document this portability problem.
33923         extern-inline: do not always suppress extern inline on OS X
33924         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
33925         extern inline on Apple only if the particular compile-time
33926         configuration is known to have the problem.
33927         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
33928         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
33929         other Gnulib modules.
33931         extern-inline: document fixes for ctype and wctype macros
33932         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33933         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
33934         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
33935         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
33936         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
33937         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
33938         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
33939         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
33940         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
33941         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
33942         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
33943         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
33944         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
33945         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
33946         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
33947         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
33948         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
33949         * doc/posix-functions/strncpy.texi:
33950         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
33951         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
33952         Document that Gnulib fixes portability problems with these
33953         functions on OS X 10.8 and earlier when called from plain inline
33954         or extern inline functions.
33956 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
33958         fflush, freadahead, fseeko: Fix for Android
33959         Suggested by Bruno Haible in:
33960         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
33961         * lib/stdio-impl.h: Use local __sfileext definition.
33963 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
33965         pmccabe2html: Portability to other awk versions.
33966         The functions systime() and strftime() are available
33967         in Gawk only.  Properly close two HTML-tags 'style'
33968         and 'span'.
33969         * build-aux/pmccabe2html (BEGIN): Store timing
33970         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
33971         systime() in HTML_COMMENT.
33972         (html_header): Correctly close tag 'style'.
33973         (END): Replace strftime() by CHRONOS_TIME.  Close
33974         tag 'span' correctly, not as 'div'.
33976 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33978         getgroups: statement without effect
33979         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
33980         Change equality conditional to expected assignment.
33982 2013-09-09  Eric Blake  <eblake@redhat.com>
33984         glob: fix compilation
33985         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
33987 2013-09-07  Eric Blake  <eblake@redhat.com>
33989         glob: fix build for platforms without __THROW
33990         * lib/glob.in.h (__THROW): Add definition again.
33992 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
33994         regex-quote: fix buffer access out of bounds
33995         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
33996         * lib/regex-quote.c (regex_quote_spec_pcre):
33997         Fix typo that resulted in an out-of-bounds read.
33999 2013-09-04  Eric Blake  <eblake@redhat.com>
34001         glob: avoid -Wattribute warnings on glibc
34002         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
34003         __THROWNL, not __THROW, on static functions.
34004         * lib/glob.in.h (__THROW): Adjust...
34005         (__THROWNL): ...accordingly.
34007 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
34009         headers: check that _GL_INLINE_HEADER_BEGIN is defined
34010         Suggested by Bruce Korb in:
34011         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
34012         * doc/extern-inline.texi (extern inline):
34013         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
34014         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
34015         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
34016         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
34017         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
34018         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
34019         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
34020         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
34021         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
34022         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
34023         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
34024         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
34025         * lib/xtime.h:
34026         Check that _GL_INLINE_HEADER_BEGIN is defined.
34028 2013-08-29  Pádraig Brady  <P@draigBrady.com>
34030         bootstrap: remove the --version requirement from ancillary tools
34031         * build-aux/bootstrap (check_exists): A new refactored function to
34032         determine if a command exists.
34033         (find_tool): Use the new function which does not require the
34034         --version option to be supported.
34035         (check_versions): Use the new function.
34037 2013-08-26  Simon Josefsson  <simon@josefsson.org>
34039         gc: support HMAC-SHA256 and HMAC-SHA512.
34040         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
34041         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
34042         functions.
34043         (gc_hmac_md5): Use symbolic constant.
34044         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
34045         (gc_hmac_sha256, gc_hmac_sha512): New functions.
34046         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
34047         * m4/sha256.m4: Protect against empty expansion.
34048         * m4/sha512.m4: Likewise.
34049         * lib/hmac-sha256.c: New file.
34050         * lib/hmac-sha512.c: Likewise.
34051         * m4/gc-hmac-sha256.m4: Likewise.
34052         * m4/gc-hmac-sha512.m4: Likewise.
34053         * m4/gc-sha256.m4: Likewise.
34054         * m4/gc-sha512.m4: Likewise.
34055         * modules/crypto/gc-hmac-sha256: Likewise.
34056         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34057         * modules/crypto/gc-hmac-sha512: Likewise.
34058         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34059         * modules/crypto/hmac-sha256: Likewise.
34060         * modules/crypto/hmac-sha256-tests: Likewise.
34061         * modules/crypto/hmac-sha512: Likewise.
34062         * modules/crypto/hmac-sha512-tests: Likewise.
34063         * tests/test-gc-hmac-sha256.c: Likewise.
34064         * tests/test-gc-hmac-sha512.c: Likewise
34065         * tests/test-hmac-sha256.c: Likewise.
34066         * tests/test-hmac-sha512.c: Likewise
34068 2013-08-24  Daiki Ueno  <ueno@gnu.org>
34070         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
34071         of AC_CHECK_DECLS.
34073 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34075         selinux-at: omit unnecessary include
34076         * lib/selinux-at.c: Don't include dosname.h; not needed, since
34077         this source file doesn't use its macros, and subsidiary files that
34078         use the macros already include it.
34080 2013-08-21  Eric Blake  <eblake@redhat.com>
34082         d-ino: avoid false negative on symlink
34083         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
34084         Reported by Stephane Chazelas.
34086 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
34088         bootstrap: port to OpenBSD sed
34089         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
34090         does not interpret `-' as a file argument to mean stdin.
34092 2013-08-15  Eric Blake  <eblake@redhat.com>
34094         warnings: minor optimization
34095         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
34097         warnings: check -Wfoo rather than -Wno-foo
34098         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
34099         -Wno-, test if the compiler recognizes the positive form instead.
34101 2013-08-15  Karl Berry  <karl@gnu.org>
34103         * config/srclist-update: add option "doclicense" to placate
34104         pulling *.texi files from Emacs.  Write terse usage
34105         documentation at the top.
34107 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
34109         xvasprintf-tests: port to GCC with hardening flags
34110         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
34111         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
34112         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
34114 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34116         fpending: port to recent Cygwin change to stdio_ext.h
34117         Reported by LRN in
34118         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
34119         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
34120         just declare __fpending unless it's a macro.
34121         A duplicate decl shouldn't hurt.
34122         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
34123         call compiles and links, instead of separately checking for
34124         decl and lib function.
34125         * modules/fpending (configure-ac):
34126         Adjust to fpending.m4's renaming of shell variable.
34128 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34130         sys_time: port to OpenBSD
34131         * lib/sys_time.in.h: Simply delegate to the system's header
34132         in the BSDish cases as well.  Problem reported by Mike Miller in
34133         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
34134         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
34135         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
34136         wider than time_t.
34138 2013-08-09  Pádraig Brady  <P@draigBrady.com>
34140         bootstrap: support checksum utils having -c but not --status
34141         * build-aux/bootstrap: Only look for sha1sum if updating po files.
34142         Add sha1 to the list of supported checksum utils since it's now
34143         supported through adjustments below.
34144         (update_po_files): Remove the use of --status
34145         in a way that will suppress all error messages, but since this is
34146         only used to minimize updates, it shouldn't cause an issue.
34147         Exit early if there is a problem updating the po file checksums.
34148         (find_tool): Remove the check for --version support as this
34149         is optional as per commit 86186b17.  Don't even check for the
34150         presence of the command as if that is needed, it's supported
34151         through configuring prerequisites in bootstrap.conf.
34152         Prompt that when a tool isn't found, one can define an environment
34153         variable to add to the hardcoded search list.
34155 2013-08-05  Jim Meyering  <meyering@fb.com>
34157         regex: port to non-glibc/lock-using systems
34158         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
34159         system with GNULIB_LOCK would fail due to absence of the
34160         included "glthread/lock.h".  This would affect any package
34161         for which the "lock" module is used only by the regex module,
34162         and not explicitly used.
34163         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
34164         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
34165         Add a dependency on the "lock" module.
34167 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34169         localecharset: make locale_charset thread-safe on Mac OS X
34170         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
34171         instead of MB_CUR_MAX.
34173 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34175         gettext: update to version 0.18.3
34176         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
34177         require AC_PROG_SED to allow user to specify custom sed command when
34178         generating en@quot PO file.
34180 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
34182         bootstrap: use correct source when copying build-aux files
34183         * build-aux/bootstrap (gnulib_extra_files): This variable is
34184         relative to upstream gnulib layout, not downstream.
34186 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
34188         tmpdir: fix bug in VMS port
34189         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
34190         See Steven M. Schweda in
34191         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
34193 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34195         tmpdir: port to VMS, to // != /, and to long dirs
34196         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
34197         __secure_getenv, so that we're more like the glibc version.
34198         All uses changed.
34199         (path_search): Don't put slash after directory if __VMS.
34200         Problem reported by Steven M. Schweda in
34201         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
34202         Simplify code to add slash; no need for a loop.
34203         Do not remove trailing slash from "//".
34204         Do not assume dlen <= INT_MAX.
34206 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34208         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
34209         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
34210         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
34211         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
34213         accept4, dup3, pipe2: port to Cygwin
34214         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
34215         * lib/accept4.c (accept4) [O_BINARY]:
34216         * lib/dup3.c (dup3) [O_BINARY]:
34217         * lib/pipe2.c (pipe2) [O_BINARY]:
34218         Use set_binary_mode, not setmode.
34219         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
34220         * modules/binary-io (Depends-on): Remove module indicator.
34221         These last two bits undo the previous change to pipe2 and binary-io.
34223 2013-07-09  Pádraig Brady  <P@draigBrady.com>
34225         mountlist: add support for deallocating returned list entries
34226         * lib/mountlist.c (free_mount_entry): A new exported function
34227         to deallocate a mount list entry.
34228         (read_file_system_list): Refactor to use the new deallocation function.
34229         Suggested by Anton Ovchinnikov.
34231 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34233         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
34234         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
34235         * lib/stdalign.in.h (_Alignas, _Alignof):
34236         Port to FreeBSD 9.1, and to C11 and C++11.
34237         (_Alignas): Also support ICC.
34238         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
34239         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
34241 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34243         fnmatch: don't goto over declaration
34244         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
34245         undefined behavior for goto over a declaration.
34246         Problem reported by Charlie Brown in
34247         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
34249         pipe2: decouple from binary-io a bit
34250         This is for Emacs, which needs pipe2 but not binary-io.
34251         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
34252         * modules/binary-io (Depends-on): Add module indicator.
34254 2013-07-03  Eric Blake  <eblake@redhat.com>
34256         mgetgroups: relax license to LGPLv2+
34257         * modules/getugroups (License): Change from GPLv3+.
34258         * modules/mgetgroups (License): Likewise.
34259         * modules/getgroups (License): Change from LGPLv3+.
34261         xalloc-oversized: relax license to LGPLv2+
34262         * modules/xalloc-oversized (License): Change from GPLv3+.
34264         nproc: relax license to LGPLv2+
34265         * modules/nproc (License): Change from LGPLv3+.
34267         bootstrap: honor --no-git
34268         * build-aux/bootstrap: Don't even try to use git when user is
34269         pointing to a static checkout.
34271 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34273         ignore-value: port to gcc -pedantic
34274         * lib/ignore-value.h (ignore_value):
34275         Port to gcc -pedantic, by using __extension__.
34276         Reindent as per usual gnulib style nowadays.
34277         Simplify GCC version check.
34279 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34281         extern-inline: port to gcc -std=c89
34282         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
34283         Do not use __gnu_inline__ if pedantic and pre-C99.
34285 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34287         doc: document extern-inline
34288         * doc/extern-inline.texi: New file.
34289         * doc/gnulib.texi (alloca-opt): Include it.
34290         * m4/extern-inline.m4: Move some comments to documentation,
34291         and others closer to what they describe.
34293         doc: chatter less
34294         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
34295         (updated-stamp): Use it.  This causes 'make' to output just
34296         one file name rather than zillions.
34298         fflush, fseeko: port to musl cross-compiles
34299         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
34300         on some implementation that (1) is not known to be buggy,
34301         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
34302         cross-compiled to so we can't easily check for lack of
34303         conformance.  This is for cross-compiling to musl.
34304         Reported by Rich Felker in
34305         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
34306         * m4/fclose.m4 (gl_FUNC_FCLOSE):
34307         * m4/fflush.m4 (gl_FUNC_FFLUSH):
34308         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
34309         Adjust to above change.
34310         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
34311         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
34312         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
34313         known not to work, or unknown.
34315 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34317         msvc-inval: port to mingw-w64
34318         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
34319         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
34320         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
34322 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
34324         getcwd-lgpl: port to Tru64
34325         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
34326         Problem reported by Steven M. Schweda in
34327         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
34329         tests: port large-fd POSIX spawn tests to OS X
34330         Problem reported by Daiki Ueno in
34331         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
34332         * tests/test-posix_spawn_file_actions_addclose.c:
34333         * tests/test-posix_spawn_file_actions_adddup2.c:
34334         * tests/test-posix_spawn_file_actions_addopen.c:
34335         Include <limits.h>, for OPEN_MAX, if available.
34336         (big_fd): New static function.
34337         (main): Use it.
34339 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
34341         tests/nap.h: use an adaptive delay to avoid ctime update issues
34342         The recent change in nap.h (5191133e) decreased the probability of lost
34343         races to about a third, however such problems could still be observed
34344         in virtual machines and openSUSE's OBS.
34345         Before, nap() detected the needed time once empirically and then used
34346         that delay (together with a small correction multiplier) in further
34347         calls.  This problem has been reported and discussed several times,
34348         including guesses about possible kernel issues:
34349         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
34350         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
34351         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
34352         http://bugs.gnu.org/12820
34353         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
34354         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
34355         Now, nap() avoids the race alltogether by verifying on a reference
34356         file whether a timestamp difference has happened.
34357         * tests/nap.h (nap_fd): Define file descriptor variable for the
34358         witness file.
34359         (nap_works): Change return value to bool.  Change passing
34360         the old file's status by value instead of by reference as this function
34361         does no longer update that timestamp; rename the function argument from
34362         st to old_st.  Remove the local variables cdiff and mdiff because that
34363         function now returns true/false instead of the precise delay.
34364         (guess_delay): Remove function.
34365         (clear_tmp_file): Add new function to close and unlink the witness file.
34366         (nap): Instead of re-using the delay which has been calculated during
34367         the first call, avoid the race by actually verifying that a timestamp
34368         difference can be observed on the current file system.  Use an adaptive
34369         approach for the delay to minimize execution time.  Assert that the
34370         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
34371         = 2^31 - 1 = 2.1s.
34372         Use atexit to call clear_tmp_file when the process terminates.
34374 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34376         sig2str: port to C++
34377         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
34378         Reported by Daniel J Sebald in
34379         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
34381 2013-05-30  Eric Blake  <eblake@redhat.com>
34383         docs: mention cygwin shortcoming in <sys/un.h>
34384         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
34386         vasnprintf: silence mingw compiler warning
34387         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
34389 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34391         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
34392         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
34393         This fixes a porting bug I recently reintroduced in regex, and
34394         some other instances that I discovered while testing the fix.
34395         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
34396         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
34397         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
34398         with an empty argument if this is a pedantic pre-C99 GCC.
34399         * lib/verify.h: Do not use _Static_assert if this is a pedantic
34400         pre-C11 GCC.
34402         regex: adapt to locking regime instead of depending on pthread
34403         Instead of depending on pthread, adapt to whatever thread
34404         modules are in use.  Problem reported by Ludovic Courtès in
34405         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
34406         and by Mats Erik Andersson in
34407         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
34408         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34409         Support either the 'lock' module, or the 'pthread' module, or
34410         no module.
34411         (lock_lock, lock_unlock): New macros.
34412         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
34413         * modules/lock, modules/pthread (configure.ac): Add module indicator.
34414         * modules/regex (Depends-on): Remove pthread.
34416 2013-05-22  Eric Blake  <eblake@redhat.com>
34418         getgroups: document portability issues
34419         * doc/glibc-functions/initgroups.texi (initgroups): Mention
34420         multithread safety.
34421         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
34422         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
34423         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
34424         getugroups.
34425         * doc/posix-functions/getgroups.texi (getgroups): Mention
34426         multithread safety and mgetgroups.
34428 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
34430         test-lchown, test-chown: also skip test if chown fails with EPERM
34431         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
34432         skip this test, to handle FAT file systems.
34433         * tests/test-chown.h (test_chown): Likewise.
34435 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34437         regex: fix dfa race in multithreaded uses
34438         Problem reported by Ludovic Courtès in
34439         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
34440         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34441         New macros.  All uses of __libc_lock_define, __libc_lock_init
34442         changed to use the first two of these.
34443         (__libc_lock_lock, __libc_lock_unlock): New macros, for
34444         non-glibc platforms.
34445         (struct re_dfa_t): Define the lock unconditionally.
34446         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
34447         '#ifdef _LIBC"s.
34448         * modules/regex (Depends-on): Add pthread, if we use the
34449         included regex.
34451         * lib/regcomp.c: Do actions that are not needed for glibc,
34452         but may be needed elsewhere.
34453         (regfree, re_compile_internal): Destroy the lock.
34454         (re_compile_internal): Check for lock-initialization failure.
34456         malloca: port to compilers that reject size-zero arrays
34457         This fixes a bug introduced in my previous patch.
34458         * lib/malloca.c (struct preliminary_header): Use an int
34459         rather than a character array of size int; that's simpler.
34460         (struct header): Remove, replacing with ...
34461         (union header): New type.  This avoids the need for declaring a
34462         character array of size zero, which is not allowed on some platforms.
34463         All uses changed.
34465 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34467         parse-datetime, tests: don't use "string" + int
34468         Recent versions of 'clang' complain about C source code that
34469         uses expressions of the form '"string literal" + integer',
34470         I guess on the theory that it's confusing for readers who are
34471         used to C++.  On those grounds I suppose it's OK to make this
34472         minor style change.
34473         * lib/parse-datetime.y (parse_datetime):
34474         * tests/test-fchdir.c (main):
34475         * tests/test-snprintf-posix.h (test_function):
34476         * tests/test-snprintf.c (main):
34477         * tests/test-vasnprintf-posix.c (test_function):
34478         * tests/test-vasnprintf.c (test_function):
34479         * tests/test-vsnprintf.c (main):
34480         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
34481         Rewrite '"str" + E' to '&"str"[E]'.
34483 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34485         argmatch: port to C++
34486         * lib/argmatch.h [__cplusplus]: Add extern "C".
34488         argp: typo fix
34489         * lib/argp-help.c: Typo in comment.
34491 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
34493         manywarnings: update for GCC 4.8.0
34494         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
34495         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
34496         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
34497         -Wmissing-noreturn, as they are duplicates of other warnings.
34498         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
34499         was documented to be flaky in earlier versions of GCC.
34501         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
34502         * tests/test-spawn.c (main):
34503         * tests/test-sys_socket.c (main):
34504         * tests/test-sys_wait.c (main):
34505         Don't have a switch value that isn't covered by a case.
34507         getaddrinfo-tests: port --enable-gcc-warnings to clang
34508         * tests/test-getaddrinfo.c (simple):
34509         Avoid casts from looser to stricter-aligned pointers.
34511         thread: port --enable-gcc-warnings to clang
34512         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
34513         Include <signal.h>, to pacify a warning about pthread_sigmask.
34515         stdio: use __REDIRECT for fwrite, fwrite_unlocked
34516         * lib/stdio.in.h (fwrite):
34517         When working around bug 11959, use __REDIRECT rather than '#define
34518         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
34519         fix the -Wunused-value issue with clang, and it works with GCC too.
34520         Problem with targeting reported by Eric Blake in
34521         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
34522         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
34523         debugging the fwrite issue.
34525         stdio: port --enable-gcc-warnings to clang
34526         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
34527         since the GCC workaround for fwrite does not pacify clang.
34529         sig2str: port --enable-gcc-warnings to clang
34530         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
34532         obstack: port --enable-gcc-warnings to clang
34533         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
34534         Avoid casts from looser to stricter-aligned pointers.
34536         memchr2: port --enable-gcc-warnings to clang
34537         * lib/memchr2.c (memchr2):
34538         Avoid casts from looser to stricter-aligned pointers.
34540         mbsstr: port --enable-gcc-warnings to clang
34541         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
34542         Avoid casts from looser to stricter-aligned pointers.
34544         malloca: port --enable-gcc-warnings to clang
34545         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
34546         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
34548         inttostr: port --enable-gcc-warnings to clang
34549         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
34551         warnings: port to clang
34552         Problem reported by Daniel P. Berrange via Eric Blake in
34553         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
34554         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
34555         (gl_WARN_ADD): Use it.
34557 2013-05-11  Jim Meyering  <meyering@fb.com>
34559         quotearg: do not read beyond end of buffer
34560         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
34561         end of an ARG for which no length was specified.  With an N-byte
34562         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
34563         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
34564         via coreutils' misc/sort-debug-keys.sh test and detected by running
34565         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
34566         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
34567         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
34568         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
34569         characters correctly."
34571 2013-05-11  Daiki Ueno  <ueno@gnu.org>
34573         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
34574         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
34575         compilation target is Mac OS X 10.6.
34576         Problem reported by parafin and Andoni Morales in
34577         <http://savannah.gnu.org/bugs/?37844> and
34578         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
34580 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34582         mkdir-p: remove assumptions about umask and mode
34583         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
34584         umask is 0, or that MODE is a subset of MODE_BITS.
34586 2013-05-10  Eric Blake  <eblake@redhat.com>
34588         maint.mk: catch more abuse of HAVE_DECL in syntax-check
34589         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
34591 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
34593         deps: require Automake >= 1.9.6 in generated Makefile fragments
34595         That is the same minimal version required in the DEPENDENCIES file.
34596         Moreover, the old code generated a requirement of Automake >= 1.5,
34597         and that is an insanely outdated version.
34599         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
34600         * tests/havelib/rpathlx/Makefile.am: Likewise.
34601         * tests/havelib/rpathly/Makefile.am: Likewise.
34602         * tests/havelib/rpathlyx/Makefile.am: Likewise.
34603         * tests/havelib/rpathlz/Makefile.am: Likewise.
34604         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
34605         * tests/havelib/rpathx/Makefile.am: Likewise.
34606         * tests/havelib/rpathy/Makefile.am: Likewise.
34607         * tests/havelib/rpathz/Makefile.am: Likewise.
34609 2013-05-08  Eric Blake  <eblake@redhat.com>
34611         bootstrap: AC_INIT may have more than four parameters
34612         * build-aux/bootstrap (extract_package_name): Correctly extract
34613         non-empty tarname field.  Avoid range in regex.
34614         Based on a report by Sami Kerola <kerolasa@iki.fi>.
34616 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34618         qacl: port to MS-Windows port of GNU Emacs
34619         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
34620         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
34621         port of GNU Emacs.  Problem reported by Eli Zaretskii in
34622         <http://bugs.gnu.org/14295#14>.
34624 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
34626         acl: include quote.h
34627         * lib/copy-acl.c: Include quote.h.
34628         * lib/set-acl.c: Likewise.
34630 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
34632         fchownat, renameat, unlinkat: update statat dependencies
34633         These modules use statat and lstatat, not fstatat; so depend on
34634         the statat module, which was split out recently from fstatat.
34635         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
34636         * modules/renameat: Likewise.  Also delete fstat.
34637         URL: http://bugs.gentoo.org/468790
34639 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
34641         Assume gnulib is checked out from Git, not CVS
34643         In fact, access to the gnulib repository through CVS has been
34644         disabled, or more precisely, got broken and was never restored; see:
34645         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
34647         Note that support for CVS is not removed completely and unthinkingly
34648         by this change: only support for CVS checkouts of gnulib itself is
34649         removed.  For example, the 'bootstrap' script still cater to .cvsingore
34650         files and CVS directories, for the benefit of those poor gnulib clients
34651         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
34653         * gnulib-tool: Simplify accordingly.
34654         * posix-modules: Likewise.
34655         * MODULES.html.sh: Likewise.
34656         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
34657         repository.
34658         * doc/gnulib-intro.texi: Likewise.
34659         * doc/gnulib-readme.texi: Likewise.
34660         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
34661         sample '.gitignore' file rather than a sample '.cvsignore'.
34662         * NEWS: Update.
34663         * m4/extensions.m4: While at it, remove a comment mistakenly referring
34664         to "CVS Autoconf" rather than "git Autoconf".
34666 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
34668         utimensat-tests, etc.: try to fix some races
34669         Problem reported by Bernhard Voelker in
34670         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
34671         I don't know whether this patch fixes that race condition, but it
34672         fixes *some* race conditions, so it should be a win.
34673         * modules/chown-tests (Depends-on):
34674         * modules/fchownat-tests (Depends-on):
34675         * modules/fdutimensat-tests (Depends-on):
34676         * modules/futimens-tests (Depends-on):
34677         * modules/lchown-tests (Depends-on):
34678         * modules/stat-time-tests (Depends-on):
34679         * modules/utimens-tests (Depends-on):
34680         * modules/utimensat-tests (Depends-on):
34681         Depend on nanosleep, not usleep.
34682         * modules/chown-tests (test_chown_LDADD):
34683         * modules/lchown-tests (test_lchown_LDADD):
34684         * modules/stat-time-tests (test_stat_time_LDADD):
34685         New macro.
34686         * modules/fchownat-tests (test_fchownat_LDADD):
34687         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
34688         * modules/futimens-tests (test_futimens_LDADD):
34689         * modules/utimens-tests (test_utimens_LDADD):
34690         * modules/utimensat-tests (test_utimensat_LDADD):
34691         Add $(LIB_NANOSLEEP).
34692         * modules/stat-time-tests (Files): Add tests/nap.h.
34693         * tests/nap.h: Include <limits.h>, for INT_MAX.
34694         (lt_mtime): Remove.
34695         (diff_timespec): New function.
34696         (get_stat): Rename from get_mtime.  All callers changed.
34697         (nap_works): Determine the needed delay by inspecting the
34698         file system's timestamp jumps; this should be more reliable.
34699         Look at both mtime and ctime, and take the maximum of the two jumps.
34700         (nap_works, guess_delay):
34701         Return a nanosecond count, not a microsecond count.
34702         All callers changed.
34703         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
34704         failure.
34705         (nap): Multiply the guess by 1.125, to accommodate the case where
34706         the file system's clock is a bit slower than nanosleep's clock.
34707         * tests/test-stat-time.c (BASE): New macro.
34708         Include nap.h.
34709         (nap): Remove; nap.h now defines this.  This removes a duplicate
34710         implementation of 'nap'.
34712         utimens, utimensat: work around Solaris UTIME_OMIT bug
34713         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
34714         Linux kernel 2.6.32 does.  Work around it in the same way.
34715         * doc/posix-functions/futimens.texi (futimens):
34716         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
34717         * lib/utimens.c (fdutimens, lutimens):
34718         * lib/utimensat.c (rpl_utimensat): Work around the bug.
34720         gettext: now it's your responsibility to add -I$(top_builddir)/intl
34721         Formerly, it was your responsibility to do this for all Makefile.ams
34722         other than Gnulib's.  Now it's your responsibility to do it for
34723         Gnulib's Makefile.am, too.
34724         * NEWS: Document this.
34725         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
34727         acl: include errno.h to get errno
34728         Reported by Daiki Ueno in
34729         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
34730         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
34732 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
34734         tests: don't assume getdtablesize () <= 10000000
34735         * modules/cloexec-tests:
34736         * modules/dup2-tests:
34737         * modules/dup3-tests:
34738         * modules/nonblocking-tests:
34739         * modules/posix_spawn_file_actions_addclose-tests:
34740         * modules/posix_spawn_file_actions_adddup2-tests:
34741         * modules/posix_spawn_file_actions_addopen-tests:
34742         * modules/unistd-safer-tests:
34743         Depend on the getdtablesize module.
34744         * tests/test-cloexec.c:
34745         * tests/test-dup-safer.c:
34746         * tests/test-dup2.c:
34747         * tests/test-dup3.c:
34748         * tests/test-fcntl.c:
34749         * tests/test-nonblocking.c:
34750         * tests/test-posix_spawn_file_actions_addclose.c:
34751         * tests/test-posix_spawn_file_actions_adddup2.c:
34752         * tests/test-posix_spawn_file_actions_addopen.c:
34753         Don't assume getdtablesize () <= 10000000.
34755 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
34757         extern-inline: work around bug in Sun c99
34758         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34759         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
34761 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
34763         qacl: new module, broken out from the acl module
34764         This is for GNU Emacs, which wants the acl functions but does
34765         not want 'error' invoked when they fail.
34766         * lib/acl-internal.h: Do not include error.h, quote.h.
34767         (ENOSYS, ENOTSUP): Remove; no longer needed.
34768         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
34769         * lib/acl.h: Include <stdbool.h>.
34770         (acl_errno_valid): New function.
34771         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
34772         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
34773         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
34774         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
34775         (ACL_INTERNAL_INLINE): Remove; no longer needed.
34776         * lib/file-has-acl.c (file_has_acl):
34777         * lib/qcopy-acl.c (qcopy_acl):
34778         * lib/qset-acl.c (qset_acl):
34779         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
34780         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
34781         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
34782         lib/file-has-acl.c, m4/acl.m4 to qacl module.
34783         Add lib/set-acl.c.
34784         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
34785         Add qacl.
34786         (configure.ac): Move gl_FUNC_ACL to qacl module.
34787         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
34788         Rename set-mode-acl.c to set-acl.c.
34789         * lib/acl-errno-valid.c: New file.
34790         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
34791         copy_acl function remains in copy-acl.c.
34792         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
34793         (_): Remove; not needed.
34794         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
34795         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
34796         * modules/qacl: New file, moved from the old modules/acl.
34797         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
34798         Remove set-mode-acl.c, copy-acl.c.
34799         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
34801         alignof, intprops, malloca: port better to IBM's C compiler
34802         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
34803         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
34804         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
34806 2013-04-25  Daiki Ueno  <ueno@gnu.org>
34808         wctype-h: fix gettext link error on mingw
34809         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
34810         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
34811         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
34812         rpl_towupper and rpl_towupper.
34814 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
34816         regex-tests, regex: allow glibc re_search behavior
34817         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
34818         re_search input data to make the multi-character collating element
34819         in it clearly visible, and treat re_search return code 0 as valid.
34820         * m4/regex.m4 (gl_REGEX): Likewise.
34822 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34824         stdalign: doc fix
34825         * doc/posix-headers/stdalign.texi (stdalign.h):
34826         Gnulib doesn't support '_Alignof expr'.
34828 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34830         stdalign: port to stricter ISO C11
34831         ISO C11 says that _Alignof's operand must be a parenthesized type.
34832         Problem reported by Eli Zaretskii in
34833         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
34834         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
34835         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
34837 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
34839         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
34840         Problem reported by Marco Atzeri in
34841         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
34842         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
34843         Simply delegate to the system <sys/select.h> in this case too.
34844         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
34845         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
34846         be needed on Solaris either.
34847         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
34848         Simply delegate to the system <sys/time.h> in this case.
34850 2013-03-19  Karl Berry  <karl@gnu.org>
34852         * build-aux/gnupload: check for erroneous (with gnupload) use of
34853         ftp-upload.gnu.org, tweak help.
34855 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34857         copy-file, rpmatch: fix problems found by cppcheck
34858         Reported by Arno Onken in
34859         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
34860         * lib/rpmatch.c (try): Fix memory leak.
34861         * lib/copy-file.c: Include "ignore-value.h".
34862         (qcopy_file_preserving): Ignore chown value.
34863         * modules/copy-file (Depends-on): Add ignore-value.
34865 2013-01-27  Jim Meyering  <jim@meyering.net>
34867         prefix-gnulib-mk: give better diagnostics
34868         * build-aux/prefix-gnulib-mk: Don't just "die".
34869         Give better diagnostics upon failure.
34871 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
34873         putenv: port to Solaris 10
34874         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
34875         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
34876         is not what is wanted here.
34877         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
34878         declaration, not for its existence.
34880 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
34882         mktime: fix configure typo
34883         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
34885 2013-03-12  Eric Blake  <eblake@redhat.com>
34887         regex-tests: skip UTF-8 test on mingw
34888         * modules/regex-tests (Depends-on): Add localcharset.
34889         * tests/test-regex.c (main): Use it to skip test on mingw.
34891 2013-03-11  Eric Blake  <eblake@redhat.com>
34893         tests: make it easier to bypass alarm time in debugger
34894         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
34895         * tests/test-memmem.c (main): Likewise.
34896         * tests/test-passfd.c (main): Likewise.
34897         * tests/test-ptsname.c (main): Likewise.
34898         * tests/test-ptsname_r.c (main): Likewise.
34899         * tests/test-strcasestr.c (main): Likewise.
34900         * tests/test-strstr.c (main): Likewise.
34902         regex: port to mingw's recent addition of undeclared alarm
34903         * doc/posix-functions/alarm.texi (alarm): Document that alarm
34904         exists but still doesn't work in newer mingw.
34905         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
34906         not existence.  Ensure SIGALRM is not trapped.
34907         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
34908         * m4/regex.m4 (gl_REGEX): Likewise.
34909         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
34910         * tests/test-regex.c (main): Use correct probe for alarm.
34912         putenv: avoid compilation warning on mingw
34913         * lib/putenv.c (_unsetenv): Protect variable declaration.
34914         (putenv): Fix indentation.
34916 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
34918         unistd: don't prevent Tru64 Unix from using gnulib strtod.
34919         * lib/unistd.in.h: be careful not to include un-needed system
34920         stdlib.h from here, because that prevents gnulib stdlib.h from
34921         defining rpl_strtod correctly.
34923 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
34925         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
34926         changesets, but for the 'precision 0' test.
34927         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34928         round-to-even, since POSIX says rounding is implementation-defined
34929         and OS X 10.8.2 rounds 1.51 to 1 here.
34931         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
34932         changeset.
34933         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34934         round-to-even, since POSIX says rounding is implementation-defined
34935         and OS X 10.8.2 rounds 1.5 to 1 here.
34937 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
34939         vasnprintf-posix-tests: allow rounding 1.5 to 1
34940         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
34941         round-to-even, since POSIX says rounding is implementation-defined
34942         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
34943         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
34945         bootstrap: port to FreeBSD
34946         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
34947         that treat '--' differently.  Reported by Mats Erik Andersson in
34948         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
34950 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
34952         regex: rename remaining __attribute calls to __attribute__.
34953         2012-02-25 changed definition of __attribute, but left some uses
34954         unchanged, preventing compilation of regex module on most non-gcc
34955         environments.
34956         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
34957         (lookup_collation_sequence_value, build_range_exp)
34958         (build_collating_symbol): Set attributes with newly renamed
34959         __attribute__ decorator.
34960         * lib/regex_internal.c (re_string_peek_byte_case)
34961         (re_node_set_compare, re_node_set_contains): Likewise.
34962         * lib/regexec.c (acquire_init_state_context): Likewise.
34964 2013-03-06  Bruno Haible  <bruno@clisp.org>
34966         execute: Revert last change, but use a different condition.
34967         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
34968         on Windows.
34970 2013-03-05  Eric Blake  <eblake@redhat.com>
34972         execute: drop dead code
34973         * lib/execute.c (nonintr_close, nonintr_open): Delete.
34975 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
34977         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
34978         * m4/non-recursive-gnulib-prefix-hack.m4
34979         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
34980         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
34981         <http://bugs.gnu.org/10305#237>.
34983 2013-03-04  Eric Blake  <eblake@redhat.com>
34985         test-getsockopt: avoid compiler warning
34986         * tests/test-getsockopt.c (includes): Ensure close is declared.
34988 2013-03-02  Bruno Haible  <bruno@clisp.org>
34990         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
34991         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
34993 2013-03-02  Bruno Haible  <bruno@clisp.org>
34995         gettext: Update to version 0.18.2.
34996         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
34997         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
34998                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
35000 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35002         regex: merge patches from libc
35004         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35005         * lib/regex_internal.h (__attribute__): Rename from __attribute.
35006         All uses changed.
35007         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
35008         (re_string_wchar_at, re_string_elem_size_at):
35009         Mark function as possibly unused.
35011         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
35012         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
35013         elements compare against the byte sequence of it, not its name.
35015 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35017         putenv: port better to native Windows
35018         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35019         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
35020         (_unsetenv): Use _putenv if available.
35021         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
35022         a bit less likely to cause damage.
35023         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35024         Fix the wrong value with SetEnvironmentVariable.
35025         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
35026         code better.
35028 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35030         regex: ignore old-style-definition warnings
35031         * lib/regex.c: Add pragma to ignore these warnings.
35032         Problem reported for GNU tar by Pavel Raiskup.
35034 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
35036         getcwd: support coreutils better
35037         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
35038         but this might not be correct in coreutils, which disables
35039         the raw decl checks.  Problem reported by Nagendra in
35040         <http://bugs.gnu.org/10305#192>.
35041         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
35042         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
35043         Test the getcwd function, not any macro, since getcwd.c wants the
35044         function.
35045         * m4/getcwd.m4 (gl_FUNC_GETCWD):
35046         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
35047         compile, as might happen if there's a macro but no function.
35049         strtod: support coreutils better
35050         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
35051         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
35052         disables the raw decl checks.  This assumes there is an underlying
35053         strtod, but that's a safe assumption these days.
35054         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
35056         mountlist: port to HP NonStop
35057         Reported by Joachim Schmitz in
35058         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
35059         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
35060         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
35062 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
35064         extern-inline: avoid compilation error with HP-UX cc
35065         Reported by Richard Lloyd in
35066         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
35067         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35068         Suppress extern inline with HP-UX cc.  This should be safe,
35069         though it may hurt performance.  Perhaps someone with some HP-UX
35070         experience can come up with a higher-performance fix.
35072 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
35074         putenv: fix heap corruption with mixed putenv/_putenv
35075         Problem reported by Michael Goffioul in
35076         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
35077         * lib/putenv.c (putenv) [HAVE__PUTENV]:
35078         Rely on _putenv to allocate the new environment.
35079         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35080         * modules/putenv (configure.ac): Use it.
35082 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
35084         unsetenv etc.: port to Solaris 11 + GNU Emacs
35085         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
35086         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
35087         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
35088         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
35089         idea but is too painful to fix right now), and without this gnulib
35090         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
35091         compiling unsetenv.c on Solaris 11.  Fix the problem for
35092         unsetenv.c, and fix other similar occurrences.
35094 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
35096         secure_getenv: fix C++ declaration typo
35097         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
35098         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
35099         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
35101 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
35103         careadlinkat: stop exporting careadlinkatcwd
35104         Only Emacs used it directly, and Emacs no longer needs it.
35105         * NEWS: Document this simplification.
35106         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
35107         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
35108         for readlink.
35109         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
35110         Don't include stdlib.h; no longer needed.
35111         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
35112         * lib/relocwrapper.c: Adjust comment to match new dependencies.
35113         * modules/areadlink (Depends-on): Add readlink.
35114         (Maintainer): Add self.
35115         * modules/careadlinkat (Depends-on): Remove readlink.
35117         extensions: port better to HP-UX
35118         This is merged from git Autoconf.
35119         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35120         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
35121         so that it's compatible with the value used when compiling.
35123         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
35124         Problem reported by Mats Erik Andersson in
35125         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
35126         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35127         openpty function exists, not merely when we intend to replace it.
35128         This corrects the 2013-01-31 patch, which mistakenly defined
35129         HAVE_OPENPTY even on hosts that lacked it.
35131 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35133         secure_getenv: fix include typo
35134         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
35136         secure_getenv: port better to FreeBSD and Solaris
35137         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
35138         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
35139         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
35140         This works better on BSDish platforms.
35141         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
35142         Test for issetugid if __secure_getenv is missing.
35144 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
35146         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
35147         Some of these changes are merged in from git Autoconf.
35148         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35149         When deciding whether to define _XOPEN_SOURCE, inspect the
35150         preprocessor macro __hpux instead of the more-heavyweight
35151         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
35152         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
35153         as the key for __EXTENSIONS__.
35155         unistd: avoid namespace pollution on non-glibc systems
35156         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
35157         This avoids namespace pollution on non-glibc systems, by causing
35158         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
35159         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
35160         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
35162 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35164         tmpdir: use secure_getenv
35165         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
35166         Define to secure_getenv, not getenv.
35167         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
35168         as that's now secure_getenv's job.
35169         * modules/tmpdir (Depends-on): Add secure_getenv.
35171         tempname: use secure_getenv
35172         * lib/tempname.c (__secure_getenv) [!_LIBC]:
35173         Define to secure_getenv, not getenv.
35174         * modules/tempname (Depends-on):
35175         Add secure_getenv.
35177         secure_getenv: new module
35178         * MODULES.html.sh (Extra functions based on ANSI C 89):
35179         Add secure_getenv.
35180         * doc/glibc-functions/secure_getenv.texi: New file.
35181         * doc/gnulib.texi: Include it.
35182         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
35183         New files.
35184         * lib/stdlib.in.h (secure_getenv): New decl.
35185         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
35186         * modules/stdlib (stdlib.h):
35187         Add secure_getenv checks.
35189 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35191         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
35192         Reported for OS X 10.8.2 by Assaf Gordon in
35193         <http://bugs.gnu.org/13516>.
35194         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
35195         !HAVE_OPENAT && !HAVE_FDOPENDIR.
35196         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
35197         so that they can be kept in sync more easily.  Avoid PATH_MAX
35198         test on the Hurd.  Sync from test-getcwd.c for errno tests after
35199         mkdir or chdir failure.
35200         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
35201         lib/getcwd.c.
35202         (test_abort_bug): Do not test for the deep directory bug unless we
35203         have openat support.  Avoid PATH_MAX test on the Hurd.
35205         regex-tests, regex: fix bug: memset undeclared
35206         * tests/test-regex.c: Don't include regex.h twice.  Include
35207         string.h, to declare memset.  Christensen's report also mentioned
35208         this issue.
35209         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
35210         test-regex.c, to avoid future problems like this.  Remove
35211         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
35212         twice.
35214         regex-tests: fix link errors on older Solaris
35215         These need to link with @LIBINTL@ to get libintl_gettext.
35216         Problem reported by Tom G. Christensen in
35217         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
35218         * modules/regex-tests (test_regex_LDADD): New macro.
35220 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35222         regex-tests: new module
35223         * modules/regex-tests, tests/test-regex.c: New files.
35225         regex: fix off-by-one error in configure test
35226         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
35228 2013-01-31  Eric Blake  <eblake@redhat.com>
35230         regex: avoid infinite configure test
35231         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
35233 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
35235         openpty: fix bug where HAVE_OPENPTY wasn't defined
35236         See the thread starting at:
35237         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
35238         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35239         openpty function exists, not merely when we intend to replace it.
35241 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
35243         sys_time: port to Solaris 2.6
35244         There is a circularity problem on Solaris 2.6, where <time.h> includes
35245         <sys/time.h> for struct timespec.  The include nesting is gnulib
35246         <time.h>, system <time.h>, gnulib <sys/time.h>, system
35247         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
35248         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
35249         <sys/siginfo.h>; the last, innermost file needs struct
35250         timestruc_t, which is defined in <sys/time.h>, which has not been
35251         fully parsed.  Problem reported by Tom G. Christensen in
35252         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
35253         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
35254         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
35255         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
35256         uses split double-inclusion guards.
35258 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35260         regex: test for buffer overrun
35261         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
35262         for the just-fixed regex bug.
35264 2013-01-29  Andreas Schwab  <schwab@suse.de>
35266         regex: fix buffer overrun in regexp matcher [BZ #15078]
35267         * lib/regexec.c (extend_buffers): Add parameter min_len.
35268         (check_matching): Pass minimum needed length.
35269         (clean_state_log_if_needed): Likewise.
35270         (get_subexp): Likewise.
35272 2013-01-28  Pádraig Brady  <P@draigBrady.com>
35274         mountlist: don't consider "devtmpfs" as dummy
35275         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
35276         as there is storage associcated with it.
35278 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35280         futimens-tests, utimens-tests: Depend on gettext.
35281         This works around a problem introduced in my 2013-01-12 patch,
35282         which added @LIBINTL@ to these modules.
35283         * modules/futimens-tests (Depends-on):
35284         * modules/utimens-tests (Depends-on): Add gettext.
35286 2013-01-26  Eric Blake  <eblake@redhat.com>
35288         test-getpeername: fix typo
35289         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
35291 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
35293         bootstrap: remove the need for a sorted .gitignore file
35294         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
35295         rename to insert_if_absent(), so that we don't need or generate
35296         a sorted .gitignore file.  We do require a .gitignore with no
35297         existing duplicate entries and enforce that.
35298         (sort_patterns): Remove this function as we now use the simpler
35299         technigue of inserting blacklist entries at the top of the file,
35300         assuming gnulib won't be inserting !whitelist entries.
35302 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35304         readlinkat: don't depend on gl_FUNC_OPENAT
35305         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
35306         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
35307         renameat.m4, symlinkat.m4; but one thing at a time.
35309         statat: new module, split out from fstatat
35310         GNU Emacs needs the POSIX-specified fstatat, but not the
35311         gnulib-specified statat and lstat.  Split the latter two into a
35312         new module 'statat'.
35313         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
35314         * lib/openat.h, lib/statat.c (STATAT_INLINE):
35315         Rename from FSTATAT_INLINE. All uses changed.
35316         * modules/fstatat (Files): Remove lib/statat.c.
35317         (gl_MODULE_INDICATOR([fstatat])): Remove.
35318         (lib_SOURCES): Remove.
35319         (Maintainer): Add self.
35320         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
35321         * tests/test-fstatat.c (BASE): Don't define if already defined.
35322         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
35324 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35326         tests: don't assume fd 99 is closed
35327         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
35328         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
35329         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
35330         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
35331         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
35332         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
35333         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
35334         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
35335         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
35336         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
35337         * tests/test-fwrite.c, tests/test-getpeername.c:
35338         * tests/test-getsockname.c, tests/test-getsockopt.c:
35339         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
35340         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
35341         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
35342         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
35343         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
35344         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
35345         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
35346         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
35347         * tests/test-unlinkat.c, tests/test-unlockpt.c:
35348         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
35349         Close file descriptor 99, instead of assuming it's already closed.
35351 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
35353         stpncpy: port to OS X 10.8
35354         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
35355         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
35357 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
35359         unistd: port to recent mingw
35360         * lib/unistd.in.h: Remove special invocation convention for mingw,
35361         which breaks for the latest mingw version.  See John W. Eaton in
35362         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
35364         largefile: port better to Mac OS X 10.5
35365         This patch is backported from Autoconf git.
35366         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
35367         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
35368         with ino_t size being different for configuration time versus
35369         build/run time.  Problem reported by PHO in
35370         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
35372 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35374         doc: clarify -Werror
35375         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
35376         clarify that it's intended for developers, not for ordinary builds,
35377         and mention --enable-gcc-warnings as one possible use.
35379 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
35381         stdint: fix build with Android's Bionic fox x86
35382         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
35383         was already included as _SSIZE_T_DEFINED_ might also be defined
35384         in include/machine/_types.h, which is included by stdio.h
35386 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
35388         net_if-tests: port to Solaris 7 + GCC 3.4.6
35389         Problem reported by Tom G. Christensen in
35390         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
35391         * tests/test-net_if.c (ni): Move to next the code that uses it,
35392         so that it's declared only if needed.
35394 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
35396         net_if-tests: port to older Solaris
35397         Problem reported by Tom G. Christensen in
35398         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35399         * modules/net_if-tests (NET_IF_LIB): New substitution.
35400         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
35401         (HAVE_IF_NAMEINDEX): New C macro.
35402         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
35404         system-quote-tests: port to older Solaris
35405         Problem reported by Tom G. Christensen in
35406         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35407         * tests/test-system-quote-child.c (fopen, fread): Undef.
35409         c-xvasprintf etc.: fix link errors on older Solaris
35410         These need to link with @LIBINTL@ to get libintl_gettext.
35411         Problem reported by Tom G. Christensen in
35412         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35413         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
35414         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
35415         * modules/futimens-tests (test_futimens_LDADD):
35416         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
35418 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35420         locale: port to Solaris 2.6 and 7 + GNU gettext
35421         * lib/locale.in.h: Just include_next <locale.h> when
35422         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
35423         when combining the localename module with GNU gettext 0.18.2.
35424         Problem reported by Tom G. Christensen in
35425         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
35427 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35429         stdlib: port to Solaris 2.6
35430         Also, the code worked on Solaris 7 through 9 only by accident.
35431         Problem reported by Tom G. Christensen in
35432         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
35433         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
35434         simply include the system stdlib.h.
35435         * lib/getopt.in.h (__need_system_stdlib_h):
35436         * lib/pthread.in.h (__need_system_stdlib_h):
35437         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
35438         Define when including <stdlib.h>, to avoid problems at least for
35439         the pthread case on Solaris 2.6 and 7.  These .h files can get by
35440         with the system stdlib.h.
35442 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
35444         doc: update main copyright year
35445         * doc/gnulib.texi: Update copyright date.
35447         doc: improve ISO 8601 discussion
35448         * doc/parse-datetime.texi (Combined date and time of day items):
35449         Specify more carefully what formats are supported and what is
35450         done with excess precision.
35452 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
35454         doc: avoid small caps
35455         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
35456         they're more trouble than they're worth.  Suggested by Karl Berry
35457         in <http://bugs.gnu.org/13360>.
35459         regex: conform to strict C
35460         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
35461         From Aharon Robbins.
35463         gnulib-tool: fix incompatibility with autopoint 0.18.2
35464         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
35465         Problem reported by Tom G. Christensen in
35466         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
35468 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
35470         fprintftime: bring back and reword fwrite comment
35471         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
35473         stdio: remove now-unnecessary stdio.c
35474         Since stdio.in.h no longer uses inline functions, we no longer
35475         need to compile the extern versions.
35476         * lib/stdio.c: Remove.
35477         * modules/stdio (Files): Remove lib/stdio.c.
35478         (lib_SOURCES): Remove.
35480         unicodeio: depend on stdio, not ignore-value
35481         * lib/unicodeio.c: Do not include ignore-value.h.
35482         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
35483         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
35485         fprintftime: depend on stdio, not ignore-value
35486         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
35487         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
35488         since the stdio module arranges to silence that warning now.
35489         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
35491 2012-10-04  Simon Josefsson  <simon@josefsson.org>
35493         stdint-tests: Fix expanded-before-required-warning.
35494         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
35496 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
35498         fwrite: silence __wur only for older glibc versions
35499         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
35500         This will help us remove this workaround some time in the far future.
35502 2013-01-03  Eric Blake  <eblake@redhat.com>
35504         fwrite: silence __wur without using inline
35505         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
35506         just gcc, and in a way that avoids inline issues.
35507         * modules/stdio (Depends-on): Drop extern-inline.
35509 2013-01-03  Jim Meyering  <jim@meyering.net>
35511         update-copyright: avoid copyright notice date corruption
35512         Given a sequence of copyright year numbers in which the final
35513         one was a two-digit number that happened to be a substring of
35514         a preceding four-digit year number, we would mistakenly update
35515         the substring (from two- to four-digit) rather than the two-digit
35516         number at the end, which, combined with the addition of the current
35517         4-digit year number would yield two 5-digit year numbers, e.g.,
35518         here, it would convert the first "99" to "1999, 2013" rather than
35519         the final one:
35520           1991, 99
35521           11999, 20131, 1999
35522         * build-aux/update-copyright: Tighten a regexp.
35523         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
35524         Reported by Joseph Myers in
35525         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
35527 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
35529         regex: omit needless signed-pointer casts
35530         * lib/regcomp.c (build_charclass, build_charclass_op):
35531         Use char *, not unsigned char *, for class name and extra.
35532         The char values are always nonnegative so there's no need to
35533         insist on unsigned char * here, and using char * removes the need
35534         for casts.  Reported by Aharon Robbins in
35535         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35537         regex: support Gawk, which never uses alloca
35538         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
35539         Do not include in this case.  Gawk doesn't supply a substitute
35540         alloca.h and doesn't need one.
35542         regex: port __libc_lock_define usage to C89
35543         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
35544         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
35545         does not conform to C89, as it has an empty macro argument.
35546         Reported by Aharon Robbins in
35547         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35549 2013-01-01  Eric Blake  <eblake@redhat.com>
35551         maint: update all copyright year number ranges
35552         Run "make update-copyright".
35554         version-etc: bump copyright year reported in --version
35555         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
35557 2012-12-31  Eric Blake  <eblake@redhat.com>
35559         sigprocmask-tests: skip test if pid is unexpectedly large
35560         * tests/test-sigprocmask.c (main): Add range check.
35562         git-version-gen: avoid test -z portability glitch
35563         * build-aux/git-version-gen: Prefer portable test spelling, since
35564         git-version-gen is run on more than just developer machines.
35566 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
35568         git-version-gen: add --fallback option to use if git is not present
35569         * build-aux/git-version-gen: Add support for the new option --fallback,
35570         which comes into play when there is no $tarball_version_file and
35571         git is not working.
35572         (scriptversion): Update.
35574         maint.mk: handle missing git with more grace
35575         * top/maint.mk (no-submodule-changes, public-submodule-commit):
35576         Quietly proceed if git is not present.
35578 2012-12-31  Eric Blake  <eblake@redhat.com>
35580         dup2: work around cygwin bug
35581         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
35582         * lib/dup2.c (rpl_dup2): Work around it.
35583         * doc/posix-functions/dup2.texi (dup2): Document it.
35585 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
35587         regex: remove unnecessary dependency on localcharset.h
35588         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
35589         hasn't been needed for years.
35590         * modules/regex (Depends-on): Remove localcharset.
35592         regex: revert single-byte change
35593         * lib/regexec.c (check_node_accept_bytes): Revert previous change
35594         to this function.  This was alredy fixed in a different way, at
35595         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
35596         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
35597         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
35599         regex: simplify based on Gawk version
35600         * lib/regex_internal.c (re_dfa_add_node): Simplify.
35601         Reported by Aharon Robbins in
35602         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35604 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35606         regex: check that pattern char is single-byte
35607         Reported by Aharon Robbins in
35608         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35609         * lib/regexec.c (check_node_accept_bytes):
35610         Return 0 if the pattern string has a multibyte character here.
35612         regex: implement rational ranges
35613         Reported by Aharon Robbins in
35614         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35615         * lib/regcomp.c (build_range_exp) [!_LIBC]:
35616         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
35617         Implement rational ranges.
35619         regex: avoid redefining __wctype
35620         Reported by Aharon Robbins in
35621         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35622         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
35623         #undef before defining.
35625         regex: port to hosts where malloc (0) == NULL
35626         Reported by Aharon Robbins in
35627         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35628         * lib/regex_internal.c (re_node_set_alloc):
35629         Don't assume that malloc (0) yields nonnull.
35630         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
35631         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
35632         * modules/regex (Files): Add m4/eealloc.m4.
35634         regex: port to C89
35635         Reported by Aharon Robbins in
35636         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35637         * lib/regcomp.c (init_word_char): Declaration before statement.
35639         regex: merge glibc changes
35640         Also, copy the license wording from glibc.  This simplifies
35641         merging changes.  gnulib-tool will change the wording to GPL as
35642         appropriate, when importing it to other packages.  The only
35643         glibc change made since the last merge, which needs merging, is:
35644         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
35645         * lib/regex_internal.h (gettext): Remove use of INTUSE.
35647         * users.txt: Add Emacs.
35649         doc: omit mention of version when not needed
35650         * doc/gnulib-intro.texi (Portability and Application Code):
35651         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
35652         Don't mention particular dates or versions when not necessary, so
35653         that the documentation won't go out of date so quickly.
35655         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
35657 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
35659         bootstrap: pass --force to autoreconf.
35660         * build-aux/bootstrap (AUTORECONFFLAGS): New.
35661         Add "--force" so that Automake's ylwrap and other such tools
35662         be updated at each bootstrap invocation.
35663         Use it.
35665 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
35667         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
35668         The earlier patch forgot to update one of the #if conditions, causing
35669         a problem on Debian testing i386 reported by Mats Erik Andersson
35670         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
35671         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
35672         (__argp_fmtstream_puts, argp_fmtstream_puts)
35673         (__argp_fmtstream_write, argp_fmtstream_write)
35674         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
35676         * doc/gnulib-readme.texi: Minor fixups.
35677         (Portability guidelines): Modernize URLs.  Remove some repetition.
35678         (Indent with spaces not TABs): Reword to avoid too-long lines.
35679         Remove some '@ifset standalone' stuff that isn't used.
35681         * doc/gnulib-readme.texi (Portability guidelines):
35682         ctype.h, not ctime.h.
35684         Correct name of POSIX.1-2001.
35685         * doc/posix-functions/fgetc.texi (fgetc):
35686         * doc/posix-functions/fgets.texi (fgets):
35687         * doc/posix-functions/fread.texi (fread):
35688         * doc/posix-functions/fscanf.texi (fscanf):
35689         * doc/posix-functions/getc.texi (getc):
35690         * doc/posix-functions/getchar.texi (getchar):
35691         * doc/posix-functions/scanf.texi (scanf):
35692         POSIX.1-2001, not POSIX-2001.
35694         doc: move README into manual
35695         * README: Move contents to new file doc/gnulib-readme.texi.
35696         Replace with a one-line summary.
35697         * doc/gnulib.texi (Brief Overview): New section,
35698         with old intro preface.  Include gnulib-readme.texi for contents.
35699         (Philosophy): Rename from "Introduction", since this
35700         section no longer introduces the rest.  Write a new preface.
35701         * doc/gnulib-readme.texi: New file, with the old contents of
35702         README texinfo-ized.  This way, the README info appears
35703         in the online and printed manual.
35705 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
35707         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
35708         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
35709         c_vasprintf() prototype.
35711 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
35713         c-vasprintf: Fix "empty declaration" warning reported by GCC.
35714         * lib/c-vasprintf.h: Remove stray semicolon.
35716 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
35718         gettext: avoid obsolete macro AM_PROG_MKDIR_P
35719         It is obsolete and is planned to be removed from Automake 1.14; see
35720         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
35721         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
35722         (installdirs-data, installdirs-data-yes):
35723         Use $(MKDIR_P), not $(mkdir_p).
35724         * m4/intl.m4 (AM_INTL_SUBDIR):
35725         * m4/po.m4 (AM_PO_SUBDIRS):
35726         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
35728 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
35730         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
35731         On this platform, we are not optimizing but we are using
35732         the substitute for extern inlines, so compile as if
35733         C99-style extern inline, or a substitute, is available.
35734         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
35735         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
35736         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
35737         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
35738         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
35739         Declare as ARGP_FS_EI, not as extern.
35740         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
35741         (__option_is_short, _option_is_end, __option_is_end)
35742         [!_LIBC && __USE_EXTERN_INLINES]:
35743         Declare as ARGP_EI, not as extern.
35745 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
35747         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
35748         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
35749         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
35750         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
35751         ...), as the latter is fatal with older Autoconfs.
35752         Problem reported and fix suggested by Eric Blake in thread starting at
35753         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
35755 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
35757         AC_PROG_MKDIR_P: don't workaround if not buggy
35758         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
35759         Define only for Autoconf versions before 2.62.
35760         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
35761         undocumented m4_PACKAGE_VERSION, for consistency with the
35762         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
35763         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
35764         was introduced in 2.62.
35766 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
35768         New 'c-*printf' modules for formatted output in C locale.
35770         New module 'c-vasnprintf'.
35771         * modules/c-vasnprintf: New file.
35772         * lib/c-vasnprintf.c: New file.
35773         * lib/c-vasnprintf.h: New file.
35775         New module 'c-snprintf'.
35776         * modules/c-snprintf: New file.
35777         * modules/c-snprintf-tests: New file.
35778         * lib/c-snprintf.c: New file.
35779         * lib/c-snprintf.h: New file.
35780         * tests/test-c-snprintf.c: New file.
35781         * tests/test-c-snprintf.sh: New file.
35783         New module 'c-vsnprintf'.
35784         * modules/c-vsnprintf: New file.
35785         * modules/c-vsnprintf-tests: New file.
35786         * lib/c-vsnprintf.c: New file.
35787         * lib/c-vsnprintf.h: New file.
35788         * tests/test-c-vsnprintf.c: New file.
35789         * tests/test-c-vsnprintf.sh: New file.
35791         New module 'c-vasprintf'.
35792         * modules/c-vasprintf: New file.
35793         * modules/c-vasprintf-tests: New file.
35794         * lib/c-asprintf.c: New file.
35795         * lib/c-vasprintf.c: New file.
35796         * lib/c-vasprintf.h: New file.
35797         * tests/test-c-vasprintf.c  +: New file.
35798         * tests/test-c-vasprintf.sh: New file.
35800         New module 'c-xvasprintf'.
35801         * modules/c-xvasprintf: New file.
35802         * modules/c-xvasprintf-tests: New file.
35803         * lib/c-xasprintf.c: New file.
35804         * lib/c-xvasprintf.c: New file.
35805         * lib/c-xvasprintf.h: New file.
35806         * tests/test-c-xvasprintf.c: New file.
35807         * tests/test-c-xvasprintf.sh: New file.
35809 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35811         argp: better 'inline'
35812         Use extern-inline module to declare extern inline functions.
35813         This avoids some bogus warning diagnostics.  Problem discovered
35814         when modifying GNU tar to use the manywarnings module.
35815         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
35816         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
35817         Define based on extern-inline.
35818         * modules/argp (Depends-on): Add extern-inline.
35820 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
35822         filemode, sys_stat: Handle MPX files a la AIX.
35823         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
35824         * lib/sys_stat.in.h (S_ISMPX): New macro.
35825         * tests/test-sys_stat.c: Add tests for MPX files.
35827 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35829         x-to-1: honor $PERL
35830         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
35831         a chance to use his preferred version of Perl.  This is typically
35832         required by Darwin users whose default /usr/bin/perl does not have all
35833         the libraries required by help2man, and who need to use their MacPorts
35834         installation of Perl instead.
35836 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35838         gnu-web-doc-update: add all the new files, even in new directories
35839         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
35840         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
35841         Use it.
35842         (main): Don't use cvsutils to get the list of unknown files,
35843         just add all the existing files and directories.
35845 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35847         gnu-web-doc-update: improve --help
35848         * build-aux/gnu-web-doc-update: Move comments into --help.
35850 2012-12-07  Eric Wong  <normalperson@yhbt.net>
35852         mountlist: recognize more "dummy" file systems
35853         * lib/mountlist.c (ME_DUMMY_0):
35854         Add these dummy FS names to the list:
35855         - "debugfs" virtual filesystem for kernel debugging
35856         - "devpts" PTY slave filesystem
35857         - "devtmpfs" device filesystem on top of tmpfs/ramfs
35858         - "fusectl" control filesystem for FUSE
35859         - "mqueue" enumerates POSIX message queues
35860         - "rpc_pipefs" kernel <-> userspace bridge for NFS
35861         - "sysfs" is for exporting kernel objects
35862         - "devfs" device filesystem for Linux 2.4 and FreeBSD
35864 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
35866         extern-inline: avoid incompatibility with Darwin Libc
35867         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
35868         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
35869         Problem reported by Akim Demaille in
35870         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
35872 2012-12-11  Simon Josefsson  <simon@josefsson.org>
35874         gnupload: Work with GnuPG using gpg-agent (for smartcards).
35875         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
35876         let it handle password prompting.
35878 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
35880         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
35881         * lib/canonicalize.c (canonicalize_filename_mode):
35882         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
35883         fetching the current directory.  Don't overrun the beginning of
35884         rpath if there's no slashes after the MS-Windows drive letter.
35886 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
35888         maint.mk: avoid extra forks
35889         * top/maint.mk (_cfg_mk): The GNU make manual documents that
35890         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
35891         So use that instead of "$(shell test -f FILE && echo FILE)".
35893 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
35895         vasnprintf: fix ASCII_ONLY typo
35896         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35897         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35898         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35899         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
35900         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
35902 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
35904         list, oset, xlist, xoset: fix extern inline issue with C99
35905         This was introduced by my recent changes for 'inline'.
35906         Problem reported for gettext by Daiki Ueno in
35907         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
35908         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
35909         (gl_list_nx_create, gl_list_size, gl_list_node_value)
35910         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
35911         (gl_list_previous_node, gl_list_get_at)
35912         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
35913         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
35914         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
35915         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
35916         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
35917         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
35918         (gl_list_iterator_free, gl_sortedlist_search)
35919         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
35920         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
35921         (gl_sortedlist_remove):
35922         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
35923         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
35924         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
35925         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
35926         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
35927         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
35928         (gl_list_add_at, gl_sortedlist_add):
35929         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
35930         Wrap these extern decls inside "#if 0", because they are implemented
35931         as inline functions, and extern inline is not what's wanted here.
35932         It would simplify these .h files to remove the extern decls entirely,
35933         although a downside would be less-clear separation between
35934         specification and implementation.
35936 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
35938         sys_stat: no 'static inline'
35939         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
35940         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
35942         extern-inline: no 'static inline'
35943         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35944         Do not require AC_C_INLINE.
35945         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
35946         'static inline', for older compilers.
35948         snippet/warn-on-use: no 'static inline'
35949         * build-aux/snippet/warn-on-use.h:
35950         Remove unnecessary 'inline' in comment.
35952         rbtree-list, rbtreehash-list: no 'static inline'
35953         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
35954         * lib/gl_anytree_list2.h (node_at):
35955         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
35956         (gl_oset_first, add_nodes_to_buckets):
35957         Now static, not static inline.
35959         regex: no 'static inline'
35960         * lib/regex_internal.c (calc_state_hash):
35961         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
35962         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
35963         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
35964         Now static, not static inline.
35965         (inline) [__GNUC__ < 3 && _LIBC]:
35966         Remove macro; no longer needed.
35968         xvasprintf: no 'static inline'
35969         * lib/xvasprintf.c (xstrcat):
35970         Now static, not static inline.
35971         * m4/xvasprintf.m4 (gl_XVASPRINTF):
35972         Do not require AC_C_INLINE.
35974         parse-datetime, parse-duration: no 'static inline'
35975         * lib/parse-datetime.y (to_uchar):
35976         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
35977         (scale_n_add):
35978         Now static, not static inline.
35979         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
35980         * modules/parse-duration (configure.ac):
35981         Do not require AC_C_INLINE.
35983         getaddrinfo: no 'static inline'
35984         * lib/getaddrinfo.c (validate_family):
35985         Now static, not static inline.
35986         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
35987         Do not require AC_C_INLINE.
35989         ftruncate, fts, lstat, openat, raise: no 'static inline'
35990         * lib/ftruncate.c (chsize_nothrow):
35991         * lib/fts.c (opendirat, diropen):
35992         * lib/lstat.c (orig_lstat):
35993         * lib/openat.c (orig_openat):
35994         * lib/raise.c (raise_nothrow):
35995         Now static, not static inline.
35996         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
35997         * m4/fts.m4 (gl_FUNC_FTS_CORE):
35998         * m4/lstat.m4 (gl_PREREQ_LSTAT):
35999         * m4/openat.m4 (gl_PREREQ_OPENAT):
36000         * m4/raise.m4 (gl_PREREQ_RAISE):
36001         Do not require AC_C_INLINE.
36003         fflush, stat: no 'static inline'
36004         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36005         (clear_ungetc_buffer, disable_seek_optimization)
36006         (restore_seek_optimization, update_fpos_cache):
36007         * lib/stat.c (orig_stat):
36008         Now static, not static inline.
36009         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
36010         (update_fpos_cache):
36011         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
36012         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
36013         * m4/stat.m4 (gl_PREREQ_STAT):
36014         Do not require AC_C_INLINE.
36016         error, filevercmp: no 'static inline'
36017         * lib/error.c (is_open, flush_stdout):
36018         * lib/filevercmp.c (order):
36019         Now static, not static inline.
36020         * m4/error.m4 (gl_PREREQ_ERROR):
36021         * modules/filevercmp (configure.ac):
36022         Do not require AC_C_INLINE.
36024         dup, execute, fatal-signal, etc.: no 'static inline'
36025         * lib/dup.c (dup_nothrow):
36026         * lib/execute.c (nonintr_close, nonintr_open):
36027         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
36028         * lib/fopen.c (orig_fopen):
36029         * lib/freadseek.c (freadptrinc):
36030         * lib/freopen.c (orig_freopen):
36031         * lib/fstat.c (orig_fstat, fstat_nothrow):
36032         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
36033         (get_rusage_as_via_iterator):
36034         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
36035         * lib/getdtablesize.c (_setmaxstdio_nothrow):
36036         * lib/isatty.c (_isatty_nothrow):
36037         * lib/open.c (orig_open):
36038         * lib/read.c (read_nothrow):
36039         * lib/sigprocmask.c (signal_nothrow):
36040         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
36041         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
36042         * lib/wait-process.c (unregister_slave_subprocess):
36043         * lib/write.c (write_nothrow):
36044         Now static, not static inline.
36045         * lib/spawn-pipe.c (nonintr_open): Define only if
36046         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
36047         * m4/dup.m4 (gl_PREREQ_DUP):
36048         * m4/execute.m4 (gl_EXECUTE):
36049         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
36050         * m4/fopen.m4 (gl_PREREQ_FOPEN):
36051         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
36052         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
36053         * m4/fstat.m4 (gl_PREREQ_FSTAT):
36054         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
36055         * m4/isatty.m4 (gl_PREREQ_ISATTY):
36056         * m4/open.m4 (gl_PREREQ_OPEN):
36057         * m4/read.m4 (gl_PREREQ_READ):
36058         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
36059         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
36060         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
36061         * m4/wait-process.m4 (gl_WAIT_PROCESS):
36062         * m4/write.m4 (gl_PREREQ_WRITE):
36063         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
36064         Do not require AC_C_INLINE.
36066         c-strtod, memcoll, readutmp: no 'static inline'
36067         * lib/c-strtod.c (c_locale):
36068         * lib/memcoll.c (strcoll_loop):
36069         * lib/readutmp.c (desirable_utmp_entry):
36070         Now static, not static inline.
36071         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
36072         * m4/memcoll.m4 (gl_MEMCOLL):
36073         * m4/readutmp.m4 (gl_READUTMP):
36074         Do not require AC_C_INLINE.
36076         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
36077         * lib/arctwo.c (to_uchar):
36078         * lib/md4.c (set_uint32):
36079         * lib/md5.c (set_uint32):
36080         * lib/sha1.c (set_uint32):
36081         * lib/sha256.c (set_uint32):
36082         * lib/sha512.c (set_uint64):
36083         Now static, not static inline.  This is a bit simpler, and doesn't
36084         affect performance with GCC and default optimization.
36085         * m4/arctwo.m4 (gl_ARCTWO):
36086         * m4/md4.m4 (gl_MD4):
36087         * m4/md5.m4 (gl_MD5):
36088         * m4/sha1.m4 (gl_SHA1):
36089         * m4/sha256.m4 (gl_SHA256):
36090         * m4/sha512.m4 (gl_SHA512):
36091         Do not require AC_C_INLINE.
36093         cond, lock, thread: better 'inline'
36094         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
36095         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
36096         New macros.  Use them instead of static inline, for header functions.
36097         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
36098         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36099         * lib/glthread/lock.c (gl_waitqueue_init)
36100         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36101         * lib/glthread/thread.c (get_current_thread_handle):
36102         Change 'static inline' to 'inline'.
36103         * lib/glthread/cond.h, lib/glthread/thread.h:
36104         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36105         * m4/cond.m4 (gl_COND):
36106         * m4/lock.m4 (gl_PREREQ_LOCK):
36107         * m4/thread.m4 (gl_THREAD):
36108         Do not require AC_C_INLINE.
36109         * modules/cond, modules/thread (Depends-on): Add extern-inline.
36111         chdir-long, cycle-check, savewd: better 'inline'
36112         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
36113         (find_non_slash):
36114         * lib/cycle-check.c (is_zero_or_power_of_two):
36115         * lib/savewd.c (savewd_delegating):
36116         Change 'static inline' to 'inline'.
36117         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
36118         Replace all remaining uses of 'static inline' with it.
36119         * lib/savewd.h:
36120         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36121         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
36122         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
36123         * m4/savewd.m4 (gl_SAVEWD):
36124         Do not require AC_C_INLINE.
36125         * modules/savewd (Depends-on): Add extern-inline.
36127         base32, base64: no need for 'inline'
36128         * lib/base32.c (to_uchar, get_8, decode_8):
36129         * lib/base64.c (to_uchar, get_4, decode_4):
36130         Change 'static inline' to 'inline'.
36131         * m4/base32.m4 (gl_PREREQ_BASE32):
36132         * m4/base64.m4 (gl_PREREQ_BASE64):
36133         Do not require AC_C_INLINE.
36135         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
36136         * lib/gl_array_oset.c (gl_array_nx_add_at):
36137         (gl_array_remove_at):
36138         * lib/gl_linkedhash_list.c (hash_resize_after_add)
36139         (add_to_bucket, remove_from_bucket):
36140         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
36141         Change 'static inline' to 'static', as it's simpler to omit
36142         'inline' unless there's a significant performance advantage.
36144         list, oset, xlist, xoset, xsublist: simplify via extern inline
36145         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
36146         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
36147         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
36148         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
36149         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
36150         New macro.  Replace all uses of 'static inline' with it.
36151         [HAVE_INLINE]: Implement functions as *_INLINE functions,
36152         instead of as macros FOO that are defined to static inline
36153         functions FOO_inline.
36154         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
36155         * lib/gl_xsublist.c:
36156         Reimplement from scratch, by defining the corresponding *_INLINE
36157         macro and including the corresponding .h file.  This is simpler.
36158         * modules/list, modules/oset, modules/xlist, modules/xoset:
36159         (Files): Remove m4/gl_list.m4.
36160         (configure.ac): Remove gl_LIST.
36161         * m4/gl_list.m4: Remove.
36162         * modules/list, modules/oset, modules/xlist, modules/xoset:
36163         * modules/xsublist:
36164         (Depends-on): Depend on extern-inline, not inline.
36166         xalloc: better 'inline'
36167         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
36168         New macro.  Replace all uses of 'static inline' with it.
36169         (static_inline): Remove.
36170         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
36171         Let 'extern inline' do the work automatically, instead of doing
36172         it by hand.
36173         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
36174         Remove.  All uses removed.
36175         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
36177         gethrxtime: better 'inline'
36178         * lib/xtime.c: New file.
36179         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
36180         * lib/xtime.h (XTIME_INCLUDE):
36181         New macros.  Replace all uses of 'static inline' with them.
36182         * lib/gethrxtime.c (gethrxtime): Define only if
36183         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
36184         this source file is now always compiled, because of the extern inline.
36185         * lib/gethrxtime.h, lib/xtime.h:
36186         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36187         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
36188         if gethrtime works, as they're not needed in that case.
36189         (gl_XTIME): Do not require AC_C_INLINE.
36190         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
36191         compiled now.  Move the check into gl_GETHRXTIME.
36192         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
36193         (Depends-on): Add extern-inline.
36194         (configure.ac): gethrxtime is always compiled now.
36195         (lib_SOURCES): Add gethrxtime.c.
36197         wctype-h: better 'inline'
36198         * lib/wctype-h.c: New file.
36199         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
36200         New macro.  Replace all uses of 'static inline' with it.
36201         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36202         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
36203         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
36204         (Depends-on): Add extern-inline.
36206         unistd: better 'inline'
36207         * lib/unistd.c: New file.
36208         * lib/unistd.in.h (_GL_UNISTD_INLINE):
36209         New macro.  Replace all uses of 'static inline' with it.
36210         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36211         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
36212         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
36213         (Depends-on): Add extern-inline.
36215         sys_socket: better 'inline'
36216         * lib/sys_socket.c: New file.
36217         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
36218         New macro.  Replace all uses of 'static inline' with it.
36219         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36220         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
36221         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
36222         (Depends-on): Add extern-inline.
36224         stdio: better 'inline'
36225         * lib/stdio.c: New file.
36226         * lib/stdio.in.h (_GL_STDIO_INLINE):
36227         New macro.  Replace all uses of 'static inline' with it.
36228         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36229         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
36230         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
36231         (Depends-on): Add extern-inline.
36233         sigaction: better 'inline'
36234         * lib/sig-handler.c: New file.
36235         * lib/sig-handler.h (SIG_HANDLER_INLINE):
36236         New macro.  Replace all uses of 'static inline' with it.
36237         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36238         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
36239         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
36240         (Depends-on): Add extern-inline.
36242         selinux-h: better 'inline'
36243         * lib/se-context.c, lib/se-selinux.c: New files.
36244         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
36245         * lib/se-context.in.h (SE_CONTEXT_INLINE):
36246         New macro.  Replace all uses of 'static inline' with it.
36247         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36248         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
36249         New macro.  Replace all uses of 'static inline' with it.
36250         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36251         * modules/selinux-h (Files, lib_SOURCES):
36252         Add lib/se-context.c, lib/se-selinux.c.
36253         (Depends-on): Add extern-inline.
36254         (configure.ac): Do not require AC_C_INLINE.
36256         pthread: better 'inline'
36257         * lib/pthread.c: New file.
36258         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
36259         New macro.  Replace all uses of 'static inline' with it.
36260         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36261         * m4/pthread.m4 (gl_PTHREAD_CHECK):
36262         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
36263         * modules/pthread (Files): Add lib/pthread.c.
36264         (Depends-on): Add extern-inline.
36266         math: better 'inline'
36267         * lib/math.c: New file.
36268         * lib/math.in.h (_GL_MATH_INLINE):
36269         New macro.  Replace all uses of 'static inline' with it.
36270         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36271         * m4/math_h.m4 (gl_MATH_H):
36272         Do not require AC_C_INLINE.
36273         * modules/math (Files, lib_SOURCES):
36274         Add lib/math.c.
36275         (Depends-on): Add extern-inline.
36277         count-one-bits: better 'inline'
36278         * lib/count-one-bits.c: New file.
36279         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
36280         New macro.  Replace all uses of 'static inline' with it.
36281         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36282         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
36283         Do not require AC_C_INLINE.
36284         * modules/count-one-bits (Files, lib_SOURCES):
36285         Add lib/count-one-bits.c.
36286         (Depends-on): Add extern-inline.
36288         count-leading-zeros: better 'inline'
36289         * lib/count-leading-zeros.c: New file.
36290         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
36291         New macro.  Replace all uses of 'static inline' with it.
36292         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36293         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
36294         Do not require AC_C_INLINE.
36295         * modules/count-leading-zeros (Files, lib_SOURCES):
36296         Add lib/count-leading-zeros.c.
36297         (Depends-on): Add extern-inline.
36299         bitrotate: better 'inline'
36300         * lib/bitrotate.c: New file.
36301         * lib/bitrotate.h (BITROTATE_INLINE):
36302         New macros.
36303         Replace all uses of 'static inline' with them.
36304         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36305         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
36306         (Depends-on): Add extern-inline.
36307         (configure.ac): Do not require AC_C_INLINE.
36309 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
36311         maint.mk: avoid gratuitous failure
36312         Reported by Stefano Lattarini in
36313         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
36314         * top/maint.mk (public-submodule-commit): Quote more safely.
36316 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
36318         canonicalize, canonicalize-lgpl: support MS-Windows file names
36319         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
36320         for test cases, which it'd be nice to add at some point.
36321         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
36322         * lib/canonicalize.c (canonicalize_filename_mode):
36323         * lib/canonicalize-lgpl.c (__realpath):
36324         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
36325         slash is at the beginning of the file name.  Use ISSLASH, instead
36326         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
36327         the first character with '/'.  Test for
36328         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
36329         with a drive letter.
36330         * lib/canonicalize.c (SLASHES): New macro.
36331         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
36333 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
36335         fts: introduce FTS_VERBATIM
36336         * lib/fts_.h (FTS_VERBATIM): New bit flag.
36337         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
36338         * lib/fts.c (fts_open): Honor it.
36340 2012-11-09  Pádraig Brady  <P@draigBrady.com>
36342         getlogin-tests: allow errno == ENXIO
36343         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36344         with errno == ENXIO (No controlling tty).
36345         getlogin_r-tests: Likewise. Also allow errno == ENOENT
36346         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
36347         with errno == ENOENT.  This was reported to happen in various
36348         situations on GNU/Linux.
36350 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36352         getlogin-tests: allow errno == ENOENT
36353         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36354         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
36355         when running a test in an Emacs shell buffer.
36357 2012-11-08  Jim Meyering  <jim@meyering.net>
36359         tests/nap.h: avoid warning about unused variable
36360         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
36362         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
36363         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
36364         white space before each of the special-cased file names, to avoid
36365         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
36366         in http://bugs.gnu.org/12830.
36368 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
36370         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
36371         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
36372         fails with errno == EBADF when fd is opened with O_PATH.
36373         Reported by Jim Meyering in
36374         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
36375         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36376         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
36378 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
36380         test-utimens: speed up by taking shorter naps
36381         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
36382         New functions.
36383         (nap): Use them, to do a better job of guessing the delay.
36384         On Fedora 17 with ext4 atop md atop hard disks, this made
36385         test-utimens run 10x faster, because the test napped for
36386         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
36387         <http://bugs.gnu.org/12820#11>.
36389 2012-11-07  Jim Meyering  <jim@meyering.net>
36391         mountlist.c: fix a compilation failure
36392         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
36393         I introduced while transforming commit v0.0-7683-g613bcb6
36395 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36397         errno: port to LynxOS 178 2.2.2
36398         Problem reported by Joel Brobecker in
36399         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
36400         * doc/posix-headers/errno.texi (errno.h): Document this.
36401         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
36402         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
36403         Supply a string for EILSEQ.
36404         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
36406 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36408         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
36409         Linux kernel 2.6.39 introduced O_PATH (see
36410         <http://lwn.net/Articles/433854/>) and this is a better fallback
36411         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
36412         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36413         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
36414         * lib/fcntl.in.h (O_ACCMODE):
36415         * tests/test-fcntl-h.c (main):
36416         Do not reject O_ACCMODE merely because it has more than the
36417         minimal number of bits, as POSIX allows extensions here.
36419 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
36421         mountlist: do not classify a bind-mounted dir entry as "dummy"
36422         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
36423         the "none"-testing clause.
36424         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
36425         exception for bind-mounted directories.
36427 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
36429         quote: provide a means to escape strings with nul characters
36430         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
36431         (quote, quote_n): Rename formal arguments for consistency with
36432         quotearg.
36434 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36436         test-raise: don't assume 199 is an invalid signal
36437         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
36439         sh-quote-tests: port to Solaris 9
36440         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
36441         Problem reported by Dagobert Michelsen in
36442         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
36444 2012-10-28  Jim Meyering  <jim@meyering.net>
36446         maint.mk: rename a new configurable variable
36447         * top/maint.mk (_gl_translatable_string_re): Rename from
36448         translation-markers: _gl_ prefix to insulate from user Makefile code,
36449         and the _re suffix to inform that it's a regular expression.
36451 2012-10-26  Eric Blake  <eblake@redhat.com>
36453         maint.mk: let packages tweak sc_po_check pattern
36454         * top/maint.mk (sc_po_check): Add translation-markers, to allow
36455         finding files with other translation markers.
36457 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36459         euidaccess: speed up 'configure' on GNU hosts
36460         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
36461         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
36462         it's needed only in this case.  Use AC_CHECK_DECLS, not
36463         AC_CHECK_DECLS_ONCE.
36464         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
36465         or AC_REQUIRE for AC_FUNC_GETGROUPS.
36467         * lib/regexec.c (re_search_internal): Fix grammar in comment.
36469 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36471         fchmodat, fchownat, fstatat: port to non-inlining compilers
36472         Problem reported for FreeBSD 9 by Jim Meyering in
36473         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
36474         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
36475         New files, which define FCHMODAT_INLINE etc.
36476         * lib/fchmodat.c (FCHMODAT_INLINE):
36477         * lib/fchownat.c (FCHOWNAT_INLINE):
36478         * lib/fstatat.c (FSTATAT_INLINE):
36479         Remove, as chmodat.c etc. now do this.
36480         * modules/fchmodat (Files): Add lib/chmodat.c.
36481         * modules/fchownat (Files): Add lib/chownat.c.
36482         * modules/fstatat (Files): Add lib/statat.c.
36484 2012-10-15  Jim Meyering  <jim@meyering.net>
36486         fchmodat.c, fchownat.c: compile-impeding typos
36487         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
36488         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
36489         Introduced in commit v0.0-7636-gd202279.
36491 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36493         fcntl-h: support GNU flags like O_IGNORE_CTTY
36494         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
36495         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
36496         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
36497         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
36498         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
36499         Define to 0 if not already defined.
36500         * tests/test-fcntl-h.c: Test these new flags.
36502 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36504         faccessat, etc.: support AT_FDCWD-only use
36505         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
36506         this function only if its first argument is AT_FDCWD.
36507         Emacs wants faccessat for AT_EACCESS but not for any first-arg
36508         values other than AT_FDCWD, so it doesn't want all the openat
36509         machinery with fchdir etc.
36510         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
36511         * modules/fstatat, modules/mkdirat, modules/openat (Files):
36512         * modules/unlinkat (Files):
36513         Remove lib/openat-priv.h, as at-internal supplies this file.
36514         Removing this file here allows us to support programs like Emacs
36515         that avoid at-internal.
36517         faccessat: speed up 'configure' on mainstream hosts
36518         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
36519         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
36520         since it's only on unusual platforms that we need to check for
36521         'access', and it's better not to slow 'configure' down on all
36522         platforms.
36524         faccessat: port to Solaris 10
36525         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
36526         Needed on Solaris 10, which doesn't have AT_EACCESS,
36527         so we need the Gnulib fcntl.h, which defines it.
36529 2012-10-14  Pádraig Brady  <P@draigBrady.com>
36530         canonicalize: fix C89 compilation
36531         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
36532         declarations so C89 is supported.  Also remove the comment
36533         referencing memorty allocation as the suggested feature could
36534         not be implemented as suggested.
36535         Reported by Michael Goffioul.
36537 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36539         group-member: omit unnecessary dependencies
36540         This is for Emacs, which has its own allocator and where we
36541         don't want to use xalloc.
36542         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
36543         since we no longer use xmalloc.  Do not include stdbool.h, since
36544         the changes below happen to remove the only use of bool.
36545         (GROUPBUF_SIZE): New constant.
36546         (struct group_info): Remove n_groups member.  Add groupbuf member.
36547         This lets us get the groups without using malloc, usually.
36548         (free_group_info, get_group_info): Adjust to this.
36549         (get_group_info): Return the number of groups found, or -1 on error.
36550         Use plain malloc not xmalloc, and treat its failure as if there
36551         are no groups, as the user already loses in case of error.
36552         (group_member): Simplify, based on changes to get_group_info.
36553         * modules/group-member (Depends-on): Remove dependencies on
36554         xalloc and stdbool.  Add dependency on xalloc-oversized.
36556 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
36558         gethrxtime: port to C++
36559         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
36561 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
36563         ptsname: fix macro-name typo
36564         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
36566 2012-10-03  Simon Josefsson  <simon@josefsson.org>
36568         inttostr: Relax license.
36569         * modules/inttostr (License): Change from LGPL to LGPLv2+.
36571 2012-10-03  Eric Blake  <eblake@redhat.com>
36573         ptsname_r: support ptys returned by FreeBSD posix_openpt
36574         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
36575         lives in /dev/pts/.
36577 2012-10-02  Eric Blake  <eblake@redhat.com>
36579         pselect: reject invalid file descriptors
36580         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
36581         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
36582         * modules/pselect (Depends-on): Add dup2.
36583         * doc/posix-functions/pselect.texi (pselect): Document this.
36585         select: reject invalid file descriptors
36586         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
36587         * lib/select.c (rpl_select) [!win32]: Work around it.
36588         * modules/select (Depends-on): Add dup2.
36589         * doc/posix-functions/select.texi (select): Document this.
36591         select: enhance test
36592         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
36593         New functions.
36594         (test_function): Enhance test.
36595         (do_select_bad_fd): Avoid any stale errno values.
36597         ptsname: reject invalid file descriptors
36598         http://www.austingroupbugs.net/view.php?id=503
36599         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
36600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
36601         * modules/stdlib (Makefile.am): Replace witness.
36602         * lib/stdlib.in.h (ptsname): Allow for replacement.
36603         * modules/ptsname (configure.ac): Trigger replacement.
36604         * doc/posix-functions/ptsname.texi (ptsname): Document this.
36606 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
36608         hash-pjw-bare: new module
36609         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
36610         * lib/hash-pjw-bare.h: Likewise.
36611         * modules/hash-pjw-bare: New file.
36612         * MODULES.html.sh (Misc): Add it.
36614 2012-10-02  Eric Blake  <eblake@redhat.com>
36616         manywarnings: cater to more gcc infelicities
36617         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
36618         -Wuninitialized without -O.
36620 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
36622         select, poll tests: Make setsockopt invocation effective.
36623         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
36624         the bind() call.
36625         * tests/test-select.h (open_server_socket): Likewise.
36627 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
36629         sockets, sys_stat: restore AC_C_INLINE
36630         This undoes the 2012-09-22 patch.
36631         * m4/sockets.m4 (gl_SOCKETS):
36632         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36633         Restore AC_C_INLINE, since MSVC requires __inline or _inline
36634         and does not support plain 'inline'.  Reported by Bruno Haible in
36635         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
36637 2012-09-30  Bruno Haible  <bruno@clisp.org>
36639         localeconv tests: Avoid test failure on OpenIndiana.
36640         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
36641         skip the 'grouping' and 'mon_grouping' tests.
36642         Reported by Jim Meyering.
36644 2012-09-30  Bruno Haible  <bruno@clisp.org>
36646         havelib: Follow libtool developments.
36647         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
36648         Suggested by Simon Josefsson.
36650 2012-09-29  Jim Meyering  <meyering@redhat.com>
36652         fstatat.c: fix a compile-impeding typo
36653         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
36654         Introduced in commit v0.0-7636-gd202279.
36655         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
36657 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
36659         extern-inline: provide a -Wundef safe config.h
36660         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
36661         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
36662         to produce a -Wundef warning free config.h.
36664 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36666         hash-pjw: relax license to LGPLv2+
36667         * modules/hash-pjw (License): Relax, with consent of author.
36669 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36671         maint.mk: fix strict vs. lazy variable issues with RELEASE
36672         * top/maint.mk (_equal): New function.
36673         (member_check): Strip the result to avoid spurious spaces.
36674         (url_dir_list): Do not use ifeq, which is strict, as it will
36675         require RELEASE_TYPE to be defined.
36676         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
36677         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
36678         (announcement_Cc_alpha,announcement_mail_headers_alpha)
36679         (announcement_Cc_beta,announcement_mail_headers_beta)
36680         (announcement_Cc_stable,announcement_mail_headers_stable): these.
36681         (release): Do not depend on $(release-type), as it forces its
36682         evaluation.  Bounce to it.
36684 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36686         maint.mk: formatting changes
36687         * top/maint.mk: Indent bodies of if's.
36689 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
36691         maint.mk: factor the validation of RELEASE_TYPE
36692         With help from Jim Meyering.
36693         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
36694         * top/maint.mk (_empty, _sp): Move their definition earlier.
36695         (member-check, release-type): New.
36696         Use the latter instead of $(RELEASE_TYPE).
36697         Remove now useless local checks.
36699 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36701         maint.mk: provide "make upload" to ease uploading
36702         See
36703         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
36704         Do not depend simply on the current $(VERSION), as there may have been
36705         new commits since the tarball generation.  Rather, rely on $(RELEASE),
36706         as "make release-commit" already does.
36708         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
36709         "make TYPE".
36711         * top/maint.mk (upload_command, upload, release): New.
36712         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
36713         (VERSION): first word of $(RELEASE) is always right.
36714         (emit_upload_commands): Adjust.
36715         * top/README-release: Update.
36717 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36719         maint.mk: silent rules
36720         With help from Stefano Lattarini.
36721         * top/maint.mk (writable-files): Use $(AM_V_GEN).
36722         (announcement): Use $(AM_V_at).
36724 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
36726         localename: port gl_locale_name_thread_unsafe to FreeBSD
36727         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
36728         and use the simpler FreeBSD implementation on Mac OS X as well.
36729         Original idea suggested by Ed Maste in
36730         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
36732 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
36734         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
36735         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
36736         * lib/mbuiter.c, lib/xsize.c: New files.
36737         * lib/binary-io.h (BINARY_IO_INLINE):
36738         * lib/eealloc.h (EEALLOC_INLINE):
36739         * lib/mbfile.h (MBFILE_INLINE):
36740         * lib/mbiter.h (MBITER_INLINE):
36741         * lib/mbuiter.h (MBUITER_INLINE):
36742         * lib/xsize.h (XSIZE_INLINE):
36743         New macros.
36744         Replace all uses of 'static inline' with them.
36745         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36746         * m4/eealloc.m4 (gl_EEALLOC):
36747         * m4/mbfile.m4 (gl_MBFILE):
36748         * m4/mbiter.m4 (gl_MBITER):
36749         * m4/xsize.m4 (gl_XSIZE):
36750         Do not require AC_C_INLINE.
36751         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
36752         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
36753         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
36754         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
36755         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
36756         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
36757         * modules/binary-io, modules/eealloc, modules/mbfile:
36758         * modules/mbiter, modules/mbuiter:
36759         (Depends-on): Add extern-inline.
36761         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
36762         * lib/pipe-filter-aux.c: New file.
36763         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
36764         Replace all uses of 'static inline' with it.
36765         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36766         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
36767         (filter_retcode): No real need for inline here.
36768         * modules/pipe-filter-gi, modules/pipe-filter-ii:
36769         (Files): Add lib/pipe-filter-aux.c.
36770         (Depends-on): Add extern-inline.
36771         (configure.ac): Do not require AC_C_INLINE.
36772         (lib_SOURCES): Add pipe-filter-aux.c.
36774         fdutimensat: omit unnecessary AC_C_INLINE
36775         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
36777         fchmodat, fchownat, fstatat: use extern-inline
36778         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
36779         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
36780         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
36781         New macros.
36782         * lib/openat.h:
36783         Replace all uses of 'static inline' with them.
36784         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36785         * modules/fchmodat, modules/fchownat, modules/fstatat:
36786         * modules/openat-h:
36787         (Depends-on):
36788         Add extern-inline.
36789         (configure.ac): Remove AC_C_INLINE.
36791         acl, mbchar, priv-set: use extern-inline
36792         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
36793         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
36794         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
36795         New macros.
36796         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
36797         Replace all uses of 'static inline' with it.
36798         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36799         * m4/acl.m4 (gl_FUNC_ACL):
36800         * m4/mbchar.m4 (gl_MBCHAR):
36801         * m4/priv-set.m4 (gl_PRIV_SET):
36802         Remove AC_C_INLINE, since 'inline' is no longer used directly.
36803         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
36804         Add extern-inline.
36806         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
36807         * m4/sockets.m4 (gl_SOCKETS):
36808         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36809         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
36810         environments where it's already guaranteed to work, so we needn't
36811         check for it at 'configure'-time.
36813         tls-tests: omit unnecessary 'inline'
36814         * tests/test-tls.c (perhaps_yield): No longer inline.
36815         Simplicity and portability trump efficiency in test cases.
36817         utimens-tests: avoid unnecessary 'inline'
36818         * modules/fdutimensat-tests (configure.ac):
36819         * modules/futimens-tests (configure.ac):
36820         * modules/utimens-tests (configure.ac):
36821         * modules/utimensat-tests (configure.ac):
36822         Remove AC_C_INLINE.
36823         * tests/test-utimens-common.h (ctime_compare):
36824         No longer inline.  Simplicity and portability trump efficiency here.
36826         misc: don't limit commentary to inline functions
36827         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
36828         * lib/xalloc-oversized.h, lib/xsize.h:
36829         Contrast macros to functions in general, not just to inline functions,
36830         when the commentary does not apply only to inline functions.
36832 2012-09-20  Jim Meyering  <meyering@redhat.com>
36834         non-recursive-gnulib-prefix-hack: new module
36835         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
36836         the file that originated in Bison.
36837         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
36838         largely copied from a snippet that resided in bison's configure.ac.
36839         * modules/non-recursive-gnulib-prefix-hack: New file.
36840         * MODULES.html.sh (Support for maintaining and releasing projects):
36841         Add it.
36843 2012-09-18  Jim Meyering  <meyering@redhat.com>
36845         maint.mk: generalize _gl_tight_scope for non-recursive make
36846         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
36847         that *.h would describe additional .h files in the directory
36848         specified by $(_gl_TS_dir).  I.e., add this...
36849         (_gl_TS_other_headers): New variable.
36851         maint.mk: exempt trailing blanks found in "binary" files
36852         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
36853         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
36854         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36856 2012-09-17  Jim Meyering  <meyering@redhat.com>
36858         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
36859         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
36860         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
36861         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36863 2012-09-17  Jim Meyering  <meyering@redhat.com>
36865         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
36866         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
36867         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
36868         It is not in the same category as "exit (0)" or "exit (1)", and
36869         besides, I know of no symbolic name for that 77.  Reported by
36870         Richard W.M. Jones in
36871         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36873 2012-09-17  Jim Meyering  <meyering@redhat.com>
36875         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
36876         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
36877         all uses of #define, not just those that start in column 1.
36878         Richard W.M. Jones reported a false positive in
36879         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36881 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36883         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
36884         * lib/localcharset.c (locale_charset) [DARWIN7]:
36885         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
36886         as these two values are incompatible.  Problem reported by Max Horn.
36887         For more discussion, please see
36888         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
36890         doc: document sticky-EOF issue
36891         * doc/posix-functions/fgetc.texi (fgetc):
36892         * doc/posix-functions/fgets.texi (fgets):
36893         * doc/posix-functions/fread.texi (fread):
36894         * doc/posix-functions/fscanf.texi (fscanf):
36895         * doc/posix-functions/getc.texi (getc):
36896         * doc/posix-functions/getchar.texi (getchar):
36897         * doc/posix-functions/scanf.texi (scanf):
36898         Mention that glibc and default Solaris do not conform to
36899         C99 and POSIX-2001 or later, with respect to how getchar
36900         etc. behave when feof reports nonzero.
36902 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36904         poll: fix poll(0, NULL, msec)
36905         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
36906         but nfd is 0.  In that case poll should behave like select.
36908 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36909             Paolo Bonzini  <bonzini@gnu.org>
36911         poll: fix for systems that can't recv() on a non-socket
36912         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
36913         is readable.  In this case POLLHUP will not be supported.
36914         * doc/posix-functions/poll.texi: Document this.
36916 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
36918         poll/select: document portability problems not fixed by Gnulib.
36919         * doc/posix-functions/poll.texi: poll does not work well on
36920         pipes under Windows.  It has the same limitations as select on
36921         BeOS.
36922         * doc/posix-functions/select.texi: select does not work well
36923         on pipes under Windows.
36925 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
36927         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
36928         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
36929         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
36930         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
36932 2012-09-06  Eric Blake  <eblake@redhat.com>
36934         net_if: give more details about the bug being fixed
36935         * doc/posix-headers/net_if.texi: Add clarification.
36937 2012-09-05  Eric Blake  <eblake@redhat.com>
36939         net_if: new module
36940         * modules/net_if: New module, borrowing ideas from netinet_in.
36941         * m4/net_if_h.m4: New file.
36942         * lib/net_if.in.h: Likewise.
36943         * doc/posix-headers/net_if.texi (net/if.h): Document it.
36944         * MODULES.html.sh (lacking POSIX:2008): Likewise.
36945         * tests/test-net_if.c: Make function checks conditional.
36946         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
36948 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
36950         readutmp: fix non-portable UT_PID use
36951         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
36952         Use `UT_PID (u) > 0' as absolute condition.
36954 2012-09-04  Jim Meyering  <meyering@redhat.com>
36956         fts: reduce two or more trailing spaces to just one, usually
36957         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
36958         or more slashes, trim all but the final one.  But if a name consists
36959         solely of two slashes, don't modify it.  If it consists solely of
36960         three or more slashes, strip all but one.
36962         This is part of the solution to a minor problem with rm:
36963         it would print a bogus ELOOP diagnostic when failing to remove
36964         the slash-decorated name of a symlink-to-directory:
36966             $ mkdir d && ln -s d s && env rm -r s/
36967             rm: cannot remove 's': Too many levels of symbolic links
36969         With the change below and a trivial don't-trim-trailing-slashes
36970         adjustment to remove.c, it does this:
36972             $ env rm -r s/
36973             rm: cannot remove 's/': Not a directory
36975         Improved by: Eric Blake
36977         fts: when there is no risk of overlap, use memcpy, not memmove
36978         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
36980 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36982         stdbool: be more compatible with mixed C/C++ compiles
36983         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
36984         Define to bool, true, false, respectively, as GCC's builtin
36985         stdbool.h does.  Problem reported by Michael Goffioul in
36986         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
36988 2012-08-28  Jim Meyering  <meyering@redhat.com>
36990         revert last change: it was not needed
36991         * tests/test-vc-list-files-git.sh: There's already a test for
36992         a working git, just below.
36994 2012-08-28  Jim Meyering  <meyering@redhat.com>
36996         tests: test-vc-list-files-git.sh: skip if git is not available
36997         * tests/test-vc-list-files-git.sh: Skip this test when git is
36998         not available.
37000 2012-08-26  Bruno Haible  <bruno@clisp.org>
37002         gnulib-tool: Remove no-op option --no-changelog.
37003         * gnulib-tool (func_usage): Don't mention --no-changelog.
37004         (do_changelog): Remove variable.
37005         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37007 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37009         doc: remove fdl-1.2.texi
37010         It is no longer used or maintained, and its use of @acronym
37011         is problematic.  See the thread containing
37012         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
37013         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
37014         * doc/old-licenses/fdl-1.2.texi: Remove.
37016         execinfo: port to FreeBSD
37017         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
37018         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
37019         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
37020         * modules/execinfo (Link): Add $(LIB_EXECINFO).
37022 2012-08-23  Jim Meyering  <meyering@redhat.com>
37024         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
37025         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
37026         to placate gcc's -Wold-style-declaration.
37028 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37030         doc: do not use @acronym
37031         * doc/inet_ntoa.texi (inet_ntoa):
37032         * doc/parse-datetime.texi (Seconds since the Epoch)
37033         (Specifying time zone rules):
37034         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
37035         Don't use @acronym.  Problem reported by John Darlington in
37036         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
37038 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37040         stdnoreturn: port to newer GCCs
37041         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
37042         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
37043         Problem reported by Jim Meyering in
37044         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
37045         Also, rename the 'test' function to a void a clash with the
37046         already-supplied 'main' function; this fixes a bug that incorrectly
37047         rejected GCC 4.7.1's <stdnoreturn.h>.
37048         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
37049         Document GCC problem.
37051 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
37053         pipe-filter: fix comment typo
37054         * lib/pipe-filter.h: Mention correct function.
37056 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
37058         execinfo: new module
37059         This is for Emacs.  Currently, it provides a no-effect stub
37060         on all platforms where it does not already work.
37061         It already works on glibc-based systems, and on Solaris 11.
37062         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
37063         New files.
37064         * doc/glibc-headers/execinfo.texi (execinfo.h):
37065         * MODULES.html.sh (Misc): Document it.
37067 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37069         extern-inline: support old GCC 'inline'
37070         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
37071         if available.  This applies to GCC versions 2.7 through 4.2, or
37072         when newer GCC is using -fgnu89-inline.  The goal is to address
37073         some of the performance issues mentioned by Bruno Haible in
37074         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
37076 2012-08-20  Eric Blake  <eblake@redhat.com>
37078         maint.mk: avoid redundant file name in message
37079         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37080         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
37081         (sc_makefile_path_separator_check): Remove bogus $(ME).
37083 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
37085         timer-time: fix link order when static linking on glibc
37086         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37087         _after_ -lrt so that it's significant.
37089 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37091         timespec: omit unnecessary AC_C_INLINE
37092         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
37094         stat-time: omit unnecessary AC_C_INLINE
37095         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
37096         Do not require AC_C_INLINE.
37098         ignore-value: omit unnecessary AC_C_INLINE
37099         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
37101         sys_select: avoid 'static inline'
37102         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
37104         mktime: avoid 'static inline'
37105         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
37106         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
37108 2012-08-19  Bruno Haible  <bruno@clisp.org>
37110         gnulib-tool: Improve coding style.
37111         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
37112         func_emit_lib_Makefile_am.
37113         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37115 2012-08-19  Bruno Haible  <bruno@clisp.org>
37117         gnulib-tool: Fix indentation.
37118         * gnulib-tool (func_import): Fix indentation.
37120 2012-08-19  Bruno Haible  <bruno@clisp.org>
37122         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
37123         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
37124         on the list of removed files.
37126 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37128         test-parse-datetime: avoid glibc leap-second glitch
37129         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
37130         with the 2012 rules.  Problem reported by Bruce Dubbs in
37131         <http://bugs.gnu.org/12206>.
37133 2012-08-14  Bruno Haible  <bruno@clisp.org>
37135         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
37136         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
37137         from argument.
37138         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37140 2012-08-14  Eric Blake  <eblake@redhat.com>
37142         ldexp: relax license
37143         * modules/ldexp (License): Trivial relax, since the module only
37144         provides a permissively licensed m4 file.
37146 2012-08-13  Bruno Haible  <bruno@clisp.org>
37148         gnulib-tool: Fix persistence of --witness-c-macro option.
37149         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
37150         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37152 2012-08-11  Eric Blake  <eblake@redhat.com>
37154         count-leading-zeros: use a lookup table on non-gcc compilers
37155         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
37156         alternate implementation, suggested by Jim Meyering.
37158 2012-08-10  Eric Blake  <eblake@redhat.com>
37160         count-leading-zeros: new module
37161         * modules/count-leading-zeros: New module.
37162         * m4/count-leading-zeros.m4: New file.
37163         * lib/count-leading-zeros.h: Likewise.
37164         * modules/count-leading-zeros-tests: New test.
37165         * tests/test-count-leading-zeros.c: New file.
37166         * MODULES.html.sh (Integer arithmetic functions): Document it.
37168 2012-08-07  Simon Josefsson  <simon@josefsson.org>
37169             Jim Meyering  <meyering@redhat.com>
37171         maintainer-makefile: Fix syntax error with dash.
37172         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
37173         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
37175 2012-08-05  Jim Meyering  <meyering@redhat.com>
37177         extern-inline: also ignore -Wmissing-declarations
37178         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
37179         required with gcc-4.8.0-to-be.
37181         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
37182         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
37183         for /error ?([^,]*)/.  This avoids false-positives for strings like
37184         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
37186 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
37188         gnumakefile: better interaction with Automake-NG
37189         * modules/gnumakefile [Makefile.am]: The makefiles generated by
37190         Automake-NG always contain a definition of VPATH, even in non-VPATH
37191         builds (its value being simply '.' in that case).  So, in the
37192         'clean-GNUmakefile' rule, to determine whether running under a
37193         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
37194         '$(VPATH)' expands to the empty string.
37196 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
37198         base64: Use extern C scope in header file, for C++.
37199         * lib/base64.h: Add C++ namespace protection.
37201 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
37203         stat-time, timespec, u64: support naive out-of-dir builds
37204         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
37205         Use '#include "foo.h"', not '#include <foo.h>', when including
37206         one's own interface.  This works better when configuring with
37207         out-of-directory builds, since packages need not add an
37208         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
37210 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
37212         utimens: use extern-inline
37213         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
37214         * lib/utimens.h: Add copyright notice, since this is now large enough
37215         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37216         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
37217         * modules/utimens (Depends-on): Add extern-inline.
37219         u64: use extern-inline
37220         * lib/u64.c: New file.
37221         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37222         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
37223         * modules/u64 (Files): Add lib/u64.c.
37224         (Depends-on): Add extern-inline.
37225         (configure.ac): No need to require AC_C_INLINE, since extern-inline
37226         does that now.
37227         (lib_SOURCES): Add u64.c.
37229         timespec: use extern-inline
37230         * lib/timespec.c: New file.
37231         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37232         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
37233         * modules/timespec (Files): Add lib/timespec.c.
37234         (Depends-on): Add extern-inline.
37235         (lib_SOURCES): Add timespec.c.
37237         stat-time: use extern-inline
37238         * lib/stat-time.c: New file.
37239         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37240         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
37241         * modules/stat-time (Files): Add lib/stat-time.c.
37242         (Depends-on): Add extern-inline.
37243         (lib_SOURCES): Add stat-time.c.
37245         extern-inline: new module
37246         * modules/extern-inline, m4/extern-inline.m4: New files.
37247         This is for better support of 'extern inline' a la ISO C99,
37248         with a portable alternative on compilers that do not support
37249         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
37250         of the Emacs executable, when compiled with debugging disabled,
37251         which is a typical way that Emacs is built while developing.
37253 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
37255         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
37256         * build-aux/do-release-commit-and-tag: Move variable definitions
37257         together.
37258         ($branch): Instead of defaulting to "master", default to the current
37259         branch (as gnu-web-doc-update does).
37260         (help): Display the current values of the option arguments.
37261         * top/maint.mk (release-commit): New.
37262         * top/README-release: Simplify the corresponding step.
37264 2012-07-30  Eric Blake  <eblake@redhat.com>
37266         passfd: fix comment on recvfd
37267         * lib/passfd.c (recvfd): Fix comment.
37268         Reported by Jann Horn <jannhorn@googlemail.com>.
37270 2012-07-30  Jim Meyering  <meyering@redhat.com>
37272         maint.mk: avoid a sub-shell
37273         * top/maint.mk (release-prep): Remove unneeded sub-shell.
37275 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37277         maint.mk: use silent-rules support from Automake
37278         * top/maint.mk (news-check, vc-diff-check, announcement)
37279         (no-submodule-changes, alpha beta stable, release-prep)
37280         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
37282 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37284         maint.mk: provide a web-manual-update target
37285         * top/maint.mk: here.
37286         * top/README-release: Use it to simplify the web manual update step.
37288 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37290         README-release: shorten the circuit to post a news
37291         * top/README-release: Point directly to the news submission form.
37293 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37295         gnu-web-doc-update: fix --help
37296         * build-aux/gnu-web-doc-update: The information "top level" was written
37297         twice.
37299 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37301         maint.mk: absolute VPATH issue
37302         * top/maint.mk (release-prep): Help Git find .git/.
37303         From Jim Meyering.
37305 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37307         gitlog-to-changelog: fix previous change
37308         * build-aux/gitlog-to-changelog: Fix condition.
37309         Add missing ";".
37311 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37313         gitlog-to-changelog: don't expect .git to be in $srcdir
37314         Reported by Bruno Haible.
37315         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
37316         * build-aux/gitlog-to-changelog (&git_dir_option): New.
37317         Use it.
37319 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37321         maint.mk: absolute VPATH build fix
37322         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
37323         $(srcdir) is not a parent of $(builddir).
37325 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
37327         clean-temp: Fix memory leak.
37328         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
37329         'files' members of tmpdir.
37331 2012-07-27  Jim Meyering  <meyering@redhat.com>
37333         maint.mk: new rule: refresh-gnulib-patches
37334         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
37335         Use this rule to refresh them.
37336         * top/maint.mk (refresh-gnulib-patches): New rule.
37338 2012-07-24  Bruno Haible  <bruno@clisp.org>
37340         gnulib-tool: Fix handling of inctests variable.
37341         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
37342         Reported by Nick Bowler <nbowler@elliptictech.com>.
37344 2012-07-22  Bruno Haible  <bruno@clisp.org>
37346         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
37347         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
37348         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37349         Remove exemption for getpass.h.
37350         Suggested by Eric Blake.
37352 2012-07-20  Eric Blake  <eblake@redhat.com>
37354         verify: document conflict with -Wnested-externs
37355         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
37357         maint.mk: forbid exit(-1)
37358         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
37360 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
37362         fsusage: port back to Solaris
37363         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
37364         error (fsd not declared) on Solaris 10.  Reported privately by
37365         Andrew Borodin.
37367 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
37369         gnu-web-doc-update: fix error messages
37370         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
37372         gnu-web-doc-update: check the requirements.
37373         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
37374         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
37375         * build-aux/bootstrap (find_tool): Comment change.
37377 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
37379         maint.mk: minor simplication.
37380         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
37381         for default values.
37383 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
37385         gitlog-to-changelog: VPATH build issues
37386         If builddir is not a subdirectory of srcdir, running git from it will
37387         fail.
37388         * build-aux/gitlog-to-changelog (--srcdir): New option.
37390 2012-07-15  Bruno Haible  <bruno@clisp.org>
37392         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
37393         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
37394         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
37395         Remove exemption for fpending.h.
37396         Suggested by Eric Blake.
37398 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37400         pthread_sigmask: fix bug on FreeBSD 9
37401         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
37402         Include string.h.
37403         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
37404         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
37405         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
37406         but pthread_sigmask (1729, NULL, NULL) returns zero.
37407         See <http://bugs.gnu.org/11884>.
37408         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
37409         by inspecting whether the main call changed the old mask.
37411 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
37413         README-release: make it more legible
37414         * top/README-release: Improve typography slightly.
37416 2012-07-15  Jim Meyering  <meyering@redhat.com>
37418         maint: require that each sc_... command start with "@"
37419         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
37420         "make sc_maint" helps us avoid this nit.
37422 2012-07-15  Jim Meyering  <meyering@redhat.com>
37424         maint.mk: add leading "@" to quiet new "make syntax-check" rule
37425         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
37427 2012-07-13  Eric Blake  <eblake@redhat.com>
37429         maint.mk: new syntax check for HAVE_DECL checks
37430         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
37431         * cfg.mk
37432         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37433         Exempt some false positives.
37434         Based on a report by Karel Zak.
37436         argp: make HAVE_DECL usage consistent
37437         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
37438         macros, not whether they are defined.
37439         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
37440         convention with other declaration checks.
37441         Reported by Karel Zak, with suggestions from Paul Eggert.
37443         stat-time: relax license to LGPLv2+
37444         * modules/stat-time (License): Relax, with consent of all authors.
37446         strndup: fix m4 usage error
37447         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
37448         defined, to either 0 or 1.
37449         Reported by Karel Zak.
37451 2012-07-11  Jim Meyering  <meyering@redhat.com>
37453         maint: enable the sc_avoid_if_before_free syntax-check rule
37454         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
37455         (if_before_free_offenders_): Define.
37456         (if_before_free_basename_re_): Define.
37457         Exempt current files with useless if-before-free.
37459 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37461         gettext: do not assume '#define ... defined ...' behavior
37462         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
37463         Do not use '#define FOO ... defined BAR ...', as the C standard says
37464         it's not portable to expect that this works after macro expansion.
37465         Problem reported for gzip by Steven M. Schweda in
37466         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
37468 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
37470         getloadavg: clean out old Emacs and Autoconf cruft
37471         See Glenn Morris in <http://bugs.gnu.org/11905>.
37472         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
37473         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
37474         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
37475         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
37477 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
37479         bootstrap: let warn be like tests/init.sh's warn_
37480         Reported by Jim Meyering.
37481         * build-aux/bootstrap (warn): Remove, replaced by...
37482         (warnf_, warn_): these.
37483         Adjust callers.
37484         Shorten messages that no longer fit in 80 columns.
37486 2012-07-09  Bruno Haible  <bruno@clisp.org>
37488         getopt: Simplify after Emacs changed.
37489         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
37490         (gl_GETOPT_IFELSE): Remove macro.
37492 2012-07-09  Jim Meyering  <meyering@redhat.com>
37494         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
37495         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
37497         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
37498         Bugs in both of those conspired to make the
37499         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
37500         _sc_search_regexp's handling of non-empty $in_files would filter
37501         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
37502         choice of in_files value meant there would be no match in most
37503         projects, due to the presence of two or more Makefile.in files.
37504         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
37505         Fix a bug in how a non-empty $$in_files was processed:
37506         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
37507         in spite of the name, it's a regexp, not a list of file names.
37509 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37511         getloadavg, getopt: fix commentary re configure.in
37512         Autoconf is deprecating the name 'configure.in', so change it to
37513         to the new name 'configure.ac' in a couple of places.
37514         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
37515         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
37516         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
37517         Emacs has renamed it to configure.ac, and it no longer refers
37518         to these macros anyway.
37520         timespec: mark functions with const attributes
37521         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
37522         Mark with _GL_ATTRIBUTE_CONST.
37524 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37526         canonicalize[-lgpl]: handle "guessing" values when cross-building
37527         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37528         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
37529         matches "*yes" instead of just "yes".  Regression introduced in commit
37530         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
37532 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37533             Bruno Haible  <bruno@clisp.org>
37535         canonicalize: make the right guess when cross-compiling to GNU
37536         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
37537         determine whether cross-compiling to glibc systems, so as to
37538         include GNU/Hurd.
37540 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37542         timespec-sub: avoid duplicate include
37543         * lib/timespec-sub.c: Do not include <config.h> twice.
37544         Reported by Juanma Barranquero.
37546 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
37548         bootstrap: use a more consistent error reporting scheme
37549         * build-aux/bootstrap (warn, die): New.
37550         Use them.
37552 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37554         sys_time: allow too-wide tv_sec
37555         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
37556         timeval even if tv_sec is wider than time_t.  This allows
37557         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
37558         as without this patch gnulib replaces struct timeval
37559         and OpenBSD futimes therefore has a type mismatch.
37560         * doc/posix-headers/sys_time.texi: Mention this.
37562         pthread: check for both pthread_create and pthread_join
37563         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
37564         alter the check so that it tests for both pthread_create and
37565         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
37566         Suggested by Bruno Haible and Richard Yao in
37567         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
37569         parse-datetime: doc tuneup
37570         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
37571         spacing issues.
37573 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
37575         do-release-commit-and-tag: fix the previous commit
37576         * build-aux/do-release-commit-and-tag: Actually the test was right,
37577         but the comment and the error message were misleading.
37578         Fix comment, and improve error message.
37579         Perform check first, so that NEWS is not modified uselessly.
37581         do-release-commit-and-tag: fix typo
37582         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
37583         _not_ start with a stub.
37585 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37587         pthread: check for pthread_create, not pthread_join
37588         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
37589         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
37590         pthread_join in libc.  I hope this removes the need for all the
37591         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
37592         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
37594 2012-07-04  Jim Meyering  <meyering@redhat.com>
37596         parse-datetime: fix failure to diagnose invalid input
37597         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
37598         rather than diagnosing the invalid input.  Now it reports this:
37599         date: invalid date '\260'
37600         * lib/parse-datetime.y (to_uchar): Define.
37601         (yylex): Don't sign-extend "other" bytes.
37602         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
37603         Thanks to Bruno Haible for the patch to this file.
37604         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
37605         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
37607 2012-07-03  Jim Meyering  <meyering@redhat.com>
37609         bootstrap: do not require now-removed build-aux/missing
37610         Now that build-aux/missing is, er, missing, bootstrap would
37611         silently fail.
37612         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
37613         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
37614         no longer part of gnulib.
37615         Diagnose the failure.
37617 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37619         alloca: add support for HP NonStop TNS/E native
37620         * lib/alloca.in.h (alloca): Support the new host.
37621         From a suggestion by Joachim Schmitz in
37622         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
37624 2012-07-02  Pádraig Brady  <P@draigBrady.com>
37626         fsusage: remove code not needed on non GNU/Linux systems.
37628         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37629         Don't include headers no longer needed in this case.
37630         * lib/fsusage.c [STAT_STATVFS &&
37631         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
37632         STAT_STATFS2_FRSIZE to exclude code not used in this case.
37634 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37636         fsusage: include files needed for glibc 2.6 fallback
37637         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37638         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
37639         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
37640         Problem reported by Ludovic Courtès in
37641         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
37643         fsusage: avoid needless check on GNU/Linux
37644         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
37645         on GNU/Linux systems, since it can't possibly work.
37647 2012-07-01  Bruno Haible  <bruno@clisp.org>
37649         log: Fix an autoconf >= 2.64 warning.
37650         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
37651         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37653 2012-06-28  Bruno Haible  <bruno@clisp.org>
37655         log10f: Fix possible configuration problem.
37656         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
37657         $LOGF_LIBM.
37658         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37660 2012-06-28  Bruno Haible  <bruno@clisp.org>
37662         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
37663         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
37664         not gl_cv_func_unlink_works.
37665         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37667 2012-06-27  Eric Blake  <eblake@redhat.com>
37669         config: drop scripts that automake says are not independent
37670         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
37671         * build-aux/elisp-comp: Delete.
37672         * build-aux/missing: Likewise.
37673         * build-aux/ylwrap: Likewise.
37674         * modules/elisp-comp: Likewise.
37675         * MODULES.html.sh: Drop mention of elisp-comp.
37676         * NEWS: Mention this.
37678 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37680         root-uid: new module
37681         This is for portability to Tandem's NonStop Kernel.
37682         * lib/root-uid.h, modules/root-uid: New files.
37683         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
37684         * lib/write-any-file.c, tests/test-sethostname2.c:
37685         Include "root-uid.h".
37686         * lib/euidaccess.c (euidaccess):
37687         * lib/pt_chown.c (main):
37688         * lib/unlinkdir.c (cannot_unlink_dir):
37689         * lib/write-any-file.c (can_write_any_file):
37690         * m4/mknod.m4 (gl_FUNC_MKNOD):
37691         * tests/test-sethostname2.c (geteuid, main):
37692         Don't assume ROOT_UID == 0.
37693         * modules/euidaccess (Depends-on):
37694         * modules/pt_chown (Depends-on):
37695         * modules/sethostname-tests (Depends-on):
37696         * modules/unlinkdir (Depends-on):
37697         * modules/write-any-file (Depends-on):
37698         Add root-uid.
37700         regex: use locale-independent comparison for codeset name
37701         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
37702         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
37703         for codeset name.
37704         * lib/regex_internal.h: Do not include <strings.h>, since we
37705         no longer use strcasecmp.
37706         * modules/regex (Depends-on): Remove strcase.
37708 2012-06-23  Bruno Haible  <bruno@clisp.org>
37710         getopt-posix: No longer guarantee that option processing is resettable.
37711         * doc/posix-functions/getopt.texi: Drop description of problem with
37712         internal state. Fix info about mingw and msvc9.
37713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
37714         option processing by getopt(). Run three test programs instead of one.
37715         Simplify cross-compilation guess.
37716         * NEWS: Mention the change.
37717         Reported by Rich Felker <dalias@aerifal.cx>.
37719 2012-06-26  Bruno Haible  <bruno@clisp.org>
37721         argp, regex: Ensure strcasecmp gets declared.
37722         * lib/argp-help.c: Include <strings.h>.
37723         * lib/regex_internal.h: Likewise.
37724         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
37726 2012-06-24  Bruno Haible  <bruno@clisp.org>
37728         ptsname_r: Make it consistent with ptsname on AIX.
37729         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
37730         implementation as for OSF/1.
37731         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
37732         a pty master.
37734         ptsname_r: Make it consistent with ptsname on OSF/1.
37735         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37736         OSF/1.
37738 2012-06-24  Bruno Haible  <bruno@clisp.org>
37740         ttyname_r: Fix result on OSF/1, Solaris.
37741         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
37743 2012-06-24  Bruno Haible  <bruno@clisp.org>
37745         ptsname_r: Add support for Solaris.
37746         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37747         Solaris.
37749         ptsname_r: Fix test failure on native Windows.
37750         * modules/ptsname_r (Depends-on): Add isatty.
37752         ptsname_r: Fix test failures on IRIX, Solaris.
37753         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
37754         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
37755         accordingly.
37756         * lib/ptsname_r.c: Include <fcntl.h>.
37757         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
37758         set errno if fd is invalid.
37759         * tests/test-isatty.c (main): Update comments.
37761 2012-06-24  Bruno Haible  <bruno@clisp.org>
37763         ptsname test: Extend test.
37764         * tests/test-ptsname.c: Include <errno.h>.
37765         (main): Test behaviour with invalid file descriptor.
37767 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37769         time: fix obsolete comment
37770         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
37771         reference to HAVE_STRUCT_TIMESPEC in comment.
37773 2012-06-23  Bruno Haible  <bruno@clisp.org>
37775         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
37776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
37777         does not handle abbreviated long options with equivalent
37778         disambiguations, set gl_replace_getopt to yes.
37779         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
37781 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37783         time_r: fix typo that always overrode localtime_r decl
37784         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
37785         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
37786         not in a standard include.
37788 2012-06-22  Bruno Haible  <bruno@clisp.org>
37790         Write "Mac OS X" instead of "MacOS X".
37791         * README: Write "Mac OS X" instead of "MacOS X".
37792         * build-aux/bootstrap: Likewise.
37793         * build-aux/install-reloc: Likewise.
37794         * lib/acl-internal.h: Likewise.
37795         * lib/acl_entries.c: Likewise.
37796         * lib/argp-ba.c: Likewise.
37797         * lib/argp-pv.c: Likewise.
37798         * lib/config.charset: Likewise.
37799         * lib/copy-acl.c: Likewise.
37800         * lib/csharpexec.c: Likewise.
37801         * lib/euidaccess.c: Likewise.
37802         * lib/fbufmode.c: Likewise.
37803         * lib/fflush.c: Likewise.
37804         * lib/file-has-acl.c: Likewise.
37805         * lib/filemode.h: Likewise.
37806         * lib/fpurge.c: Likewise.
37807         * lib/freadable.c: Likewise.
37808         * lib/freadahead.c: Likewise.
37809         * lib/freading.c: Likewise.
37810         * lib/freadptr.c: Likewise.
37811         * lib/freadseek.c: Likewise.
37812         * lib/fseeko.c: Likewise.
37813         * lib/fseterr.c: Likewise.
37814         * lib/fsusage.c: Likewise.
37815         * lib/fwritable.c: Likewise.
37816         * lib/fwriting.c: Likewise.
37817         * lib/get-rusage-as.c: Likewise.
37818         * lib/get-rusage-data.c: Likewise.
37819         * lib/getdomainname.c: Likewise.
37820         * lib/idpriv-drop.c: Likewise.
37821         * lib/idpriv-droptemp.c: Likewise.
37822         * lib/localcharset.c: Likewise.
37823         * lib/locale.in.h: Likewise.
37824         * lib/localename.c: Likewise.
37825         * lib/mbsrtowcs-state.c: Likewise.
37826         * lib/nproc.c: Likewise.
37827         * lib/passfd.c: Likewise.
37828         * lib/posix_openpt.c: Likewise.
37829         * lib/printf-parse.c: Likewise.
37830         * lib/progreloc.c: Likewise.
37831         * lib/safe-read.h: Likewise.
37832         * lib/safe-write.h: Likewise.
37833         * lib/sched.in.h: Likewise.
37834         * lib/set-mode-acl.c: Likewise.
37835         * lib/signal.in.h: Likewise.
37836         * lib/stdint.in.h: Likewise.
37837         * lib/stdio-impl.h: Likewise.
37838         * lib/stdlib.in.h: Likewise.
37839         * lib/strtod.c: Likewise.
37840         * lib/sys_select.in.h: Likewise.
37841         * lib/tcgetsid.c: Likewise.
37842         * lib/unistd.in.h: Likewise.
37843         * lib/unlockpt.c: Likewise.
37844         * lib/vasnprintf.c: Likewise.
37845         * lib/vma-iter.c: Likewise.
37846         * lib/wcsrtombs-state.c: Likewise.
37847         * m4/acl.m4: Likewise.
37848         * m4/acosl.m4: Likewise.
37849         * m4/asinl.m4: Likewise.
37850         * m4/atanl.m4: Likewise.
37851         * m4/c-stack.m4: Likewise.
37852         * m4/cosl.m4: Likewise.
37853         * m4/expl.m4: Likewise.
37854         * m4/extensions.m4: Likewise.
37855         * m4/fdatasync.m4: Likewise.
37856         * m4/fmal.m4: Likewise.
37857         * m4/frexp.m4: Likewise.
37858         * m4/frexpf.m4: Likewise.
37859         * m4/frexpl.m4: Likewise.
37860         * m4/fsusage.m4: Likewise.
37861         * m4/getdomainname.m4: Likewise.
37862         * m4/getloadavg.m4: Likewise.
37863         * m4/getopt.m4: Likewise.
37864         * m4/gettext.m4: Likewise.
37865         * m4/gnulib-common.m4: Likewise.
37866         * m4/intdiv0.m4: Likewise.
37867         * m4/intlmacosx.m4: Likewise.
37868         * m4/largefile.m4: Likewise.
37869         * m4/ldexpl.m4: Likewise.
37870         * m4/link-follow.m4: Likewise.
37871         * m4/locale-ar.m4: Likewise.
37872         * m4/locale-fr.m4: Likewise.
37873         * m4/locale-ja.m4: Likewise.
37874         * m4/locale-tr.m4: Likewise.
37875         * m4/locale-zh.m4: Likewise.
37876         * m4/locale_h.m4: Likewise.
37877         * m4/lock.m4: Likewise.
37878         * m4/logl.m4: Likewise.
37879         * m4/mathfunc.m4: Likewise.
37880         * m4/minus-zero.m4: Likewise.
37881         * m4/mktime.m4: Likewise.
37882         * m4/mmap-anon.m4: Likewise.
37883         * m4/multiarch.m4: Likewise.
37884         * m4/nanosleep.m4: Likewise.
37885         * m4/nocrash.m4: Likewise.
37886         * m4/poll.m4: Likewise.
37887         * m4/printf-frexpl.m4: Likewise.
37888         * m4/printf.m4: Likewise.
37889         * m4/signbit.m4: Likewise.
37890         * m4/sinl.m4: Likewise.
37891         * m4/sqrtl.m4: Likewise.
37892         * m4/strerror_r.m4: Likewise.
37893         * m4/tanl.m4: Likewise.
37894         * m4/threadlib.m4: Likewise.
37895         * m4/ttyname_r.m4: Likewise.
37896         * m4/unlink.m4: Likewise.
37897         * m4/visibility.m4: Likewise.
37898         * m4/wcwidth.m4: Likewise.
37899         * tests/minus-zero.h: Likewise.
37900         * tests/test-alloca-opt.c: Likewise.
37901         * tests/test-copy-acl.sh: Likewise.
37902         * tests/test-copy-file.sh: Likewise.
37903         * tests/test-fdatasync.c: Likewise.
37904         * tests/test-file-has-acl.sh: Likewise.
37905         * tests/test-flock.c: Likewise.
37906         * tests/test-fsync.c: Likewise.
37907         * tests/test-localename.c: Likewise.
37908         * tests/test-malloca.c: Likewise.
37909         * tests/test-nonblocking-pipe.h: Likewise.
37910         * tests/test-nonblocking-socket.h: Likewise.
37911         * tests/test-openpty.c: Likewise.
37912         * tests/test-posix_openpt.c: Likewise.
37913         * tests/test-ptsname.c: Likewise.
37914         * tests/test-ptsname_r.c: Likewise.
37915         * tests/test-sameacls.c: Likewise.
37916         * tests/test-select.h: Likewise.
37917         * tests/test-set-mode-acl.sh: Likewise.
37918         * tests/test-snprintf-posix.h: Likewise.
37919         * tests/test-sprintf-posix.h: Likewise.
37920         * tests/test-strtod.c: Likewise.
37921         * tests/test-time.c: Likewise.
37922         * tests/test-vasnprintf-posix.c: Likewise.
37923         * tests/test-vasprintf-posix.c: Likewise.
37924         * doc/acl-resources.txt: Likewise.
37925         * doc/**/*.texi: Likewise.
37926         Reported by Max Horn <max@quendi.de>.
37928 2012-06-22  Bruno Haible  <bruno@clisp.org>
37930         grantpt: Relax requirement regarding invalid file descriptors.
37931         * lib/grantpt.c: Don't include <fcntl.h>.
37932         (grantpt): Don't verify the validity of the file descriptor.
37933         * modules/grantpt (Depends-on): Remove fcntl-h.
37934         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
37935         file descriptors.
37936         * doc/posix-functions/grantpt.texi: Document more platforms on which
37937         grantpt succeeds for invalid file descriptors.
37938         Reported by Rich Felker <dalias@aerifal.cx>.
37940 2012-06-22  Bruno Haible  <bruno@clisp.org>
37942         fbufmode test: Don't test unportable behaviour.
37943         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
37944         (main): Invoke it three times.
37945         Reported by Szabolcs Nagy <nsz@port70.net>
37946         and Rich Felker <dalias@aerifal.cx>.
37948 2012-06-21  Bruno Haible  <bruno@clisp.org>
37950         gnulib-tool: Refactor inctests variable.
37951         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
37952         (func_modules_transitive_closure,
37953         func_modules_transitive_closure_separately,
37954         func_import, func_create_testdir): Update.
37956         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
37957         * gnulib-tool: Accept option --without-tests.
37958         (func_usage): Document --without-tests option. Rearrange.
37959         (inctests): Normalize according to the mode.
37960         * NEWS: Mention the change.
37961         Suggested by Simon Josefsson.
37963 2012-06-21  Bruce Korb  <bkorb@gnu.org>
37965         parse-duration test: Avoid spurious output.
37966         * tests/test-parse-duration.sh: Reindent with leading tabs.
37968 2012-06-21  Jim Meyering  <meyering@redhat.com>
37970         maint: disable the strncpy prohibition
37971         * cfg.mk: Do not prohibit strncpy here.
37973 2012-06-21  Bruno Haible  <bruno@clisp.org>
37975         nonblocking: Avoid compilation error on mingw64.
37976         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
37977         fscanf.
37978         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
37979         * modules/vfscanf (configure.ac): Likewise.
37980         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
37981         definition only if stdio.h has prepared it.
37982         Reported by Daniel P. Berrange <berrange@redhat.com>.
37984 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
37986         gnulib-tool: Use readlink if it is available.
37987         * gnulib-tool (func_readlink): Choose function more appropriately.
37989 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37991         posixtm-tests: port to buggy compiler
37992         Problem reported by Simon Josefsson in
37993         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
37994         * modules/posixtm-tests (Depends-on): Add stdint.
37995         * tests/test-posixtm.c (struct posixtm_test.t_expected):
37996         Now of type int_least64_t, not int64_t, both because that's
37997         what INT64_C returns and because int_least64_t works even
37998         on 72-bit hosts.
37999         (T): Use INT64_C on constants outside the traditional int range,
38000         to work around compiler bug noted by Simon.
38002         mktime: fix integer overflow in 'configure'-time test
38003         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
38004         after integer overflow.  Problem reported by Rich Felker in
38005         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
38006         Also, don't look for further instances of a bug if we've already
38007         found one instance; this helps 'configure' run faster.
38009 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
38011         tmpfile, clean-temp: Fix invocation of GetVersionEx.
38012         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
38013         GetVersionEx correctly.
38014         * lib/clean-temp.c (supports_delete_on_close): Likewise.
38016 2012-06-20  Bruno Haible  <bruno@clisp.org>
38018         fdopen: Allow implementations that don't reject invalid fd arguments.
38019         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
38020         succeeds.
38021         Reported by Rich Felker <dalias@aerifal.cx>.
38023 2012-06-20  Simon Josefsson  <simon@josefsson.org>
38025         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
38026         bring in LIBINTL.
38028 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38030         init.sh: do not rely on autoupated PWD
38031         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
38032         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
38033         Although Nelson's bug was not necessarily fixed by this patch,
38034         it seems wise to make the change for safety.
38035         * tests/init.sh (path_prepend_): Do not rely on PWD updating
38036         automagically after 'cd'; this is not reliable on older shells.
38037         (setup_): Fail if we cannot cd to temporary directory.
38039 2012-06-19  Bruno Haible  <bruno@clisp.org>
38041         stat, fstat: Avoid warnings on mingw64.
38042         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
38043         redefining.
38044         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
38045         Reported by Daniel P. Berrange <berrange@redhat.com>.
38047 2012-06-19  Bruno Haible  <bruno@clisp.org>
38049         stdioext: Add support for musl libc.
38051         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
38052         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
38054         * m4/fseterr.m4: New file.
38055         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
38056         function exists.
38057         * modules/fseterr (Files): Add m4/fseterr.m4.
38058         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
38059         __fseterr does not exist.
38060         (Makefile.am): Remove fseterr.c from lib_SOURCES.
38062         * lib/freadable.h: Update comment.
38064         * lib/fwritable.h: Update comment.
38066         * lib/freading.h: Update comment.
38068         * lib/fwriting.h: Update comment.
38070         * m4/freadahead.m4: New file.
38071         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
38072         that function exists.
38073         * modules/freadahead (Files): Add m4/freadahead.m4.
38074         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
38075         __freadahead does not exist.
38076         (Makefile.am): Remove freadahead.c from lib_SOURCES.
38078         * m4/freadptr.m4: New file.
38079         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
38080         function exists.
38081         * modules/freadptr (Files): Add m4/freadptr.m4.
38082         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
38083         __freadptr does not exist.
38084         (Makefile.am): Remove freadptr.c from lib_SOURCES.
38086         * m4/freadseek.m4: New file.
38087         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
38088         exists.
38089         * modules/freadseek (Files): Add m4/freadseek.m4.
38090         (configure.ac): Invoke gl_FUNC_FREADSEEK.
38092         * lib/fpurge.c (fpurge): Update comment.
38094         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
38096 2012-06-19  Bruno Haible  <bruno@clisp.org>
38098         *printf-posix: Put more info into config.log.
38099         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
38100         exit code into config.log.
38102 2012-06-19  Bruno Haible  <bruno@clisp.org>
38104         getopt-gnu: Fix exit code overflow in autoconf test.
38105         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
38106         to keep them below < 128.
38108 2012-06-17  Jim Meyering  <meyering@redhat.com>
38110         maint.mk: fix typo in code to derive GPG key at release time
38111         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
38113 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
38115         regex: avoid warning when pointers are not long
38116         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
38117         and uintptr_t, not long, for portability to hosts where pointers and
38118         long have different sizes.  Issue noted by Daniel P. Berrange in
38119         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
38120         and fix suggested by Bruno Haible in
38121         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
38123 2012-06-17  Bruno Haible  <bruno@clisp.org>
38125         dummy: Relicense into the public domain.
38126         * modules/dummy (License): Set to "public domain".
38127         Suggested by Reuben Thomas.
38129 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38131         announce-gen: VPATH issues
38132         * build-aux/announce-gen (--srcdir): New option, used to trim the
38133         $srcdir part of the path from $builddir to NEWS.
38134         * top/maint.mk (announcement): Adjust.
38136 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38138         gnu-web-doc-update: VPATH builds
38139         * build-aux/gnu-web-doc-update (--builddir): New option.
38140         Revamp the handling of options.
38141         Prefer $(...) to `...`.
38142         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
38143         the template, and it is GNU mktemp specific.
38144         Prefer set -e to long series of &&.
38145         Restore the initial git branch, not "master".
38146         Properly initialize submodules (don't rely only on bootstrap).
38147         Do not reconfigure blindly, use config.status.
38148         * top/README-release: Update instructions for gnu-web-doc-update.
38150 2012-06-11  Jim Meyering  <meyering@redhat.com>
38152         maint.mk: revert most of the previous change re "all these"
38153         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
38154         For rationale, see the discussion at
38155         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
38157 2012-06-10  Karl Berry  <karl@gnu.org>
38159         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
38161         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
38163 2012-06-10  Bruce Korb  <bkorb@gnu.org>
38165         parse-duration: Relicense under LGPLv2+.
38166         * modules/parse-duration (License): Change to LGPLv2+.
38168 2012-06-10  Jim Meyering  <meyering@redhat.com>
38170         maint.mk: prohibit common grammar error: "all these"
38171         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
38172         the list of prohibited word sequences.  It should be "all of these".
38173         * lib/tempname.c (__gen_tempname): Fix one of them.
38175 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38177         do-release-commit-and-tag: support VPATH builds
38178         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
38179         (noteworthy): Defined earlier to factor its value.
38180         (noteworthy_stub): New.
38181         Use it to factor.
38182         (help_version): Split into...
38183         (help, version): these.
38184         Adjust the option processing part.
38185         Support "--option=value" in addition to "--option value".
38186         (builddir): New.
38187         (--builddir): New option.
38188         * top/README-release: Document this.
38189         Reword slightly so that the reader cannot understand that he
38190         has to do these steps before calling do-release-commit-and-tag.
38192 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38194         readme-release: also require announce-gen and maintainer-makefile
38195         * modules/readme-release (Depends-on): here.
38196         * modules/announce-gen, modules/do-release-commit-and-tag,
38197         modules/gnu-web-doc-update, modules/maintainer-makefile
38198         (Description): Point to readme-release.
38200 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38202         maint.mk: fix VPATH issues.
38203         * top/maint.mk (news-check): GNU Make understand $< very well.
38204         (release-prep): NEWS is in $(srcdir).
38206 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
38208         readme-release: require the promoted modules.
38209         * modules/readme-release (Depends-on): Add
38210         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
38211         in this text.
38213 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38214             Bruno Haible  <bruno@clisp.org>
38216         error, strerror-override: Support mingw64 from Fedora 17.
38217         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
38218         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
38219         EINPROGRESS.
38220         * lib/strerror-override.h (strerror_override): Test it.
38221         * lib/strerror-override.c (strerror_override): Likewise.
38222         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
38224 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38225             Bruno Haible  <bruno@clisp.org>
38227         error, strerror-override: Support mingw64 from Fedora 17.
38228         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
38229         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
38230         * lib/strerror-override.h (strerror_override): Test it.
38231         * lib/strerror-override.c (strerror_override): Likewise.
38233 2012-06-03  Bruno Haible  <bruno@clisp.org>
38235         error, strerror-override: Support new errno values from POSIX:2008.
38236         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
38237         ENOTRECOVERABLE.
38238         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
38239         platforms.
38240         * lib/strerror-override.c (strerror_override): Conditionalize the
38241         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
38242         * lib/strerror-override.h (strerror_override): Declare also if
38243         GNULIB_defined_EOWNERDEAD is defined.
38244         * tests/test-errno.c (e130, e131): New variables.
38245         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
38246         ENOTRECOVERABLE.
38247         Reported by Paolo Bonzini.
38249 2012-05-31  Jim Meyering  <meyering@redhat.com>
38251         savewd: add missing dependency on sys_wait module
38252         * modules/savewd (Depends-on): Add sys_wait, needed at least
38253         for MSVC.  Report and suggested change by Michael Goffioul.
38255 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38257         system-quote-tests: port to CentOS 5
38258         Problem reported by Tom G. Christensen in
38259         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
38260         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
38262 2012-05-29  Jim Meyering  <meyering@redhat.com>
38264         maint: fix typos in comments and ChangeLog
38265         Culprits identified and fixed mostly automatically using these commands:
38266         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
38267         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
38268         using http://github.com/lyda/misspell-check
38269         * ChangeLog: Fix typos.
38270         * doc/solaris-versions: Likewise.
38271         * lib/regexec.c (re_search_stub): Likewise.
38272         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38274 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38276         manywarnings: remove duplicate -Wmultichar entry
38277         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
38278         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
38279         so keep the entry marked as documented.
38281 2012-05-27  Karl Berry  <karl@gnu.org>
38283         * config/srclist.txt (mktime.c): remove last libc sync,
38284         perhaps just temporarily.
38286 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
38288         regex: don't assume uint64_t or uint32_t
38289         * lib/regcomp.c (init_word_char): Don't assume that the types
38290         uint64_t and uint32_t exist.  The C standard doesn't guarantee
38291         them, and on some 32-bit compilers there is no uint64_t.
38292         Problem reported by Gianluigi Tiesi in
38293         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
38295 2012-05-25  Jim Meyering  <meyering@redhat.com>
38297         maint.mk: add strncpy-prohibiting syntax-check rule
38298         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
38300 2012-05-24  Jim Meyering  <meyering@redhat.com>
38302         maint.mk: compute $(gpg_key_ID) more portably
38303         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
38304         That use of sed is not portable to some fringe systems.
38305         Reported by Paul Eggert in
38306         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
38308 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
38310         mktime: sync from glibc
38311         * config/srclist.txt: Uncomment mktime.c.
38312         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
38313         First, indent with tabs, since glibc uses tabs and doesn't want to
38314         change and we'd rather be identical to glibc.  Also, two small
38315         coding changes:
38316         (isdst_differ): Use &&, not &, as && is the usual style.
38317         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
38318         for clarity.
38320 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38322         announce-gen: du -h is more portable than du --human
38323         * build-aux/announce-gen (sizes): Invoke du with -h instead
38324         of --human.  Accept leading white space in its output.
38326 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38328         announce-gen: Improve diagnostics.
38329         * build-aux/announce-gen: When parsing command line options,
38330         prefer "announce-gen: option --release-type requires an argument"
38331         to "Option release-type requires an argument".
38333 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38335         maint.mk: gpg_key_ID: use sed more portably
38336         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
38337         the closing brace.
38338         (refresh-po): Fuse two sed invocations into one.
38340 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
38342         gitlog-to-changelog: support the log message format used in Bison.
38343         * build-aux/gitlog-to-changelog: Support --strip-tab and
38344         --strip-cherry-picked.
38346 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38348         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
38349         the rest of the current time slice to another thread in the current
38350         process. So if the thread that feeds the file decscriptor we're
38351         polling is not in the current process, we get busy-waiting.
38352         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
38353         Patch from Theodore Leblond.
38354         * lib/select.c: Split polling out of the loop that sets the output
38355         fd_sets.  Check for zero result and loop if the wait timeout is
38356         infinite.
38358 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38360         select: Fix build error on IRIX 6.5.
38361         * lib/select.c: Include stddef.h for NULL.
38363 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38365         gc: fix libgcrypt detection on older machines.
38366         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
38367         copyright years because the file has been distributed every year
38368         since it was created.
38370 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38372         crypto: fix bug in large buffer handling
38373         Problem reported by Serge Belyshev for glibc in
38374         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
38375         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
38376         * lib/md4.c (md4_process_block):
38377         * lib/md5.c (md5_process_block):
38378         * lib/sha1.c (sha1_process_block):
38379         * lib/sha256.c (sha256_process_block):
38380         Don't assume the buffer length is less than 2**32.
38381         * lib/sha512.c (sha512_process_block): Likewise.
38382         Here, the bug is present only in the rare case where the host does
38383         not support uint64_t or where size_t is wider than 64 bits.
38384         Use u64size to work around the problems.
38385         * lib/u64.h (u64size): New macro.
38387 2012-05-15  Pádraig Brady  <P@draigBrady.com>
38389         fsusage: fix block size returned on older Linux 2.6
38391         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
38392         which is available since Linux 2.6.
38393         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
38394         when the member is available so it can be used as a fallback.
38395         * doc/posix-functions/statvfs.texi: Mention the hang issue
38396         on Linux < 2.6.36.
38398 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38400         bootstrap: suppress stderr chatter
38401         * build-aux/bootstrap (insert_sorted_if_absent, main program):
38402         Omit unnecessary chatter to stderr.  The main program chatter
38403         was there only inadvertantly.
38405         bootstrap: .gitignore files created by autopoint, libtool
38406         I ran into this problem when bootstrapping the latest diffutils.
38407         After './bootstrap', 'git status' reported lots of untracked files
38408         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
38409         autopoint and do not need to be version-controlled.
38410         * build-aux/bootstrap: Put into .gitignore the files that
38411         autopoint and libtool create, by keeping track of files that exist
38412         after but not before these programs are run.
38413         (version_controlled_file): Move up.  2nd arg is now full file
38414         name, not base name; this is more convenient.  Put CVS at the end,
38415         as it's now somewhat deprecated.
38417 2012-05-14  Jim Meyering  <meyering@redhat.com>
38419         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
38420         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
38421         definition.  Reported by Bruno Haible.
38423 2012-05-13  Bruno Haible  <bruno@clisp.org>
38424             Paul Eggert  <eggert@cs.ucla.edu>
38426         binary-io: Define set_binary_mode function.
38427         * lib/binary-io.h (set_binary_mode): New function.
38428         (SET_BINARY): Define in terms of set_binary_mode.
38429         * modules/binary-io (configure.ac): Require AC_C_INLINE.
38430         * tests/test-binary-io.c (main): Accept an argument, and test either
38431         set_binary_mode or SET_BINARY depending on the argument.
38432         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
38433         argument. Clean up also t-bin-out0.tmp.
38435 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
38437         bootstrap: take advantage of POSIX shell features
38439         The 'bootstrap' script offered by Gnulib script already uses POSIX
38440         shell features (like $((...)) arithmetic expansions) that are not
38441         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
38442         means that bootstrap must already be run using a proper POSIX shell,
38443         which will thus provide more features, like ${var#pattern} parameter
38444         expansion or inversion of a command exit status with '!'.  We can
38445         thus use these features to improve the clarity and the performances
38446         of the bootstrap script.
38448         Suggested by Eric Blake.
38450         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
38451         of sed/expr plus command substitutions, to save some forks.  While
38452         we are at it, prefer the POSIX $(...) form of command substitution,
38453         rather than the legacy form `...` (since the former is visually
38454         clearer and interacts better with quoting), and prefer the idiom:
38455           "if ! CMD; then ACTION ..."
38456         over the idiom:
38457           "if CMD; then :; else ACTION ..."
38458         which was required by legacy Bourne shells not supporting '!'.
38460 2012-05-12  Bruno Haible  <bruno@clisp.org>
38462         system-quote: Add more comments.
38463         * lib/system-quote.h: Add more comments about wilcards and limitations.
38464         Suggested by Eli Zaretskii <eliz@gnu.org>.
38466         sh-quote, system-quote: Add comments about wildcards.
38467         * lib/sh-quote.h: Clarify what happens with wildcard characters.
38468         * lib/system-quote.h: Likewise.
38469         Reported by Eli Zaretskii <eliz@gnu.org>.
38471 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38473         fsusage: check for GNU/Linux statvfs problem dynamically
38474         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
38475         Define STAT_STATFS2_BSIZE too, since in this case the code now
38476         checks dynamically whether statvfs is reliable, falling back on
38477         Linux-style statfs otherwise.
38478         (statvfs_works): New function, for dynamically testing statvfs.
38479         (get_fs_usage) [STAT_STATVFS]: Use it.
38480         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
38481         statvfs on GNU/Linux hosts, since it's now done dynamically.
38483 2012-05-10  Bruno Haible  <bruno@clisp.org>
38485         system-quote, execute, spawn-pipe: Escape '?' on Windows.
38486         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
38487         '?' character.
38488         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
38489         * tests/test-system-quote-main.c (check_all): Check also strings like
38490         "??????????".
38491         Reported by Eli Zaretskii <eliz@gnu.org>.
38493 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
38495         _Noreturn: port config.h to gcc -Wundef
38496         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
38497         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
38498         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
38500 2012-05-10  Bruno Haible  <bruno@clisp.org>
38502         system-quote: Refactor.
38503         * lib/system-quote.h (system_quote_copy): Fix comment.
38504         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
38505         New functions, extracted from system_quote_copy.
38506         (system_quote_length, system_quote_copy): Use these functions.
38507         Reported by Paul Eggert.
38509 2012-05-08  Bruno Haible  <bruno@clisp.org>
38511         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
38512         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
38514 2012-05-08  Bruno Haible  <bruno@clisp.org>
38516         Tests for module 'system-quote'.
38517         * modules/system-quote-tests: New file.
38518         * tests/test-system-quote.sh: New file.
38519         * tests/test-system-quote-main.c: New file.
38520         * tests/test-system-quote-child.c: New file.
38522         New module 'system-quote'.
38523         * lib/system-quote.h: New file.
38524         * lib/system-quote.c: New file.
38525         * modules/system-quote: New file.
38527 2012-05-08  Bruno Haible  <bruno@clisp.org>
38529         sh-quote: Make C++ safe and allow multiple inclusion.
38530         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
38531         declarations in extern "C".
38533 2012-05-08  Bruno Haible  <bruno@clisp.org>
38535         sh-quote tests: Make tests stricter.
38536         * tests/test-sh-quote.c (check_one): Check the return value of
38537         shell_quote_copy.
38538         (main): Check a string with a CR character. Check a string that
38539         contains UCHAR_MAX.
38541 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
38543         warnings.m4: provide a means to specify the program to compile.
38544         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
38545         (gl_WARN_ADD): here.
38546         Use gl_AS_VAR_APPEND.
38547         Support an argument to specify the program to compile.
38548         (gl_WARN_ADD): Accept an argument to specify the program to compile.
38549         AC_SUBST the WARN_CFLAGS when they are used.
38550         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
38551         leave this to gl_WARN_ADD.
38553 2012-05-08  Eric Blake  <eblake@redhat.com>
38555         doc: recommendations on gettext version
38556         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
38557         choice between versions.
38558         * DEPENDENCIES (gettext): Cover both approaches.
38560 2012-05-08  Jim Meyering  <meyering@redhat.com>
38562         init.sh: explain why EXEEXT support uses aliases rather than functions
38563         * tests/init.sh: Add a comment.
38565         init.sh: don't let bash aliases interfere with tests
38566         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
38567         is bash.  This avoids problems for those who alias standard commands to
38568         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
38569         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
38571 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
38573         stdint: be more consistent with glibc, SunOS libc
38574         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
38575         (gl_int_fast16_t, gl_uint_fast16_t)
38576         (gl_int_fast32_t, gl_uint_fast32_t)
38577         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
38578         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
38579         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
38580         Be consistent with glibc by default, and with SunOS 5.10 and later
38581         if __sun is defined.  This lessens the likelihood of clashes if
38582         code compiled for older hosts is combined with code compiled for
38583         newer ones.  Problem reported by Niels Möller in
38584         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
38586 2012-05-07  Eric Blake  <eblake@redhat.com>
38588         isatty: relax license to LGPLv2+
38589         * modules/isatty (License): Relax license.
38591 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38593         stat-size: comment fix
38594         * lib/stat-size.h: Remove obsolete comment about indenting.
38596 2012-05-06  Bruno Haible  <bruno@clisp.org>
38598         Tests for module 'sh-quote'.
38599         * modules/sh-quote-tests: New file.
38600         * tests/test-sh-quote.c: New file.
38602 2012-05-06  Bruno Haible  <bruno@clisp.org>
38604         sh-quote: Improve shell_quote_argv's signature.
38605         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
38606         * lib/sh-quote.c (shell_quote_argv): Likewise.
38608 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38610         stdint: document issues with int_fast8_t etc.
38611         * doc/posix-headers/stdint.texi (stdint.h): Say that other
38612         stdint.h substitutes may define these types differently.  See
38613         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
38615 2012-05-05  Bruno Haible  <bruno@clisp.org>
38617         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
38618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
38619         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
38620         or 'guessing no (mishandles large arguments)'.
38622 2012-05-05  Bruno Haible  <bruno@clisp.org>
38624         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
38625         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
38626         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38627         set gl_cv_func_link_follows_symlink to "guessing no".
38629 2012-05-05  Bruno Haible  <bruno@clisp.org>
38631         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
38632         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
38633         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
38634         "guessing no".
38635         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
38637 2012-05-05  Bruno Haible  <bruno@clisp.org>
38639         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
38640         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
38641         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38642         set gl_cv_struct_dirent_d_ino to "guessing yes".
38644 2012-05-05  Bruno Haible  <bruno@clisp.org>
38646         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
38647         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
38648         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
38649         "guessing yes".
38651 2012-05-05  Bruno Haible  <bruno@clisp.org>
38653         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
38654         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
38655         compiling to a glibc system, set gl_cv_func_signbit and
38656         gl_cv_func_signbit_gcc to "guessing yes".
38658 2012-05-05  Bruno Haible  <bruno@clisp.org>
38660         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
38661         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
38662         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
38663         to "guessing yes".
38664         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
38665         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
38667 2012-05-05  Bruno Haible  <bruno@clisp.org>
38669         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
38670         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
38671         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
38672         gl_cv_func_realpath_works to "guessing yes".
38674 2012-05-05  Bruno Haible  <bruno@clisp.org>
38676         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
38677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
38678         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
38680 2012-05-04  Bruno Haible  <bruno@clisp.org>
38682         Tweak last commit.
38683         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
38684         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38686 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
38688         unistd_h: make it easier to avoid sys_types_h
38689         This is useful for Emacs, which has its own method of porting to
38690         Windows, and which therefore does not need the sys_types_h module.
38691         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
38692         code moved here from gl_SYS_TYPES_H.
38693         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
38694         using the code directly.
38695         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
38696         gl_SYS_TYPES_H.
38697         * modules/sys_types (Files):
38698         * modules/unistd (Files): Add m4/off_t.m4.
38700 2012-05-03  Bruno Haible  <bruno@clisp.org>
38702         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
38703         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
38704         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
38705         "guessing yes" or "guessing no".
38706         (gl_FUNC_LSTAT): Update.
38707         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
38708         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
38709         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
38711 2012-05-03  Bruno Haible  <bruno@clisp.org>
38713         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
38714         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
38715         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
38716         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
38717         cross-compiling, choose the first alternative on glibc systems.
38718         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
38720 2012-05-03  Bruno Haible  <bruno@clisp.org>
38722         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
38723         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
38724         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
38726 2012-05-03  Bruno Haible  <bruno@clisp.org>
38728         chown: Avoid "guessing no" when cross-compiling to glibc systems.
38729         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
38731 2012-05-03  Bruno Haible  <bruno@clisp.org>
38733         Avoid "guessing no" guesses when cross-compiling to glibc systems.
38734         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
38735         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
38736         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
38737         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
38738         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
38739         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
38740         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
38741         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
38742         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
38743         compiling to glibc systems, set gl_cv_func_chown_slash_works,
38744         gl_cv_func_chown_ctime_works to "guessing yes".
38745         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
38746         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
38747         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
38748         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
38749         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
38750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
38751         compiling to glibc systems, set gl_cv_func_open_directory_works to
38752         "guessing yes".
38753         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
38754         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
38755         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
38756         "guessing yes".
38757         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
38758         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
38759         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
38760         compiling to glibc systems, set gl_cv_func_floorf_ieee to
38761         "guessing yes".
38762         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
38763         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
38764         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
38765         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
38766         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
38767         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
38768         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
38769         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
38770         "guessing yes".
38771         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
38772         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
38773         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
38774         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
38775         "guessing yes".
38776         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
38777         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
38778         "guessing yes".
38779         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
38780         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
38781         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
38782         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
38783         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
38784         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
38785         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
38786         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
38787         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
38788         compiling to glibc systems, set gl_cv_func_log10f_ieee to
38789         "guessing yes".
38790         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
38791         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
38792         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
38793         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
38794         "guessing yes".
38795         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
38796         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
38797         "guessing yes".
38798         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
38799         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
38800         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
38801         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
38802         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
38803         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
38804         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
38805         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
38806         compiling to glibc systems, set gl_cv_func_mkfifo_works to
38807         "guessing yes".
38808         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
38809         compiling to glibc systems, set gl_cv_func_mknod_works to
38810         "guessing yes".
38811         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
38812         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
38813         "guessing yes".
38814         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
38815         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
38816         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
38817         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
38818         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
38819         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
38820         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
38821         compiling to glibc systems, set gl_cv_func_svid_putenv to
38822         "guessing yes".
38823         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
38824         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
38825         "guessing yes".
38826         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
38827         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
38828         "guessing yes".
38829         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
38830         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
38831         to "guessing yes".
38832         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
38833         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
38834         to "guessing yes".
38835         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
38836         compiling to glibc systems, set gl_cv_func_rmdir_works to
38837         "guessing yes".
38838         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
38839         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
38840         gl_cv_func_unlink_parent_fails to "guessing yes".
38841         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
38842         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
38843         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
38844         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
38845         gl_cv_func_rename_dest_works to "guessing yes".
38846         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
38847         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
38848         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
38849         compiling to glibc systems, set gl_cv_func_roundf_ieee to
38850         "guessing yes".
38851         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
38852         compiling to glibc systems, set gl_cv_func_roundl_ieee to
38853         "guessing yes".
38854         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
38855         compiling to glibc systems, set gl_cv_func_setenv_works to
38856         "guessing yes".
38857         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
38858         compiling to glibc systems, set gl_cv_func_unsetenv_works to
38859         "guessing yes".
38860         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
38861         compiling to glibc systems, set gl_cv_func_sleep_works to
38862         "guessing yes".
38863         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
38864         compiling to glibc systems, set gl_cv_func_stat_file_slash to
38865         "guessing yes".
38866         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
38867         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
38868         "guessing yes".
38869         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
38870         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
38871         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
38872         compiling to glibc systems, set gl_cv_func_truncf_ieee to
38873         "guessing yes".
38874         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
38875         compiling to glibc systems, set gl_cv_func_truncl_ieee to
38876         "guessing yes".
38877         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
38878         compiling to glibc systems, set gl_cv_func_usleep_works to
38879         "guessing yes".
38880         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
38881         compiling to glibc systems, set gl_cv_func_futimesat_works to
38882         "guessing yes".
38884 2012-05-03  Bruno Haible  <bruno@clisp.org>
38886         Say "guessing yes" or "guessing no" when cross-compiling.
38887         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
38888         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
38889         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
38890         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
38891         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
38892         am_cv_func_working_getline to "guessing yes" or "guessing no".
38893         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
38894         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
38895         (gl_FUNC_MEMMEM): When cross-compiling, set
38896         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
38897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
38898         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
38899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
38900         set gl_cv_func_strcasestr_works_always to "guessing yes" or
38901         "guessing no".
38902         (gl_FUNC_STRCASESTR): When cross-compiling, set
38903         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
38904         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
38905         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
38906         (gl_FUNC_STRSTR): When cross-compiling, set
38907         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
38908         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
38909         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
38910         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
38911         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
38913 2012-05-01  Bruno Haible  <bruno@clisp.org>
38915         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
38916         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
38917         * build-aux/reloc-ldflags: Likewise.
38918         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
38920 2012-05-01  Bruno Haible  <bruno@clisp.org>
38922         gnulib-tool: Remove transitional code.
38923         * gnulib-tool: Don't warn about --import with 0 arguments any more.
38924         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38926 2012-05-01  Bruno Haible  <bruno@clisp.org>
38928         getcwd: Fix misindentation.
38929         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
38931 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
38933         exclude: process exclude and include directives in order
38934         This restores the pre-2009 behavior, and is part of a fix of a
38935         grep bug reported by Quentin Arce in
38936         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
38937         * lib/exclude.c (struct exclude): Remove 'tail' member.
38938         (new_exclude_segment): Prepend the new segment instead of appending.
38939         Return void, since that's now more convenient.
38940         (file_pattern_matches): Renamed from excluded_file_pattern_p.
38941         (file_name_matches): Renamed from excluded_file_name_p.
38942         (file_pattern_matches, file_name_matches):
38943         Return true if the pattern matches, not if it excludes.
38944         All callers changed.
38945         (excluded_file_name): Process the list in reverse order;
38946         since the list is now reversed this restores the pre-2009 behavior.
38947         (add_exclude): Adjust to new reversed-order list.  Use local var
38948         rather than macro, for clarity.
38949         * tests/test-exclude7.sh: Adjust to corrected behavior.
38951         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
38952         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
38953         it's not possible here.  Handle the case of \ at end of pattern
38954         without dumping core.
38955         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
38957         _Noreturn: future-proof non-GNU and non-MSVC compilers
38958         * build-aux/snippet/_Noreturn.h (_Noreturn):
38959         * m4/gnulib-common.m4 (gl_COMMON_BODY):
38960         Do not define _Noreturn if __STDC_VERSION__ indicates this is
38961         C11 or later.  This is more likely to work with random future C
38962         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
38963         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
38965         exclude: handle wildcards with FNM_EXTMATCH
38966         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
38967         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
38968         comment that "has wildcards" really means "has or may have
38969         wildcards".  Simplify by avoiding the need to call strcspn.
38971 2012-04-29  Bruno Haible  <bruno@clisp.org>
38973         gnulib-tool: Fix list of authors.
38974         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
38976 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
38978         bootstrap: support Automake-NG in $buildreq
38979         * bootstrap (check_versions): Handle automake and aclocal from
38980         Automake-NG specially.  They can be specified as respectively
38981         the "automake-ng" and "aclocal-ng" requirements.
38983 2012-04-25  Eric Blake  <eblake@redhat.com>
38985         bootstrap: only force latest Makefile.in.in for gettext module
38986         * build-aux/bootstrap (with_gettext): Only install latest
38987         Makefile.in.in for projects requesting bleeding edge gettext.
38989 2012-04-22  Bruno Haible  <bruno@clisp.org>
38991         doc: Mention reason for replacement on glibc/Linux systems.
38992         * doc/posix-functions/dprintf.texi: Mention the problem with special
38993         'long double' values.
38994         * doc/posix-functions/fprintf.texi: Likewise.
38995         * doc/posix-functions/printf.texi: Likewise.
38996         * doc/posix-functions/snprintf.texi: Likewise.
38997         * doc/posix-functions/sprintf.texi: Likewise.
38998         * doc/posix-functions/vdprintf.texi: Likewise.
38999         * doc/posix-functions/vfprintf.texi: Likewise.
39000         * doc/posix-functions/vprintf.texi: Likewise.
39001         * doc/posix-functions/vsnprintf.texi: Likewise.
39002         * doc/posix-functions/vsprintf.texi: Likewise.
39003         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
39004         platforms with F_DUPFD_CLOEXEC problems.
39005         * doc/posix-functions/glob.texi: Mention which platforms are affected
39006         by the problem with symbolic links.
39007         * doc/posix-functions/linkat.texi: Mention the problem with
39008         AT_SYMLINK_FOLLOW on Linux.
39010 2012-04-22  Bruno Haible  <bruno@clisp.org>
39012         pwrite: Don't replace on all platforms.
39013         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
39015 2012-04-22  Bruno Haible  <bruno@clisp.org>
39017         rint* tests: Avoid gcc warnings.
39018         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
39019         * tests/test-rintf.c (INFINITY, NAN): Likewise.
39020         * tests/test-rintl.c (INFINITY, NAN): Likewise.
39022 2012-04-21  Bruno Haible  <bruno@clisp.org>
39024         users.txt: Update.
39025         * users.txt: Add freedink, wdiff. Update URLs for projects that have
39026         switched from CVS to git, bzr, or svn.
39028 2012-04-21  Bruno Haible  <bruno@clisp.org>
39030         Large File Support for native Windows platforms.
39032         * m4/largefile.m4 (gl_LARGEFILE): New macro.
39033         * modules/largefile (configure.ac): Require gl_LARGEFILE.
39035         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
39036         type.
39037         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
39038         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
39039         * doc/posix-headers/sys_types.texi: Mention the effect of the
39040         'largefile' module.
39042         * lib/fcntl.in.h: Add comments about off_t.
39043         * modules/fcntl-h (Depends-on): Add sys_types.
39045         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
39046         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
39047         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
39048         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
39049         * modules/unistd (Depends-on): Add sys_types.
39050         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
39052         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
39053         instead of lseek.
39054         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
39055         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
39056         * modules/lseek (Depends-on): Add sys_types.
39058         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
39059         msvc-nothrow.h.
39060         (SetFileSize): New function.
39061         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
39062         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
39063         if Large File Support is requested.
39064         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
39065         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
39067         * lib/stdio.in.h: Add comments about off_t.
39068         * modules/stdio (Depends-on): Add sys_types.
39070         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
39071         instead of ftello.
39072         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
39073         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
39074         (gl_PREREQ_FTELLO): New macro.
39075         * modules/ftello (Depends-on): Add sys_types.
39076         (configure.ac): Incoke gl_PREREQ_FTELLO.
39078         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
39079         instead of fseeko.
39080         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
39081         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
39082         (gl_PREREQ_FSEEKO): New macro.
39083         * modules/fseeko (Depends-on): Add sys_types.
39084         (configure.ac): Invoke gl_PREREQ_FSEEKO.
39086         * lib/sys_stat.in.h: Add comments about off_t.
39087         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
39088         64-bit integer for st_size in 'struct stat'.
39089         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
39090         Define _GL_WINDOWS_64_BIT_ST_SIZE.
39091         * modules/sys_stat (Depends-on): Add sys_types.
39092         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
39094         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
39095         instead of stat or _stat.
39097         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
39098         'struct _stati64' instead of fstat and 'struct stat'.
39099         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
39100         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
39102         Reported by Ray Satiro <raysatiro@yahoo.com>.
39104 2012-04-19  Eric Blake  <eblake@redhat.com>
39106         bootstrap: accommodate older libtool
39107         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
39108         Reported by Daniel P. Berrange.
39110 2012-04-19  Jim Meyering  <meyering@redhat.com>
39112         announce-gen: avoid failure due to lack of Digest::SHA1
39113         Even with the preferred Digest::SHA available, this script
39114         would fail when the backup module, Digest::SHA1, was not installed.
39115         * build-aux/announce-gen: Quote the conditional use of "use".
39116         Reported by Reuben Thomas in:
39117         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
39119         bootstrap: don't let a user's CDPATH setting affect this script
39120         When CDPATH is set, cd will sometimes generate output.
39121         When "cd" is run in a subshell whose output matters, that
39122         surprising-to-some output can cause malfunction.
39123         Unsetting CDPATH turns off this shell "feature."
39124         * build-aux/bootstrap (CDPATH): Unset.
39125         Reported by Reuben Thomas in:
39126         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
39127         and inspired by his patch here:
39128         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
39130 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
39131         and Jim Meyering  <meyering@redhat.com>
39133         maint.mk: catch "see @xref{}" and similar
39134         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
39135         prohibit "See also @xref{", "Also see @pxref{", and similar.
39137 2012-04-16  Jim Meyering  <meyering@redhat.com>
39139         bootstrap: really use gnulib's po/Makefile.in.in
39140         * build-aux/bootstrap: Correct the source file name in previous change.
39141         Reported by Akim Demaille.
39143         configmake: correct minor inconsistency in Makefile rule
39144         * modules/configmake (Makefile.am): All other rules like this one
39145         run the final "mv -f ..." in the same backslash-continued command
39146         as the one that does everything else.  This one put the mv -f ...
39147         command on a separate, non-backslash-continued line.
39148         Make it like the others.
39150         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
39151         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
39152         the one from gettext.  Reported by Akim Demaille.
39154 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
39156         Fix recursion of install-* into po directories.
39157         Bison's install-pdf bug reported by Hans Aberg at
39158         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
39159         * build-aux/po/Makefile.in.in (install-dvi, install-html)
39160         (install-info, install-pdf, install-ps): New targets.
39162 2012-04-16  Jim Meyering  <meyering@redhat.com>
39164         maint: avoid spurious "make sc_maint" failure
39165         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
39166         exempt all *.class file names, for lib/javaversion.class.
39168 2012-04-15  Bruno Haible  <bruno@clisp.org>
39170         lseek: Make configure test independent of environment.
39171         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
39172         Windows, we know that lseek() on pipes is broken; skip the runtime
39173         test.
39175 2012-04-14  Bruno Haible  <bruno@clisp.org>
39177         stat: Bypass buggy override in mingw64.
39178         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
39179         * lib/stat.c (stat) [mingw64]: Define to _stat.
39180         * doc/posix-functions/stat.texi: Mention mingw64 bug.
39182 2012-04-14  Bruno Haible  <bruno@clisp.org>
39184         pathmax: Fix compilation error on MSVC 9.
39185         * modules/pathmax (Depends-on): Add unistd.
39187 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
39189         README: document pointer comparison assumption
39190         * README (Portability guidelines): Document assumption about
39191         pointer comparisons, in response to a recent bug-gnulib comment by
39192         Jeffrey Kegler.
39194 2012-04-12  Bruno Haible  <bruno@clisp.org>
39196         Tests for module 'getrusage'.
39197         * modules/getrusage-tests: New file.
39198         * tests/test-getrusage.c: New file.
39200         New module 'getrusage'.
39201         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
39202         warn-on-use.h.
39203         (getrusage): New declaration.
39204         * lib/getrusage.c: New file.
39205         * m4/getrusage.m4: New file.
39206         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
39207         is declared.
39208         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
39209         HAVE_GETRUSAGE.
39210         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
39211         snippet/c++defs, snippet/warn-on-use.
39212         (Makefile.am): Update generation of sys/resource.h. Substitute
39213         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
39214         * modules/getrusage: New file.
39215         * doc/posix-functions/getrusage.texi: Mention the new module.
39217 2012-04-12  Bruno Haible  <bruno@clisp.org>
39219         Tests for module 'sys_resource'.
39220         * modules/sys_resource-tests: New file.
39221         * tests/test-sys_resource.c: New file.
39223         New module 'sys_resource'.
39224         * lib/sys_resource.in.h: New file.
39225         * m4/sys_resource_h.m4: New file.
39226         * modules/sys_resource: New file.
39227         * doc/posix-headers/sys_resource.texi: Mention the new module.
39229 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
39231         ioctl: Fix compilation error on mingw.
39232         * lib/ioctl.c: Include <windows.h>.
39233         Also reported by Ray Satiro <raysatiro@yahoo.com>.
39235 2012-04-04  Jim Meyering  <meyering@redhat.com>
39237         regex: correct #pragma guard expression
39238         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
39239         not 4.3.  Correct its cpp guard expression.
39241 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39243         regex: remove unnecessary type punning
39244         Problem reported by Vladimir Serbinenko in
39245         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
39246         * lib/regex.h (struct re_pattern_buffer): Change the type of
39247         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
39248         Fix comment to match code.
39249         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
39250         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
39251         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39252         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
39253         (set_regs):
39254         Omit no-longer-necessary casts.
39256 2012-04-03  Bruno Haible  <bruno@clisp.org>
39258         Tests for module 'ilogbl'.
39259         * modules/ilogbl-tests: New file.
39260         * tests/test-ilogbl.c: New file.
39262         New module 'ilogbl'.
39263         * lib/math.in.h (ilogbl): New declaration.
39264         * lib/ilogbl.c: New file.
39265         * m4/ilogbl.m4: New file.
39266         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
39267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
39268         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
39269         Split sed invocation, to avoid the limit of 100 substitutions of
39270         HP-UX 'sed'.
39271         * modules/ilogbl: New file.
39272         * tests/test-math-c++.cc: Check the declaration of ilogbl.
39273         * doc/posix-functions/ilogbl.texi: Mention the new module.
39275 2012-04-03  Bruno Haible  <bruno@clisp.org>
39277         Tests for module 'ilogbf'.
39278         * modules/ilogbf-tests: New file.
39279         * tests/test-ilogbf.c: New file.
39281         New module 'ilogbf'.
39282         * lib/math.in.h (ilogbf): New declaration.
39283         * lib/ilogbf.c: New file.
39284         * m4/ilogbf.m4: New file.
39285         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
39286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
39287         REPLACE_ILOGBF.
39288         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
39289         REPLACE_ILOGBF.
39290         * modules/ilogbf: New file.
39291         * tests/test-math-c++.cc: Check the declaration of ilogbf.
39292         * doc/posix-functions/ilogbf.texi: Mention the new module.
39294 2012-04-03  Bruno Haible  <bruno@clisp.org>
39296         Tests for module 'ilogb'.
39297         * modules/ilogb-tests: New file.
39298         * tests/test-ilogb.c: New file.
39299         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
39300         tests/test-logb-ieee.h.
39302         New module 'ilogb'.
39303         * lib/math.in.h (ilogb): New declaration.
39304         * lib/ilogb.c: New file.
39305         * m4/ilogb.m4: New file.
39306         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
39307         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
39308         REPLACE_ILOGB.
39309         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
39310         REPLACE_ILOGB.
39311         * modules/ilogb: New file.
39312         * tests/test-math-c++.cc: Check the declaration of ilogb.
39313         * doc/posix-functions/ilogb.texi: Mention the new module.
39315 2012-04-03  Bruno Haible  <bruno@clisp.org>
39317         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
39318         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
39319         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
39320         (main): Check their values.
39321         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
39322         problem.
39324 2012-04-03  Bruno Haible  <bruno@clisp.org>
39326         Tests for module 'logbl-ieee'.
39327         * modules/logbl-ieee-tests: New file.
39328         * tests/test-logbl-ieee.c: New file.
39330         New module 'logbl-ieee'.
39331         * modules/logbl-ieee: New file.
39333         Tests for module 'logb-ieee'.
39334         * modules/logb-ieee-tests: New file.
39335         * tests/test-logb-ieee.c: New file.
39337         New module 'logb-ieee'.
39338         * modules/logb-ieee: New file.
39340         Tests for module 'logbf-ieee'.
39341         * modules/logbf-ieee-tests: New file.
39342         * tests/test-logbf-ieee.c: New file.
39343         * tests/test-logb-ieee.h: New file.
39345         New module 'logbf-ieee'.
39346         * modules/logbf-ieee: New file.
39348 2012-04-03  Bruno Haible  <bruno@clisp.org>
39350         Tests for module 'logbl'.
39351         * modules/logbl-tests: New file.
39352         * tests/test-logbl.c: New file.
39354         New module 'logbl'.
39355         * lib/math.in.h (logbl): New declaration.
39356         * lib/logbl.c: New file.
39357         * m4/logbl.m4: New file.
39358         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
39359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
39360         REPLACE_LOGBL.
39361         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
39362         REPLACE_LOGBL.
39363         * modules/logbl: New file.
39364         * tests/test-math-c++.cc: Check the declaration of logbl.
39365         * doc/posix-functions/logbl.texi: Mention the new module.
39367 2012-04-02  Bruno Haible  <bruno@clisp.org>
39369         Tests for module 'logbf'.
39370         * modules/logbf-tests: New file.
39371         * tests/test-logbf.c: New file.
39373         New module 'logbf'.
39374         * lib/math.in.h (logbf): New declaration.
39375         * lib/logbf.c: New file.
39376         * m4/logbf.m4: New file.
39377         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
39378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
39379         REPLACE_LOGBF.
39380         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
39381         REPLACE_LOGBF.
39382         * modules/logbf: New file.
39383         * tests/test-math-c++.cc: Check the declaration of logbf.
39384         * doc/posix-functions/logbf.texi: Mention the new module.
39386 2012-04-02  Bruno Haible  <bruno@clisp.org>
39388         logb tests: More tests.
39389         * tests/test-logb.h: New file, based on tests/test-logb.c and
39390         tests/test-frexp.h.
39391         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
39392         (main): Just invoke test_function.
39393         * modules/logb-tests (Files): Add tests/test-logb.h,
39394         tests/minus-zero.h, tests/randomd.c.
39395         (Makefile.am): Add randomd.c to test_logb_SOURCES.
39397         logb: Provide replacement and workarounds.
39398         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
39399         is 1.
39400         * lib/logb.c: New file.
39401         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
39402         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
39403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
39404         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
39405         * modules/logb (Files): Add lib/logb.c.
39406         (Depends-on): Add isfinite, frexp, isnand.
39407         (configure.ac): Compile the replacement code logb.c if needed.
39408         * tests/test-math-c++.cc: Check the declaration of logb.
39409         * doc/posix-functions/logb.texi: Mention the replacement and the bug
39410         with subnormal numbers.
39412 2012-04-02  Bruno Haible  <bruno@clisp.org>
39414         log10* tests: Speed up.
39415         * tests/test-log10.h (test_function): Reduce amount of random numbers
39416         to test.
39418 2012-04-01  Bruno Haible  <bruno@clisp.org>
39420         logf-ieee: Fix test whether logf works.
39421         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
39423 2012-04-01  Bruno Haible  <bruno@clisp.org>
39425         log10l: Work around log10l-ieee test failure on IRIX 6.5.
39426         * lib/log10l.c: Include <float.h>
39427         (log10l): On IRIX, normalize the +Infinity value.
39428         * modules/log10l (Depends-on): Add 'float'.
39429         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
39430         +Infinity.
39432         log10f-ieee: Work around test failure on NetBSD 5.1.
39433         * m4/log10f-ieee.m4: New file.
39434         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
39435         test whether log10f works with a negative argument. Replace it if not.
39436         * lib/log10f.c (log10f): For negative arguments, return NaN.
39437         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
39438         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
39439         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
39441         log10f-ieee: Work around test failure on Solaris 9.
39442         * modules/log10f-ieee (Depends-on): Add log10-ieee.
39443         (configure.ac): Require gl_FUNC_LOG10F.
39445         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39446         * m4/log10-ieee.m4: New file.
39447         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
39448         whether log10 works with a negative argument. Replace it if not.
39449         * lib/log10.c (log10): For negative arguments, return NaN.
39450         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
39451         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
39452         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
39454         Tests for module 'log10l-ieee'.
39455         * modules/log10l-ieee-tests: New file.
39456         * tests/test-log10l-ieee.c: New file.
39458         New module 'log10l-ieee'.
39459         * modules/log10l-ieee: New file.
39461         Tests for module 'log10-ieee'.
39462         * modules/log10-ieee-tests: New file.
39463         * tests/test-log10-ieee.c: New file.
39465         New module 'log10-ieee'.
39466         * modules/log10-ieee: New file.
39468         Tests for module 'log10f-ieee'.
39469         * modules/log10f-ieee-tests: New file.
39470         * tests/test-log10f-ieee.c: New file.
39471         * tests/test-log10-ieee.h: New file.
39473         New module 'log10f-ieee'.
39474         * modules/log10f-ieee: New file.
39476 2012-04-01  Bruno Haible  <bruno@clisp.org>
39478         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
39479         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
39480         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
39481         workaround.
39482         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
39483         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
39484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
39485         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
39486         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
39487         (Depends-on): Update conditions.
39488         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
39489         IRIX 6.5, OSF/1 5.1 problems.
39491 2012-04-01  Bruno Haible  <bruno@clisp.org>
39493         log10f: Work around OSF/1 5.1 bug.
39494         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
39495         * lib/log10f.c (log10f): If logf exists, use it and provide just the
39496         workaround.
39497         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
39498         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
39499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
39500         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
39501         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
39502         (Depends-on): Update conditions.
39503         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
39505 2012-04-01  Bruno Haible  <bruno@clisp.org>
39507         log10: Work around OSF/1 5.1 bug.
39508         * lib/math.in.h (log10): New declaration.
39509         * lib/log10.c: New file.
39510         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
39511         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
39512         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
39513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
39514         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
39515         * modules/log10 (Files): Add lib/log10.c.
39516         (Depends-on): Add math.
39517         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
39518         * tests/test-math-c++.cc: Check the declaration of log10.
39519         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
39521 2012-03-31  Bruno Haible  <bruno@clisp.org>
39523         log10l tests: More tests.
39524         * modules/log10l-tests (Files): Add tests/test-log10l.h,
39525         tests/minus-zero.h, tests/randoml.c.
39526         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
39527         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
39528         (main): Invoke test_function.
39530         log10f tests: More tests.
39531         * modules/log10f-tests (Files): Add tests/test-log10.h,
39532         tests/minus-zero.h, tests/randomf.c.
39533         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
39534         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
39535         (main): Invoke test_function.
39537         log10 tests: More tests.
39538         * tests/test-log10.h: New file.
39539         * modules/log10-tests (Files): Add tests/test-log10.h,
39540         tests/minus-zero.h, tests/randomd.c.
39541         (Makefile.am): Add randomd.c to test_log10_SOURCES.
39542         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
39543         (main): Invoke test_function.
39545 2012-03-31  Simon Josefsson  <simon@josefsson.org>
39547         fflush: Fix syntax error.
39548         * lib/fflush.c: Include unused-parameter.h, needed for
39549         _GL_UNUSED_PARAMETER.
39550         * modules/fflush (Depends-on): Add snippet/unused-parameter.
39552 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39554         regex: pacify GCC when compiling GRUB
39555         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
39556         a diagnostic.  Reported by Vladimir Serbinenko in
39557         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
39559 2012-03-29  Eric Blake  <eblake@redhat.com>
39561         stdio: don't assume gets any more
39562         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
39563         support.
39564         * modules/stdio (Makefile.am): Likewise.
39565         * lib/stdio-read.c (gets): Likewise.
39566         * tests/test-stdio-c++.cc: Likewise.
39567         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
39568         * lib/stdio.in.h (gets): Make warning occur in more places.
39569         * doc/posix-functions/gets.texi (gets): Update documentation.
39570         Reported by Christer Solskogen.
39572         maint.mk: fix syntax checks without exclusions
39573         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
39574         Reported by Daniel P. Berrange.
39576         strerror_r: avoid compiler warning
39577         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
39578         level.
39580         fflush: avoid compiler warning
39581         * lib/fflush.c (update_fpos_cache): Mark variables that are
39582         potentially unused.
39584 2012-03-25  Bruno Haible  <bruno@clisp.org>
39586         Tests for module 'localeconv'.
39587         * modules/localeconv-tests: New file.
39588         * tests/test-localeconv.c: New file.
39590         New module 'localeconv'.
39591         * lib/locale.in.h (localeconv): New declaration.
39592         * lib/localeconv.c: New file.
39593         * m4/localeconv.m4: New file.
39594         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
39595         REPLACE_LOCALECONV.
39596         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
39597         REPLACE_LOCALECONV.
39598         * modules/localeconv: New file.
39599         * modules/nl_langinfo (Depends-on): Add localeconv.
39600         * modules/human (Depends-on): Likewise.
39601         * doc/posix-functions/localeconv.texi: Mention the new module.
39603 2012-03-25  Bruno Haible  <bruno@clisp.org>
39605         locale: Provide a complete 'struct lconv'.
39606         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39607         'struct lconv' does not contain int_p_cs_precedes.
39608         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39609         * doc/posix-headers/locale.texi: Update.
39611         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
39612         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
39613         * doc/posix-headers/locale.texi: Update.
39615         locale: Provide a working 'struct lconv'.
39616         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
39617         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39618         'struct lconv' does not even contain decimal_point.
39619         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
39620         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
39621         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39622         * doc/posix-headers/locale.texi: Mention the problems with
39623         'struct lconv'.
39624         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
39626 2012-03-24  Bruno Haible  <bruno@clisp.org>
39628         Enable common subexpression optimization in GCC.
39629         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
39630         macros.
39631         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
39632         GCC attribute 'const'.
39633         (uc_locale_language): Declare with GCC attribute 'pure'.
39634         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
39635         with GCC attribute 'const'.
39636         * lib/unictype.in.h (uc_is_general_category_withtable,
39637         uc_combining_class, uc_combining_class_name,
39638         uc_combining_class_long_name, uc_bidi_class_name,
39639         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
39640         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
39641         uc_decimal_value, uc_digit_value, uc_numeric_value,
39642         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
39643         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
39644         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
39645         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
39646         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
39647         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
39648         Declare with GCC attribute 'const'.
39649         (uc_general_category_name, uc_general_category_long_name,
39650         uc_general_category_byname, uc_general_category,
39651         uc_is_general_category, uc_combining_class_byname,
39652         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
39653         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
39654         Declare with GCC attribute 'pure'.
39655         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
39656         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
39657         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
39658         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
39659         with GCC attribute 'pure'.
39660         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
39661         'const'.
39662         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
39663         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
39664         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
39665         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
39666         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
39667         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
39668         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
39669         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
39670         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
39671         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
39672         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
39673         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
39674         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
39675         GCC attribute 'pure'.
39676         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
39677         'const'.
39678         * lib/uniwidth.in.h (uc_width): Simplify declaration.
39679         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
39680         u32_strwidth): Declare with GCC attribute 'pure'.
39682         Enable common subexpression optimization in GCC.
39683         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39684         (alphasort): Declare with GCC attribute 'pure'.
39685         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39686         (atoll): Declare with GCC attribute 'pure'.
39687         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39688         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39689         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
39690         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39691         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
39692         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
39693         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
39695 2012-03-24  Bruno Haible  <bruno@clisp.org>
39697         gnulib-tool: Avoid unintended error output from 'cmp'.
39698         * gnulib-tool (func_add_file, func_update_file, func_import): Use
39699         "cmp -s", not "cmp > /dev/null".
39701 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
39703         gnulib-tool: fix imprecise comments w.r.t. an automake bug
39705         It's not just Automake versions < 1.9b that creates an empty
39706         pkgdatadir at installation time if pkgdata_DATA is specified
39707         to empty; modern automake versions do this as well, at least
39708         until automake 1.11.4 (not yet released at the moment of writing,
39709         but soon to appear).  That behaviour was generally considered a
39710         feature rather than a bug, at least until this discussion:
39711         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
39713         See also automake bugs #10997 and #11030.
39715         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
39716         reference to relevant automake bug numbers.
39717         (func_emit_tests_Makefile_am): Likewise.
39719 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39721         announce-gen: use Digest::SHA when possible
39722         * build-aux/announce-gen: Use Digest::SHA when possible, falling
39723         back to Digest::SHA1 if necessary.
39725 2012-03-20  Jim Meyering  <meyering@redhat.com>
39727         tests: avoid gcc warnings about argv vs. const initializers
39728         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
39729         warnings about discarding 'const' qualifier from pointer target type.
39730         * tests/test-posix_spawn2.c (main): Likewise.
39732 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39734         README-release: simplify slightly
39735         * top/README-release: Run "git checkout master" only once.
39737 2012-03-15  Mark Wielaard  <mark@klomp.org>
39739         git-merge-changelog: add specific example on how to use with hg.
39740         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
39742 2012-03-18  Mark Wielaard  <mark@klomp.org>
39744         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
39746 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
39748         git-version-gen: don't let "prefix" envvar cause trouble
39749         * build-aux/git-version-gen (prefix): Initialize properly,
39750         so as not to use a value specified via the environment.
39751         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
39753 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39755         regex: diagnose too-large repeat counts in EREs
39756         Previously, the code did not diagnose the too-large repeat count
39757         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
39758         as if it were 'b\{1000000000}', which is unexpected.
39759         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
39760         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
39761         is a reasonable one for this problem.  Another option would be to
39762         create a new REG_OVERFLOW error for repeat counts that are too large.
39763         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
39764         count is too large, so that the caller can distinguish the two cases.
39765         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
39766         "Too large" return code, and that repeat counts are one example of this.
39768 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39770         doc: some glibc x32 integer width issues
39771         * doc/posix-headers/sys_types.texi (sys/types.h):
39772         * doc/posix-headers/time.texi (time.h):
39773         Mention that glibc x32 does not conform to POSIX in a couple of
39774         areas related to integer widths.
39776 2012-03-15  Bruno Haible  <bruno@clisp.org>
39778         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
39779         * lib/fma.c (VOLATILE): New macro.
39780         (FUNC): Use it to work around a GCC compiler bug.
39782 2012-03-13  Bruno Haible  <bruno@clisp.org>
39784         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39785         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
39786         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
39787         REPLACE_HYPOTL to 1.
39788         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
39790 2012-03-13  Bruno Haible  <bruno@clisp.org>
39792         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39793         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
39794         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
39795         REPLACE_REMAINDERL to 1.
39796         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
39797         bug.
39799 2012-03-13  Bruno Haible  <bruno@clisp.org>
39801         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39802         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
39803         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
39804         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
39805         too big rounding errors.
39806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
39807         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
39808         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
39809         (Depends-on): Update conditions.
39810         * tests/test-sqrtl.c (my_ldexpl): New function.
39811         (main): Add test of a particular value.
39812         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39814 2012-03-13  Pádraig Brady  <P@draigBrady.com>
39816         doc: Update timer_* platform portability notes.
39817         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
39818         that always return ENOSYS.
39819         * doc/posix-functions/timer_delete.texi: Likewise.
39820         * doc/posix-functions/timer_gettime.texi: Likewise.
39821         * doc/posix-functions/timer_settime.texi: Likewise.
39823 2012-03-13  Bruno Haible  <bruno@clisp.org>
39825         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39826         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
39827         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
39828         REPLACE_CBRTL to 1.
39829         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39831 2012-03-13  Bruno Haible  <bruno@clisp.org>
39833         remainderl: Avoid compilation error on AIX >= 5.2.
39834         * lib/math.in.h (remainderl): Undefine macro from the system header.
39836 2012-03-13  Bruno Haible  <bruno@clisp.org>
39838         Avoid compilation errors with MSVC option -fp:strict.
39839         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
39840         * lib/cbrtf.c: Likewise.
39841         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39843 2012-03-12  Bruno Haible  <bruno@clisp.org>
39845         uninorm: Don't crash in out-of-memory conditions.
39846         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
39847         gracefully.
39848         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
39849         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
39851 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
39853         quote: fix syntax-check
39854         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
39855         also exports quote_quoting_options.
39857 2012-03-12  Simon Josefsson  <simon@josefsson.org>
39859         Collapse list of copyright years to ranges.  See
39860         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
39861         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
39862         build-aux/csharpexec.sh.in, build-aux/gnupload,
39863         build-aux/install-reloc, build-aux/javacomp.sh.in,
39864         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
39865         build-aux/move-if-change, build-aux/reloc-ldflags,
39866         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
39868 2012-03-11  Bruno Haible  <bruno@clisp.org>
39870         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39871         * m4/log2f-ieee.m4: New file.
39872         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
39873         whether log2f works with a minus zero argument. Replace it if not.
39874         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
39875         (Depends-on): Add log2-ieee.
39876         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
39877         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
39879         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39880         * m4/log2-ieee.m4: New file.
39881         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
39882         whether log2 works with a minus zero argument. Replace it if not.
39883         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
39884         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
39885         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
39887         Tests for module 'log2l-ieee'.
39888         * modules/log2l-ieee-tests: New file.
39889         * tests/test-log2l-ieee.c: New file.
39891         New module 'log2l-ieee'.
39892         * modules/log2l-ieee: New file.
39894         Tests for module 'log2-ieee'.
39895         * modules/log2-ieee-tests: New file.
39896         * tests/test-log2-ieee.c: New file.
39898         New module 'log2-ieee'.
39899         * modules/log2-ieee: New file.
39901         Tests for module 'log2f-ieee'.
39902         * modules/log2f-ieee-tests: New file.
39903         * tests/test-log2f-ieee.c: New file.
39904         * tests/test-log2-ieee.h: New file.
39906         New module 'log2f-ieee'.
39907         * modules/log2f-ieee: New file.
39909 2012-03-11  Bruno Haible  <bruno@clisp.org>
39911         Tests for module 'log2l'.
39912         * modules/log2l-tests: New file.
39913         * tests/test-log2l.c: New file.
39915         New module 'log2l'.
39916         * lib/math.in.h (log2l): New declaration.
39917         * lib/log2l.c: New file.
39918         * m4/log2l.m4: New file.
39919         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
39920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
39921         REPLACE_LOG2L.
39922         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
39923         REPLACE_LOG2L.
39924         * modules/log2l: New file.
39925         * tests/test-math-c++.cc: Check the declaration of log2l.
39926         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
39927         and OSF/1 problems.
39929 2012-03-11  Bruno Haible  <bruno@clisp.org>
39931         Tests for module 'log2f'.
39932         * modules/log2f-tests: New file.
39933         * tests/test-log2f.c: New file.
39935         New module 'log2f'.
39936         * lib/math.in.h (log2f): New declaration.
39937         * lib/log2f.c: New file.
39938         * m4/log2f.m4: New file.
39939         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
39940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
39941         REPLACE_LOG2F.
39942         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
39943         REPLACE_LOG2F.
39944         * modules/log2f: New file.
39945         * tests/test-math-c++.cc: Check the declaration of log2f.
39946         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
39947         and OSF/1 and Cygwin problems.
39949 2012-03-11  Bruno Haible  <bruno@clisp.org>
39951         Tests for module 'log2'.
39952         * modules/log2-tests: New file.
39953         * tests/test-log2.c: New file.
39954         * tests/test-log2.h: New file.
39956         New module 'log2'.
39957         * lib/math.in.h (log2): New declaration.
39958         * lib/log2.c: New file.
39959         * m4/log2.m4: New file.
39960         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
39961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
39962         REPLACE_LOG2.
39963         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
39964         REPLACE_LOG2.
39965         * modules/log2: New file.
39966         * tests/test-math-c++.cc: Check the declaration of log2.
39967         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
39968         and OSF/1 and Cygwin problems.
39970 2012-03-11  Bruno Haible  <bruno@clisp.org>
39972         exp2* tests: More tests.
39973         * tests/test-exp2.h (test_function): Test all integral arguments that
39974         don't need to overflow or denormalized numbers.
39975         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
39976         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
39977         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
39979 2012-03-10  Bruno Haible  <bruno@clisp.org>
39981         log1pl-ieee: Work around test failure on AIX 7.1.
39982         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
39984         log1pl-ieee: Work around test failure on IRIX 6.5.
39985         * m4/log1pl-ieee.m4: New file.
39986         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
39987         test whether log1pl works with a minus zero argument. Replace it if
39988         not.
39989         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
39990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
39991         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
39992         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
39993         (Depends-on): Update conditions.
39994         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39995         m4/signbit.m4.
39996         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
39997         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
39999         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
40000         * m4/log1pf-ieee.m4: New file.
40001         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
40002         test whether log1pf works with a minus zero argument. Replace it if
40003         not.
40004         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
40005         m4/signbit.m4.
40006         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
40007         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
40009         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
40010         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
40011         (configure.ac): Require gl_FUNC_LOG1PF.
40013         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
40014         * m4/log1p-ieee.m4: New file.
40015         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
40016         whether log1p works with a minus zero argument. Replace it if not.
40017         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
40018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
40019         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
40020         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
40021         (Depends-on): Update conditions.
40022         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40023         m4/signbit.m4.
40024         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
40025         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
40027         Tests for module 'log1pl-ieee'.
40028         * modules/log1pl-ieee-tests: New file.
40029         * tests/test-log1pl-ieee.c: New file.
40031         New module 'log1pl-ieee'.
40032         * modules/log1pl-ieee: New file.
40034         Tests for module 'log1p-ieee'.
40035         * modules/log1p-ieee-tests: New file.
40036         * tests/test-log1p-ieee.c: New file.
40038         New module 'log1p-ieee'.
40039         * modules/log1p-ieee: New file.
40041         Tests for module 'log1pf-ieee'.
40042         * modules/log1pf-ieee-tests: New file.
40043         * tests/test-log1pf-ieee.c: New file.
40044         * tests/test-log1p-ieee.h: New file.
40046         New module 'log1pf-ieee'.
40047         * modules/log1pf-ieee: New file.
40049 2012-03-10  Bruno Haible  <bruno@clisp.org>
40051         Tests for module 'log1pl'.
40052         * modules/log1pl-tests: New file.
40053         * tests/test-log1pl.c: New file.
40055         New module 'log1pl'.
40056         * lib/math.in.h (log1pl): New declaration.
40057         * lib/log1pl.c: New file.
40058         * m4/log1pl.m4: New file.
40059         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
40060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
40061         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
40062         * modules/log1pl: New file.
40063         * tests/test-math-c++.cc: Check the declaration of log1pl.
40064         * doc/posix-functions/log1pl.texi: Mention the new module.
40066 2012-03-10  Bruno Haible  <bruno@clisp.org>
40068         Tests for module 'log1pf'.
40069         * modules/log1pf-tests: New file.
40070         * tests/test-log1pf.c: New file.
40072         New module 'log1pf'.
40073         * lib/math.in.h (log1pf): New declaration.
40074         * lib/log1pf.c: New file.
40075         * m4/log1pf.m4: New file.
40076         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
40077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
40078         REPLACE_LOG1PF.
40079         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
40080         REPLACE_LOG1PF.
40081         * modules/log1pf: New file.
40082         * tests/test-math-c++.cc: Check the declaration of log1pf.
40083         * doc/posix-functions/log1pf.texi: Mention the new module.
40085 2012-03-10  Bruno Haible  <bruno@clisp.org>
40087         log1p tests: More tests.
40088         * tests/test-log1p.h: New file.
40089         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
40090         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
40091         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
40092         (main): Invoke test_function.
40094         log1p: Provide replacement for Minix and MSVC.
40095         * lib/math.in.h (log1p): New declaration.
40096         * lib/log1p.c: New file.
40097         * m4/log1p.m4: New file.
40098         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
40099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
40100         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
40101         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
40102         (Depends-on): Add math, isnand, log, round.
40103         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
40104         HAVE_LOG1P is 0.
40105         * tests/test-math-c++.cc: Check the declaration of log1p.
40106         * doc/posix-functions/log1p.texi: Mention the replacement.
40108 2012-03-10  Bruno Haible  <bruno@clisp.org>
40110         math tests: Small simplification.
40111         * tests/test-exp.h (test_function): Use the same err_bound for
40112         'double' on platforms with sizeof (long double) == sizeof (double)
40113         than on platforms with sizeof (long double) > sizeof (double).
40114         * tests/test-exp2.h (test_function): Likewise.
40115         * tests/test-expm1.h (test_function): Likewise.
40116         * tests/test-log.h (test_function): Likewise.
40118 2012-03-10  Bruno Haible  <bruno@clisp.org>
40120         Fix some comments.
40121         * lib/expl.c: Fix an ambiguous comment.
40122         * lib/expm1.c: Likewise.
40123         * lib/expm1l.c: Likewise.
40124         * lib/exp2.c: Likewise.
40125         * lib/exp2l.c: Likewise.
40127 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
40129         regex: allow inclusion of <regex.h> before <limits.h>
40130         Without this patch, portable programs had to include <limits.h> before
40131         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
40132         I ran into this problem with a test version of GNU grep on Solaris 8.
40133         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
40134         This is done conditionally so that this change can be merged
40135         back to glibc.
40136         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
40137         using the included regex.
40139         fts: depend on fdopendir
40140         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
40141         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
40142         problem was introduced when fdopendir was split out.
40144 2012-03-10  Bruno Haible  <bruno@clisp.org>
40146         Remove unused variables.
40147         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
40148         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40150 2012-03-10  Bruno Haible  <bruno@clisp.org>
40152         isnanf-nolibm: Fix last commit.
40153         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
40155         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
40156         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
40158 2012-03-10  Bruno Haible  <bruno@clisp.org>
40160         logf-ieee: Work around test failure on NetBSD 5.1.
40161         * m4/logf-ieee.m4: New file.
40162         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
40163         whether logf works with a negative argument. Replace it if not.
40164         * lib/logf.c (logf): For negative arguments, return NaN.
40165         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
40166         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
40167         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
40169         logf-ieee: Work around test failure on Solaris 9.
40170         * modules/logf-ieee (Depends-on): Add log-ieee.
40171         (configure.ac): Require gl_FUNC_LOGF.
40173         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40174         * m4/log-ieee.m4: New file.
40175         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
40176         log works with a negative argument. Replace it if not.
40177         * lib/log.c (log): For negative arguments, return NaN.
40178         * modules/log-ieee (Files): Add m4/log-ieee.m4.
40179         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
40180         * doc/posix-functions/log.texi: Mention the log-ieee module.
40182         Tests for module 'logl-ieee'.
40183         * modules/logl-ieee-tests: New file.
40184         * tests/test-logl-ieee.c: New file.
40186         New module 'logl-ieee'.
40187         * modules/logl-ieee: New file.
40189         Tests for module 'log-ieee'.
40190         * modules/log-ieee-tests: New file.
40191         * tests/test-log-ieee.c: New file.
40193         New module 'log-ieee'.
40194         * modules/log-ieee: New file.
40196         Tests for module 'logf-ieee'.
40197         * modules/logf-ieee-tests: New file.
40198         * tests/test-logf-ieee.c: New file.
40199         * tests/test-log-ieee.h: New file.
40201         New module 'logf-ieee'.
40202         * modules/logf-ieee: New file.
40204 2012-03-10  Bruno Haible  <bruno@clisp.org>
40206         log: Fix bug introduced on 2012-03-09.
40207         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
40209 2012-03-10  Pádraig Brady  <P@draigBrady.com>
40211         timer-time: link explicitly with pthreads on glibc
40212         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
40213         to support static linking, when newer glibc is
40214         detected, as that contains pthread emulation of
40215         POSIX timer functions where required.
40216         * modules/timer-time: Depend on threadlib to
40217         pull in the appropriate library to link.
40219 2012-03-10  Bruno Haible  <bruno@clisp.org>
40221         log* tests: More tests.
40222         * tests/test-log.h: New file.
40223         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
40224         (main): Invoke test_function.
40225         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
40226         (main): Invoke test_function.
40227         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
40228         (main): Invoke test_function.
40229         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40230         tests/randomd.c.
40231         (Makefile.am): Add randomd.c to test_log_SOURCES.
40232         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40233         tests/randomf.c.
40234         (Makefile.am): Add randomf.c to test_logf_SOURCES.
40235         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40236         tests/randoml.c.
40237         (Depends-on): Add 'float'.
40238         (Makefile.am): Add randoml.c to test_logl_SOURCES.
40240 2012-03-09  Bruno Haible  <bruno@clisp.org>
40242         logl: Work around OSF/1 5.1 bug.
40243         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
40244         * lib/logl.c (logl): If logl exists, use it and provide just the
40245         workaround.
40246         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
40247         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
40248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
40249         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
40250         * modules/logl (configure.ac): Consider REPLACE_LOGL.
40251         (Depends-on): Update conditions.
40252         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
40254 2012-03-09  Bruno Haible  <bruno@clisp.org>
40256         logf: Work around OSF/1 5.1 bug.
40257         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
40258         * lib/logf.c (logf): If logf exists, use it and provide just the
40259         workaround.
40260         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
40261         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
40262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
40263         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
40264         * modules/logf (configure.ac): Consider REPLACE_LOGF.
40265         (Depends-on): Update conditions.
40266         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
40268 2012-03-09  Bruno Haible  <bruno@clisp.org>
40270         log: Work around OSF/1 5.1 bug.
40271         * lib/math.in.h (log): New declaration.
40272         * lib/log.c: New file.
40273         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
40274         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
40275         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
40276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
40277         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
40278         * modules/log (Files): Add lib/log.c.
40279         (Depends-on): Add math.
40280         (configure.ac): If REPLACE_LOG is 1, compile an override.
40281         * tests/test-math-c++.cc: Check the declaration of log.
40282         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
40284 2012-03-09  Jim Meyering  <meyering@redhat.com>
40286         readtokens.c: adjust wording in a comment
40287         * lib/readtokens.c: Insert omitted "that" in a comment.
40289 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40291         modechange: add notations +40, 00440, etc.
40292         * lib/modechange.c (mode_compile): Support new notations
40293         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
40295 2012-03-08  Bruno Haible  <bruno@clisp.org>
40297         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
40298         * m4/exp2l-ieee.m4: New file.
40299         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
40300         test whether exp2l works with a NaN argument and with a negative
40301         infinity argument. Replace it if not.
40302         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
40303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
40304         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
40305         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
40306         (Depends-on): Update conditions.
40307         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
40308         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
40309         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
40311         Tests for module 'exp2l-ieee'.
40312         * modules/exp2l-ieee-tests: New file.
40313         * tests/test-exp2l-ieee.c: New file.
40315         New module 'exp2l-ieee'.
40316         * modules/exp2l-ieee: New file.
40318         Tests for module 'exp2-ieee'.
40319         * modules/exp2-ieee-tests: New file.
40320         * tests/test-exp2-ieee.c: New file.
40322         New module 'exp2-ieee'.
40323         * modules/exp2-ieee: New file.
40325         Tests for module 'exp2f-ieee'.
40326         * modules/exp2f-ieee-tests: New file.
40327         * tests/test-exp2f-ieee.c: New file.
40328         * tests/test-exp2-ieee.h: New file.
40330         New module 'exp2f-ieee'.
40331         * modules/exp2f-ieee: New file.
40333 2012-03-08  Bruno Haible  <bruno@clisp.org>
40335         Tests for module 'exp2l'.
40336         * modules/exp2l-tests: New file.
40337         * tests/test-exp2l.c: New file.
40339         New module 'exp2l'.
40340         * lib/math.in.h (exp2l): New declaration.
40341         * lib/exp2l.c: New file.
40342         * lib/expl-table.c: New file, extracted from lib/expl.c.
40343         * lib/expl.c (gl_expl_table): New declaration.
40344         (expl): Remove expl_table. Update reference.
40345         * m4/exp2l.m4: New file.
40346         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
40347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
40348         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
40349         * modules/exp2l: New file.
40350         * modules/expl (Files): Add lib/expl-table.c.
40351         (configure.ac): Compile also expl-table.c.
40352         * tests/test-math-c++.cc: Check the declaration of exp2l.
40353         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
40354         problem.
40356 2012-03-08  Bruno Haible  <bruno@clisp.org>
40358         Tests for module 'exp2f'.
40359         * modules/exp2f-tests: New file.
40360         * tests/test-exp2f.c: New file.
40362         New module 'exp2f'.
40363         * lib/math.in.h (exp2f): New declaration.
40364         * lib/exp2f.c: New file.
40365         * m4/exp2f.m4: New file.
40366         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
40367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
40368         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
40369         * modules/exp2f: New file.
40370         * tests/test-math-c++.cc: Check the declaration of exp2f.
40371         * doc/posix-functions/exp2f.texi: Mention the new module and the
40372         IRIX problem.
40374 2012-03-08  Bruno Haible  <bruno@clisp.org>
40376         Tests for module 'exp2'.
40377         * modules/exp2-tests: New file.
40378         * tests/test-exp2.c: New file.
40379         * tests/test-exp2.h: New file.
40381         New module 'exp2'.
40382         * lib/math.in.h (exp2): New declaration.
40383         * lib/exp2.c: New file.
40384         * m4/exp2.m4: New file.
40385         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
40386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
40387         REPLACE_EXP2.
40388         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
40389         REPLACE_EXP2.
40390         * modules/exp2: New file.
40391         * tests/test-math-c++.cc: Check the declaration of exp2.
40392         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
40393         and OpenBSD problems.
40395 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40397         savedir: fix comment typo
40398         * lib/savedir.c (savedirstream): Fix typo in comment.
40400 2012-03-08  Bruno Haible  <bruno@clisp.org>
40402         test-readtokens.c: use const; remove unwarranted cast
40403         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
40405 2012-03-08  Bruno Haible  <bruno@clisp.org>
40407         fmal: Avoid compilation error on AIX.
40408         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
40409         AIX 5.2..7.1.
40411 2012-03-08  Bruno Haible  <bruno@clisp.org>
40413         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
40414         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
40415         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
40416         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
40417         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
40418         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
40419         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
40421 2012-03-08  Bruno Haible  <bruno@clisp.org>
40423         remainderf: Override buggy system function on IRIX 6.5.
40424         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
40425         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
40426         when it exists.
40427         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
40429 2012-03-08  Jim Meyering  <meyering@redhat.com>
40431         test-readtokens.c: avoid const-related compilation warnings
40432         * tests/test-readtokens.c: Avoid const-related compilation warnings.
40434 2012-03-07  Jim Meyering  <meyering@redhat.com>
40435             Bruno Haible  <bruno@clisp.org>
40437         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
40438         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
40439         tests/randomd.c.
40440         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
40441         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
40442         tests/randoml.c.
40443         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
40445 2012-03-07  Bruno Haible  <bruno@clisp.org>
40447         expm1l: Avoid compilation error on AIX.
40448         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
40449         AIX 5.2..7.1.
40451 2012-03-07  Bruno Haible  <bruno@clisp.org>
40453         expm1l: Don't override undeclared system function on IRIX 6.5.
40454         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
40455         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
40456         it exists. Set HAVE_DECL_EXPM1L.
40457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
40458         HAVE_EXPM1L.
40459         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
40460         HAVE_EXPM1L.
40461         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
40463 2012-03-07  Bruno Haible  <bruno@clisp.org>
40465         remainderl: Don't override undeclared system function on IRIX 6.5.
40466         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
40467         HAVE_REMAINDERL.
40468         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
40469         declared when it exists. Set HAVE_DECL_REMAINDERL.
40470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
40471         not HAVE_REMAINDERL.
40472         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
40473         HAVE_REMAINDERL.
40474         * doc/posix-functions/remainderl.texi: Mention missing declaration
40475         problem.
40477 2012-03-07  Bruno Haible  <bruno@clisp.org>
40479         rintf: Don't override undeclared system function on IRIX 6.5.
40480         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
40481         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
40482         exists. Set HAVE_DECL_RINTF.
40483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
40484         HAVE_RINTF.
40485         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
40486         HAVE_RINTF.
40487         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
40489 2012-03-07  Bruno Haible  <bruno@clisp.org>
40491         roundl: Avoid compilation error on AIX.
40492         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
40493         AIX 5.2..7.1.
40495 2012-03-07  Bruno Haible  <bruno@clisp.org>
40497         roundl: Don't override undeclared system function on IRIX 6.5.
40498         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
40499         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
40500         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40501         * modules/roundl (configure.ac): For replacement code, test
40502         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40503         (Depends-on): Update conditions.
40504         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
40506 2012-03-07  Bruno Haible  <bruno@clisp.org>
40508         roundf: Don't override undeclared system function on IRIX 6.5.
40509         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
40510         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
40511         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40512         * modules/roundf (configure.ac): For replacement code, test
40513         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40514         (Depends-on): Update conditions.
40515         * modules/roundf-ieee (Depends-on): Update conditions.
40516         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
40518 2012-03-07  Bruno Haible  <bruno@clisp.org>
40520         round: Don't override undeclared system function on IRIX 6.5.
40521         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
40522         argument.
40523         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
40524         also when it is not declared. Set HAVE_ROUND. For replacement code,
40525         test HAVE_ROUND, not HAVE_DECL_ROUND.
40526         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
40527         not HAVE_DECL_ROUND.
40528         (Depends-on): Update conditions.
40529         * modules/round-ieee (Depends-on): Update conditions.
40530         * doc/posix-functions/round.texi: Mention the IRIX problem.
40532 2012-03-07  Bruno Haible  <bruno@clisp.org>
40534         copysignf: Don't override undeclared system function on IRIX 6.5.
40535         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
40536         HAVE_COPYSIGNF.
40537         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
40538         declared when it exists. Set HAVE_DECL_COPYSIGNF.
40539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
40540         not HAVE_COPYSIGNF.
40541         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
40542         HAVE_COPYSIGNF.
40543         * doc/posix-functions/copysignf.texi: Mention missing declaration
40544         problem.
40546 2012-03-07  Jim Meyering  <meyering@redhat.com>
40548         readtokens: add tests
40549         * modules/readtokens-tests: New file.
40550         * tests/test-readtokens.c: New file.
40552 2012-03-07  Jim Meyering  <meyering@redhat.com>
40554         quotearg: the module must now include quote.h
40555         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
40556         So must the module.
40557         * modules/quotearg (Files): Add quote.h.
40559 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
40561         readtokens: avoid core dumps with unusual calling patterns
40562         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
40563         * lib/readtokens.c: Include limits.h.
40564         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
40565         (readtoken): Don't cache the delimiters; the cache code was buggy
40566         if !delim && saved_delim, or if the new n_delim differs from the old.
40567         Also, it wasn't thread-safe.
40569 2012-03-07  Bruno Haible  <bruno@clisp.org>
40571         quote: Adhere to common module description layout.
40572         * modules/quote (Makefile.am): Add back empty section.
40574 2012-03-06  Akim Demaille  <demaille@gostai.com>
40576         quote: fuse into quotearg
40577         This patch is made for the benefit of Bison.
40578         quote does not leave the choice of the quoting style to the user.
40579         quoting_style provides poor customizability, yet quoting_options,
40580         which is very rich, is hidden inside quotearg.c.  So in order to
40581         allow quote customization, move its implementation to quotearg.c.
40582         * lib/quote.c: Remove.
40583         * modules/quote: Adjust.
40584         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
40585         warning: provide all the members of literal structs.
40586         (quote_quoting_options): New.
40587         (quote, quote_n): Import implementation from quote.c.
40588         * lib/quote.h: Import the comments from quote.c.
40589         (quote_quoting_options): New.
40591 2012-03-06  Bruno Haible  <bruno@clisp.org>
40593         Tests for module 'expm1l-ieee'.
40594         * modules/expm1l-ieee-tests: New file.
40595         * tests/test-expm1l-ieee.c: New file.
40597         New module 'expm1l-ieee'.
40598         * modules/expm1l-ieee: New file.
40600         Tests for module 'expm1f-ieee'.
40601         * modules/expm1f-ieee-tests: New file.
40602         * tests/test-expm1f-ieee.c: New file.
40604         New module 'expm1f-ieee'.
40605         * modules/expm1f-ieee: New file.
40607         Tests for module 'expm1-ieee'.
40608         * modules/expm1-ieee-tests: New file.
40609         * tests/test-expm1-ieee.c: New file.
40610         * tests/test-expm1-ieee.h: New file.
40612         New module 'expm1-ieee'.
40613         * modules/expm1-ieee: New file.
40614         * m4/expm1-ieee.m4: New file.
40615         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
40616         whether expm1 works with a minus zero argument. Replace it if not.
40617         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
40618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
40619         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
40620         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
40621         (Depends-on): Update conditions.
40622         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
40623         AIX problem.
40625 2012-03-06  Bruno Haible  <bruno@clisp.org>
40627         Work around expm1f bug on IRIX 6.5.
40628         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
40629         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
40630         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
40631         not work.
40632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
40633         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
40634         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
40635         (Depends-on): Update conditions.
40636         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
40638 2012-03-06  Bruno Haible  <bruno@clisp.org>
40640         Tests for module 'expm1l'.
40641         * modules/expm1l-tests: New file.
40642         * tests/test-expm1l.c: New file.
40644         New module 'expm1l'.
40645         * lib/math.in.h (expm1l): New declaration.
40646         * lib/expm1l.c: New file.
40647         * m4/expm1l.m4: New file.
40648         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
40649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
40650         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
40651         * modules/expm1l: New file.
40652         * tests/test-math-c++.cc: Check the declaration of expm1l.
40653         * doc/posix-functions/expm1l.texi: Mention the new module.
40655 2012-03-06  Bruno Haible  <bruno@clisp.org>
40657         Tests for module 'expm1f'.
40658         * modules/expm1f-tests: New file.
40659         * tests/test-expm1f.c: New file.
40661         New module 'expm1f'.
40662         * lib/math.in.h (expm1f): New declaration.
40663         * lib/expm1f.c: New file.
40664         * m4/expm1f.m4: New file.
40665         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
40666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
40667         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
40668         * modules/expm1f: New file.
40669         * tests/test-math-c++.cc: Check the declaration of expm1f.
40670         * doc/posix-functions/expm1f.texi: Mention the new module.
40672 2012-03-06  Bruno Haible  <bruno@clisp.org>
40674         Tests for module 'expm1'.
40675         * modules/expm1-tests: New file.
40676         * tests/test-expm1.c: New file.
40677         * tests/test-expm1.h: New file.
40679         New module 'expm1'.
40680         * lib/math.in.h (expm1): New declaration.
40681         * lib/expm1.c: New file.
40682         * m4/expm1.m4: New file.
40683         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
40684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
40685         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
40686         * modules/expm1: New file.
40687         * tests/test-math-c++.cc: Check the declaration of expm1.
40688         * doc/posix-functions/expm1.texi: Mention the new module.
40690 2012-03-06  Bruno Haible  <bruno@clisp.org>
40692         math: Ensure declarations of math functions.
40693         * modules/acosf (Depends-on): Add 'extensions'.
40694         * modules/asinf (Depends-on): Likewise.
40695         * modules/atan2f (Depends-on): Likewise.
40696         * modules/atanf (Depends-on): Likewise.
40697         * modules/cbrt (Depends-on): Likewise.
40698         * modules/cbrtf (Depends-on): Likewise.
40699         * modules/cbrtl (Depends-on): Likewise.
40700         * modules/copysignf (Depends-on): Likewise.
40701         * modules/copysignl (Depends-on): Likewise.
40702         * modules/cosf (Depends-on): Likewise.
40703         * modules/coshf (Depends-on): Likewise.
40704         * modules/expf (Depends-on): Likewise.
40705         * modules/fabsf (Depends-on): Likewise.
40706         * modules/fabsl (Depends-on): Likewise.
40707         * modules/fmaf (Depends-on): Likewise.
40708         * modules/fmal (Depends-on): Likewise.
40709         * modules/fmodf (Depends-on): Likewise.
40710         * modules/fmodl (Depends-on): Likewise.
40711         * modules/frexpf (Depends-on): Likewise.
40712         * modules/frexpl (Depends-on): Likewise.
40713         * modules/hypot (Depends-on): Likewise.
40714         * modules/hypotf (Depends-on): Likewise.
40715         * modules/hypotl (Depends-on): Likewise.
40716         * modules/ldexpf (Depends-on): Likewise.
40717         * modules/ldexpl (Depends-on): Likewise.
40718         * modules/log10f (Depends-on): Likewise.
40719         * modules/log10l (Depends-on): Likewise.
40720         * modules/log1p (Depends-on): Likewise.
40721         * modules/logb (Depends-on): Likewise.
40722         * modules/logf (Depends-on): Likewise.
40723         * modules/modff (Depends-on): Likewise.
40724         * modules/modfl (Depends-on): Likewise.
40725         * modules/powf (Depends-on): Likewise.
40726         * modules/remainderf (Depends-on): Likewise.
40727         * modules/remainderl (Depends-on): Likewise.
40728         * modules/rintf (Depends-on): Likewise.
40729         * modules/rintl (Depends-on): Likewise.
40730         * modules/sinf (Depends-on): Likewise.
40731         * modules/sinhf (Depends-on): Likewise.
40732         * modules/sqrtf (Depends-on): Likewise.
40733         * modules/tanf (Depends-on): Likewise.
40734         * modules/tanhf (Depends-on): Likewise.
40735         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
40736         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
40737         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
40738         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
40739         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
40740         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
40741         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
40742         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
40743         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
40744         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
40745         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
40746         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
40747         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
40748         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
40749         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
40750         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
40751         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
40752         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40753         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
40754         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
40755         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
40756         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
40757         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
40758         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
40759         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40760         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
40761         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
40762         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40763         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
40764         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
40765         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
40766         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
40767         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40768         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40769         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
40770         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
40771         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
40772         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
40773         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
40774         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
40775         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
40777 2012-03-06  Bruno Haible  <bruno@clisp.org>
40779         math: Update module names in warnings.
40780         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
40781         tanl): Use specific module name in warn-on-use warning.
40783 2012-03-06  Bruno Haible  <bruno@clisp.org>
40785         expl: Simplify computation.
40786         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
40788 2012-03-05  Bruno Haible  <bruno@clisp.org>
40790         exp* tests: More tests.
40791         * tests/test-exp.h: New file.
40792         * tests/test-exp.c: Include <float.h> and test-exp.h.
40793         (main): Invoke test_function.
40794         * tests/test-expf.c: Include <float.h> and test-exp.h.
40795         (main): Invoke test_function.
40796         * tests/test-expl.c: Include <float.h> and test-exp.h.
40797         (main): Invoke test_function.
40798         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
40799         (Makefile.am): Add randomd.c to test_exp_SOURCES.
40800         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
40801         (Makefile.am): Add randomf.c to test_expf_SOURCES.
40802         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
40803         (Depends-on): Add 'float'.
40804         (Makefile.am): Add randoml.c to test_expl_SOURCES.
40806         expl: Fix precision of computed result.
40807         * lib/expl.c: Completely rewritten.
40808         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
40809         (Maintainer): Add me.
40810         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
40812 2012-03-05  Bruno Haible  <bruno@clisp.org>
40814         cbrt* tests: More tests.
40815         * tests/test-cbrt.h: New file.
40816         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
40817         (main): Invoke test_function.
40818         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
40819         (main): Invoke test_function.
40820         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
40821         (main): Invoke test_function.
40822         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
40823         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
40824         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
40825         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
40826         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
40827         (Depends-on): Add 'float'.
40828         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
40830 2012-03-05  Bruno Haible  <bruno@clisp.org>
40832         hypot* tests: More tests.
40833         * tests/test-hypot.h: New file, partially extracted from
40834         tests/test-hypotl.c.
40835         * tests/test-hypot.c: Include test-hypot.h.
40836         (main): Invoke test_function.
40837         * tests/test-hypotf.c: Include test-hypot.h.
40838         (main): Invoke test_function.
40839         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
40840         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
40841         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
40842         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
40843         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
40844         tests/randomf.c.
40845         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
40846         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
40847         tests/randoml.c.
40848         (Depends-on): Add 'fpucw', 'float'.
40849         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
40851 2012-03-05  Bruno Haible  <bruno@clisp.org>
40853         fpucw: Doc about FreeBSD.
40854         * lib/fpucw.h: Mention FreeBSD in comments.
40856 2012-03-04  Bruno Haible  <bruno@clisp.org>
40858         sqrt* tests: More tests.
40859         * tests/test-sqrt.h: New file.
40860         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
40861         (main): Invoke test_function.
40862         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
40863         (main): Invoke test_function.
40864         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
40865         (main): Invoke test_function.
40866         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
40867         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
40868         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
40869         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
40870         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
40871         (Depends-on): Add 'float'.
40872         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
40874 2012-03-04  Bruno Haible  <bruno@clisp.org>
40876         remainder* tests: More tests.
40877         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
40878         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
40879         (main): Invoke test_function.
40880         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
40881         (main): Invoke test_function.
40882         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
40883         (main): Invoke test_function.
40884         * modules/remainder-tests (Files): Add tests/test-remainder.h,
40885         tests/randomd.c.
40886         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
40887         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
40888         tests/randomf.c.
40889         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
40890         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
40891         tests/randoml.c.
40892         (Depends-on): Add 'float'.
40893         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
40895 2012-03-04  Bruno Haible  <bruno@clisp.org>
40897         remainder, remainderf, remainderl: Fix computation for large quotients.
40898         * lib/remainder.c: Completely rewritten.
40899         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
40900         USE_FLOAT.
40901         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
40902         USE_LONG_DOUBLE.
40903         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
40904         isnand, isinf. Remove round, fma.
40905         * modules/remainderf (Files): Add lib/remainder.c.
40906         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
40907         Remove roundf, fmaf.
40908         * modules/remainderl (Files): Add lib/remainder.c.
40909         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
40910         isinf. Remove roundl, fmal.
40911         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
40912         REMAINDER_LIBM.
40913         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
40914         REMAINDERF_LIBM.
40915         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
40916         REMAINDERL_LIBM.
40918 2012-03-04  Bruno Haible  <bruno@clisp.org>
40920         fmod* tests: More tests.
40921         * tests/test-fmod.h (my_ldexp): New function.
40922         (test_function): Reduce amount of random numbers to test. Add tests
40923         of very large quotients x / y.
40924         * tests/test-fmod.c (MAX_EXP): New macro.
40925         * tests/test-fmodf.c (MAX_EXP): Likewise.
40926         * tests/test-fmodl.c (MAX_EXP): Likewise.
40928 2012-03-04  Bruno Haible  <bruno@clisp.org>
40930         fmod, fmodl: Fix computation for large quotients x / y.
40931         * lib/fmod.c: Completely rewritten.
40932         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
40933         USE_LONG_DOUBLE.
40934         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
40935         isnand. Remove fma.
40936         * modules/fmodl (Files): Add lib/fmod.c.
40937         (Depends-on): Add float, isfinite, signbit, fabsl,
40938         frexpl, ldexpl, isnanl. Remove fma.
40939         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
40940         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
40942 2012-03-03  Bruno Haible  <bruno@clisp.org>
40944         fmod* tests: More tests.
40945         * tests/test-fmod.h: New file.
40946         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
40947         (main): Invoke test_function.
40948         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
40949         (main): Invoke test_function.
40950         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
40951         (main): Invoke test_function.
40952         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
40953         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
40954         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
40955         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
40956         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
40957         (Depends-on): Add 'float'.
40958         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
40960 2012-03-03  Bruno Haible  <bruno@clisp.org>
40962         rint* tests: More tests.
40963         * tests/test-rint.h: New file, partially extracted from
40964         tests/test-rintl.c.
40965         * tests/test-rint.c: Include test-rint.h.
40966         (main): Invoke test_function.
40967         * tests/test-rintf.c: Include test-rint.h.
40968         (main): Invoke test_function.
40969         * tests/test-rintl.c: Include test-rint.h.
40970         (main): Invoke test_function.
40971         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
40972         (Makefile.am): Add randomd.c to test_rint_SOURCES.
40973         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
40974         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
40975         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
40976         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
40978 2012-03-03  Bruno Haible  <bruno@clisp.org>
40980         modf* tests: More tests.
40981         * tests/test-modf.h: New file.
40982         * tests/test-modf.c: Include <float.h> and test-modf.h.
40983         (main): Invoke test_function.
40984         * tests/test-modff.c: Include <float.h> and test-modf.h.
40985         (main): Invoke test_function.
40986         * tests/test-modfl.c: Include <float.h> and test-modf.h.
40987         (main): Invoke test_function.
40988         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
40989         (Makefile.am): Add randomd.c to test_modf_SOURCES.
40990         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
40991         (Makefile.am): Add randomf.c to test_modff_SOURCES.
40992         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
40993         (Depends-on): Add 'float'.
40994         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
40996 2012-03-03  Bruno Haible  <bruno@clisp.org>
40998         fabs* tests: More tests.
40999         * tests/test-fabs.h: New file, partially extracted from
41000         tests/test-fabsl.c.
41001         * tests/test-fabs.c (RANDOM): New macro.
41002         * tests/test-fabsf.c (RANDOM): New macro.
41003         * tests/test-fabsl.c (RANDOM): New macro.
41004         * modules/fabs-tests (Files): Add tests/randomd.c.
41005         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
41006         * modules/fabsf-tests (Files): Add tests/randomf.c.
41007         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
41008         * modules/fabsl-tests (Files): Add tests/randoml.c.
41009         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
41011 2012-03-03  Bruno Haible  <bruno@clisp.org>
41013         ldexp* tests: More tests.
41014         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
41015         * tests/test-ldexp.c (RANDOM): New macro.
41016         * tests/test-ldexpf.c (RANDOM): New macro.
41017         * tests/test-ldexpl.c (RANDOM): New macro.
41018         * modules/ldexp-tests (Files): Add tests/randomd.c.
41019         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
41020         * modules/ldexpf-tests (Files): Add tests/randomf.c.
41021         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
41022         * modules/ldexpl-tests (Files): Add tests/randoml.c.
41023         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
41025 2012-03-03  Bruno Haible  <bruno@clisp.org>
41027         frexp* tests: More tests.
41028         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
41029         * tests/test-frexp.c (RANDOM): New macro.
41030         * tests/test-frexpf.c (RANDOM): New macro.
41031         * tests/test-frexpl.c (RANDOM): New macro.
41032         * modules/frexp-tests (Files): Add tests/randomd.c.
41033         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
41034         * modules/frexpf-tests (Files): Add tests/randomf.c.
41035         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
41036         * modules/frexpl-tests (Files): Add tests/randoml.c.
41037         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
41039 2012-03-03  Bruno Haible  <bruno@clisp.org>
41041         Support for pseudo-random numbers in tests.
41042         * tests/randomf.c: New file.
41043         * tests/randomd.c: New file.
41044         * tests/randoml.c: New file.
41045         * tests/macros.h (randomf, randomd, randoml): New declarations.
41047 2012-03-03  Bruno Haible  <bruno@clisp.org>
41049         frexp* tests: Refactor.
41050         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
41051         * tests/test-frexp.c: Include and use it.
41052         * tests/test-frexpf.c: Likewise.
41053         * tests/test-frexpl.c: Likewise.
41054         * modules/frexp-tests (Files): Add tests/test-frexp.h.
41055         * modules/frexpf-tests (Files): Likewise.
41056         * modules/frexpl-tests (Files): Likewise.
41058 2012-03-02  Jim Meyering  <meyering@redhat.com>
41060         maint: don't specify XZ_OPT=-9ev in dist-related rule
41061         Using xz's -9 option is warranted only if you have a very large
41062         tarball (see xz's documentation for the sizes vs. presets), and
41063         requires 64MiB of memory at decompression time.
41064         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
41065         Automake's default of just "-e" is fine.  Override on a
41066         per-package basis by setting XZ_OPT e.g., in cfg.mk.
41068 2012-03-01  Eric Blake  <eblake@redhat.com>
41070         maint.mk: allow announcement for non-gnulib project
41071         * maint.mk (announcement): Skip gnulib version if not used.
41073 2012-03-01  Jim Meyering  <meyering@redhat.com>
41075         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
41076         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
41077         envvar settings cannot interfere.  Otherwise, setting envvars like
41078         prohibit=foo require=bar, etc. would cause spurious test failures.
41080 2012-03-01  Eric Blake  <eblake@redhat.com>
41082         maint.mk: add per-line exclusions to prohibitions
41083         * maint.mk (_sc_search_regexp): Add $exclude parameter.
41084         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
41085         (sc_const_long_option): Use it.
41087 2012-03-01  Bruno Haible  <bruno@clisp.org>
41089         Tests for module 'expl-ieee'.
41090         * modules/expl-ieee-tests: New file.
41091         * tests/test-expl-ieee.c: New file.
41093         New module 'expl-ieee'.
41094         * modules/expl-ieee: New file.
41096         Tests for module 'exp-ieee'.
41097         * modules/exp-ieee-tests: New file.
41098         * tests/test-exp-ieee.c: New file.
41100         New module 'exp-ieee'.
41101         * modules/exp-ieee: New file.
41103         Tests for module 'expf-ieee'.
41104         * modules/expf-ieee-tests: New file.
41105         * tests/test-expf-ieee.c: New file.
41106         * tests/test-exp-ieee.h: New file.
41108         New module 'expf-ieee'.
41109         * modules/expf-ieee: New file.
41111 2012-02-29  Bruno Haible  <bruno@clisp.org>
41113         cbrtl-ieee: Work around test failure on IRIX 6.5.
41114         * m4/cbrtl-ieee.m4: New file.
41115         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
41116         test whether cbrtl works with a minus zero argument. Replace it if not.
41117         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
41118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
41119         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
41120         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
41121         (Depends-on): Update conditions.
41122         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
41123         m4/signbit.m4.
41124         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
41125         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
41126         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
41128         Tests for module 'cbrtl-ieee'.
41129         * modules/cbrtl-ieee-tests: New file.
41130         * tests/test-cbrtl-ieee.c: New file.
41132         New module 'cbrtl-ieee'.
41133         * modules/cbrtl-ieee: New file.
41135         Tests for module 'cbrt-ieee'.
41136         * modules/cbrt-ieee-tests: New file.
41137         * tests/test-cbrt-ieee.c: New file.
41139         New module 'cbrt-ieee'.
41140         * modules/cbrt-ieee: New file.
41142         Tests for module 'cbrtf-ieee'.
41143         * modules/cbrtf-ieee-tests: New file.
41144         * tests/test-cbrtf-ieee.c: New file.
41145         * tests/test-cbrt-ieee.h: New file.
41147         New module 'cbrtf-ieee'.
41148         * modules/cbrtf-ieee: New file.
41150 2012-02-29  Bruno Haible  <bruno@clisp.org>
41152         cbrtf: Work around bug in IRIX 6.5 system function.
41153         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
41154         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
41155         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
41156         work.
41157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
41158         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
41159         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
41160         (Depends-on): Update conditions.
41161         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
41163 2012-02-29  Bruno Haible  <bruno@clisp.org>
41165         Tests for module 'cbrtl'.
41166         * modules/cbrtl-tests: New file.
41167         * tests/test-cbrtl.c: New file.
41169         New module 'cbrtl'.
41170         * lib/math.in.h (cbrtl): New declaration.
41171         * lib/cbrtl.c: New file.
41172         * m4/cbrtl.m4: New file.
41173         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
41174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
41175         HAVE_DECL_CBRTL.
41176         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
41177         HAVE_DECL_CBRTL.
41178         * modules/cbrtl: New file.
41179         * tests/test-math-c++.cc: Check the declaration of cbrtl.
41180         * doc/posix-functions/cbrtl.texi: Mention the new module.
41182 2012-02-29  Bruno Haible  <bruno@clisp.org>
41184         Tests for module 'cbrtf'.
41185         * modules/cbrtf-tests: New file.
41186         * tests/test-cbrtf.c: New file.
41188         New module 'cbrtf'.
41189         * lib/math.in.h (cbrtf): New declaration.
41190         * lib/cbrtf.c: New file.
41191         * m4/cbrtf.m4: New file.
41192         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
41193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
41194         HAVE_DECL_CBRTF.
41195         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
41196         HAVE_DECL_CBRTF.
41197         * modules/cbrtf: New file.
41198         * tests/test-math-c++.cc: Check the declaration of cbrtf.
41199         * doc/posix-functions/cbrtf.texi: Mention the new module.
41201 2012-02-29  Bruno Haible  <bruno@clisp.org>
41203         cbrt: Provide replacement on MSVC and Minix.
41204         * lib/math.in.h (cbrt): New declaration.
41205         * lib/cbrt.c: New file.
41206         * m4/cbrt.m4: New file.
41207         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
41208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
41209         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
41210         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
41211         (Depends-on): Add dependencies.
41212         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
41213         * tests/test-math-c++.cc: Check the declaration of cbrt.
41214         * doc/posix-functions/cbrt.texi: Mention that the module provides a
41215         replacement.
41217 2012-02-29  Bruno Haible  <bruno@clisp.org>
41219         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
41220         * m4/hypotl-ieee.m4: New file.
41221         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
41222         test whether hypotl works with mixed NaN and Infinity arguments.
41223         Replace it if not.
41224         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
41225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
41226         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
41227         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
41228         (Depends-on): Update conditions.
41229         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
41230         (Depends-on): Add hypot-ieee.
41231         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
41232         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
41234         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
41235         * m4/hypotf-ieee.m4: New file.
41236         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
41237         test whether hypotf works with mixed NaN and Infinity arguments.
41238         Replace it if not.
41239         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
41240         (Depends-on): Add hypot-ieee.
41241         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
41242         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
41244         hypot-ieee: Work around test failure on OSF/1 and native Windows.
41245         * lib/math.in.h (hypot): New declaration.
41246         * lib/hypot.c: New file.
41247         * m4/hypot-ieee.m4: New file.
41248         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
41249         whether hypot works with mixed NaN and Infinity arguments. Replace it
41250         if not.
41251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
41252         REPLACE_HYPOT.
41253         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
41254         * modules/hypot (Files): Add lib/hypot.c.
41255         (Depends-on): Add dependencies.
41256         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
41257         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
41258         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
41259         * tests/test-math-c++.cc: Check the declaration of hypot.
41260         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
41262         Tests for module 'hypotl-ieee'.
41263         * modules/hypotl-ieee-tests: New file.
41264         * tests/test-hypotl-ieee.c: New file.
41266         New module 'hypotl-ieee'.
41267         * modules/hypotl-ieee: New file.
41269         Tests for module 'hypot-ieee'.
41270         * modules/hypot-ieee-tests: New file.
41271         * tests/test-hypot-ieee.c: New file.
41273         New module 'hypot-ieee'.
41274         * modules/hypot-ieee: New file.
41276         Tests for module 'hypotf-ieee'.
41277         * modules/hypotf-ieee-tests: New file.
41278         * tests/test-hypotf-ieee.c: New file.
41279         * tests/test-hypot-ieee.h: New file.
41281         New module 'hypotf-ieee'.
41282         * modules/hypotf-ieee: New file.
41284 2012-02-29  Bruno Haible  <bruno@clisp.org>
41286         Remove unused variables.
41287         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
41288         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41289         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
41290         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41292 2012-02-29  Eric Blake  <eblake@redhat.com>
41294         termios: fix pid_t always, not just for tcgetsid
41295         * doc/posix-headers/termios.texi (termios.h): Mention problem.
41296         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
41297         just when building tcgetsid.
41299 2012-02-29  Bruno Haible  <bruno@clisp.org>
41301         Tests for module 'hypotl'.
41302         * modules/hypotl-tests: New file.
41303         * tests/test-hypotl.c: New file.
41305         New module 'hypotl'.
41306         * lib/math.in.h (hypotl): New declaration.
41307         * lib/hypotl.c: New file.
41308         * m4/hypotl.m4: New file.
41309         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
41311         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
41312         * modules/hypotl: New file.
41313         * tests/test-math-c++.cc: Check the hypotl declaration.
41314         * doc/posix-functions/hypotl.texi: Mention the new module.
41316 2012-02-29  Eric Blake  <eblake@redhat.com>
41318         tcgetsid: fix cygwin header bug
41319         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
41321         docs: update cygwin progress
41322         * doc/posix-functions/llround.texi (llround): Added in cygwin
41323         1.7.8.
41324         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
41325         * doc/glibc-functions/program_invocation_name.texi
41326         (program_invocation_name): Likewise.
41327         * doc/glibc-functions/program_invocation_short_name.texi
41328         (program_invocation_short_name): Likewise.
41329         * doc/glibc-functions/madvise.texi (madvise): Likewise.
41330         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
41331         Likewise.
41332         * doc/posix-functions/pthread_spin_destroy.texi
41333         (pthread_spin_destroy): Added in cygwin 1.7.10.
41334         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
41335         Likewise.
41336         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
41337         Likewise.
41338         * doc/posix-functions/pthread_spin_trylock.texi
41339         (pthread_spin_trylock): Likewise.
41340         * doc/posix-functions/pthread_spin_unlock.texi
41341         (pthread_spin_unlock): Likewise.
41342         * doc/posix-functions/pthread_setschedprio.texi
41343         (pthread_setschedprio): Likewise.
41344         * doc/posix-functions/pthread_attr_getstack.texi
41345         (pthread_attr_getstack): Likewise.
41346         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
41347         (pthread_attr_getstackaddr): Likewise.
41348         * doc/glibc-functions/pthread_getattr_np.texi
41349         (pthread_getattr_np): Likewise.
41350         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
41351         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
41352         * doc/posix-functions/clock_settime.texi (clock_settime):
41353         Likewise.
41354         * doc/posix-functions/pthread_attr_getguardsize.texi
41355         (pthread_attr_getguardsize): Likewise.
41356         * doc/posix-functions/pthread_attr_setguardsize.texi
41357         (pthread_attr_setguardsize): Likewise.
41358         * doc/posix-functions/pthread_attr_setstack.texi
41359         (pthread_attr_setstack): Likewise.
41360         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
41361         (pthread_attr_setstackaddr): Likewise.
41362         * doc/posix-functions/clock_getcpuclockid.texi
41363         (clock_getcpuclockid): Likewise.
41364         * doc/posix-functions/pthread_getcpuclockid.texi
41365         (pthread_getcpuclockid): Likewise.
41366         * doc/glibc-functions/error.texi (error): Likewise.
41367         * doc/glibc-functions/error_at_line.texi (error_at_line):
41368         Likewise.
41369         * doc/glibc-functions/error_message_count.texi
41370         (error_message_count): Likewise.
41371         * doc/glibc-functions/error_one_per_line.texi
41372         (error_one_per_line): Likewise.
41373         * doc/glibc-functions/error_print_progname.texi
41374         (error_print_progname): Likewise.
41375         * doc/posix-functions/pthread_condattr_getclock.texi
41376         (pthread_condattr_getclock): Likewise.
41377         * doc/posix-functions/pthread_condattr_setclock.texi
41378         (pthread_condattr_setclock): Likewise.
41379         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
41380         Likewise.
41381         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
41382         * doc/glibc-functions/getpt.texi (getpt): Likewise.
41383         * doc/glibc-functions/get_current_dir_name.texi
41384         (get_current_dir_name): Likewise.
41385         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
41386         Likewise.
41387         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
41388         wrong return type.
41389         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
41390         1.7.11.
41392 2012-02-29  Bruno Haible  <bruno@clisp.org>
41394         Tests for module 'hypotf'.
41395         * modules/hypotf-tests: New file.
41396         * tests/test-hypotf.c: New file.
41398         New module 'hypotf'.
41399         * lib/math.in.h (hypotf): New declaration.
41400         * lib/hypotf.c: New file.
41401         * m4/hypotf.m4: New file.
41402         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
41404         REPLACE_HYPOTF.
41405         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
41406         REPLACE_HYPOTF.
41407         * modules/hypotf: New file.
41408         * tests/test-math-c++.cc: Check the hypotf declaration.
41409         * doc/posix-functions/hypotf.texi: Mention the new module.
41411         hypot: Prepare for hypotf module.
41412         * m4/hypot.m4: New file.
41413         * modules/hypot (Files): Add m4/hypot.m4.
41414         (configure.ac): Invoke gl_FUNC_HYPOT.
41416 2012-02-29  Bruno Haible  <bruno@clisp.org>
41418         hypot tests: More tests.
41419         * tests/test-hypot.c: Include <float.h>.
41420         (main): Add tests about overflow and underflow.
41422 2012-02-29  Bruno Haible  <bruno@clisp.org>
41424         math code: Add comments.
41425         * lib/acosl.c: Add comment about related glibc source files.
41426         * lib/asinl.c: Likewise.
41427         * lib/atanl.c: Likewise.
41428         * lib/expl.c: Likewise.
41429         * lib/logl.c: Likewise.
41430         * lib/sincosl.c: Likewise.
41431         * lib/sinl.c: Likewise.
41432         * lib/tanl.c: Likewise.
41433         * lib/trigl.c: Likewise.
41434         * lib/cosl.c: Likewise. Fix comments.
41436 2012-02-28  Bruno Haible  <bruno@clisp.org>
41438         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
41439         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
41440         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
41441         HUGE_VALL are defined.
41442         (numeric_equald): Renamed from numeric_equal.
41443         (numeric_equalf, numeric_equall): New functions.
41444         (main): Check also HUGE_VALF, HUGE_VALL.
41445         * modules/math-tests (Files): Add tests/macros.h.
41446         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
41447         HUGE_VALL.
41449 2012-02-28  Bruno Haible  <bruno@clisp.org>
41451         doc: Move ISO C11 feature notes into POSIX chapters.
41452         * doc/posix-functions/aligned_alloc.texi: Renamed from
41453         doc/glibc-functions/aligned_alloc.texi.
41454         * doc/posix-functions/quick_exit.texi: Renamed from
41455         doc/glibc-functions/quick_exit.texi.
41456         * doc/posix-headers/uchar.texi: Renamed from
41457         doc/glibc-headers/uchar.texi.
41458         * doc/posix-functions/c16rtomb.texi: Renamed from
41459         doc/glibc-functions/c16rtomb.texi.
41460         * doc/posix-functions/c32rtomb.texi: Renamed from
41461         doc/glibc-functions/c32rtomb.texi.
41462         * doc/posix-functions/mbrtoc16.texi: Renamed from
41463         doc/glibc-functions/mbrtoc16.texi.
41464         * doc/posix-functions/mbrtoc32.texi: Renamed from
41465         doc/glibc-functions/mbrtoc32.texi.
41466         * doc/gnulib.texi: Update.
41467         (Glibc uchar.h): Remove section.
41468         Suggested by Eric Blake.
41470 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
41472         stdnoreturn: port to MSVC better
41473         MSVC standard headers use __declspec(noreturn), so #define noreturn
41474         to empty on that platform.  Reported by Bruno Haible in
41475         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
41476         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
41477         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
41479 2012-02-28  Bruno Haible  <bruno@clisp.org>
41481         doc: Mention new glibc headers and functions.
41482         * doc/glibc-headers/uchar.texi: New file.
41483         * doc/glibc-functions/aligned_alloc.texi: New file.
41484         * doc/glibc-functions/c16rtomb.texi: New file.
41485         * doc/glibc-functions/c32rtomb.texi: New file.
41486         * doc/glibc-functions/clock_adjtime.texi: New file.
41487         * doc/glibc-functions/fanotify_init.texi: New file.
41488         * doc/glibc-functions/fanotify_mark.texi: New file.
41489         * doc/glibc-functions/inet6_opt_append.texi: New file.
41490         * doc/glibc-functions/inet6_opt_find.texi: New file.
41491         * doc/glibc-functions/inet6_opt_finish.texi: New file.
41492         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
41493         * doc/glibc-functions/inet6_opt_init.texi: New file.
41494         * doc/glibc-functions/inet6_opt_next.texi: New file.
41495         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
41496         * doc/glibc-functions/inet6_rth_add.texi: New file.
41497         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
41498         * doc/glibc-functions/inet6_rth_init.texi: New file.
41499         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
41500         * doc/glibc-functions/inet6_rth_segments.texi: New file.
41501         * doc/glibc-functions/inet6_rth_space.texi: New file.
41502         * doc/glibc-functions/login.texi: New file.
41503         * doc/glibc-functions/mbrtoc16.texi: New file.
41504         * doc/glibc-functions/mbrtoc32.texi: New file.
41505         * doc/glibc-functions/name_to_handle_at.texi: New file.
41506         * doc/glibc-functions/ntp_gettimex.texi: New file.
41507         * doc/glibc-functions/open_by_handle_at.texi: New file.
41508         * doc/glibc-functions/prlimit.texi: New file.
41509         * doc/glibc-functions/process_vm_readv.texi: New file.
41510         * doc/glibc-functions/process_vm_writev.texi: New file.
41511         * doc/glibc-functions/recvmmsg.texi: New file.
41512         * doc/glibc-functions/scandirat.texi: New file.
41513         * doc/glibc-functions/sendmmsg.texi: New file.
41514         * doc/glibc-functions/setns.texi: New file.
41515         * doc/glibc-functions/timespec_get.texi: New file.
41516         * doc/gnulib.texi: Include them.
41517         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
41518         sections.
41519         Reported by Eric Blake.
41521 2012-02-28  Bruno Haible  <bruno@clisp.org>
41523         Avoid compilation errors with MSVC option -fp:strict.
41524         * lib/floor.c: Use MSVC specific pragma fenv_access.
41525         * lib/ceil.c: Likewise.
41526         * lib/trunc.c: Likewise.
41527         * lib/round.c: Likewise.
41528         * lib/rint.c: Likewise.
41529         * lib/fma.c: Likewise.
41530         * lib/integer_length.c: Likewise.
41531         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41533         * tests/test-floor2.c: Likewise.
41534         * tests/test-floorf2.c: Likewise.
41535         * tests/test-ceil2.c: Likewise.
41536         * tests/test-ceilf2.c: Likewise.
41537         * tests/test-trunc2.c: Likewise.
41538         * tests/test-truncf2.c: Likewise.
41539         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41541 2012-02-27  Bruno Haible  <bruno@clisp.org>
41543         Tests for module 'sqrtl-ieee'.
41544         * modules/sqrtl-ieee-tests: New file.
41545         * tests/test-sqrtl-ieee.c: New file.
41547         New module 'sqrtl-ieee'.
41548         * modules/sqrtl-ieee: New file.
41550         Tests for module 'sqrt-ieee'.
41551         * modules/sqrt-ieee-tests: New file.
41552         * tests/test-sqrt-ieee.c: New file.
41554         New module 'sqrt-ieee'.
41555         * modules/sqrt-ieee: New file.
41557         Tests for module 'sqrtf-ieee'.
41558         * modules/sqrtf-ieee-tests: New file.
41559         * tests/test-sqrtf-ieee.c: New file.
41560         * tests/test-sqrt-ieee.h: New file.
41562         New module 'sqrtf-ieee'.
41563         * modules/sqrtf-ieee: New file.
41565 2012-02-27  Bruno Haible  <bruno@clisp.org>
41567         remainderl-ieee: Work around test failure on OSF/1.
41568         * m4/remainderl-ieee.m4: New file.
41569         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
41570         present, test whether remainderl works with a zero second argument.
41571         Replace it if not.
41572         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
41573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
41574         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
41575         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
41576         (Depends-on): Update conditions.
41577         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
41578         (Depends-on): Add remainder-ieee.
41579         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
41580         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
41581         module.
41583         remainderf-ieee: Work around test failure on OSF/1.
41584         * m4/remainderf-ieee.m4: New file.
41585         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
41586         present, test whether remainderf works with a zero second argument.
41587         Replace it if not.
41588         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
41589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
41590         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
41591         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
41592         (Depends-on): Update conditions.
41593         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
41594         (Depends-on): Add remainder-ieee.
41595         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
41596         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
41597         module.
41599         remainder-ieee: Work around test failure on OSF/1.
41600         * m4/remainder-ieee.m4: New file.
41601         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
41602         present, test whether remainder works with a zero second argument.
41603         Replace it if not.
41604         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
41605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
41606         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
41607         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
41608         (Depends-on): Update dependencies.
41609         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
41610         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
41611         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
41613         Tests for module 'remainderl-ieee'.
41614         * modules/remainderl-ieee-tests: New file.
41615         * tests/test-remainderl-ieee.c: New file.
41617         New module 'remainderl-ieee'.
41618         * modules/remainderl-ieee: New file.
41620         Tests for module 'remainder-ieee'.
41621         * modules/remainder-ieee-tests: New file.
41622         * tests/test-remainder-ieee.c: New file.
41624         New module 'remainder-ieee'.
41625         * modules/remainder-ieee: New file.
41627         Tests for module 'remainderf-ieee'.
41628         * modules/remainderf-ieee-tests: New file.
41629         * tests/test-remainderf-ieee.c: New file.
41630         * tests/test-remainder-ieee.h: New file.
41632         New module 'remainderf-ieee'.
41633         * modules/remainderf-ieee: New file.
41635 2012-02-27  Bruno Haible  <bruno@clisp.org>
41637         modff, modfl: Fix configure syntax error.
41638         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
41639         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41641 2012-02-27  Bruno Haible  <bruno@clisp.org>
41643         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
41644         * m4/fmodl-ieee.m4: New file.
41645         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
41646         whether fmodl works with zero arguments. Replace it if not.
41647         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
41648         (Depends-on): Add fmod-ieee.
41649         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
41650         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
41652         fmodf-ieee: Work around test failure on OSF/1.
41653         * m4/fmodf-ieee.m4: New file.
41654         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
41655         whether fmodf works with zero arguments. Replace it if not.
41656         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
41657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
41658         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
41659         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
41660         (Depends-on): Update dependencies.
41661         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
41662         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
41663         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
41665         fmodf-ieee: Work around test failure on MSVC 9.
41666         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
41667         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
41669         fmod-ieee: Work around test failures on OSF/1, mingw.
41670         * m4/fmod-ieee.m4: New file.
41671         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
41672         whether fmod works with zero arguments. Replace it if not.
41673         * lib/math.in.h (fmod): New declaration.
41674         * lib/fmod.c: New file.
41675         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
41676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
41677         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
41678         * modules/fmod (Files): Add lib/fmod.c.
41679         (Depends-on): Add math, isinf, trunc, fma.
41680         (configure.ac): Arrange to compile lib/fmod.c if needed.
41681         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
41682         m4/signbit.m4.
41683         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
41684         * tests/test-math-c++.cc: Check the declaration of fmod.
41685         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
41687         fmodl-ieee: Fix test failures.
41688         * lib/fmodl.c (fmodl): Treat Inf specially.
41689         * modules/fmodl (Depends-on): Add isinf.
41691         Tests for module 'fmodl-ieee'.
41692         * modules/fmodl-ieee-tests: New file.
41693         * tests/test-fmodl-ieee.c: New file.
41695         New module 'fmodl-ieee'.
41696         * modules/fmodl-ieee: New file.
41698         Tests for module 'fmod-ieee'.
41699         * modules/fmod-ieee-tests: New file.
41700         * tests/test-fmod-ieee.c: New file.
41702         New module 'fmod-ieee'.
41703         * modules/fmod-ieee: New file.
41705         Tests for module 'fmodf-ieee'.
41706         * modules/fmodf-ieee-tests: New file.
41707         * tests/test-fmodf-ieee.c: New file.
41708         * tests/test-fmod-ieee.h: New file.
41710         New module 'fmodf-ieee'.
41711         * modules/fmodf-ieee: New file.
41713 2012-02-27  Bruno Haible  <bruno@clisp.org>
41715         Tests for module 'rintl-ieee'.
41716         * modules/rintl-ieee-tests: New file.
41717         * tests/test-rintl-ieee.c: New file.
41719         New module 'rintl-ieee'.
41720         * modules/rintl-ieee: New file.
41722         Tests for module 'rint-ieee'.
41723         * modules/rint-ieee-tests: New file.
41724         * tests/test-rint-ieee.c: New file.
41726         New module 'rint-ieee'.
41727         * modules/rint-ieee: New file.
41729         Tests for module 'rintf-ieee'.
41730         * modules/rintf-ieee-tests: New file.
41731         * tests/test-rintf-ieee.c: New file.
41732         * tests/test-rint-ieee.h: New file.
41734         New module 'rintf-ieee'.
41735         * modules/rintf-ieee: New file.
41737 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41739         regex: re_search etc. should return -2 when memory exhausted
41740         This bug was uncovered when testing 'grep'.  Without the fix,
41741         re_search and friends return -1 when memory is exhausted, but -1
41742         means no match, and this causes grep to falsely report no-match
41743         instead of memory-exhaustion.  See
41744         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
41745         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
41746         trouble; this can occur if re_search_internal ran out of memory.
41748 2012-02-26  Bruno Haible  <bruno@clisp.org>
41750         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
41751         * m4/modfl-ieee.m4: New file.
41752         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
41753         whether modfl works with Inf. Replace it if not.
41754         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
41755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
41756         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
41757         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
41758         (Depends-on): Update dependencies.
41759         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
41760         m4/signbit.m4.
41761         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
41762         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
41764         modfl-ieee: Fix dependencies.
41765         * modules/modfl-ieee (Depends-on): Add modf-ieee.
41767         modfl-ieee: Fix test failures.
41768         * lib/modfl.c (modfl): Treat NaN and Inf specially.
41769         * modules/modfl (Depends-on): Add isfinite, isinf.
41771         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
41772         * m4/modff-ieee.m4: New file.
41773         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
41774         whether modff works with NaN and Inf. Replace it if not.
41775         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
41776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
41777         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
41778         * modules/modff (configure.ac): Consider REPLACE_MODFF.
41779         (Depends-on): Update dependencies.
41780         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
41781         m4/signbit.m4.
41782         (Depends-on): Add modf-ieee.
41783         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
41784         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
41786         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
41787         * m4/modf-ieee.m4: New file.
41788         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
41789         whether modf works with NaN and Inf. Replace it if not.
41790         * lib/math.in.h (modf): New declaration.
41791         * lib/modf.c: New file.
41792         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
41793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
41794         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
41795         * modules/modf (Files): Add lib/modf.c.
41796         (Depends-on): Add math, isfinite, trunc, isinf.
41797         (configure.ac): Addrange to compile lib/modf.c if needed.
41798         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
41799         m4/signbit.m4.
41800         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
41801         * tests/test-math-c++.cc: Check the declaration of modf.
41802         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
41804         Tests for module 'modfl-ieee'.
41805         * modules/modfl-ieee-tests: New file.
41806         * tests/test-modfl-ieee.c: New file.
41808         New module 'modfl-ieee'.
41809         * modules/modfl-ieee: New file.
41811         Tests for module 'modf-ieee'.
41812         * modules/modf-ieee-tests: New file.
41813         * tests/test-modf-ieee.c: New file.
41815         New module 'modf-ieee'.
41816         * modules/modf-ieee: New file.
41818         Tests for module 'modff-ieee'.
41819         * modules/modff-ieee-tests: New file.
41820         * tests/test-modff-ieee.c: New file.
41821         * tests/test-modf-ieee.h: New file.
41823         New module 'modff-ieee'.
41824         * modules/modff-ieee: New file.
41826 2012-02-26  Bruno Haible  <bruno@clisp.org>
41828         Tests for module 'fabsl-ieee'.
41829         * modules/fabsl-ieee-tests: New file.
41830         * tests/test-fabsl-ieee.c: New file.
41832         New module 'fabsl-ieee'.
41833         * modules/fabsl-ieee: New file.
41835         Tests for module 'fabs-ieee'.
41836         * modules/fabs-ieee-tests: New file.
41837         * tests/test-fabs-ieee.c: New file.
41839         New module 'fabs-ieee'.
41840         * modules/fabs-ieee: New file.
41842         Tests for module 'fabsf-ieee'.
41843         * modules/fabsf-ieee-tests: New file.
41844         * tests/test-fabsf-ieee.c: New file.
41845         * tests/test-fabs-ieee.h: New file.
41847         New module 'fabsf-ieee'.
41848         * modules/fabsf-ieee: New file.
41850 2012-02-26  Bruno Haible  <bruno@clisp.org>
41852         Tests for module 'fmal-ieee'.
41853         * modules/fmal-ieee-tests: New file.
41854         * tests/test-fmal-ieee.c: New file.
41856         New module 'fmal-ieee'.
41857         * modules/fmal-ieee: New file.
41859         Tests for module 'fma-ieee'.
41860         * modules/fma-ieee-tests: New file.
41861         * tests/test-fma-ieee.c: New file.
41863         New module 'fma-ieee'.
41864         * modules/fma-ieee: New file.
41866         Tests for module 'fmaf-ieee'.
41867         * modules/fmaf-ieee-tests: New file.
41868         * tests/test-fmaf-ieee.c: New file.
41869         * tests/test-fma-ieee.h: New file.
41871         New module 'fmaf-ieee'.
41872         * modules/fmaf-ieee: New file.
41874 2012-02-26  Bruno Haible  <bruno@clisp.org>
41876         Tests for module 'ldexpl-ieee'.
41877         * modules/ldexpl-ieee-tests: New file.
41878         * tests/test-ldexpl-ieee.c: New file.
41880         New module 'ldexpl-ieee'.
41881         * modules/ldexpl-ieee: New file.
41883         Tests for module 'ldexp-ieee'.
41884         * modules/ldexp-ieee-tests: New file.
41885         * tests/test-ldexp-ieee.c: New file.
41887         New module 'ldexp-ieee'.
41888         * modules/ldexp-ieee: New file.
41890         Tests for module 'ldexpf-ieee'.
41891         * modules/ldexpf-ieee-tests: New file.
41892         * tests/test-ldexpf-ieee.c: New file.
41893         * tests/test-ldexp-ieee.h: New file.
41895         New module 'ldexpf-ieee'.
41896         * modules/ldexpf-ieee: New file.
41898 2012-02-26  Bruno Haible  <bruno@clisp.org>
41900         Refactor frexp*-ieee tests.
41901         * tests/test-frexp-ieee.h: New file.
41902         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
41903         (main): Just call test_function.
41904         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
41905         (main): Just call test_function.
41906         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
41907         (main): Just call test_function.
41908         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
41909         * modules/frexp-ieee-tests (Files): Likewise.
41910         * modules/frexpl-ieee-tests (Files): Likewise.
41912         Tests for module 'frexpl-ieee'.
41913         * modules/frexpl-ieee-tests: New file.
41914         * tests/test-frexpl-ieee.c: New file.
41916         New module 'frexpl-ieee'.
41917         * modules/frexpl-ieee: New file.
41919         Tests for module 'frexp-ieee'.
41920         * modules/frexp-ieee-tests: New file.
41921         * tests/test-frexp-ieee.c: New file.
41923         New module 'frexp-ieee'.
41924         * modules/frexp-ieee: New file.
41926         Tests for module 'frexpf-ieee'.
41927         * modules/frexpf-ieee-tests: New file.
41928         * tests/test-frexpf-ieee.c: New file.
41930         New module 'frexpf-ieee'.
41931         * modules/frexpf-ieee: New file.
41933 2012-02-26  Bruno Haible  <bruno@clisp.org>
41935         roundl-ieee tests: More tests.
41936         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41937         (main): Add tests for [MX] shaded specification in POSIX.
41938         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41939         (Depends-on): Add isnanl-nolibm.
41941         round-ieee tests: More tests.
41942         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41943         (main): Add tests for [MX] shaded specification in POSIX.
41944         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41945         (Depends-on): Add isnand-nolibm.
41947         roundf-ieee tests: More tests.
41948         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41949         (main): Add tests for [MX] shaded specification in POSIX.
41950         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41951         (Depends-on): Add isnanf-nolibm.
41953         truncl-ieee tests: More tests.
41954         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41955         (main): Add tests for [MX] shaded specification in POSIX.
41956         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41957         (Depends-on): Add isnanl-nolibm.
41959         trunc-ieee tests: More tests.
41960         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41961         (main): Add tests for [MX] shaded specification in POSIX.
41962         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41963         (Depends-on): Add isnand-nolibm.
41965         truncf-ieee tests: More tests.
41966         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41967         (main): Add tests for [MX] shaded specification in POSIX.
41968         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41969         (Depends-on): Add isnanf-nolibm.
41971         ceill-ieee tests: More tests.
41972         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41973         (main): Add tests for [MX] shaded specification in POSIX.
41974         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41975         (Depends-on): Add isnanl-nolibm.
41977         ceil-ieee tests: More tests.
41978         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41979         (main): Add tests for [MX] shaded specification in POSIX.
41980         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41981         (Depends-on): Add isnand-nolibm.
41983         ceilf-ieee tests: More tests.
41984         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41985         (main): Add tests for [MX] shaded specification in POSIX.
41986         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41987         (Depends-on): Add isnanf-nolibm.
41989         floorl-ieee tests: More tests.
41990         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41991         (main): Add tests for [MX] shaded specification in POSIX.
41992         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41993         (Depends-on): Add isnanl-nolibm.
41995         floor-ieee tests: More tests.
41996         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41997         (main): Add tests for [MX] shaded specification in POSIX.
41998         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41999         (Depends-on): Add isnand-nolibm.
42001         floorf-ieee tests: More tests.
42002         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42003         (main): Add tests for [MX] shaded specification in POSIX.
42004         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42005         (Depends-on): Add isnanf-nolibm.
42007 2012-02-26  Bruno Haible  <bruno@clisp.org>
42009         fpieee: More comments.
42010         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
42012 2012-02-25  Bruno Haible  <bruno@clisp.org>
42014         Tests for module 'log10l'.
42015         * modules/log10l-tests: New file.
42016         * tests/test-log10l.c: New file.
42017         * tests/test-math-c++.cc: Check the declaration of log10l.
42019         New module 'log10l'.
42020         * lib/math.in.h (log10l): New declaration.
42021         * lib/log10l.c: New file.
42022         * m4/log10l.m4: New file.
42023         * modules/log10l: New file.
42024         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
42025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
42026         HAVE_DECL_LOG10L.
42027         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
42028         HAVE_DECL_LOG10L.
42029         * doc/posix-functions/log10l.texi: Mention the new module.
42031 2012-02-25  Bruno Haible  <bruno@clisp.org>
42033         fmodl, remainder*: Avoid wrong results due to rounding errors.
42034         * lib/fmodl.c (fmodl): Correct the result if it is not within the
42035         expected bounds.
42036         * lib/remainderf.c (remainderf): Likewise.
42037         * lib/remainder.c (remainder): Likewise.
42038         * lib/remainderl.c (remainderl): Likewise.
42040 2012-02-25  Bruno Haible  <bruno@clisp.org>
42042         Tests for module 'remainderl'.
42043         * modules/remainderl-tests: New file.
42044         * tests/test-remainderl.c: New file.
42045         * tests/test-math-c++.cc: Check the declaration of remainderl.
42047         New module 'remainderl'.
42048         * lib/math.in.h (remainderl): New declaration.
42049         * lib/remainderl.c: New file.
42050         * m4/remainderl.m4: New file.
42051         * modules/remainderl: New file.
42052         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
42053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
42054         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
42055         HAVE_REMAINDERL.
42056         * doc/posix-functions/remainderl.texi: Mention the new module.
42058 2012-02-25  Bruno Haible  <bruno@clisp.org>
42060         Tests for module 'remainderf'.
42061         * modules/remainderf-tests: New file.
42062         * tests/test-remainderf.c: New file.
42063         * tests/test-math-c++.cc: Check the declaration of remainderf.
42065         New module 'remainderf'.
42066         * lib/math.in.h (remainderf): New declaration.
42067         * lib/remainderf.c: New file.
42068         * m4/remainderf.m4: New file.
42069         * modules/remainderf: New file.
42070         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
42071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
42072         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
42073         HAVE_REMAINDERF.
42074         * doc/posix-functions/remainderf.texi: Mention the new module.
42076 2012-02-25  Bruno Haible  <bruno@clisp.org>
42078         remainder: Support for MSVC.
42079         * lib/math.in.h (remainder): New declaration.
42080         * lib/remainder.c: New file.
42081         * m4/remainder.m4: New file.
42082         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
42083         (Depends-on): Add math, round, fma.
42084         (configure.ac): Use results of gl_FUNC_REMAINDER.
42085         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
42086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
42087         HAVE_DECL_REMAINDER.
42088         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
42089         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
42090         * tests/test-math-c++.cc: Check the declaration of remainder.
42091         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
42092         problems are fixed.
42094 2012-02-25  Bruno Haible  <bruno@clisp.org>
42096         Tests for module 'fmodl'.
42097         * modules/fmodl-tests: New file.
42098         * tests/test-fmodl.c: New file.
42099         * tests/test-math-c++.cc: Check the declaration of fmodl.
42101         New module 'fmodl'.
42102         * lib/math.in.h (fmodl): New declaration.
42103         * lib/fmodl.c: New file.
42104         * m4/fmodl.m4: New file.
42105         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
42106         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
42107         REPLACE_FMODL.
42108         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
42109         REPLACE_FMODL.
42110         * modules/fmodl: New file.
42111         * doc/posix-functions/fmodl.texi: Mention the new module.
42113 2012-02-25  Bruno Haible  <bruno@clisp.org>
42115         Tests for module 'modfl'.
42116         * modules/modfl-tests: New file.
42117         * tests/test-modfl.c: New file.
42118         * tests/test-math-c++.cc: Check the declaration of modfl.
42120         New module 'modfl'.
42121         * lib/math.in.h (modfl): New declaration.
42122         * lib/modfl.c: New file.
42123         * m4/modfl.m4: New file.
42124         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
42125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
42126         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
42127         * modules/modfl: New file.
42128         * doc/posix-functions/modfl.texi: Mention the new module.
42130 2012-02-25  Bruno Haible  <bruno@clisp.org>
42132         Tests for module 'fabsl'.
42133         * modules/fabsl-tests: New file.
42134         * tests/test-fabsl.c: New file.
42135         * tests/test-math-c++.cc: Check the declaration of fabsl.
42137         New module 'fabsl'.
42138         * lib/math.in.h (fabsl): New declaration.
42139         * lib/fabsl.c: New file.
42140         * m4/fabsl.m4: New file.
42141         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
42142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
42143         REPLACE_FABSL.
42144         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
42145         REPLACE_FABSL.
42146         * modules/fabsl: New file.
42147         * doc/posix-functions/fabsl.texi: Mention the new module.
42149 2012-02-25  Bruno Haible  <bruno@clisp.org>
42151         fabs tests: More tests.
42152         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
42153         (zero): New variable.
42154         (main): Add tests for signed zero.
42155         * modules/fabs-tests (Files): Add tests/minus-zero.h.
42157         fabsf tests: More tests.
42158         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
42159         (zero): New variable.
42160         (main): Add tests for signed zero.
42161         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
42163 2012-02-24  Bruno Haible  <bruno@clisp.org>
42165         atanl: Provide function definition on MSVC.
42166         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
42167         function pointer.
42168         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
42170 2012-02-24  Bruno Haible  <bruno@clisp.org>
42172         acosl: Provide function definition on MSVC.
42173         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
42174         function pointer.
42175         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
42177 2012-02-24  Bruno Haible  <bruno@clisp.org>
42179         asinl: Provide function definition on MSVC.
42180         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
42181         function pointer.
42182         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
42184 2012-02-24  Bruno Haible  <bruno@clisp.org>
42186         tanl: Provide function definition on MSVC.
42187         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
42188         function pointer.
42189         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
42191 2012-02-24  Bruno Haible  <bruno@clisp.org>
42193         cosl: Provide function definition on MSVC.
42194         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
42195         function pointer.
42196         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
42198 2012-02-24  Bruno Haible  <bruno@clisp.org>
42200         sinl: Provide function definition on MSVC.
42201         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
42202         function pointer.
42203         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
42205 2012-02-24  Bruno Haible  <bruno@clisp.org>
42207         logl: Provide function definition on MSVC.
42208         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
42209         function pointer.
42210         * lib/math.in.h (logl): Undefine if it does not exist as a function.
42212 2012-02-24  Bruno Haible  <bruno@clisp.org>
42214         expl: Provide function definition on MSVC.
42215         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
42216         function pointer.
42217         * lib/math.in.h (expl): Undefine if it does not exist as a function.
42219 2012-02-24  Bruno Haible  <bruno@clisp.org>
42221         sqrtl: Provide function definition on MSVC.
42222         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
42223         a function pointer.
42224         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
42226 2012-02-24  Bruno Haible  <bruno@clisp.org>
42228         ceill: Provide function definition on MSVC.
42229         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
42230         used as a function pointer.
42231         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
42233 2012-02-24  Bruno Haible  <bruno@clisp.org>
42235         floorl: Provide function definition on MSVC.
42236         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
42237         used as a function pointer.
42238         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
42240 2012-02-24  Bruno Haible  <bruno@clisp.org>
42242         ceilf: Provide function definition on MSVC.
42243         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
42244         used as a function pointer.
42245         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
42247 2012-02-24  Bruno Haible  <bruno@clisp.org>
42249         floorf: Provide function definition on MSVC.
42250         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
42251         used as a function pointer.
42252         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
42254 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42256         stdnoreturn: new module
42257         This implements a replacement for C11's <stdnoreturn.h>.
42258         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
42259         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
42260         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
42261         * tests/test-stdnoreturn.c: New files.
42263 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
42265         regex: fix false multibyte matches in some regular expressions
42266         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
42267         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
42268         * lib/regex_internal.c (re_string_skip_chars):
42269         Fix miscomputation of remain_len that may cause incomplete
42270         multi-byte character and false match.
42272 2012-02-24  Jim Meyering  <meyering@redhat.com>
42274         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
42275         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
42276         uses with "==" *before* the call, e.g., 0 == strcmp (...)
42277         Remove now-unnecessary str''cmp obfuscation.
42278         Suggested by Akim Demaille.
42280 2012-02-24  Bruno Haible  <bruno@clisp.org>
42282         streq: Rename macro.
42283         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
42284         * NEWS: Mention the change.
42285         * lib/mbrtowc.c (mbrtowc): Update.
42286         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
42287         * lib/wcwidth.c (wcwidth): Update.
42288         Suggested by Akim Demaille and Jim Meyering.
42290 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42292         regex: fix typo in definition of MIN
42293         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
42294         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
42296 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42297             Bruno Haible  <bruno@clisp.org>
42299         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
42300         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
42301         entries into a stack-allocated buffer directly.
42302         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
42304 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42305             Bruno Haible  <bruno@clisp.org>
42307         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
42309          - There were several instances of this pattern:
42311              for (;;) {
42312                n = acl (f, GETACLCNT, 0, NULL);
42313                [ allocate an array A of size N ]
42314                if (acl (f, GETACL, n, a) == n)
42315                  break;
42316              }
42318            This loop might never terminate if some other process is constantly
42319            manipulating the file's ACL.  The loop should be rewritten to
42320            terminate.
42322          - The acl (... GETACLNT ...) call is merely an optimization; its value
42323            is merely a hint as to how big to make the array.  A better
42324            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
42325            and just guess a reasonably-big size, growing the size and trying
42326            again if it's not large enough.  This guarantees termination, and
42327            saves a system call.
42329         * lib/acl-internal.h: Include <limits.h>.
42330         (MIN, SIZE_MAX): New macros.
42331         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
42332         a stack-allocated buffer, and use malloc if it does not fit. Don't
42333         use GETACLCNT.
42334         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42336 2012-02-19  Bruno Haible  <bruno@clisp.org>
42338         acl: Fix endless loop on Solaris with vxfs.
42339         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
42340         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
42341         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42342         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
42343         * tests/test-sameacls.c (main)[Solaris]: Likewise.
42344         Reported by Bill Jones in
42345         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
42347 2012-02-19  Bruno Haible  <bruno@clisp.org>
42349         acl: Fix copy-acl test failure on Solaris 11.0.
42350         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
42351         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
42352         that this function returns 0 in some more cases.
42354 2012-02-19  Bruno Haible  <bruno@clisp.org>
42356         acl: Update doc references.
42357         * doc/acl-resources.txt: Update links to Solaris documentation.
42359 2012-02-19  Bruno Haible  <bruno@clisp.org>
42361         Fix test failure in many locales on Solaris 11.
42362         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
42363         'tr' arguments.
42364         * tests/test-pipe-filter-ii1.c (main): Likewise.
42365         * build-aux/bootstrap (check_versions): Run 'tr' command with range
42366         expressions in the C locale.
42367         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42368         * m4/host-os.m4 (gl_HOST_OS): Likewise.
42370 2012-02-19  Bruno Haible  <bruno@clisp.org>
42372         gnulib-tool: Improve usage message.
42373         * gnulib-tool (func_usage): Move doc of --help and --version to the
42374         section "Operation modes".
42376 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
42378         README-release: make it easier to execute commands
42379         * top/README-release: break commands out on to separate lines.
42381 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
42383         GNUmakefile: simplify detection of unconfigured trees
42384         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
42385         whether the tree make is being run from is already configured or
42386         not.  Related simplifications.
42388 2012-02-13  Simon Josefsson  <simon@josefsson.org>
42390         * gnulib-tool (func_usage): Document --help and --version.
42392 2012-02-11  Jim Meyering  <meyering@redhat.com>
42394         bootstrap: don't exit 0 upon gnulib-tool failure
42395         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
42396         its exit status, not 0.
42398 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
42400         README-release: various improvements
42401         * top/README-release: Give a command to push changes for the
42402         release.  Add "distcheck" to list of other pre-release checks.
42403         Fix instance of "make stable" which should be "make TYPE".
42405 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
42407         maint: replace FSF snail-mail addresses with URLs
42408         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
42409         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
42410         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
42411         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
42412         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
42413         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
42414         * lib/check-version.c, lib/check-version.h, lib/config.charset:
42415         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
42416         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
42417         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
42418         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
42419         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
42420         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
42421         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
42422         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
42423         * lib/glthread/thread.c, lib/glthread/thread.h:
42424         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
42425         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
42426         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
42427         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
42428         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
42429         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
42430         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
42431         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
42432         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
42433         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
42434         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
42435         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
42436         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
42437         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
42438         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
42439         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
42440         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
42441         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
42442         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
42443         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
42444         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
42445         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
42446         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
42447         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
42448         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
42449         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
42450         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
42451         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
42452         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
42453         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
42454         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
42455         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
42456         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
42457         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
42458         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
42459         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
42460         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
42461         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
42462         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
42463         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
42464         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
42465         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
42466         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
42467         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
42468         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
42469         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
42470         * tests/test-poll.c, tests/test-quotearg-simple.c:
42471         * tests/test-quotearg.c, tests/test-quotearg.h:
42472         * tests/test-round-ieee.c, tests/test-round1.c:
42473         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
42474         * tests/test-roundl-ieee.c, tests/test-roundl.c:
42475         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
42476         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
42477         * tests/test-strerror.c, tests/test-strerror_r.c:
42478         * tests/test-strsignal.c, tests/test-strverscmp.c:
42479         * tests/test-xmemdup0.c:
42480         Replace FSF snail mail addresses with URLs, as per GNU coding
42481         standards.  See glibc bug
42482         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
42484 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
42486         README-release: capitalize a word and split a line
42487         * top/README-release: Fix punctuation and spacing.
42489 2012-02-08  Akim Demaille  <demaille@gostai.com>
42491         fatal-signal: use C prototypes (with explicit void).
42492         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42493         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
42495 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42497         regex: spelling fix
42498         * lib/regexec.c: spelling fix
42500         regex: rely on stdint.h for SIZE_MAX
42501         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
42503 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42505         regex: merge glibc changes
42507         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
42508         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
42509         (init_word_char): Work even if bitset words are not exactly 32 or
42510         64 bits wide.  Don't assume there are no padding bits.
42511         * lib/regex.c [_LIBC]: Do not include <config.h>.
42512         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
42513         and -Wtype-limits.
42514         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
42515         needless disagreement with glibc.  All uses changed.  Define it to
42516         1 only if _GNU_SOURCE, to match glibc.
42517         (_REG_RM_NAME): Remove; no longer needed, since the names in
42518         question are now all protected by __USE_GNU.
42519         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
42520         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
42521         * lib/regex_internal.h (MIN): New macro.
42523         2012-01-03 Ulrich Drepper <drepper@gmail.com>
42524         * lib/regcomp.c (init_word_char): Optimize regex a bit.
42526         2011-12-30 Jakub Jelinek <jakub@redhat.com>
42527         * lib/regex_internal.c (re_string_fetch_byte_case):
42528         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
42529         is miscompiled, and it turns out it is because of an incorrect
42530         attribute on re_string_fetch_byte_case.  Unlike
42531         re_string_peek_byte_case, this one is really not pure, it modifies
42532         memory (increments pstr->cur_idx), and with the pure attribute GCC
42533         assumed it doesn't and it cached the presumed value of
42534         regexp->cur_idx in a variable across the
42535          for (;; ++i)
42536            {
42537              if (i >= BRACKET_NAME_BUF_SIZE)
42538                return REG_EBRACK;
42539              if (token->type == OP_OPEN_CHAR_CLASS)
42540                ch = re_string_fetch_byte_case (regexp);
42541              else
42542                ch = re_string_fetch_byte (regexp);
42543              if (re_string_eoi(regexp))
42544                return REG_EBRACK;
42545              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
42546                break;
42547              elem->opr.name[i] = ch;
42548            }
42550         2011-11-29 Andreas Schwab <schwab@redhat.com>
42551         * lib/regcomp.c (build_equiv_class):
42552         Fix access after end of search string in regex matcher.
42554         2011-11-12 Ulrich Drepper <drepper@redhat.com>
42555         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
42557         2011-10-12 Ulrich Drepper <drepper@redhat.com>
42558         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
42560         2011-10-11 Ulrich Drepper <drepper@redhat.com>
42561         * lib/regcomp.c (parse_branch, parse_sub_exp):
42562         More regex memory leak fixes and tests.
42563         (parse_sub_exp, parse_bracket_exp):
42564         Fix memory leak for some invalid regular expressions.
42566         2011-05-28 Ulrich Drepper <drepper@gmail.com>
42567         * lib/regex_internal.c, lib/regexec.c:
42568         Fix unnecessary overallocation due to incomplete character.  When
42569         incomplete characters are found at the end of a string the code
42570         ran amok and allocated lots of memory.  Stricter limits are now in
42571         place.
42573         2011-05-20 Reuben Thomas <rrt@sc3d.org>
42574         * lib/regex.h: Update documentation.
42576         2011-05-16 Aharon Robbins <arnold@skeeve.com>
42577         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
42579         2010-05-05 Andreas Schwab <schwab@redhat.com>
42580         * lib/regexec.c (find_collation_sequence_value):
42581         Fix lookup of collation sequence value during regexp matching.
42583         2010-01-22 Ulrich Drepper <drepper@redhat.com>
42584         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
42586         2008-01-16 Ulrich Drepper <drepper@redhat.com>
42587         * lib/regex.h: Cleanup namespace.
42589         2007-11-26 Ulrich Drepper <drepper@redhat.com>
42590         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
42592         2007-08-26 Ulrich Drepper <drepper@redhat.com>
42593         * lib/regex_internal.h: Prevent some declarations and definitions
42594         to be seen when used in tests.
42596         2005-05-06 Ulrich Drepper <drepper@redhat.com>
42597         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
42598         __libc_lock_* macros if not _LIBC.
42599         (struct re_dfa_t): Add lock.
42601 2012-02-07  Eric Blake  <eblake@redhat.com>
42603         maint.mk: also prohibit lower-case @var@
42604         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
42605         lower case, like @top_srcdir@.
42607 2012-02-04  Eric Blake  <eblake@redhat.com>
42609         canonicalize: avoid uninitialized memory use
42610         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
42611         random '/' left in dest.
42612         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
42614 2012-02-04  Bruno Haible  <bruno@clisp.org>
42616         isatty: Fix test failure of ptsname_r on native Windows.
42617         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
42618         and don't set errno.
42619         (isatty): Test first whether fd is valid. Set errno when returning 0.
42621 2012-02-04  Bruno Haible  <bruno@clisp.org>
42623         spawn-pipe tests: Fix a NULL program name in a diagnostic.
42624         * tests/test-spawn-pipe-main.c: Include progname.h.
42625         (main): Invoke set_program_name.
42626         * modules/spawn-pipe-tests (Depends-on): Add progname.
42628         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
42629         * tests/test-nonblocking-socket-main.c: Include progname.h.
42630         (main): Invoke set_program_name.
42631         * modules/nonblocking-socket-tests (Depends-on): Add progname.
42633         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
42634         * tests/test-nonblocking-pipe-main.c: Include progname.h.
42635         (main): Invoke set_program_name.
42636         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
42638 2012-02-04  Eric Blake  <eblake@redhat.com>
42640         canonicalize-lgpl: fix // handling
42641         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
42643         canonicalize: fix // handling
42644         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
42645         /// to //, since only // is special.
42647 2012-02-04  Bruno Haible  <bruno@clisp.org>
42649         ioctl: Fix test failure on native Windows.
42650         * lib/ioctl.c: Include msvc-nothrow.h.
42651         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
42653 2012-02-04  Bruno Haible  <bruno@clisp.org>
42655         fsync: Avoid test failure on native Windows.
42656         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
42657         read-only.
42659 2012-02-04  Bruno Haible  <bruno@clisp.org>
42661         sys_select: Avoid syntax error on OpenBSD 5.0.
42662         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
42663         currently being included, just include the system's <sys/select.h>.
42665 2012-02-04  Bruno Haible  <bruno@clisp.org>
42667         sys_select: Avoid syntax error on OpenBSD 5.0.
42668         * lib/sys_select.in.h: Include <signal.h> only after the include_next
42669         <sys/select.h>, not before.
42670         Reported by Jiri B <jirib@devio.us>.
42672 2012-02-04  Bruno Haible  <bruno@clisp.org>
42674         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
42675         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
42676         global variables.
42677         * tests/test-get-rusage-data.c (main): Likewise.
42678         Reported by Jim Meyering.
42680 2012-02-04  Bruno Haible  <bruno@clisp.org>
42682         stdioext: Fix last commit.
42683         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
42685 2012-02-03  Bruno Haible  <bruno@clisp.org>
42687         stdioext: Add tentative support for Plan9.
42688         * lib/stdio-impl.h: Include <errno.h>.
42689         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
42690         * lib/freadable.c (freadable): Likewise.
42691         * lib/fwritable.c (fwritable): Likewise.
42692         * lib/fbufmode.c (fbufmode): Likewise.
42693         * lib/freading.c (freading): Likewise.
42694         * lib/fwriting.c (fwriting): Likewise.
42695         * lib/freadptr.c (freadptr): Likewise.
42696         * lib/freadseek.c (freadptrinc): Likewise.
42697         * lib/freadahead.c (freadahead): Likewise.
42698         * lib/fpurge.c (fpurge): Likewise.
42699         * lib/fseeko.c (rpl_fseeko): Likewise.
42700         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
42701         Reported by Jens Staal <staal1978@gmail.com>.
42703 2012-02-02  Jim Meyering  <meyering@redhat.com>
42705         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
42706         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
42707         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
42708         not even to try to add the attribute.  Instead, add a pragma to suppress
42709         the suggestion/warning.
42711 2012-01-31  Karl Berry  <karl@gnu.org>
42713         setstate doc: typo.
42714         * doc/posix-functions/setstate.texi (setstate): { not (.
42716 2012-01-31  Bruno Haible  <bruno@clisp.org>
42718         popen: Make more robust on Windows.
42719         * lib/popen.c: On native Windows, use the _popen based code even if
42720         HAVE_POPEN is set.
42721         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
42722         environment variable on native Windows.
42724 2012-01-30  Bruno Haible  <bruno@clisp.org>
42726         pclose: Fix typo.
42727         * lib/stdio.in.h (pclose): Fix typo in warning message.
42729 2012-01-30  Bruno Haible  <bruno@clisp.org>
42731         doc about getlogin_r, setstate.
42732         * doc/posix-functions/getlogin_r.texi: List the incompatible
42733         declaration problem under "not fixed by gnulib".
42734         * doc/posix-functions/setstate.texi: Mention incompatible declaration
42735         problem on Solaris 11 and other platforms.
42737 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
42738             Bruno Haible  <bruno@clisp.org>
42740         poll tests: Make test more robust.
42741         * tests/test-poll.c: Include macros.h.
42742         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
42743         return value of various I/O operations.
42744         * modules/poll-tests (Files): Add tests/macros.h.
42746 2012-01-30  Bruno Haible  <bruno@clisp.org>
42748         sys_stat: Fix support for mingw64 and MSVC.
42749         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
42750         header files already do it.
42751         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
42752         stat itself.
42753         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42755 2012-01-30  Bruno Haible  <bruno@clisp.org>
42757         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
42758         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
42759         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
42761 2012-01-29  Bruno Haible  <bruno@clisp.org>
42763         quotearg: Fix test failure on MacOS X 10.5.
42764         * tests/test-quotearg-simple.c: Include localcharset.h.
42765         (main): If the locale encoding is not ASCII, bypass the tests of
42766         locale_quoting_style and clocale_quoting_style.
42767         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
42769 2012-01-29  Jim Meyering  <meyering@redhat.com>
42771         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
42772         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
42773         detect uses of canonicalize_file_name.
42775 2012-01-28  Bruno Haible  <bruno@clisp.org>
42777         test-framework-sh: Fix test failure with AIX 7.1 diff.
42778         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
42779         in column 1, like 'diff -c' does.
42780         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
42781         whether 'diff -u' is used. Instead, test whether the output contains
42782         some '@' character.
42784 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42786         strtoimax: eliminate need for stdint.h, inttypes.h checks
42787         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
42788         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
42789         the prerequisites for a recently-introduced strtoimax test.
42790         I guess this might cause strtoimax to be replaced when not
42791         strictly necessary on older hosts, but this shouldn't introduce
42792         any bugs and it should make Emacs 'configure' faster on typical
42793         modern hosts.  Problem discovered when importing the latest gnulib
42794         to an Emacs test version.
42795         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
42797 2012-01-28  Bruno Haible  <bruno@clisp.org>
42799         sys_time: Override 'struct timeval' on some native Windows platforms.
42800         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
42801         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
42802         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
42803         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
42804         needs to be overridden.
42805         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
42806         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
42807         * tests/test-sys_select.c: Check that the tv_sec member has the same
42808         size as a 'time_t'.
42809         * tests/test-sys_time.c: Likewise.
42810         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
42811         is set, set also REPLACE_GETTIMEOFDAY.
42812         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
42813         convert the resulting 'struct timeval' before returning.
42814         * lib/select.c: Include <sys/time.h>.
42815         (select, timeval): Undefine at the right place.
42816         * modules/select (Depends-on): Add sys_time.
42817         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
42818         some Windows platforms.
42819         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42821 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42823         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
42824         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
42825         an integer.
42826         * lib/fcntl.c (dupfd): Likewise.
42827         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
42829 2012-01-28  Bruno Haible  <bruno@clisp.org>
42831         fcntl: Avoid compilation error on native Windows.
42832         * modules/fcntl (Depends-on): Add 'close'.
42834 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42836         select, poll, isatty: Avoid warnings on x86_64 mingw64.
42837         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
42838         pointer to an integer.
42839         * lib/poll.c (IsConsoleHandle): Likewise.
42840         * lib/isatty.c (IsConsoleHandle): Likewise.
42842 2012-01-28  Jim Meyering  <meyering@redhat.com>
42844         doc: clarify README-release
42845         * top/README-release: Clarify: you should make a point to have
42846         the latest stable versions of build tools in your PATH, and the
42847         reference to buildreq is solely for its list of tool names, not
42848         for its minimal-functional version numbers.
42849         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
42851         maint.mk: use more readable (yet functionally equivalent) quoting
42852         It is common to quote a single quote in a single quoted string like
42853         this:  '...'\''...'.  Unless you know the idiom, that looks like
42854         gibberish, so prefer to double-quote the string when possible.
42855         Then you can use a more readable, lone single quote: "...'..."
42856         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
42857         "don't" is more readable than the equivalent 'don'\''t'.
42858         (sc_cast_of_x_alloc_return_value): Likewise.
42859         (sc_cast_of_alloca_return_value): Likewise.
42860         (sc_makefile_path_separator_check): Similar: use ":" in '...',
42861         rather than '\'':'\''.
42863 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42865         stdalign: relax _Alignof and tighten _Alignas test
42866         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
42867         as it was too strict: alignof must divide offsetof, but it need
42868         not equal offsetof.  Inspired by Joseph S. Myers's comment
42869         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
42870         Conversely, tighten the _Alignas test a bit, as the resulting
42871         alignment must be exactly 8.
42873 2012-01-27  Bruno Haible  <bruno@clisp.org>
42875         stdalign: Document the last change.
42876         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
42878 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42880         stdalign: check that alignof and offsetof are consistent
42881         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
42882         Problem reported for gnulib by Richard W.M. Jones in
42883         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
42885 2012-01-27  Jim Meyering  <meyering@redhat.com>
42887         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
42888         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
42889         convert a sequence with gaps to the minimal containing range.
42890         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
42891         * tests/test-update-copyright.sh: Test for this.
42892         The FSF confirmed it is ok to do this, assuming there is at
42893         least one significant change per year in the affected range:
42894         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
42896 2012-01-26  Bruno Haible  <bruno@clisp.org>
42898         pipe2: refine doc about thread-safety
42899         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
42900         multithread-safety problem.
42901         * doc/glibc-functions/accept4.texi: Likewise.
42903 2012-01-26  Bruno Haible  <bruno@clisp.org>
42905         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
42906         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
42907         In the test program, include <fcntl.h>, for O_RDONLY.
42909 2012-01-26  Eric Blake  <eblake@redhat.com>
42911         pipe2: document lack of thread-safety in replacement
42912         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
42913         issue in replacement.
42914         * doc/glibc-functions/accept4.texi (accept4): Likewise.
42915         Based on a report by Eric Wong.
42917 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42918             Bruno Haible  <bruno@clisp.org>
42920         malloca: Avoid warnings on x86_64 mingw64.
42921         * lib/malloca.c: Include <stdint.h>.
42922         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
42923         * modules/malloca (Depends-on): Add stdint.
42924         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
42926 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42928         obstack: remove __STDC__ conditionals
42929         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
42930         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
42931         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
42932         m4/include_next.m4 as the only gnulib-maintained places that still
42933         refer to __STDC__.
42935 2012-01-24  Bruno Haible  <bruno@clisp.org>
42937         havelib: Modern quoting.
42938         * build-aux/config.rpath: Quote 'like this', not `like this', as per
42939         the recent change to the GNU coding standards.
42941 2012-01-24  Bruno Haible  <bruno@clisp.org>
42943         stdint: Improve support for Android.
42944         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
42945         Reported by Simon Josefsson <simon@josefsson.org>.
42947 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42949         doc: omit trailing empty lines from INSTALL etc.
42950         * doc/Makefile (INSTALL): Omit trailing empty lines.
42951         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
42952         omit trailing empty lines.  This simplifies the build procedure.
42954 2012-01-23  Jim Meyering  <meyering@redhat.com>
42956         tests: avoid spurious warnings about gl_sockets_startup
42957         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
42958         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
42959         reporting a "statement with no effect".
42960         * tests/test-accept.c (main): Mark as "(void)".
42961         * tests/test-accept4.c (main): Likewise.
42962         * tests/test-bind.c (main): Likewise.
42963         * tests/test-connect.c (main): Likewise.
42964         * tests/test-getpeername.c (main): Likewise.
42965         * tests/test-getsockname.c (main): Likewise.
42966         * tests/test-getsockopt.c (main): Likewise.
42967         * tests/test-listen.c (main): Likewise.
42968         * tests/test-recv.c (main): Likewise.
42969         * tests/test-recvfrom.c (main): Likewise.
42970         * tests/test-send.c (main): Likewise.
42971         * tests/test-sendto.c (main): Likewise.
42972         * tests/test-setsockopt.c (main): Likewise.
42973         * tests/test-shutdown.c (main): Likewise.
42975 2012-01-21  Bruno Haible  <bruno@clisp.org>
42977         locale-fr.m4: Fix for Android.
42978         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
42979         failure of the test program on Bionic libc.
42981 2012-01-21  Jim Meyering  <meyering@redhat.com>
42983         bootstrap: fail when bootstrap_post_import_hook fails
42984         Otherwise, it's far too easy to miss diagnostics emitted
42985         between gnulib-tool's output and that of running configure.
42986         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
42988 2012-01-17  Jim Meyering  <meyering@redhat.com>
42990         maint: enable sc_trailing_blank
42991         * build-aux/pmccabe.css: Remove trailing blanks.
42992         * doc/acl-cygwin.txt: Likewise.
42993         * doc/gnu-oids.texi: Likewise
42994         * cfg.mk: Enable sc_trailing_blank.
42995         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
42997 2012-01-17  Jim Meyering  <meyering@redhat.com>
42999         maint: enable sc_prohibit_openat_without_use
43000         * cfg.mk: Enable sc_prohibit_openat_without_use.
43001         Exempt lib/selinux-at.c.
43003 2012-01-17  Jim Meyering  <meyering@redhat.com>
43005         maint: enable sc_prohibit_cloexec_without_use
43006         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
43007         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
43009 2012-01-17  Jim Meyering  <meyering@redhat.com>
43011         maint: enable sc_prohibit_intprops_without_use
43012         * cfg.mk: Enable sc_prohibit_intprops_without_use
43013         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
43015 2012-01-17  Jim Meyering  <meyering@redhat.com>
43017         maint: enable sc_prohibit_hash_pjw_without_use
43018         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
43019         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
43020         to match any use of \<hash_pjw\>, i.e., not necessarily with a
43021         following " (".
43023 2012-01-17  Jim Meyering  <meyering@redhat.com>
43025         maint: enable double-word-prohibiting rule
43026         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
43027         Exempt three files.
43029 2012-01-17  Jim Meyering  <meyering@redhat.com>
43031         maint: remove empty lines at EOF, but excluding modules/*
43032         Apply syntax rules at home as well as abroad.  Most changes
43033         were induced by running this:
43034           make srcdir=. _build-aux=build-aux -f top/maint.mk \
43035             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
43036             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
43037         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
43038         Exempt modules/* and two binary files.
43039         Also exempt doc/INSTALL*, per request from Bruno Haible.
43040         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
43041         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
43042         * doc/Copyright/request-assign.future: Likewise.
43043         * doc/Copyright/request-disclaim.changes: Likewise.
43044         * doc/INSTALL: Likewise.
43045         * doc/INSTALL.ISO: Likewise.
43046         * doc/INSTALL.UTF-8: Likewise.
43047         * doc/acl-cygwin.txt: Likewise.
43048         * doc/acl-resources.txt: Likewise.
43049         * doc/fdl-1.2.texi: Likewise.
43050         * doc/fdl-1.3.texi: Likewise.
43051         * doc/fdl.texi: Likewise.
43052         * lib/argp-pin.c: Likewise.
43053         * lib/round.c: Likewise.
43054         * lib/unicase/u16-totitle.c: Likewise.
43055         * lib/unictype/block_test.c: Likewise.
43056         * lib/uninorm/canonical-decomposition.c: Likewise.
43057         * m4/README: Likewise.
43058         * m4/relocatable-lib.m4: Likewise.
43059         * tests/test-isnand-nolibm.c: Likewise.
43060         * tests/test-isnand.c: Likewise.
43061         * tests/uninorm/NormalizationTest.txt: Likewise.
43063 2012-01-17  Jim Meyering  <meyering@redhat.com>
43065         maint: add framework to run syntax-check rules against gnulib sources
43066         * cfg.mk: New file, to disable all currently-failing tests.
43067         We'll enable them one by one, as they are made to pass.
43068         * Makefile (sc_maint): New rule.
43070 2012-01-21  Bruno Haible  <bruno@clisp.org>
43072         stdint: Add support for Android.
43073         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
43074         include the system's <stdint.h>.
43075         Reported by Simon Josefsson <simon@josefsson.org>.
43077 2012-01-19  Jim Meyering  <meyering@redhat.com>
43079         bootstrap: add bootstrap_post_import_hook
43080         Bison does still need something like the gnulib_mk_hook whose
43081         invocation I had to remove along with slurp in commit 767ccd40.
43082         Technically, we could get along without it, but doing so would
43083         have required living with a warning and a mandatory post-bootstrap
43084         automake rerun.
43085         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
43086         (bootstrap_post_import_hook): New function.
43087         Invoke it after gnulib-tool --import and before autoreconf.
43089 2012-01-18  Jim Meyering  <meyering@redhat.com>
43091         gitlog-to-changelog: don't use "no_"-prefixed variable name
43092         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
43093         to enable both --cluster and --no-cluster.  Change variable name,
43094         s/\$no_cluster/$cluster/, and reverse usage to match.
43096         gitlog-to-changelog: use "||", not "or" in expressions
43097         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
43098         expressions.
43100 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
43102         gitlog-to-changelog: new option --no-cluster
43103         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
43104         clustering of adjacent commit messages.
43106 2012-01-17  Jim Meyering  <meyering@redhat.com>
43108         maint: spell file systems with two words, not one
43109         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
43110         two words, not one.
43112 2012-01-16  Jim Meyering  <meyering@redhat.com>
43114         bootstrap: add a FIXME comment to ensure we eventually remove the hack
43115         * build-aux/bootstrap (gnulib_tool_options): Add comment.
43117 2012-01-16  Eric Blake  <eblake@redhat.com>
43119         bootstrap: cater to autoconf 2.59
43120         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
43121         is not available.
43123         bootstrap: properly check for libtool
43124         * build-aux/bootstrap (libtoolize): Also run libtool when older
43125         usage is detected.
43127 2012-01-15  Bruno Haible  <bruno@clisp.org>
43129         Improve support for MSVC 9.
43130         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
43131         clashes on MSVC.
43132         * lib/fcntl.in.h: Likewise.
43133         * lib/stdlib.in.h: Likewise.
43134         * lib/sys_stat.in.h: Likewise.
43136 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
43138         gnupload: we hold the master copy of this script now
43139         For motivation and more information, see:
43140         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
43141         * build-aux/gnupload: Make it clear in the heading comments that the
43142         master copy of this file is maintained by gnulib.  Since we are at
43143         it, bump its copyright year and ...
43144         ($scriptversion): ... the date in its version.
43145         ($usage): Patches and bug reports should be sent to the gnulib list,
43146         not the automake one.
43147         * config/srclist.txt: Don't try to sync 'gnupload' from automake
43148         anymore.
43150 2012-01-15  Bruno Haible  <bruno@clisp.org>
43152         Fix module 'random'.
43153         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
43154         initstate, setstate are declared.
43156 2012-01-14  Bruno Haible  <bruno@clisp.org>
43158         Tests for module 'random'.
43159         * modules/random-tests: New file.
43160         * tests/test-random.c: New file, based on tests/test-random_r.c.
43162         New module 'random'.
43163         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
43164         declarations.
43165         * lib/random.c: New file, based on glibc/stdlib/random.c.
43166         * m4/random.m4: New file.
43167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
43168         HAVE_RANDOM.
43169         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
43170         * modules/random: New file.
43171         * config/srclist.txt: Add an entry for random.c.
43172         * doc/posix-functions/random.texi: Mention the 'random' module.
43173         * doc/posix-functions/initstate.texi: Likewise.
43174         * doc/posix-functions/setstate.texi: Likewise.
43175         * doc/posix-functions/srandom.texi: Likewise.
43177 2012-01-12  Bruno Haible  <bruno@clisp.org>
43179         random_r: Use common idioms.
43180         * lib/random_r.c: Include <stdlib.h> first.
43182         random_r: Override incompatible API on AIX, OSF/1.
43183         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
43184         Override the system function if REPLACE_RANDOM_R is 1.
43185         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
43186         and OSF/1, set REPLACE_RANDOM_R.
43187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
43188         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
43189         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
43190         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
43191         * doc/glibc-functions/random_r.texi: Likewise.
43192         * doc/glibc-functions/setstate_r.texi: Likewise.
43194         random_r: Support for MSVC 9.
43195         * lib/random_r.c: Include stdint.h, not inttypes.h.
43197 2012-01-12  Eric Blake  <eblake@redhat.com>
43199         inet_ntop: guard extra work by IF_LINT
43200         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
43201         better code generation when not checking for warnings.
43202         Suggested by Paul Eggert and Jim Meyering.
43204         strptime: fix regression on mingw
43205         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
43206         Fix regression.  Reported by Bruno Haible.
43208 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
43209             Bruno Haible  <bruno@clisp.org>
43211         copy-file: add error-code-returning variant.
43212         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
43213         (qcopy_file_preserving): New declaration.
43214         * lib/copy-file.c (qcopy_file_preserving): Renamed from
43215         copy_file_preserving. Change return type to 'int'. Don't emit an error
43216         message here.
43217         (copy_file_preserving): New function.
43218         * tests/test-copy-file.c: Include <stdlib.h>.
43219         (main): Test qcopy_file_preserving if the environment variable
43220         NO_STDERR_OUTPUT is set.
43221         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
43222         with NO_STDERR_OUTPUT
43223         * tests/test-copy-file-2.sh: Likewise.
43225 2012-01-10  Bruno Haible  <bruno@clisp.org>
43227         copy-file: Use 'quote' module consistently.
43228         * lib/copy-file.c (copy_file_preserving): Use quote().
43230         copy-file: Refactor.
43231         * lib/copy-file.c: Include quote.h.
43232         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
43233         message here.
43234         * modules/copy-file (Depends-on): Add quote.
43236         acl: Export qcopy_acl.
43237         * lib/acl.h (qcopy_acl): New declaration.
43238         * lib/copy-acl.c (qcopy_acl): Make non-static.
43240         acl: Rename a local variable.
43241         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
43243         acl: Align return values of copy_acl and qcopy_acl.
43244         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
43245         maybe < -1.
43247 2012-01-11  Eric Blake  <eblake@redhat.com>
43249         strptime: silence gcc warnings
43250         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
43251         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
43252         Reported by Daniel P. Berrange.
43254         inet_ntop: silence gcc warning
43255         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
43256         Reported by Daniel P. Berrange.
43258 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
43260         getloadavg test: skip the test on GNU/Linux without /proc mounted
43261         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
43262         file.  When /proc is not mounted, it always fails with ENOENT.
43263         * tests/test-getloadavg.c (main): Treat ENOENT return code from
43264         getloadavg(3) the same way as ENOSYS and ENOTSUP.
43266 2012-01-10  Bruno Haible  <bruno@clisp.org>
43268         regex: Avoid link error on MSVC 9.
43269         * modules/regex (Depends-on): Add wctype.
43271 2012-01-10  Bruno Haible  <bruno@clisp.org>
43273         doc: Mention --with-tests option.
43274         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
43275         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
43276         --with-tests.
43277         Reported by Reuben Thomas.
43279 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
43281         users.txt: order package names lexicographically.
43282         * users.txt: Order package names lexicographically.
43284 2012-01-10  Jim Meyering  <meyering@redhat.com>
43286         maint.mk: fix description in comment
43287         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
43289         ignore-value: remove deprecated ignore_ptr function
43290         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
43291         * NEWS: Note this.
43293 2012-01-09  Jim Meyering  <meyering@redhat.com>
43295         test-init.sh: avoid a subshell
43296         * tests/test-init.sh: Remove protective subshell.
43297         Suggested by Bernhard Voelker.  While a subshell is normally
43298         required to protect against older shells (Solaris, FreeBSD) that
43299         warn about a missing program before performing redirection, the
43300         shell-selection tests performed by init.sh probably exclude any
43301         offending shell.
43303 2012-01-08  Bruno Haible  <bruno@clisp.org>
43305         setlocale tests: Avoid test failure on Solaris 11.0.
43306         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
43307         variable.
43309 2012-01-08  Bruno Haible  <bruno@clisp.org>
43311         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
43312         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43313         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43314         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
43315         macro.
43316         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
43317         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43318         * lib/spawn_faction_addopen.c: Add workaround implementation if
43319         HAVE_WORKING_POSIX_SPAWN.
43320         * modules/spawn (Makefile): Substitute
43321         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43322         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
43323         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
43324         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43325         (Depends-on): Update conditions.
43326         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43327         the Solaris 11 bug.
43329 2012-01-08  Bruno Haible  <bruno@clisp.org>
43331         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
43332         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43333         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43334         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
43335         macro.
43336         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
43337         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43338         * lib/spawn_faction_adddup2.c: Add workaround implementation if
43339         HAVE_WORKING_POSIX_SPAWN.
43340         * modules/spawn (Makefile): Substitute
43341         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43342         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
43343         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
43344         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43345         (Depends-on): Update conditions.
43346         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43347         the Solaris 11 bug.
43349 2012-01-08  Bruno Haible  <bruno@clisp.org>
43351         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
43352         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43353         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43354         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
43355         HAVE_WORKING_POSIX_SPAWN.
43356         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
43357         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
43358         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43359         * lib/spawn_faction_addclose.c: Add workaround implementation if
43360         HAVE_WORKING_POSIX_SPAWN.
43361         * modules/spawn (Makefile): Substitute
43362         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43363         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
43364         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
43365         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43366         (Depends-on): Update conditions.
43367         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43368         the Solaris 11 bug.
43370 2012-01-08  Bruno Haible  <bruno@clisp.org>
43372         doc: Update for Solaris 11.0.
43373         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
43374         * m4/printf.m4: Update comments.
43376 2012-01-08  Bruno Haible  <bruno@clisp.org>
43378         mktime: Avoid compilation error on Solaris 11.
43379         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
43381 2012-01-08  Bruno Haible  <bruno@clisp.org>
43383         doc: Small fix.
43384         * doc/posix-headers/nl_types.texi: Correct platforms list.
43386 2012-01-08  Simon Josefsson  <simon@josefsson.org>
43388         Add lgpl-3.0 module.
43389         * MODULES.html.sh (Support for building documentation): Add
43390         lgpl-3.0.
43391         * modules/lgpl-3.0: New file.
43393 2012-01-08  Jim Meyering  <meyering@redhat.com>
43395         select.c: indent with spaces, not TABs
43396         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
43398 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43400         quotearg: do not use grave accent for left quote
43401         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
43402         locale_quoting_style.
43403         (quotearg_buffer_restyled): Fix example.
43404         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
43406 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43408         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
43409         Most programs do not have translation catalogs for English and much
43410         less separate catalogs for British and American English.  Drop the
43411         suggestion to translators about these two, and provide it
43412         automatically for Unicode locales.  Like most programs, even those
43413         using American English, we use single quotation marks.  This conflicts
43414         with the American typographic convention, but works better when you
43415         cite the entire error message within double quotes.  It also tries not
43416         to clash with established practice and with what non-gnulib programs
43417         will usually do.
43418         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
43419         using an UTF-8 or GB-18030 locale.  The list of other locales with
43420         quotes was provided by Bruno Haible.
43421         (quotearg_buffer_restyled): Adjust instructions to translators.
43422         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
43423         text, since this would be wrong when using Unicode.
43424         * modules/quotearg: Depend on c-strcaseeq.
43426 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43428         quotearg: fix Wikipedia link
43429         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
43431 2012-01-07  Simon Josefsson  <simon@josefsson.org>
43433         Fix for mingw with MSVC9.
43434         * m4/ld-version-script.m4: Check that compiler rejects version
43435         scripts with syntax errors.  Reported by Bruno Haible
43436         <bruno@clisp.org>.
43438 2012-01-06  Bruno Haible  <bruno@clisp.org>
43440         Talk about "native Windows API", not "Woe32".
43441         * lib/accept4.c: Update comments to mention native Windows.
43442         * lib/execute.c: Likewise.
43443         * lib/fatal-signal.c: Likewise.
43444         * lib/localcharset.c: Likewise.
43445         * lib/nanosleep.c: Likewise.
43446         * lib/nl_langinfo.c: Likewise.
43447         * lib/pclose.c: Likewise.
43448         * lib/pipe-filter-gi.c: Likewise.
43449         * lib/pipe-filter-ii.c: Likewise.
43450         * lib/pipe.c: Likewise.
43451         * lib/pipe2.c: Likewise.
43452         * lib/popen.c: Likewise.
43453         * lib/progreloc.c: Likewise.
43454         * lib/relocatable.c: Likewise.
43455         * lib/sigaction.c: Likewise.
43456         * lib/sigprocmask.c: Likewise.
43457         * lib/spawn-pipe.h: Likewise.
43458         * lib/spawn-pipe.c: Likewise.
43459         * lib/spawni.c: Likewise.
43460         * lib/stat-time.h: Likewise.
43461         * lib/w32spawn.h: Likewise.
43462         * tests/test-isatty.c: Likewise.
43463         * lib/config.charset: More comments.
43464         * doc/gnulib-intro.texi: Mention native Windows.
43465         * doc/posix-functions/_Exit_C99.texi: Likewise.
43466         * doc/posix-headers/fcntl.texi: Likewise.
43468 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
43470         argp: Avoid crash if translator uses % characters in a translation.
43471         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
43472         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43474 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
43476         doc: C11 and C++11 are now official
43477         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
43478         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
43479         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
43480         * modules/stdalign:
43481         Replace references to draft C1X to C11, and to draft C++0X to C++11.
43483 2012-01-06  Bruno Haible  <bruno@clisp.org>
43485         uc-is-grapheme-break tests: Tweak.
43486         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
43487         message.
43489 2012-01-06  Bruno Haible  <bruno@clisp.org>
43491         test-init.sh: correct the test for diff -u
43492         * tests/test-init.sh: Also redirect stdout to /dev/null.
43494 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43496         Use ', not `, for quoting output.
43497         * build-aux/announce-gen (usage, sizes, print_news_deltas)
43498         (print_changelog_deltas, get_tool_versions, main program):
43499         * build-aux/git-version-gen:
43500         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
43501         * build-aux/move-if-change (help):
43502         * build-aux/useless-if-before-free (usage, main program):
43503         * check-module (parse_module_file, usage)
43504         (find_included_lib_files, check_module):
43505         * lib/argmatch.c (main) [TEST]:
43506         * lib/argp-help.c (_help):
43507         * lib/getopt1.c (main) [TEST]:
43508         * lib/git-merge-changelog.c (usage):
43509         * lib/xstrtol-error.c (xstrtol_error):
43510         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
43511         * m4/argz.m4 (gl_FUNC_ARGZ):
43512         * m4/bison.m4 (gl_BISON):
43513         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
43514         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
43515         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
43516         * m4/fpending.m4 (gl_PREREQ_FPENDING):
43517         * m4/gc-random.m4 (gl_GC_RANDOM):
43518         * m4/intl.m4 (gt_CHECK_DECL):
43519         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
43520         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
43521         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
43522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
43523         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
43524         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
43525         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
43526         * tests/test-dirname.c (main):
43527         * tests/test-getpass.c (main):
43528         * tests/test-iconvme.c (main):
43529         * tests/test-parse-datetime.c (LOG):
43530         * tests/test-xstrtoimax.sh:
43531         * tests/test-xstrtol.sh:
43532         * tests/test-xstrtoll.sh:
43533         * tests/test-xstrtoumax.sh:
43534         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
43535         * top/GNUmakefile (abort-due-to-no-makefile):
43536         Quote 'like this', not `like this', as per the recent change to
43537         the GNU coding standards.
43539 2012-01-05  Bruno Haible  <bruno@clisp.org>
43541         strtoimax: Don't force a replacement on systems where intmax_t is int.
43542         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
43543         'intmax_t' is not larger than 'int'.
43544         Reported by Pádraig Brady <P@draigBrady.com>.
43546 2012-01-05  Bruno Haible  <bruno@clisp.org>
43548         doc: Mention NetBSD bugs.
43549         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
43550         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
43552 2012-01-05  Bruno Haible  <bruno@clisp.org>
43554         strtoumax tests: Enhance tests.
43555         * tests/test-strtoumax.c (main): Add tests for large values.
43557 2012-01-05  Bruno Haible  <bruno@clisp.org>
43559         strtoimax: Work around AIX 5.1 bug.
43560         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
43561         definition.
43562         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
43563         Set HAVE_STRTOIMAX.
43564         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
43565         REPLACE_STRTOIMAX.
43566         * modules/inttypes-incomplete (Makefile.am): Substitute
43567         REPLACE_STRTOIMAX.
43568         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43569         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
43570         (Depends-on): Update conditions.
43571         * tests/test-strtoimax.c (main): Add tests for large values.
43572         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
43574 2012-01-05  Bruno Haible  <bruno@clisp.org>
43576         inttypes: Modernize.
43577         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
43578         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
43579         (Makefile.am): Update inttypes.h rule.
43581 2012-01-05  Jim Meyering  <meyering@redhat.com>
43583         init.sh: don't waste a subshell just to redirect stderr
43584         * tests/init.sh: In testing for diff -u and diff -c, use a
43585         stderr-redirecting exec inside `...` rather than a subshell.
43587         test-init.sh: avoid failure on HP-UX 11.00
43588         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
43589         resolves to diff -c or cmp.  Reported by Bruno Haible.
43591 2012-01-05  Bruno Haible  <bruno@clisp.org>
43593         Tests for module 'strtoull'.
43594         * modules/strtoull-tests: New file.
43595         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
43597 2012-01-05  Bruno Haible  <bruno@clisp.org>
43599         Tests for module 'strtoll'.
43600         * modules/strtoll-tests: New file.
43601         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
43603 2012-01-05  Bruno Haible  <bruno@clisp.org>
43605         Tests for module 'strtoul'.
43606         * modules/strtoul-tests: New file.
43607         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
43609 2012-01-05  Bruno Haible  <bruno@clisp.org>
43611         Tests for module 'strtol'.
43612         * modules/strtol-tests: New file.
43613         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
43615 2012-01-04  Jim Meyering  <meyering@redhat.com>
43617         test-init.sh: accommodate Solaris 5.10's different diff -u output
43618         * tests/test-init.sh: Also exempt @@ lines from the comparison
43619         of diff output, since Solaris 5.10 and GNU diff formats differ.
43620         Reported by Stefano Lattarini.
43622 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43624         test-posixtm: don't assume signed integer wraparound
43625         * tests/test-posixtm.c (main): Don't assume wraparound semantics
43626         after signed integer overflow.  Inspired by (though it may not
43627         fix) Bruno Haible's bug report in
43628         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
43630         Spell out "Windows 9x" and "Windows XP".
43631         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
43632         "Windows 9x" and "WinXP" with "Windows XP".
43634 2012-01-04  Jim Meyering  <meyering@redhat.com>
43636         test-vc-list-files-cvs.sh: remove obsolete comment
43637         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
43638         double exit.  Now that's all encapsulated via skip_ and Exit.
43640 2012-01-04  Bruno Haible  <bruno@clisp.org>
43642         Talk about "native Windows API", not "Win32".
43643         * lib/classpath.c: Update comments to mention native Windows.
43644         * lib/csharpexec.c: Likewise.
43645         * lib/dup2.c: Likewise.
43646         * lib/error.c: Likewise.
43647         * lib/fcntl.c: Likewise.
43648         * lib/filename.h: Likewise.
43649         * lib/findprog.c: Likewise.
43650         * lib/get-rusage-as.c: Likewise.
43651         * lib/get-rusage-data.c: Likewise.
43652         * lib/getpagesize.c: Likewise.
43653         * lib/javaexec.c: Likewise.
43654         * lib/msvc-inval.c: Likewise.
43655         * lib/msvc-nothrow.c: Likewise.
43656         * lib/nanosleep.c: Likewise.
43657         * lib/nonblocking.c: Likewise.
43658         * lib/printf-parse.c: Likewise.
43659         * lib/setlocale.c: Likewise.
43660         * lib/sigaction.c: Likewise.
43661         * lib/strerror_r.c: Likewise.
43662         * lib/tmpdir.c: Likewise.
43663         * lib/vasnprintf.c: Likewise.
43664         * lib/w32spawn.h: Likewise.
43665         * lib/waitpid.c: Likewise.
43666         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
43667         * m4/locale-ar.m4: Likewise.
43668         * m4/locale-fr.m4: Likewise.
43669         * m4/locale-ja.m4: Likewise.
43670         * m4/locale-tr.m4: Likewise.
43671         * m4/locale-zh.m4: Likewise.
43672         * m4/printf.m4: Likewise.
43673         * tests/test-cloexec.c: Likewise.
43674         * tests/test-copy-acl.sh: Likewise.
43675         * tests/test-copy-file.sh: Likewise.
43676         * tests/test-file-has-acl.sh: Likewise.
43677         * tests/test-set-mode-acl.sh: Likewise.
43678         * tests/test-dup-safer.c: Likewise.
43679         * tests/test-dup2.c: Likewise.
43680         * tests/test-dup3.c: Likewise.
43681         * tests/test-fcntl.c: Likewise.
43682         * tests/test-nonblocking-pipe.h: Likewise.
43683         * tests/test-nonblocking-socket.h: Likewise.
43684         * tests/test-pipe.c: Likewise.
43685         * tests/test-pipe2.c: Likewise.
43686         * tests/test-spawn-pipe-child.c: Likewise.
43687         * doc/acl-resources.txt: Likewise.
43688         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43689         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
43690         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
43691         * lib/localcharset.c: Update comments to mention native Windows.
43692         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43693         * lib/localename.c: Likewise.
43694         * lib/progreloc.c: Likewise.
43695         * lib/relocatable.c: Likewise.
43696         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43697         (windows_compute_revents): Renamed from win32_compute_revents.
43698         (windows_compute_revents_socket): Renamed from
43699         win32_compute_revents_socket.
43700         * lib/select.c: Update comments to mention native Windows.
43701         (windows_poll_handle): Renamed from win32_poll_handle.
43702         * m4/threadlib.m4: Update comments to mention native Windows.
43703         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
43704         --enable-threads=windows instead of --enable-threads=win32. Set
43705         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
43706         * lib/glthread/lock.h: Update comments to mention native Windows.
43707         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
43708         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
43709         USE_WIN32_THREADS.
43710         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
43711         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
43712         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
43713         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
43714         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
43715         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
43716         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
43717         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
43718         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
43719         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
43720         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
43721         * tests/test-tls.c: Likewise.
43722         Rationale:
43723         Microsoft renamed the "Win32 API" to "Windows API", as it is available
43724         on both 32-bit and 64-bit Windows systems.
43725         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
43726         line of distinction is between "native Windows" on one side and Unix/
43727         POSIX systems on the other side. More details in
43728         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
43729         Suggested by Paul Eggert.
43731 2012-01-03  Bruno Haible  <bruno@clisp.org>
43733         isatty: Support for MSVC 9.
43734         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
43735         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
43736         (_isatty_nothrow): New function.
43737         (isatty): Use it instead of _isatty.
43738         (IsConsoleHandle): Add comment, from Paolo Bonzini.
43739         * lib/poll.c (IsConsoleHandle): Likewise.
43740         * lib/select.c (IsConsoleHandle): Likewise.
43741         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
43742         (gl_PREREQ_ISATTY): New macro.
43743         * modules/isatty (Depends-on): Add msvc-inval.
43744         (configure.ac): Invoke gl_PREREQ_ISATTY.
43746 2012-01-03  Jim Meyering  <meyering@redhat.com>
43748         maint.mk: remove temporary transition aid from over 1.5 years ago
43749         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
43750         purpose was to aid in the transition (avoiding silent malfunction)
43751         from that old name to the new _sc_search_regexp.  This shim was
43752         added by commit 219c504b.
43754         init.sh: do not try to accommodate compare arguments starting with "-"
43755         * tests/init.sh (compare_dev_null_): Do not try to accommodate
43756         compare arguments that start with "-".  Besides, we do not worry
43757         about this when invoking diff or cmp; why start now with sed?
43758         Using "--" to separate options from argument would trigger sed
43759         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
43760         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
43762 2012-01-02  Bruno Haible  <bruno@clisp.org>
43764         Enhance tests for module 'isatty'.
43765         * modules/isatty-tests (Depends-on): Add pipe-posix.
43766         * tests/test-isatty.c: Include <fcntl.h>.
43767         (DEV_NULL): New macro.
43768         (main): Test the resut of isatty() also on regular files, pipes, and
43769         /dev/null.
43771         New module 'isatty'.
43772         * lib/unistd.in.h (isatty): New declaration.
43773         * lib/isatty.c: New file, based on an idea of
43774         Bastien Roucariès <roucaries.bastien@gmail.com>.
43775         * m4/isatty.m4: New file.
43776         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
43777         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
43778         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
43779         REPLACE_ISATTY.
43780         * modules/isatty: New file.
43781         * doc/posix-functions/isatty.texi: Mention the new module.
43782         Suggested by Paolo Bonzini.
43784 2012-01-02  Bruno Haible  <bruno@clisp.org>
43786         canonicalize: Tweak 2011-12-29 commit.
43787         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
43788         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
43790 2012-01-02  Jim Meyering  <meyering@redhat.com>
43792         gitlog-to-changelog: describe input syntax in --help output
43793         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
43795         gitlog-to-changelog: fix typo in --help: show backslash before email @
43796         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
43797         in sources, but not in actual output.
43799 2011-12-30  Jim Meyering  <meyering@redhat.com>
43801         gitlog-to-changelog: don't malfunction when name contains %-directive
43802         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
43803         in a name string cause trouble.  E.g., with a user name of "%s",
43804         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
43806 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
43808         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
43809         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
43810         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
43811         the "  (tiny change)" notation that is appended to the standard
43812         ChangeLog "date  name  email" header line.
43814 2012-01-01  Jim Meyering  <meyering@redhat.com>
43816         test-framework-sh: init.sh: fix "make dist" failure
43817         When using gnulib-tool's --with-tests option and any module that
43818         depends on test-framework-sh, "make dist" would fail due to the
43819         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
43820         in the gltests directory, and not in the gllib/ directory.
43821         One way to work around that is to move the EXTRA_DIST += init.sh
43822         from the primary module to the -tests one:
43823         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
43824         * modules/test-framework-sh (Makefile.am): ...not here.
43825         Reported by Tom G. Christensen in
43826         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
43828         version-etc: update copyright year reported by --version
43829         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
43831 2011-12-31  Pádraig Brady  <P@draigBrady.com>
43833         canonicalize: only stat() if required
43834         * lib/canonicalize.c (canonicalize_filename_mode):
43835         Avoid calling l?stat() when both CAN_MISSING,
43836         and CAN_NOLINKS are set, as we neither need
43837         to resolve symlinks or test component existence.
43839 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
43841         doc: cover st_ino issues once; add OpenVMS etc.
43842         * doc/posix-functions/stat.texi (stat):
43843         * doc/posix-functions/lstat.texi (lstat):
43844         * doc/posix-functions/fstatat.texi (fstatat):
43845         * doc/posix-functions/fstat.texi (fstat):
43846         Move general 'struct stat' stuff to sys_stat.texi,
43847         leaving behind a pointer.
43848         * doc/posix-headers/sys_stat.texi (sys/stat.h):
43849         Merge duplicate info about 'struct stat' problems into here.
43850         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
43851         and suggest partial workarounds.
43853         same-inode: port to OpenVMS
43854         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
43855         three st_ino values.
43857 2011-12-30  Pádraig Brady  <P@draigBrady.com>
43859         canonicalize: fix references to stat() and lstat()
43860         * lib/canonicalize.c (canonicalize_filename_mode):
43861         Ensure references always resolve to a replacement
43862         function if required (even via a macro).
43864 2011-12-30  Jim Meyering  <meyering@redhat.com>
43866         gitlog-to-changelog: remove a little duplication
43867         * build-aux/gitlog-to-changelog (main): Grep @lines once,
43868         rather than twice.
43870 2011-12-29  Pádraig Brady  <P@draigBrady.com>
43872         canonicalize: add support for not resolving symlinks
43873         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
43874         indicate we don't want to follow symlinks.  Also
43875         provide CAN_MODE_MASK to aid setting these existing
43876         mutually exclusive values.
43877         * lib/canonicalize.c (canonicalize_filename_mode):
43878         Extract the flags from can_mode parameter, which
43879         are currently just used to select between stat()
43880         and lstat().  Also ensure that mutually exclusive
43881         values are flagged immediately as invalid.
43882         * tests/test-canonicalize.c: Verify symlinks are
43883         not followed, and that invalid flag combinations
43884         are diagnosed.
43886 2011-12-25  Jim Meyering  <meyering@redhat.com>
43888         gitlog-to-changelog: do not clump multi-paragraph entries
43889         Identical header lines (date,name,email+coauthors) are suppressed,
43890         thus putting all entries with those same characteristics under
43891         a single header.  However, when a log entry consists of two or
43892         more paragraphs, it may not be clear where it starts and ends.
43893         This change makes it so that such an entry is always separated
43894         from others by a header line, even when that header would
43895         otherwise be suppressed.
43896         * build-aux/gitlog-to-changelog: Implement the above.
43897         Inspired by a related request from Stefano Lattarini in
43898         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
43900 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43902         announce-gen: fix `cmd' typo in diagnostic
43903         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
43904         diagnostic: a missing '$' meant that the command was not output.
43906 2011-12-23  Jim Meyering  <meyering@redhat.com>
43908         test-framework-sh: distribute init.sh
43909         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
43910         Otherwise, "make -C gnulib-tests check" (at least in grep) would
43911         fail due to the lack of init.sh.
43913         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
43914         * modules/atexit-tests: Rather than listing tests/init.sh,
43915         now that there's a module for it, simply depend on that new module.
43916         * modules/closein-tests: Likewise.
43917         * modules/exclude-tests: Likewise.
43918         * modules/getcwd-tests: Likewise.
43919         * modules/perror-tests: Likewise.
43920         * modules/pread-tests: Likewise.
43921         * modules/pwrite-tests: Likewise.
43922         * modules/vc-list-files-tests: Likewise.
43923         * modules/verify-tests: Likewise.
43924         * modules/xalloc-die-tests: Likewise.
43925         * modules/xstrtoimax-tests: Likewise.
43926         * modules/xstrtol-tests: Likewise.
43927         * modules/xstrtoll-tests: Likewise.
43928         * modules/xstrtoumax-tests: Likewise.
43929         * modules/yesno-tests: Likewise.
43931 2011-12-22  Jim Meyering  <meyering@redhat.com>
43933         test-framework-sh: add minimal tests of init.sh's compare function
43934         * modules/test-framework-sh-tests: New file.
43935         * tests/test-init.sh: New file.
43937         test-framework-sh: new module
43938         * modules/test-framework-sh: New file.
43939         * MODULES.html.sh (Support for maintaining and releasing projects):
43940         List it.
43942         init.sh: do not emit simulated diff output to stderr
43943         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
43945 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43947         .gitignore: ignore gnulib.dvi and regex.info
43948         * doc/.gitignore:add gnulib.dvi and regex.info
43950 2011-12-22  Jim Meyering  <meyering@redhat.com>
43952         init.sh: correct previous change
43953         * tests/init.sh (compare): My previous change was wrong.
43954         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
43956         init.sh: avoid unwarranted test failure when using "set -e"
43957         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
43958         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
43959         a use like "compare exp out" would get evoke an unconditional failure.
43961 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
43963         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
43964         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
43965         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
43966         autoreconf that did not.
43967         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
43968         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43970 2011-12-17  Jim Meyering  <meyering@redhat.com>
43972         bootstrap: remove some now-unneeded code
43973         This script arose back when gnulib-tool was young.
43974         Since then, it has seen improvements that render much of this
43975         script unnecessary.  In particular, it can now make symlinks
43976         to the files it uses.  Also, I no longer see as much value in
43977         marking files as read-only via comments.
43978         If you relied on the symlink-creation feature of the preceding
43979         version of this script, you can get most of that functionality
43980         by adding the --symlink option to the definition of
43981         gnulib_tool_option_extras in your bootstrap.conf file.
43982         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
43983         Run autopoint and libtoolize *before* gnulib-tool.
43984         After it, run an abbreviated autoreconf, rather than a loop around
43985         all tools.
43986         (slirp, bt_mark_as_generated): Remove functions.
43988 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43990         ftoastr: fix typo
43991         * lib/ftoastr.h: Fix misspelling in comment.
43993 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
43995         * top/README-release: fix punctuation.
43997 2011-12-17  Jim Meyering  <meyering@redhat.com>
43999         bootstrap: correct the recent buildreq change
44000         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
44001         had no effect.
44002         * build-aux/bootstrap (buildreq): Bracket each search term with
44003         "*...*", so that the shell "case" statement works as intended.
44004         Add comments.
44006 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
44008         build: let bootstrap resort to wget when downloading .po files
44009         * build-aux/bootstrap (download_po_files): Fallback to wget when
44010         downloading the .po files via rsync fails.  This is necessary to
44011         bootstrap from behind a strict firewall.
44013 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44015         stdint: don't assume C++11 when compiling with g++
44016         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
44017         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
44018         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
44019         work also in C++ before C++11, as that improperly inhibits
44020         generating a substitute stdint.h for that case.
44022 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44024         alloca: protect comment from gnulib-tool
44025         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
44026         that gnulib-tool doesn't think it's a license, and munge it to
44027         say "GCC version 3".
44029 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
44031         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
44032         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
44033         $(abs_top_builddir) instead of $(top_builddir).
44035 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
44037         strftime-tests: also test nanoseconds
44038         * tests/test-strftime.c (T): Add a test of %N.
44040 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
44042         inttypes, stdint: add C++11 support
44043         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
44044         when including inttypes.h and stdint.h.  Support this change to
44045         the standard.
44046         * doc/posix-headers/inttypes.texi (inttypes.h):
44047         * doc/posix-headers/stdint.texi (stdint.h): Document this.
44048         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
44049         Define if not defined already, for the benefit of pre-C++11 hosts.
44050         Define the standard format macros (e.g., PRId8) always.
44051         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
44052         Likewise, if __cpluspus.  Define the standard constant and limit
44053         macros (e.g., INT8_C, INT8_MAX) always.
44054         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
44055         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
44056         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
44057         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
44058         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
44059         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
44060         Likewise.
44062 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
44064         nonblocking tests: Fix test failure on Linux/PPC.
44065         Suggested by Prerna Saxena in
44066         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
44067         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
44068         Set to 1100000.
44070 2011-12-12  Jim Meyering  <meyering@redhat.com>
44072         argmatch: don't hard-code `' when listing valid option arguments
44073         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
44074         use the quote function to add quotes.  Use fputs rather than
44075         fprintf for the format string with no format directive.
44077 2011-12-07  Eric Blake  <eblake@redhat.com>
44079         bootstrap: detect tools required by gnulib-tool
44080         * build-aux/bootstrap (buildreq): Provide minimum implicit
44081         dependencies.
44082         * DEPENDENCIES: Mention patch as a prereq.
44084 2011-12-04  Bruno Haible  <bruno@clisp.org>
44086         sethostname: Port to Windows platforms.
44087         * lib/sethostname.c: Provide an alternate implementation for Windows
44088         platforms.
44089         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
44090         (main): Skip the test if sethostname() fails with EPERM. On Windows
44091         platforms, don't check the result of gethostname().
44093 2011-12-04  Bruno Haible  <bruno@clisp.org>
44094             Jim Meyering  <meyering@redhat.com>
44096         tests: Avoid spurious error message on platforms without mktemp program.
44097         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
44099 2011-12-04  Bruno Haible  <bruno@clisp.org>
44101         sethostname: Fix documentation.
44102         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
44103         "not fixed" section.
44105 2011-12-03  Bruno Haible  <bruno@clisp.org>
44107         gnulib-tool: Verify that the License field is present and non-empty.
44108         * gnulib-tool (func_get_license_raw): New function, extracted from
44109         func_get_license.
44110         (func_get_license): Use it. Warn if the module is not a test module and
44111         has no license.
44112         Suggested by Jim Meyering.
44114 2011-12-03  Bruno Haible  <bruno@clisp.org>
44116         sethostname tests: Fix link error on mingw.
44117         * tests/test-sethostname1.c: New file, extracted from
44118         tests/test-sethostname.c.
44119         * tests/test-sethostname2.c: New file, extracted from
44120         tests/test-sethostname.c.
44121         * tests/test-sethostname.c: Remove file.
44122         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
44123         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
44124         (Depends-on): Add gethostname.
44125         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
44126         Link the latter with $(GETHOSTNAME_LIB).
44128         sethostname tests: Fix compilation error on mingw.
44129         * tests/test-sethostname.c: Don't include <sys/types.h>.
44130         (geteuid): Use a dummy value without uid_t.
44131         * modules/sethostname-tests (Depends-on): Remove sys_types.
44133         sethostname tests: Avoid a gcc warning.
44134         * tests/test-sethostname.c (main): Remove an unused variable.
44136         Tweak last commit.
44137         * modules/sethostname-tests (Files): Sort by decreasing importance.
44138         (configure.ac): Check for geteuid.
44139         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
44140         the test when there's nothing to test. Drop an unnecessary cast.
44141         Improve an error message. Verify that the final sethostname() call
44142         succeeds.
44144 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44146         Add a test suite for the sethostname module.
44147         * modules/sethostname-tests: New file.  A test program
44148         for the sethostname module.
44149         * tests/test-sethostname.c: Likewise.
44151 2011-12-03  Bruno Haible  <bruno@clisp.org>
44153         Tweak last commit.
44154         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
44155         Fix preprocessor directives indentation. Fix typos.
44156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
44157         * modules/unistd (Makefile): Likewise.
44159 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44161         Integrate the sethostname module into unistd.
44162         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
44163         into the unistd.h header.
44164         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
44165         preprocessor directives.
44166         * modules/unistd: Setup the Makefile substitutions of the
44167         SETHOSTNAME preprocessor directives.
44169 2011-12-03  Bruno Haible  <bruno@clisp.org>
44171         Tweak last commit.
44172         * lib/sethostname.c: Don't include <string.h>.
44173         (sethostname): No need to copy the argument string to the stack. Don't
44174         call clearerr. Preserve errno when fprintf failed.
44175         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
44176         Don't invoke AC_REPLACE_FUNCS.
44177         * modules/sethostname (Link): Remove empty section.
44178         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
44179         failure problem.
44181 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44183         New module 'sethostname'.
44184         * lib/sethostname.c (sethostname): New file.  Provide sethostname
44185         for systems that lack it.
44186         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
44187         sethostname declaration and function.
44188         * modules/sethostname: New file.  Define the sethostname module.
44190 2011-12-03  Bruno Haible  <bruno@clisp.org>
44192         Tweak last commit.
44193         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
44195 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44197         Split the HOST_NAME_MAX detection into a separate m4 macro.
44198         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
44199         macro so it can be used by the pending sethostname module.
44201 2011-12-03  Bruno Haible  <bruno@clisp.org>
44203         Fix module descriptions syntax.
44204         * modules/argv-iter (License): Fix syntax.
44205         * modules/di-set (License): Likewise.
44206         * modules/ino-map (License): Likewise.
44207         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
44209 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44211         stdalign: port to Clang 3.0
44212         Problem reported by Simon Josefsson in
44213         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
44214         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
44215         which has <stdalign.h> but which does not define alignof.
44216         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
44218 2011-12-01  Eric Blake  <eblake@redhat.com>
44220         mktempd: silence dd usage
44221         * build-aux/mktempd (rand_bytes): Silence dd.
44223 2011-11-30  Simon Josefsson  <simon@josefsson.org>
44225         manywarnings: Don't mention gcc version in docstring.
44226         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
44227         Jim Meyering <meyering@redhat.com>.
44229 2011-11-30  Jim Meyering  <meyering@redhat.com>
44231         hash: mark a few floating point constants with "f" suffix
44232         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
44233         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
44234         floating point constants with "f", since they're destined to be
44235         saved/used as "float"s.
44237 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
44239         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
44240         * tests/test-float.c (test_long_double): Correct and re-enable the
44241         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
44243 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
44245         Avoid subtracting two pointers that don't point into the same block.
44246         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
44247         only pointers into the same memory block are subtracted. We cannot
44248         assume that sizeof (ptrdiff_t) == sizeof (void *).
44250 2011-11-29  Eric Blake  <eblake@redhat.com>
44252         maint.mk: add syntax check for use of compare from init.sh
44253         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
44254         moved here from coreutils.
44256         manywarnings: drop -Wunsuffixed-float-constants
44257         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
44258         '1.0D', which is the only way to silence this warning for 'double'.
44260 2011-11-29  Jim Meyering  <meyering@redhat.com>
44262         hash: mark compute_bucket_size with the pure attribute
44263         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
44265         quotearg, propername: correct pragma guard expression
44266         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
44267         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
44269 2011-11-28  Jim Meyering  <meyering@redhat.com>
44271         propername: do not mark proper_name with the const attribute
44272         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
44273         since it examines data pointed to by its parameter.
44274         * lib/propername.c (proper_name): Instead, add a pragma to suppress
44275         the suggestion from -Wsuggest-attribute=const.
44277         propername: mark one more function as const
44278         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
44280 2011-11-27  Jim Meyering  <meyering@redhat.com>
44282         mark functions with const and pure attributes
44284         Mark functions per suggestions from gcc-4.6 when using these options:
44285         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
44286         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
44287         Follow these guidelines: when possible, apply the attribute to
44288         an extern declaration, not to its definition.  Apply it to the
44289         definition only when the definition is static.
44290         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
44291         * lib/argv-iter.h (argv_iter_n_args): Likewise.
44292         * lib/base64.h (isbase64): Likewise.
44293         * lib/basename-lgpl.c (last_component, base_len): Likewise.
44294         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
44295         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
44296         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
44297         (c_tolower, c_toupper): Likewise.
44298         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
44299         * lib/chdir-long.c (find_non_slash): Likewise.
44300         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
44301         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
44302         * lib/file-type.h (file_type): Likewise.
44303         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
44304         * lib/filevercmp.c (verrevcmp): Likewise.
44305         * lib/freadahead.h (freadahead): Likewise.
44306         * lib/fts.c (fts_maxarglen): Likewise.
44307         * lib/hash-pjw.h (hash_pjw): Likewise.
44308         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
44309         * lib/hash.c (is_prime, next_prime): Likewise.
44310         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
44311         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
44312         (hash_table_ok, hash_get_first, hash_string): Likewise.
44313         (compute_bucket_size): Likewise.
44314         * lib/i-ring.h (i_ring_empty): Likewise.
44315         * lib/isnan.c (isnanl): Likewise.
44316         * lib/math.h (isnanl, rpl_isnanl): Likewise.
44317         * lib/memcasecmp.h (memcasecmp): Likewise.
44318         * lib/memchr2.h (memchr2): Likewise.
44319         * lib/memcmp2.h (memcmp2): Likewise.
44320         * lib/parse-datetime.y (lookup_zone): Likewise.
44321         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
44322         [!WINDOWS_SOCKETS]: Likewise.
44323         * lib/strnlen1.h (strnlen1): Likewise.
44324         * lib/uniwidth.in.h (uc_width): Likewise.
44325         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
44326         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
44327         (quoting_options_from_style): Add a comment.
44328         * lib/propername.h (proper_name): Add a comment.
44330 2011-11-27  Bruno Haible  <bruno@clisp.org>
44332         Remove unused macros from !_LIBC code in glibc-borrowed files.
44333         * lib/fnmatch.c (STRCOLL): Remove macro.
44334         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
44335         * lib/glob.c (__stat, __readdir64): Remove macros.
44336         * lib/tempname.c (__open64, __xstat64): Remove macros.
44337         Suggested by Paul Eggert.
44339 2011-11-27  Bruno Haible  <bruno@clisp.org>
44341         getcwd: Fix link error on MSVC 9.
44342         * modules/getcwd (Depends-on): Add readdir, rewinddir.
44344 2011-11-27  Bruno Haible  <bruno@clisp.org>
44346         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
44347         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
44348         HAVE_OPENDIR is 0.
44349         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
44350         HAVE_CLOSEDIR is 0.
44351         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
44352         is 0.
44353         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
44355 2011-11-27  Bruno Haible  <bruno@clisp.org>
44357         getcwd: Fix bug from 2011-08-17.
44358         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
44359         platforms that need it.
44360         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
44361         code of 4 to be a failure, not a success. This ensures that
44362         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
44364 2011-11-27  Bruno Haible  <bruno@clisp.org>
44366         binary-io tests: Avoid test failure on mingw when libtool is used.
44367         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
44368         Don't verify the size of t-bin-out1.tmp here.
44369         * tests/test-binary-io.sh: Verify it here.
44370         Reported by Simon Josefsson.
44372 2011-11-26  Bruno Haible  <bruno@clisp.org>
44374         Fix conflict between two instantiations of module 'unistd'.
44375         * gnulib-tool (func_emit_autoconf_snippet): Substitute
44376         ${include_guard_prefix} also in the autoconf snippet.
44377         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
44378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
44379         GNULIB_UNISTD_H_GETOPT.
44380         * modules/getopt-posix (configure.ac): Set the
44381         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
44382         * modules/getopt-gnu (configure.ac): Likewise.
44383         * modules/unistd (Makefile.am): Change the substitution value of
44384         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
44385         Reported by Simon Josefsson.
44387 2011-11-25  Bruno Haible  <bruno@clisp.org>
44389         pagealign_alloc: Doc and comments.
44390         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
44391         module.
44392         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
44394 2011-11-25  Jim Meyering  <meyering@redhat.com>
44396         test-update-copyright.sh: avoid false-positive failure
44397         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
44398         around false positive failure on Cygwin/Windows.  The latter was
44399         matching erroneously-created files with names like
44400         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
44402 2011-11-25  Simon Josefsson  <simon@josefsson.org>
44404         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
44405         * m4/valgrind-tests.m4: Check that the parameters that will be
44406         used works, not just a subset of them.  Reported by Bruno Haible
44407         <bruno@clisp.org>.
44409 2011-11-24  Jim Meyering  <meyering@redhat.com>
44411         test-stdalign.c: comment out long double tests
44412         * tests/test-stdalign.c: Don't try to reduce alignment of long double
44413         variables.  That provokes errors like this from gcc-4.7.0 20111124:
44414         error: '_Alignas' specifiers cannot reduce alignment of \
44415         'static_longdouble_alignas'.
44417 2011-11-22  Jim Meyering  <meyering@redhat.com>
44419         init.sh: make "compare /dev/null FILE" output more readable
44420         * tests/init.sh (compare_): Document the preferred order of arguments.
44421         (emit_diff_u_header_): New function.
44422         (compare_dev_null_): Emit a simulated diff, rather than just the
44423         contents of the unexpected file.  Suggestion from Bruno Haible.
44425 2011-11-21  Jim Meyering  <meyering@redhat.com>
44426             Eric Blake  <eblake@redhat.com>
44428         init.sh: work around OSF/1 5.1's mishandling of /dev/null
44429         * tests/init.sh: Make our compare function slightly more portable.
44430         Reported by Bruno Haible in
44431         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
44433 2011-11-21  Simon Josefsson  <simon@josefsson.org>
44435         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
44436         before using it, in code that ends up in config.h.
44438 2011-11-20  Bruno Haible  <bruno@clisp.org>
44440         getcwd: Work around getcwd bug on AIX 5..7.
44441         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
44442         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
44443         Use a different value for gl_cv_func_getcwd_path_max. Move the
44444         definition of HAVE_PARTLY_WORKING_GETCWD from here...
44445         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
44446         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
44447         Define HAVE_MINIMALLY_WORKING_GETCWD.
44448         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
44449         where it is not even minimally working, that is, on AIX.
44450         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
44451         m4/getcwd-path-max.m4.
44452         (main): Update exit code computation.
44453         * doc/posix-functions/getcwd.texi: Mention list of platforms where
44454         getcwd does not handle long file names.
44456 2011-11-20  Bruno Haible  <bruno@clisp.org>
44458         getcwd: Fix bug from 2009-09-10.
44459         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
44460         like "no".
44462 2011-11-20  Simon Josefsson  <simon@josefsson.org>
44464         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
44466 2011-11-20  Bruno Haible  <bruno@clisp.org>
44468         fma tests: Avoid shadowing local variables.
44469         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
44470         expected.
44472 2011-11-20  Bruno Haible  <bruno@clisp.org>
44474         copysignf tests: Fix.
44475         * tests/test-copysignf.c: Fix signature check.
44477 2011-11-20  Bruno Haible  <bruno@clisp.org>
44479         fma: Remove unused code.
44480         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
44481         unused macros.
44483 2011-11-20  Bruno Haible  <bruno@clisp.org>
44485         sethostname: Fix doc about AIX.
44486         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
44487         sethostname; it has it.
44489         sethostname: Mention more portability problems.
44490         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
44491         problem.
44492         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
44494 2011-11-19  Bruno Haible  <bruno@clisp.org>
44496         Depend on module fcntl-h when AT_FDCWD is used.
44497         * modules/utimens (Depends-on): Add fcntl-h.
44498         * modules/areadlinkat (Depends-on): Likewise.
44499         * modules/areadlinkat-with-size (Depends-on): Likewise.
44500         * modules/faccessat (Depends-on): Likewise.
44501         * modules/fchmodat (Depends-on): Likewise.
44502         * modules/fchownat (Depends-on): Likewise.
44503         * modules/getcwd (Depends-on): Likewise.
44504         * modules/mkdirat (Depends-on): Likewise.
44505         * modules/mkfifoat (Depends-on): Likewise.
44506         * modules/readlinkat (Depends-on): Likewise.
44507         * modules/symlinkat (Depends-on): Likewise.
44508         * modules/dup2-tests (Depends-on): Likewise.
44509         * modules/fdutimensat-tests (Depends-on): Likewise.
44510         * modules/futimens-tests (Depends-on): Likewise.
44512 2011-11-19  Bruno Haible  <bruno@clisp.org>
44514         euidaccess: Update a comment.
44515         * lib/euidaccess.c: Update comment about platforms with faccessat.
44517 2011-11-19  Bruno Haible  <bruno@clisp.org>
44519         openat: Fix file list.
44520         * modules/openat (Files): Remove lib/at-func.c.
44522 2011-11-19  Bruno Haible  <bruno@clisp.org>
44524         fstatat: Simplify.
44525         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
44526         gnulib should define rpl_fstatat, there is a
44527         "#define fstatat rpl_fstatat" in <sys/stat.h>.
44529 2011-11-19  Bruno Haible  <bruno@clisp.org>
44531         Ensure 'inline' can be used in tests/test-utimens-common.h.
44532         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
44533         * modules/futimens-tests (configure.ac): Likewise.
44534         * modules/utimens-tests (configure.ac): Likewise.
44535         * modules/utimensat-tests (configure.ac): Likewise.
44537 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44539         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
44540         not hash_insert0.
44541         (hash_insert_if_absent): Doc fix.
44543 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44545         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
44547 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44549         test-getcwd: disambiguate exit status
44550         * tests/test-getcwd.c (test_long_name): Return 0..7.
44551         (main): Exit with an unambiguous exit status.  The old
44552         code yielded a mysterious mixture of two failure codes.
44554         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
44555         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
44556         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
44557         rpl_fstatat or fstatat.  This should fix the other problem
44558         reported by Kai Habel in
44559         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44560         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
44561         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
44562         and I reproduced it on a Solaris 8 host we still have in production.
44564 2011-11-18  Jim Meyering  <meyering@redhat.com>
44566         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
44567         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
44568         Add a sentence to the comment.
44569         (hash_insert0): New function that simply calls hash_insert_if_absent.
44570         * lib/hash.h (hash_insert_if_absent): Declare it.
44571         (hash_insert0): Add deprecation attribute.
44572         (_GL_ATTRIBUTE_DEPRECATED): Define.
44573         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
44574         not hash_insert0.
44575         * NEWS: Mention it, even though it's not really an incompatible change.
44577 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
44579         openat: avoid compilation failure due to lack of <errno.h> inclusion
44580         * lib/openat.c: Include <errno.h>.
44582 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44584         * modules/getcwd (Depends-on): Add fdopendir.
44585         This fixes one of the two problems reported by Kai Habel in
44586         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44588         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
44589         stdalign problem reported by Ian Beckwith in
44590         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
44591         * modules/crypto/gc-arcfour (Depends-on):
44592         Depend conditionally on crypto/arcfour.
44593         * modules/crypto/gc-arctwo (Depends-on):
44594         Depend conditionally on crypto/arctwo.
44595         * modules/crypto/gc-des (Depends-on):
44596         Depend conditionally on crypto/des.
44597         * modules/crypto/gc-hmac-md5 (Depends-on):
44598         Depend conditionally on crypto/hmac-md5.
44599         * modules/crypto/gc-hmac-sha1 (Depends-on):
44600         Depend conditionally on crypto/hmac-sha1.
44601         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
44602         * modules/crypto/gc-md4 (Depends-on):
44603         Depend conditionally on crypto/md4.
44604         * modules/crypto/gc-md5 (Depends-on):
44605         Depend conditionally on crypto/md5.
44606         * modules/crypto/gc-rijndael (Depends-on):
44607         Depend conditionally on crypto/rijndael.
44608         * modules/crypto/gc-sha1 (Depends-on):
44609         Depend conditionally on crypto/sha1.
44610         * modules/crypto/gc-arcfour:
44611         * modules/crypto/gc-arctwo:
44612         * modules/crypto/gc-des:
44613         * modules/crypto/gc-hmac-md5:
44614         * modules/crypto/gc-hmac-sha1:
44615         * modules/crypto/gc-md2:
44616         * modules/crypto/gc-md4:
44617         * modules/crypto/gc-md5:
44618         * modules/crypto/gc-rijndael:
44619         * modules/crypto/gc-sha1:
44620         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
44621         now that the conditional dependencies do the work for us.
44623 2011-11-17  Jim Meyering  <meyering@redhat.com>
44625         tests: factor st_ctime-comparison out of two headers
44626         * tests/test-utimens-common.h (ctime_compare): Define.
44627         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
44628         * tests/test-lutimens.h (test_lutimens): Likewise.
44629         * tests/test-utimens.h (test_utimens): Likewise.
44631         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
44632         Invoke the test program via an init.sh-using wrapper.
44633         * tests/test-getcwd.sh: New file.
44634         * modules/getcwd-tests (Files): Add it.
44635         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
44637 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
44639         gitlog-to-changelog: support multi-author commits.
44640         The FSF cares about keeping track of all authors of patches to its
44641         projects, but Git doesn't provide obvious support for multi-author
44642         changesets. Consensus seems to be forming around the use of extra
44643         Signed-off-by inspired lines in the log message formatted as
44644         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
44645         multi-author commits between version control systems.
44646         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
44647         log message and output in standard ChangeLog multi-author format.
44648         Reported by Peter Rosin <peda@lysator.liu.se>
44650 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
44651             Bruno Haible  <bruno@clisp.org>
44653         Fix some modules' file list.
44654         * modules/fstatat (Files): Add m4/lstat.m4.
44655         * modules/openat (Files): Likewise.
44656         * modules/unlinkat (Files): Likewise.
44658 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
44660         maint.mk: fix tight-scope.mk generation in VPATH builds.
44661         * top/maint.mk (tight-scope.mk): Make sure to prefix file
44662         reference with $(srcdir) so that the file is found correctly even
44663         when running `make syntax-check' in a VPATH build.
44665 2011-11-13  Bruno Haible  <bruno@clisp.org>
44666             Jim Meyering  <meyering@redhat.com>
44668         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
44669         * tests/init.sh (compare): Remove "No differences encountered" or
44670         synonymous output from the 'diff' program.
44672 2011-11-13  Bruno Haible  <bruno@clisp.org>
44674         Makefile: Tweak indentation.
44675         * Makefile: Use tab as first character in every line that contains rule
44676         commands.
44678 2011-11-13  Bruno Haible  <bruno@clisp.org>
44680         Syntax check for copyright statements.
44681         * check-copyright: New file.
44682         * Makefile (sc_check_copyright): New rule.
44684 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44686         * build-aux/git-version-gen: Add --prefix to configure the tag
44687         match string.
44689 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44691         * build-aux/git-version-gen: Add --help and --version.
44693 2011-11-12  Jim Meyering  <meyering@redhat.com>
44695         revamp the other test-exclude?.sh scripts to use init.sh, too
44696         * tests/test-exclude1.sh: Use init.sh.
44697         * tests/test-exclude2.sh: Likewise.
44698         * tests/test-exclude3.sh: Likewise.
44699         * tests/test-exclude4.sh: Likewise.
44700         * tests/test-exclude5.sh: Likewise.
44701         * tests/test-exclude6.sh: Likewise.
44702         * tests/test-exclude7.sh: Likewise.
44703         * tests/test-exclude8.sh: Likewise.
44704         * modules/exclude-tests (Files): List init.sh.
44706         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
44707         These shell scripts ignored failure of the binary test-exclude,
44708         so making the latter return 77 didn't cause them to be skipped.
44709         * tests/test-exclude5.sh: Exit with test-exclude's error status
44710         when that program fails.  Revamp to use init.sh.
44711         * tests/test-exclude2.sh: Likewise.
44713         test-exclude: fix a typo
44714         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
44716 2011-11-11  Bruno Haible  <bruno@clisp.org>
44718         obstack: Fix compilation error on MSVC 9.
44719         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
44721 2011-11-11  Jim Meyering  <meyering@redhat.com>
44723         test-exclude: skip tests rather than failing on deficient systems
44724         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
44725         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
44726         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
44727         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
44729 2011-11-10  Bruno Haible  <bruno@clisp.org>
44731         ptsname_r test: Avoid gcc warning on glibc systems.
44732         * tests/test-ptsname_r.c (null_ptr): New function.
44733         (test_errors): Use it.
44735 2011-11-10  Bruno Haible  <bruno@clisp.org>
44737         ptsname_r: Avoid compilation error on OSF/1 5.1.
44738         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
44739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
44740         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
44741         function is not declared or incompatibly declared.
44742         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
44743         * modules/ptsname_r (Depends-on, configure.ac): Update.
44744         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
44746 2011-11-10  Bruno Haible  <bruno@clisp.org>
44748         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
44749         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
44750         When cross-compiling, guess yes on all platforms except AIX.
44751         Reported by Ludovic Courtès <ludo@gnu.org>.
44753 2011-11-09  Bruno Haible  <bruno@clisp.org>
44755         ptsname_r tests: Fix bugs.
44756         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
44757         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
44759 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44761         fstatat: work with cross-compilation
44762         Problem reported by Ludovic Courtès in
44763         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
44764         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
44765         "cross-compiling" and assume the bug is present.  Replace
44766         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
44767         an inverted sense, to be more conservative about our assumptions.
44768         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
44770 2011-11-09  Bruno Haible  <bruno@clisp.org>
44772         Improve MODULES.html output.
44773         * modules/mkfifoat (Description): Use the word "function".
44774         * modules/readlinkat (Description): Likewise.
44775         * modules/symlinkat (Description): Likewise.
44777 2011-11-09  Eric Blake  <eblake@redhat.com>
44779         ptsname_r-tests: new test module
44780         * modules/ptsname_r-tests: New module.
44781         * tests/test-ptsname_r.c: New file.
44783         ptsname_r: new module
44784         * modules/ptsname_r: New module.
44785         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
44786         * lib/ptsname.c (__ptsname_r): Split...
44787         * lib/ptsname_r.c: ...into new file.
44788         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
44789         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
44790         * modules/stdlib (Makefile.am): Substitute witnesses.
44791         * lib/stdlib.in.h (ptsname_r): Declare it.
44792         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
44793         * MODULES.html.sh (Misc): Likewise.
44794         * modules/ptsname (Depends-on): Alter dependency.
44795         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
44797 2011-11-09  Jim Meyering  <meyering@redhat.com>
44799         announce-gen: be more concise when there's only one URL+tarball
44800         * build-aux/announce-gen (get_tool_versions): When you distribute
44801         only one type of tarball, combine the first two "Here are..."
44802         sections and make the key-checking grammar independent of
44803         how many tarballs there are.
44805 2011-11-09  Eric Blake  <eblake@redhat.com>
44807         openpty: provide a stub on mingw
44808         * lib/pty.in.h (includes): Provide forward declarations.
44809         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
44811         raise: fix mingw handling of SIGPIPE
44812         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
44814 2011-11-08  Bruno Haible  <bruno@clisp.org>
44816         More conditional dependencies.
44817         * modules/faccessat (Depends-on): Add conditions.
44818         * modules/fchmodat (Depends-on): Likewise.
44819         * modules/fchownat (Depends-on): Likewise.
44820         * modules/fstatat (Depends-on): Likewise.
44821         * modules/mkfifoat (Depends-on): Likewise.
44822         * modules/readlinkat (Depends-on): Likewise.
44823         * modules/symlinkat (Depends-on): Likewise.
44824         * modules/unlinkat (Depends-on): Likewise.
44825         * modules/utimensat (Depends-on): Likewise.
44826         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
44827         * modules/linkat (Depends-on): Refine the conditions.
44828         * modules/renameat (Depends-on): Likewise.
44830 2011-11-08  Bruno Haible  <bruno@clisp.org>
44832         faccessat: Move AC_LIBOBJ invocation to module description.
44833         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
44834         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
44835         invocation from here...
44836         * modules/faccessat (configure.ac): ... to here. Invoke
44837         gl_PREREQ_FACCESSAT.
44839 2011-11-08  Bruno Haible  <bruno@clisp.org>
44841         faccessat: Simplify autoconf macro.
44842         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
44843         gl_FUNC_EUIDACCESS.
44845 2011-11-08  Bruno Haible  <bruno@clisp.org>
44847         renameat: Fix dependencies.
44848         * modules/renameat (Depends-on): Add stdbool.
44850 2011-11-08  Bruno Haible  <bruno@clisp.org>
44852         mkfifoat: Fix module description.
44853         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
44854         not gl_UNISTD_MODULE_INDICATOR.
44856 2011-11-08  Bruno Haible  <bruno@clisp.org>
44858         fstatat: Remove unused dependency.
44859         * modules/fstatat (Depends-on): Remove fstat.
44861 2011-11-08  Simon Josefsson  <simon@josefsson.org>
44863         GNUmakefile: behave when Makefile is missing.
44864         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
44866 2011-11-08  Bruno Haible  <bruno@clisp.org>
44868         openat: Conditionalize dependencies.
44869         * lib/openat.c: Reduce the scope of some #includes.
44870         * modules/openat (Depends-on): Add conditions.
44872 2011-11-07  Jim Meyering  <meyering@redhat.com>
44874         maint.mk: extract GPG key ID without using a temporary file
44875         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
44876         without using a temporary file.  Based on a suggestion from Werner Koch
44877         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
44879 2011-11-07  Eric Blake  <eblake@redhat.com>
44881         grantpt: fix typo
44882         * lib/stdlib.in.h (grantpt): Check correct function.
44884         maint.mk: silence new syntax check
44885         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
44887 2011-11-06  Bruno Haible  <bruno@clisp.org>
44889         Doc about floating-point and math API.
44890         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
44891         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
44893 2011-11-06  Bruno Haible  <bruno@clisp.org>
44895         stdalign tests: Skip the test when compiled by Sun C.
44896         * tests/test-stdalign.c (main): Skip the test on Sun C.
44898 2011-11-06  Bruno Haible  <bruno@clisp.org>
44900         ansi-c++-opt: Complete the 2011-06-05 change.
44901         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
44902         does not support namespaces, set the variable to "no", not to ":".
44904 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44906         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
44908 2011-11-06  Bruno Haible  <bruno@clisp.org>
44910         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
44911         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
44912         (minus_zerol) [HP-UX]: New macro.
44913         (unary_minus) [HP-UX]: New function.
44914         (copysignl) [HP-UX]: Use unary_minus function.
44916 2011-11-06  Bruno Haible  <bruno@clisp.org>
44918         ldexp, ldexpf, ldexpl: Enhance tests.
44919         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
44920         and tests/test-ldexpl.c.
44921         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
44922         LDEXP, MIN_EXP, MAX_EXP): New macros.
44923         Include test-ldexp.h.
44924         (main): Just call test_function.
44925         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
44926         infinity.h, nan.h.
44927         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44928         MAX_EXP): New macros.
44929         Include test-ldexp.h.
44930         (x, y): Remove variables.
44931         (main): Just call test_function.
44932         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
44933         infinity.h, nan.h.
44934         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44935         MAX_EXP): New macros.
44936         Include test-ldexp.h.
44937         (x, y): Remove variables.
44938         (main): Just call test_function.
44939         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
44940         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
44941         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44942         (Depends-on): Add isnand-nolibm, signbit, float.
44943         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
44944         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44945         (Depends-on): Add isnanf-nolibm, signbit, float.
44947 2011-11-06  Bruno Haible  <bruno@clisp.org>
44949         math tests: Cosmetics.
44950         * tests/test-math-c++.cc: Reorder declarations.
44952 2011-11-05  Bruno Haible  <bruno@clisp.org>
44954         fma*: Simplify test.
44955         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
44956         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
44958         Tests for module 'fmal'.
44959         * modules/fmal-tests: New file.
44960         * tests/test-fmal1.c: New file.
44961         * tests/test-fmal2.c: New file.
44963         New module 'fmal'.
44964         * lib/math.in.h (fmal): New declaration.
44965         * lib/fmal.c: New file.
44966         * m4/fmal.m4: New file.
44967         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
44968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
44969         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
44970         REPLACE_FMAL.
44971         * modules/fmal: New file.
44972         * doc/posix-functions/fmal.texi: Mention the new module and the various
44973         bugs.
44975         Tests for module 'fmaf'.
44976         * modules/fmaf-tests: New file.
44977         * tests/test-fmaf1.c: New file.
44978         * tests/test-fmaf2.c: New file.
44980         New module 'fmaf'.
44981         * lib/math.in.h (fmaf): New declaration.
44982         * lib/fmaf.c: New file.
44983         * m4/fmaf.m4: New file.
44984         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
44985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
44986         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
44987         REPLACE_FMAF.
44988         * modules/fmaf: New file.
44989         * doc/posix-functions/fmaf.texi: Mention the new module and the various
44990         bugs.
44992         Tests for module 'fma'.
44993         * modules/fma-tests: New file.
44994         * tests/test-fma1.c: New file.
44995         * tests/test-fma1.h: New file.
44996         * tests/test-fma2.c: New file.
44997         * tests/test-fma2.h: New file.
44999         New module 'fma'.
45000         * lib/math.in.h (fma): New declaration.
45001         * lib/fma.c: New file.
45002         * m4/fma.m4: New file.
45003         * m4/fegetround.m4: New file.
45004         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
45005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
45006         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
45007         REPLACE_FMA.
45008         * modules/fma: New file.
45009         * doc/posix-functions/fma.texi: Mention the new module and the various
45010         bugs.
45012         Extend gl_MATHFUNC.
45013         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
45014         Support 'void' as argument type.
45015         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
45017 2011-11-05  Jim Meyering  <meyering@redhat.com>
45019         maint.mk: also prohibit inclusion of dirent.h without use
45020         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
45022 2011-11-05  Bruno Haible  <bruno@clisp.org>
45024         ldexpl tests: Avoid test failure on MSVC 9.
45025         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
45026         value. Needed in order to enforce the conversion from a value greater
45027         than LDBL_MAX to Infinity.
45029 2011-11-05  Bruno Haible  <bruno@clisp.org>
45031         New modules 'at-internal', 'openat-h', split off from module 'openat'.
45032         * modules/at-internal: New file, extracted from modules/openat.
45033         * modules/openat-h: New file.
45034         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
45035         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
45036         * modules/openat (Description): Add reference to POSIX function.
45037         (Files): Remove lib/openat.h, lib/openat-proc.c.
45038         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
45039         intprops, unistd.
45040         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
45041         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
45042         gl_FCNTL_MODULE_INDICATOR.
45043         (Include): Remove unistd.h, openat.h.
45044         * modules/areadlinkat (Files): Add lib/at-func.c.
45045         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45046         openat-die, openat-h, save-cwd.
45047         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
45048         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45049         openat-die, openat-h, save-cwd, unistd.
45050         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
45051         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45052         openat-h, save-cwd. Remove fcntl-h, openat.
45053         * modules/fchmodat (Files): Remove lib/openat.h.
45054         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45055         openat, stdbool, unistd.
45056         * modules/fchownat (Files): Remove lib/openat.h.
45057         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45058         openat, stdbool, sys_stat.
45059         * modules/fdopendir (Files): Remove lib/openat-priv.h,
45060         lib/openat-proc.c.
45061         (Depends-on): Add at-internal.
45062         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
45063         * modules/fstatat (Files): Remove lib/openat.h.
45064         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45065         stdbool, unistd.
45066         * modules/fts (Depends-on): Add openat-h.
45067         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
45068         openat.
45069         * modules/mkdirat (Files): Remove lib/openat.h.
45070         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45071         openat, stdbool, sys_stat.
45072         * modules/mkfifoat (Files): Add lib/at-func.c.
45073         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45074         openat-h, save-cwd. Remove fcntl-h, openat.
45075         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
45076         * modules/readlinkat (Files): Add lib/at-func.c.
45077         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45078         openat-h, save-cwd. Remove fcntl-h, openat.
45079         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
45080         openat.
45081         * modules/selinux-at (Files): Add lib/at-func.c.
45082         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45083         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
45084         * modules/symlinkat (Files): Add lib/at-func.c.
45085         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45086         openat-h, save-cwd. Remove fcntl-h, openat.
45087         * modules/unlinkat (Files): Remove lib/openat.h.
45088         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45089         stdbool.
45090         * modules/utimensat (Files): Add lib/at-func.c.
45091         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
45092         openat-die, openat-h, save-cwd.
45093         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
45094         * modules/fdutimensat-tests (Depends-on): Add openat.
45095         * modules/fstatat-tests (Depends-on): Add openat-h.
45096         * modules/readlinkat-tests (Depends-on): Add openat.
45097         * modules/symlinkat-tests (Depends-on): Add openat.
45099 2011-11-05  Bruno Haible  <bruno@clisp.org>
45101         openat: Include <stdbool.h>.
45102         * lib/openat.c: Include <stdbool.h>.
45104 2011-11-04  Bruno Haible  <bruno@clisp.org>
45106         fchownat, renameat, unlinkat: Fix dependencies.
45107         * modules/fchownat (Depends-on): Add fstatat.
45108         * modules/renameat (Depends-on): Likewise.
45109         * modules/unlinkat (Depends-on): Likewise.
45111 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
45113         openat: remove direct dependency on dirent
45114         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
45115         and hasn't been needed ever since fdopendir was split into its own
45116         module on 2009-08-31.
45117         * modules/openat (Depends-on): Remove dirent.
45119 2011-11-04  Bruno Haible  <bruno@clisp.org>
45121         renameat: Optimize code size.
45122         * modules/renameat (configure.ac): Don't compile at-func2.c if
45123         REPLACE_RENAMEAT is 1.
45125 2011-11-04  Bruno Haible  <bruno@clisp.org>
45127         openat tests: Fix file list.
45128         * modules/openat-tests (Files): Add tests/test-open.h.
45130 2011-11-04  Bruno Haible  <bruno@clisp.org>
45132         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
45133         * modules/fchmodat (Depends-on): Add openat-die.
45134         * modules/fchownat (Depends-on): Likewise.
45135         * modules/linkat (Depends-on): Likewise.
45136         * modules/renameat (Depends-on): Likewise.
45137         * modules/openat (Depends-on): Add dirent.
45139 2011-11-04  Jim Meyering  <meyering@redhat.com>
45141         at-func*.c: fix comments
45142         * lib/at-func2.c: Correct/improve first-line comment.
45143         * lib/at-func.c: Correct grammar in first-line comment.
45145 2011-11-04  Bruno Haible  <bruno@clisp.org>
45147         New module 'mkdirat', split off from module 'openat'.
45148         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
45149         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
45150         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
45151         * modules/mkdirat: New file, extracted from modules/openat.
45152         * modules/openat (Files): Remove lib/mkdirat.c.
45153         (Depends-on): Remove mkdir.
45154         (configure.ac): Remove AC_LIBOBJ of mkdirat.
45155         (Include): Remove <sys/stat.h>.
45156         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
45157         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
45158         tests/test-mkdir.h.
45159         (Depends-on): Remove ignore-value.
45160         (Makefile.am): Remove rules for test-mkdirat.
45161         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
45162         of module 'openat'.
45163         * NEWS: Mention the change.
45165 2011-11-04  Bruno Haible  <bruno@clisp.org>
45167         closedir: Avoid warning on mingw.
45168         * lib/closedir.c: Include <unistd.h>.
45170 2011-11-04  Bruno Haible  <bruno@clisp.org>
45172         New module 'fstatat', split off from module 'openat'.
45173         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
45174         defined.
45175         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
45176         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
45177         gl_FUNC_FSTATAT.
45178         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
45179         * modules/fstatat: New file, extracted from modules/openat.
45180         * modules/openat (Files): Remove lib/fstatat.c.
45181         (Depends-on): Remove lstat.
45182         (configure.ac): Remove AC_LIBOBJ of fstatat.
45183         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
45184         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
45185         tests/test-lstat.h, tests/test-stat.h.
45186         (Depends-on): Remove getcwd-lgpl.
45187         (Makefile.am): Remove rules for test-fstatat.
45188         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
45189         of module 'openat'.
45190         * NEWS: Mention the change.
45191         * modules/getcwd (Depends-on): Add fstatat.
45192         * modules/linkat (Depends-on): Likewise.
45193         * modules/mkfifoat-tests (Depends-on): Likewise.
45194         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
45196 2011-11-03  Bruno Haible  <bruno@clisp.org>
45198         New module 'unlinkat', split off from module 'openat'.
45199         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
45200         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
45201         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
45202         * modules/unlinkat: New file, extracted from modules/openat. Correct
45203         the dependency conditions.
45204         * modules/openat (Files): Remove lib/unlinkat.c.
45205         (Depends-on): Remove rmdir, unlink.
45206         (configure.ac): Remove AC_LIBOBJ of unlinkat.
45207         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
45208         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
45209         tests/test-rmdir.h, tests/test-unlink.h.
45210         (Depends-on): Remove unlinkdir.
45211         (Makefile.am): Remove rules for test-unlinkat.
45212         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
45213         of module 'openat'.
45214         * NEWS: Mention the change.
45215         * modules/linkat-tests (Depends-on): Add unlinkat.
45216         * modules/mkfifoat-tests (Depends-on): Likewise.
45217         * modules/readlinkat-tests (Depends-on): Likewise.
45219 2011-11-02  Bruno Haible  <bruno@clisp.org>
45221         New module 'fchmodat', split off from module 'openat'.
45222         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
45223         defined.
45224         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
45225         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
45226         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
45227         * modules/fchmodat: New file, extracted from modules/openat.
45228         * modules/openat (Files): Remove lib/fchmodat.c.
45229         (configure.ac): Remove AC_LIBOBJ of fchmodat.
45230         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
45231         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
45232         (Makefile.am): Remove rules for test-fchmodat.
45233         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
45234         of module 'openat'.
45235         * NEWS: Mention the change.
45237 2011-11-02  Jim Meyering  <meyering@redhat.com>
45239         putenv: indent #definition of "environ" to placate cppi
45240         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
45242         gitlog-to-changelog: provide a ChangeLog-repair mechanism
45243         Git logs are often treated as immutable, because editing them
45244         changes the SHA1 checksums of all descendants.  Thus, errors in
45245         git logs tend to stay there forever.  However, when we generate
45246         a ChangeLog file -- typically for distribution -- from that git log,
45247         we can actually make corrections in the generated file.  The key
45248         lies in recording in machine-readable/applicable form the desired
45249         corrections.  See --help for description and an example.
45250         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
45251         (usage): Describe it; alphabetize option descriptions.
45252         (main): Honor the new option, carefully.
45254 2011-11-01  Jim Meyering  <meyering@redhat.com>
45256         gitlog-to-changelog: avoid an infloop
45257         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
45258         that ends up being empty.
45260 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45262         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
45263         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
45264         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
45265         contains (possibly-quoted) backslashes.  This should avoid
45266         all-too-common shell bugs if COMPLICATED contains backslashes in
45267         the "wrong" places.  Reported by David Evans in
45268         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
45269         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
45270         because we want ASCII ranges.  Is there some reason we don't use
45271         the C locale everywhere in this script?
45272         (func_module, top level): Avoid unwanted pathname expansion when
45273         $repo_url_prefix or $repo_url_suffix_repl contain shell
45274         metacharacters like '?' and '*'.
45276 2011-11-01  Bruno Haible  <bruno@clisp.org>
45278         fchownat: Improve description.
45279         * modules/fchownat (Description): Add link to function.
45281 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45283         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
45284         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
45285         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
45286         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
45288 2011-11-01  Bruno Haible  <bruno@clisp.org>
45290         alignof: Avoid collision with stdalign module.
45291         * lib/alignof.h (alignof): Remove macro.
45292         * NEWS: Mention the change.
45293         Reported by Paul Eggert.
45295 2011-11-01  Bruno Haible  <bruno@clisp.org>
45297         New module 'fchownat', split off from module 'openat'.
45298         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
45299         defined.
45300         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
45301         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
45302         invoke gl_FUNC_FCHOWNAT.
45303         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
45304         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
45305         * modules/fchownat: New file, extracted from modules/openat.
45306         * modules/openat (Files): Remove lib/fchownat.c.
45307         (Depends-on): Remove lchown.
45308         (configure.ac): Remove AC_LIBOBJ of fchownat.
45309         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
45310         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
45311         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
45312         (Depends-on): Remove mgetgroups, usleep, stat-time.
45313         (configure.ac): Remove test for getegid.
45314         (Makefile.am): Remove rules for test-fchownat.
45315         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
45316         of module 'openat'.
45317         * NEWS: Mention the change.
45319 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45321         stdalign: port better to MSVC and to Sun C 5.11
45322         This fixes some of the problems reported by Bruno Haible in
45323         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
45324         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
45325         shortcomings of MSVC and of Sun C 5.11.
45326         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
45327         around __declspec arg.
45328         * modules/stdalign-tests (Files): Add tests/macros.h.
45329         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
45330         Include macros.h, for ASSERT.
45331         (DECLARE_ALIGNED): Remove.
45332         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
45333         to catch bug), and to 1 if not (simplifies the rest of the code).
45334         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
45335         (CHECK_AUTO): Remove.
45336         (CHECK_ALIGNED): Check only the alignment of the static vars,
45337         since auto var alignment isn't supported by Sun C 5.11.
45338         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
45339         ASSERT failures are easier to diagnose.
45341 2011-10-31  Bruno Haible  <bruno@clisp.org>
45343         doc about some IRIX 5.3 problems.
45344         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
45345         on IRIX 5.3.
45346         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
45347         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
45348         5.3.
45349         * doc/posix-functions/grantpt.texi: Likewise.
45350         * doc/posix-functions/unlockpt.texi: Likewise.
45351         * doc/posix-functions/lgamma.texi: Likewise.
45352         * doc/posix-functions/nextafter.texi: Likewise.
45353         * doc/posix-functions/remainder.texi: Likewise.
45354         * doc/posix-functions/select.texi: Mention misplaced declaration on
45355         IRIX 5.3.
45356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45358 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
45360         gitlog-to-changelog: fix git-log invocation.
45361         git-log mishandles date strings before 1970-01-01 UTC, and there is
45362         no use to specify --since=1970-01-01 by default anyway.
45363         * build-aux/gitlog-to-changelog: By default, when no --since option
45364         was given, do not specify explicit --since option to git-log.
45366 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
45368         gitlog-to-changelog: new option --append-dot.
45369         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
45370         first non-blank line of each commit message terminated with a dot.
45372 2011-10-30  Bruno Haible  <bruno@clisp.org>
45374         ffsl, ffsll: Avoid compilation error due to 'restrict'.
45375         * lib/ffsl.h: Include <config.h>.
45376         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
45378 2011-10-30  Jim Meyering  <meyering@redhat.com>
45380         GNUmakefile: reenable "make syntax-check" for most projects
45381         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
45382         build-aux variable", "syntax-check" would do nothing but succeed with
45383         the "No version control files detected..." diagnostic (unless you
45384         happened to override _build-aux via cfg.mk).
45385         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
45386         to precede inclusion of maint.mk.  Otherwise, these variables would
45387         be used undefined in any project that does not override the default.
45389 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
45391         gitlog-to-changelog: treat a message with only blank lines as empty.
45392         * build-aux/gitlog-to-changelog: Move the code that removes leading and
45393         trailing blank lines before the code that issues a warning about an
45394         empty commit message.
45396 2011-10-30  Jim Meyering  <meyering@redhat.com>
45398         test-parse-datetime.c: avoid new DST-related false positive test failure
45399         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
45400         based on the time/date we'll convert, not the current time.
45401         Otherwise, the moment we cross a DST boundary like today's in
45402         Europe, (CEST to CET), that offset ends up being one hour off.
45404 2011-10-27  Bruno Haible  <bruno@clisp.org>
45406         fstat: Tweak documentation.
45407         * modules/fstat (Description): More precise description.
45409 2011-10-27  Bruno Haible  <bruno@clisp.org>
45411         Update documentation regarding 'largefile' module.
45412         * doc/posix-functions/fstat.texi: Tweak wording.
45413         * doc/posix-functions/opendir.texi: Mention that the module fixes the
45414         problems with huge directories and/or small ino_t types.
45415         * doc/posix-functions/readdir.texi: Likewise.
45416         * doc/posix-functions/rewinddir.texi: Likewise.
45418 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
45420         maint.mk: don't maintain a second build-aux variable.
45421         * maint.mk (build_aux): Removed.  The maintainer-makefile module
45422         depends on GNUmakefile, which already maintains a cfg.mk
45423         overridable $(_build-aux) for projects with a non-standard
45424         build-aux directory location, although without the $(srcdir)
45425         prefix.  Use that variable consistently instead of introducing a
45426         second one.  Adjust all call sites.
45428 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45430         Add stdalign module and use it in other modules.
45431         This is based on a previous proposal by Bruno Haible
45432         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
45434         stdalign: new module
45435         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
45436         * modules/stdalign: New files.
45437         * MODULES.html.sh (c1x_core_properties): Add stdalign.
45438         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
45440         stdalign-tests: new module
45441         * modules/stdalign-tests, tests/test-stdalign.c: New files.
45443         argp: use stdalign
45444         * lib/argp-parse.c: Include <stdalign.h>.
45445         (alignof): Remove.
45446         * modules/argp (Depends-on): Add stdalign.
45448         crypto libraries: use stdalign
45449         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
45450         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
45451         Do not include <stdlib.h> twice, in md4.c.
45452         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
45453         because we are accessing a pointer's bit-pattern, not a size.
45454         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
45455         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
45456         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
45457         * modules/crypto/sha512: Likewise.
45459         sys_socket: use stdalign, not alignof
45460         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
45461         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
45463 2011-10-27  Bruno Haible  <bruno@clisp.org>
45465         raise test: Avoid a test failure on Linux/MIPS.
45466         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
45467         because 99 is a valid signal on Linux/MIPS.
45469 2011-10-27  Bruno Haible  <bruno@clisp.org>
45471         nonblocking tests: Fix test failure on Linux/MIPS.
45472         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
45473         Set to 270000.
45475 2011-10-27  Bruno Haible  <bruno@clisp.org>
45477         utimensat: Work around problem on Linux/hppa.
45478         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
45479         values.
45480         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
45482 2011-10-25  Jim Meyering  <meyering@redhat.com>
45484         maint.mk: fix a bug in sc_prohibit_stddef_without_use
45485         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
45486         after symbols like NULL, size_t, etc.
45487         Reported by Alfred M. Szmidt.
45489         maint.mk: exempt ENODATA from a syntax-check rule
45490         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
45491         from the sc_prohibit_always-defined_macros syntax-check rule.
45492         Add a comment.  See this for more details:
45493         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
45495 2011-10-23  Jim Meyering  <meyering@redhat.com>
45497         fts: close parent dir FD before returning from post-traversal fts_read
45498         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
45499         unlink A, even though an FD open on A remained.  This is suboptimal
45500         (holding a file descriptor open longer than needed), but otherwise not
45501         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
45502         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
45503         that represents a real problem: it causes the removal of A to fail
45504         with e.g., "rm: cannot remove `A': Device or resource busy"
45506         fts visits each directory twice and keeps a cache (fts_fd_ring) of
45507         directory file descriptors.  After completing the final, FTS_DP,
45508         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
45509         cache, but then proceeded to add a new FD to it via the subsequent
45510         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
45511         final file descriptor would be closed only via fts_close's call to
45512         fd_ring_clear.  Now, it is usually closed earlier, via the final
45513         FTS_DP-returning fts_read call.
45514         * lib/fts.c (restore_initial_cwd): New function, converted from
45515         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
45516         Update callers.
45517         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
45518         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
45520 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
45521             Bruno Haible  <bruno@clisp.org>
45522             Jim Meyering  <jim@meyering.net>
45524         readme-release: improve safety of release prep instructions.
45525         * README-release: Don't git pull all branches when only master
45526         is needed for the release process.
45527         Run make maintainer-clean before changing trees and merging.
45528         Don't try to run ./configure right after git pull in case files
45529         that influence the bootstrap process have changed, move the
45530         ./configure step to after running ./bootstrap.
45531         Don't bootstrap "one last time"... it's the first time!
45533 2011-10-22  Bruno Haible  <bruno@clisp.org>
45535         errno, strerror-override: Support for MSVC 10.
45536         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
45537         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
45538         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
45539         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
45540         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
45541         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
45542         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
45543         Assign values compatible with MSVC 10.
45544         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
45545         New macros.
45546         (GNULIB_defined_EWINSOCK): New macro.
45547         * lib/strerror-override.c (strerror_override): Update accordingly.
45548         * lib/strerror-override.h: Likewise.
45549         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
45550         longer equal to the corresponding errno value.
45551         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45553 2011-10-22  Bruno Haible  <bruno@clisp.org>
45555         perror: Recognize when test program crashes.
45556         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
45557         strerror, set gl_cv_func_perror_works to no.
45558         Reported by Daniel Richard G. <skunk@iskunk.org>.
45560         perror: Fix indentation.
45561         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
45563 2011-10-22  Bruno Haible  <bruno@clisp.org>
45565         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
45566         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
45567         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
45568         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
45569         functions, not as a macro.
45570         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
45571         macros.
45572         (isfinite, isinf, isnan, signbit): Check overloaded functions and
45573         absence of macro.
45574         Suggested by Eric Blake.
45575         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45577 2011-10-21  Bruno Haible  <bruno@clisp.org>
45579         relocatable-prog-wrapper: Don't leave object files behind.
45580         * build-aux/install-reloc: Re-synchronize list of .o files to be
45581         removed with list of compilation units.
45583 2011-10-20  Bruno Haible  <bruno@clisp.org>
45585         openpty, posix_openpt: Remove code duplication.
45586         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
45587         * lib/openpty.c: Include <stdlib.h>.
45588         (openpty): Use posix_openpt on all platforms except IRIX.
45589         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
45591 2011-10-20  Bruno Haible  <bruno@clisp.org>
45593         unlockpt: Detect invalid argument.
45594         * lib/unlockpt.c: Include <fcntl.h>.
45595         (unlockpt): Check whether fd is valid, using fcntl().
45596         * modules/unlockpt (Depends-on): Add fcntl-h.
45598 2011-10-20  Bruno Haible  <bruno@clisp.org>
45600         openpty: Avoid compilation error on AIX 6.1.
45601         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
45603 2011-10-20  Bruno Haible  <bruno@clisp.org>
45605         posix_openpt: Support for OpenBSD.
45606         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
45607         (posix_openpt) [OpenBSD]: New code.
45608         * lib/grantpt.c: Include <fcntl.h>.
45609         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
45610         * modules/grantpt (Depends-on): Add fcntl-h.
45612 2011-10-20  Bruno Haible  <bruno@clisp.org>
45614         posix_openpt test: Coding style.
45615         * tests/test-posix_openpt.c: Use GNU coding style.
45617 2011-10-20  Bruno Haible  <bruno@clisp.org>
45619         grantpt: Support --avoid=pt_chown.
45620         * modules/grantpt (Files): Add lib/pty-private.h.
45622 2011-10-20  Bruno Haible  <bruno@clisp.org>
45624         posix_openpt: Fix autoconf macro.
45625         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
45626         unneeded check for _getpty.
45628 2011-10-20  Bruno Haible  <bruno@clisp.org>
45630         openpty: Update comments.
45631         * lib/openpty.c: Add comments about Minix.
45633 2011-10-19  Eric Blake  <eblake@redhat.com>
45635         openpty: relax license
45636         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
45638         pt_chown: use configmake to simplify build
45639         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
45641         ptsname and others: relax license
45642         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
45643         * modules/unlockpt (License): Likewise.
45644         * modules/pt_chown (License): Likewise.
45645         * modules/ptsname (License): Likewise.
45646         * modules/ttyname_r (License): Likewise.
45648 2011-10-19  Jim Meyering  <meyering@redhat.com>
45650         posix_openpt: remove spurious #endif
45651         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
45653 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
45655         maint.mk: Respect $(build_aux) in web-manual rule.
45656         * top/maint.mk (web-manual): Find gen-announce script in user's
45657         $(build_aux) directory instead of hard-coding 'build-aux'.
45659 2011-10-19  Bruno Haible  <bruno@clisp.org>
45661         posix_openpt: Fix compilation error.
45662         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
45663         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
45664         Mention the openpty module as an alternative.
45666 2011-10-19  Bruno Haible  <bruno@clisp.org>
45668         Support for old NeXTstep 3.3 frexp().
45669         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
45670         execution time of the test to 5 seconds.
45671         Reported by Daniel Richard G. <skunk@iskunk.org>.
45673 2011-10-19  Bruno Haible  <bruno@clisp.org>
45675         Support for old NeXTstep 3.3 sed.
45676         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
45677         part, use /.../, not \|...|. Escape periods in the header file name.
45678         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45679         Reported by Daniel Richard G. <skunk@iskunk.org>.
45681 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45683         Support for old NeXTstep 3.3 gcc.
45684         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
45685         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
45686         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
45687         * lib/spawn.in.h (_Restrict_arr_): Likewise.
45688         * lib/regex.h (_Restrict_arr_): Likewise.
45689         * lib/regex_internal.h (re_token_t): Likewise.
45690         * lib/regexec.c (check_node_accept_bytes): Likewise.
45691         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
45693 2011-10-18  Eric Blake  <eblake@redhat.com>
45695         posix_openpt: new module
45696         * modules/posix_openpt: New module.
45697         * m4/posix_openpt.m4: New file.
45698         * lib/posix_openpt.c: Likewise.
45699         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45700         (gl_STDLIB_H_DEFAULTS): Set defaults.
45701         * modules/stdlib (Makefile.am): Substitute macros.
45702         * lib/stdlib.in.h (posix_openpt): Declare.
45703         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
45704         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
45705         * modules/posix_openpt-tests: New test module.
45706         * tests/test-posix_openpt.c: New test.
45708 2011-10-15  Bruno Haible  <bruno@clisp.org>
45710         xstrtoll: Fix compilation failure.
45711         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
45712         from lib/strtol.c.
45713         * doc/posix-headers/limits.texi: Mention missing numerical limits on
45714         some platforms.
45715         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45717 2011-10-15  Bruno Haible  <bruno@clisp.org>
45719         vasnprintf: Optimize bit search operation.
45720         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
45721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
45722         gl_DOUBLE_EXPONENT_LOCATION.
45723         * modules/vasnprintf (Files): Add m4/exponentd.m4.
45724         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45725         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45726         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45727         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45728         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45729         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45730         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45731         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
45733 2011-10-15  Bruno Haible  <bruno@clisp.org>
45735         vasnprintf: Fix comments.
45736         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
45738 2011-10-14  Bruno Haible  <bruno@clisp.org>
45740         Tests for module 'integer_length_ll'.
45741         * modules/integer_length_ll-tests: New file.
45742         * tests/test-integer_length_ll.c: New file.
45744         New module 'integer_length_ll'.
45745         * lib/integer_length_ll.c: New file.
45746         * modules/integer_length_ll: New file.
45748 2011-10-14  Bruno Haible  <bruno@clisp.org>
45750         Tests for module 'integer_length_l'.
45751         * modules/integer_length_l-tests: New file.
45752         * tests/test-integer_length_l.c: New file.
45754         New module 'integer_length_l'.
45755         * lib/integer_length_l.c: New file.
45756         * modules/integer_length_l: New file.
45758 2011-10-14  Bruno Haible  <bruno@clisp.org>
45760         Tests for module 'integer_length'.
45761         * modules/integer_length-tests: New file.
45762         * tests/test-integer_length.c: New file.
45764         New module 'integer_length'.
45765         * lib/integer_length.h: New file.
45766         * lib/integer_length.c: New file.
45767         * modules/integer_length: New file.
45769 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45771         popen: Fix dependency conditions.
45772         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
45774 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45776         perror: Fix autoconf test.
45777         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
45778         <stdlib.h> and <string.h>.
45780 2011-10-14  Bruno Haible  <bruno@clisp.org>
45782         ffsl: Optimize on 64-bit platforms.
45783         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
45784         unrolling.
45786 2011-10-13  Bruno Haible  <bruno@clisp.org>
45788         ffsl: Optimize on 32-bit platforms.
45789         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
45790         use ffs() without a loop.
45792         ffsl, ffsll: Optimize for GCC.
45793         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
45794         * lib/ffsl.c (GCC_BUILTIN): New macro.
45795         * lib/ffsll.c (GCC_BUILTIN): Likewise.
45797 2011-10-13  Bruno Haible  <bruno@clisp.org>
45799         ffs, bcopy, memset: Support symbol renaming via config.h.
45800         * lib/ffs.c: Include <config.h>.
45801         * lib/bcopy.c: Likewise.
45802         * lib/memset.c: Likewise.
45804 2011-10-10  Bruno Haible  <bruno@clisp.org>
45806         atanl: Simplify for platforms where 'long double' == 'double'.
45807         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45808         alternative implementation.
45809         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45810         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45811         * modules/atanl (Depends-on): Add atan. Update conditions.
45813 2011-10-10  Bruno Haible  <bruno@clisp.org>
45815         acosl: Simplify for platforms where 'long double' == 'double'.
45816         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45817         alternative implementation.
45818         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45819         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45820         * modules/acosl (Depends-on): Add acos. Update conditions.
45822 2011-10-10  Bruno Haible  <bruno@clisp.org>
45824         asinl: Simplify for platforms where 'long double' == 'double'.
45825         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45826         alternative implementation.
45827         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45828         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45829         * modules/asinl (Depends-on): Add asin. Update conditions.
45831 2011-10-10  Bruno Haible  <bruno@clisp.org>
45833         tanl: Simplify for platforms where 'long double' == 'double'.
45834         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45835         implementation.
45836         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45837         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45838         * modules/tanl (Depends-on): Add tan. Update conditions.
45839         (configure.ac): Don't compile trigl.c if
45840         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45842 2011-10-10  Bruno Haible  <bruno@clisp.org>
45844         cosl: Simplify for platforms where 'long double' == 'double'.
45845         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45846         implementation.
45847         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45848         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45849         * modules/cosl (Depends-on): Add cos. Update conditions.
45850         (configure.ac): Don't compile sincosl.c and trigl.c if
45851         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45853 2011-10-10  Bruno Haible  <bruno@clisp.org>
45855         sinl: Simplify for platforms where 'long double' == 'double'.
45856         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45857         implementation.
45858         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45859         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45860         * modules/sinl (Depends-on): Add sin. Update conditions.
45861         (configure.ac): Don't compile sincosl.c and trigl.c if
45862         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45864 2011-10-10  Bruno Haible  <bruno@clisp.org>
45866         logl: Simplify for platforms where 'long double' == 'double'.
45867         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45868         implementation.
45869         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45870         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45871         * modules/logl (Depends-on): Add log. Update conditions.
45873 2011-10-10  Bruno Haible  <bruno@clisp.org>
45875         expl: Simplify for platforms where 'long double' == 'double'.
45876         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45877         implementation.
45878         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45879         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45880         * modules/expl (Depends-on): Add exp. Update conditions.
45882 2011-10-10  Bruno Haible  <bruno@clisp.org>
45884         sqrtl: Simplify for platforms where 'long double' == 'double'.
45885         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45886         alternative implementation.
45887         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45888         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45889         * modules/sqrtl (Depends-on): Update conditions.
45891 2011-10-10  Bruno Haible  <bruno@clisp.org>
45893         ldexpl: Simplify for platforms where 'long double' == 'double'.
45894         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45895         alternative implementation.
45896         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45897         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45898         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
45900 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
45902         ffsll: set correct witness
45903         * modules/ffsll (configure.ac): Fix typo.
45905 2011-10-10  Bruno Haible  <bruno@clisp.org>
45907         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
45908         * lib/printf-frexpl.c: Include <config.h>.
45909         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45910         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
45911         second time.
45912         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
45913         gl_LONG_DOUBLE_VS_DOUBLE.
45914         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
45915         conditions.
45917 2011-10-10  Bruno Haible  <bruno@clisp.org>
45919         frexpl: Simplify for platforms where 'long double' == 'double'.
45920         * lib/frexpl.c: Include <config.h>.
45921         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45922         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45923         time.
45924         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45925         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45926         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
45927         * modules/frexpl (Depends-on): Add frexp. Update conditions.
45928         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
45929         conditions.
45931 2011-10-10  Jim Meyering  <meyering@redhat.com>
45933         test-renameat: don't leave behind a temporary file
45934         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
45935           ERROR: files left in build directory after distclean:
45936           ./gltests/test-renameat.too
45937           make[1]: *** [distcleancheck] Error 1
45938         Reported by Tom G. Christensen.
45940 2011-10-09  Bruno Haible  <bruno@clisp.org>
45942         rint: Determine RINT_LIBM correctly on AIX 7.
45943         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
45944         directly, not only through a function pointer. Also accept an optional
45945         4th argument with extra code.
45946         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
45947         rintf() call by gcc when optimizing.
45949         mathfunc.m4: Refactor.
45950         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
45951         m4 variable.
45953 2011-10-09  Bruno Haible  <bruno@clisp.org>
45955         rintl: Simplify for platforms where 'long double' == 'double'.
45956         * lib/rintl.c: Include <config.h>.
45957         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45958         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45959         time.
45960         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45961         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45962         * modules/rintl (Depends-on): Add rint. Update conditions.
45964 2011-10-09  Bruno Haible  <bruno@clisp.org>
45966         roundl: Simplify for platforms where 'long double' == 'double'.
45967         * lib/roundl.c: Include <config.h>.
45968         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45969         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45970         time.
45971         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45972         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45973         * modules/roundl (Depends-on): Add round. Update conditions.
45975 2011-10-09  Bruno Haible  <bruno@clisp.org>
45977         truncl: Simplify for platforms where 'long double' == 'double'.
45978         * lib/truncl.c: Include <config.h>.
45979         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45980         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45981         time.
45982         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45983         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45984         * modules/truncl (Depends-on): Add trunc. Update conditions.
45986 2011-10-09  Bruno Haible  <bruno@clisp.org>
45988         ceill: Simplify for platforms where 'long double' == 'double'.
45989         * lib/ceill.c: Include <config.h>.
45990         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45991         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45992         time.
45993         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45994         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45995         * modules/ceill (Depends-on): Add ceil. Update conditions.
45997 2011-10-09  Bruno Haible  <bruno@clisp.org>
45999         floorl: Simplify for platforms where 'long double' == 'double'.
46000         * lib/floorl.c: Include <config.h>.
46001         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46002         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46003         time.
46004         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46005         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46006         * modules/floorl (Depends-on): Add floor. Update conditions.
46008 2011-10-09  Bruno Haible  <bruno@clisp.org>
46010         rint: Fix ordering constraints.
46011         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
46012         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
46013         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
46015 2011-10-09  Bruno Haible  <bruno@clisp.org>
46017         copysignl: Simplify for platforms where 'long double' == 'double'.
46018         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46019         alternative.
46020         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46021         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46022         * modules/copysignl (Depends-on): Add copysign. Update conditions.
46024 2011-10-09  Bruno Haible  <bruno@clisp.org>
46026         Tests for module 'rintl'.
46027         * modules/rintl-tests: New file.
46028         * tests/test-rintl.c: New file.
46030         New module 'rintl'.
46031         * lib/math.in.h (rintl): New declaration.
46032         * lib/rintl.c: New file.
46033         * m4/rintl.m4: New file.
46034         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
46035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
46036         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
46037         * modules/rintl: New file.
46038         * tests/test-math-c++.cc: Check the declaration of rintl.
46039         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46040         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
46041         * doc/posix-functions/rintl.texi: Mention the new module.
46043 2011-10-09  Bruno Haible  <bruno@clisp.org>
46045         Tests for module 'rintf'.
46046         * modules/rintf-tests: New file.
46047         * tests/test-rintf.c: New file.
46049         New module 'rintf'.
46050         * lib/math.in.h (rintf): New declaration.
46051         * lib/rintf.c: New file.
46052         * m4/rintf.m4: New file.
46053         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
46054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
46055         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
46056         * modules/rintf: New file.
46057         * tests/test-math-c++.cc: Check the declaration of rintf.
46058         * doc/posix-functions/rintf.texi: Mention the new module.
46060 2011-10-09  Bruno Haible  <bruno@clisp.org>
46062         rint: Support for MSVC.
46063         * lib/math.in.h (rint): New declaration.
46064         * lib/rint.c: New file.
46065         * m4/rint.m4: New file.
46066         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
46067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
46068         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
46069         * modules/rint (Description): Fix.
46070         (Files): Add lib/rint.c, m4/rint.m4.
46071         (Depends-on): Add math.
46072         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
46073         gl_MATH_MODULE_INDICATOR.
46074         * tests/test-math-c++.cc: Check the declaration of rint.
46075         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46076         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
46077         * doc/posix-functions/rint.texi: Mention the replacement provided by
46078         the module.
46080         rint tests: More tests.
46081         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
46082         minus-zero.h, infinity.h, nan.h.
46083         (main): Skip the test if the current rounding mode is not standard. Add
46084         tests for negative numbers, minus zero, infinity, NaN.
46085         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
46086         tests/nan.h.
46087         (Depends-on): Add isnand-nolibm.
46089 2011-10-09  Bruno Haible  <bruno@clisp.org>
46091         Tests for module 'copysignl'.
46092         * modules/copysignl-tests: New file.
46093         * tests/test-copysignl.c: New file.
46095         New module 'copysignl'.
46096         * lib/math.in.h (copysignl): New declaration.
46097         * lib/copysignl.c: New file.
46098         * m4/copysignl.m4: New file.
46099         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
46100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
46101         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
46102         HAVE_COPYSIGNL.
46103         * modules/copysignl: New file.
46104         * tests/test-math-c++.cc: Check the declaration of copysignl.
46105         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46106         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
46107         * doc/posix-functions/copysignl.texi: Mention the new module.
46109 2011-10-09  Bruno Haible  <bruno@clisp.org>
46111         Tests for module 'copysignf'.
46112         * modules/copysignf-tests: New file.
46113         * tests/test-copysignf.c: New file.
46115         New module 'copysignf'.
46116         * lib/math.in.h (copysignf): New declaration.
46117         * lib/copysignf.c: New file.
46118         * m4/copysignf.m4: New file.
46119         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
46120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
46121         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
46122         HAVE_COPYSIGNF.
46123         * modules/copysignf: New file.
46124         * tests/test-math-c++.cc: Check the declaration of copysignf.
46125         * doc/posix-functions/copysignf.texi: Mention the new module.
46127 2011-10-09  Bruno Haible  <bruno@clisp.org>
46129         Ensure that HAVE_* variables are set to 1 before they are set to 0.
46130         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
46131         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
46132         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
46133         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
46134         gl_SIGNAL_H_DEFAULTS.
46136 2011-10-09  Bruno Haible  <bruno@clisp.org>
46138         poll: Make macro safer.
46139         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
46140         ac_cv_header_poll_h is not set.
46142 2011-10-09  Bruno Haible  <bruno@clisp.org>
46144         copysign: Provide replacement.
46145         * lib/math.in.h (copysign): New declaration.
46146         * lib/copysign.c: New file.
46147         * m4/copysign.m4: New file.
46148         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
46149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
46150         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
46151         HAVE_COPYSIGN.
46152         * modules/copysign (Description): Clarify.
46153         (Files): Add lib/copysign.c, m4/copysign.m4.
46154         (Depends-on): Add math, signbit.
46155         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
46156         gl_MATH_MODULE_INDICATOR.
46157         * tests/test-math-c++.cc: Check the declaration of copysign.
46158         * doc/posix-functions/copysign.texi: Mention the effects of the module
46159         on Minix and MSVC.
46161 2011-10-09  Bruno Haible  <bruno@clisp.org>
46163         isinf: Ensure macro on AIX 5.1.
46164         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
46165         macro.
46166         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
46168 2011-10-09  Bruno Haible  <bruno@clisp.org>
46170         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
46171         * modules/snprintf-posix-tests (configure.ac): Require
46172         gl_LONG_DOUBLE_VS_DOUBLE.
46173         * modules/sprintf-posix-tests (configure.ac): Likewise.
46174         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
46175         * modules/vasprintf-posix-tests (configure.ac): Likewise.
46176         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
46177         * modules/vsprintf-posix-tests (configure.ac): Likewise.
46178         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
46179         tests on platforms where 'long double' is the same as 'double'.
46180         * tests/test-sprintf-posix.h (test_function): Likewise.
46181         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46182         * tests/test-vasprintf-posix.c (test_function): Likewise.
46184         *printf: Fix for platforms where 'long double' == 'double'.
46185         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46186         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
46187         * modules/dprintf-posix (Files): Add m4/math_h.m4.
46188         * modules/fprintf-posix (Files): Likewise.
46189         * modules/obstack-printf-posix (Files): Likewise.
46190         * modules/snprintf-posix (Files): Likewise.
46191         * modules/sprintf-posix (Files): Likewise.
46192         * modules/vasnprintf (Files): Likewise.
46193         * modules/vasnprintf-posix (Files): Likewise.
46194         * modules/vasprintf-posix (Files): Likewise.
46195         * modules/vdprintf-posix (Files): Likewise.
46196         * modules/vfprintf-posix (Files): Likewise.
46197         * modules/vsnprintf-posix (Files): Likewise.
46198         * modules/vsprintf-posix (Files): Likewise.
46199         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46200         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46201         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46202         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46203         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46204         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46205         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46207         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
46208         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
46209         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46210         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
46211         'long double'.
46212         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
46214         isinf: Fix for platforms where 'long double' == 'double'.
46215         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46216         Don't blindly assume 80-bit 'long double'.
46218         isfinite: Fix for platforms where 'long double' == 'double'.
46219         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46220         Don't blindly assume 80-bit 'long double'.
46222         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
46223         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
46224         * modules/isfinite-tests (configure.ac): Require
46225         gl_LONG_DOUBLE_VS_DOUBLE.
46226         * modules/isinf-tests (configure.ac): Likewise.
46227         * modules/isnan-tests (configure.ac): Likewise.
46228         * modules/isnanl-tests (configure.ac): Likewise.
46229         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
46230         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
46231         tests on platforms where 'long double' is the same as 'double'.
46232         * tests/test-isinf.c (test_isinfl): Likewise.
46233         * tests/test-isnan.c (test_long_double): Likewise.
46234         * tests/test-isnanl.h (main): Likewise.
46236 2011-10-08  Bruno Haible  <bruno@clisp.org>
46238         Tests for module 'tanhf'.
46239         * modules/tanhf-tests: New file.
46240         * tests/test-tanhf.c: New file.
46242         New module 'tanhf'.
46243         * lib/math.in.h (tanhf): New declaration.
46244         * lib/tanhf.c: New file.
46245         * m4/tanhf.m4: New file.
46246         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
46247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
46248         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
46249         * modules/tanhf: New file.
46250         * tests/test-math-c++.cc: Check the declaration of tanhf.
46251         * doc/posix-functions/tanhf.texi: Mention the new module.
46253         tanh: Use a .m4 file.
46254         * m4/tanh.m4: New file.
46255         * modules/tanh (Files): Add it.
46256         (configure.ac): Just invoke gl_FUNC_TANH.
46258 2011-10-08  Bruno Haible  <bruno@clisp.org>
46260         Tests for module 'coshf'.
46261         * modules/coshf-tests: New file.
46262         * tests/test-coshf.c: New file.
46264         New module 'coshf'.
46265         * lib/math.in.h (coshf): New declaration.
46266         * lib/coshf.c: New file.
46267         * m4/coshf.m4: New file.
46268         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
46269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
46270         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
46271         * modules/coshf: New file.
46272         * tests/test-math-c++.cc: Check the declaration of coshf.
46273         * doc/posix-functions/coshf.texi: Mention the new module.
46275         cosh: Use a .m4 file.
46276         * m4/cosh.m4: New file.
46277         * modules/cosh (Files): Add it.
46278         (configure.ac): Just invoke gl_FUNC_COSH.
46280 2011-10-08  Bruno Haible  <bruno@clisp.org>
46282         Tests for module 'sinhf'.
46283         * modules/sinhf-tests: New file.
46284         * tests/test-sinhf.c: New file.
46286         New module 'sinhf'.
46287         * lib/math.in.h (sinhf): New declaration.
46288         * lib/sinhf.c: New file.
46289         * m4/sinhf.m4: New file.
46290         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
46291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
46292         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
46293         * modules/sinhf: New file.
46294         * tests/test-math-c++.cc: Check the declaration of sinhf.
46295         * doc/posix-functions/sinhf.texi: Mention the new module.
46297         sinh: Use a .m4 file.
46298         * m4/sinh.m4: New file.
46299         * modules/sinh (Files): Add it.
46300         (configure.ac): Just invoke gl_FUNC_SINH.
46302 2011-10-08  Bruno Haible  <bruno@clisp.org>
46304         Tests for module 'atan2f'.
46305         * modules/atan2f-tests: New file.
46306         * tests/test-atan2f.c: New file.
46308         New module 'atan2f'.
46309         * lib/math.in.h (atan2f): New declaration.
46310         * lib/atan2f.c: New file.
46311         * m4/atan2f.m4: New file.
46312         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
46313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
46314         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
46315         * modules/atan2f: New file.
46316         * tests/test-math-c++.cc: Check the declaration of atan2f.
46317         * doc/posix-functions/atan2f.texi: Mention the new module.
46319         atan2: Use a .m4 file.
46320         * m4/atan2.m4: New file.
46321         * modules/atan2 (Files): Add it.
46322         (configure.ac): Just invoke gl_FUNC_ATAN2.
46324 2011-10-08  Bruno Haible  <bruno@clisp.org>
46326         Tests for module 'atanf'.
46327         * modules/atanf-tests: New file.
46328         * tests/test-atanf.c: New file.
46330         New module 'atanf'.
46331         * lib/math.in.h (atanf): New declaration.
46332         * lib/atanf.c: New file.
46333         * m4/atanf.m4: New file.
46334         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
46335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
46336         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
46337         * modules/atanf: New file.
46338         * tests/test-math-c++.cc: Check the declaration of atanf.
46339         * doc/posix-functions/atanf.texi: Mention the new module.
46341         atan: Use a .m4 file.
46342         * m4/atan.m4: New file.
46343         * modules/atan (Files): Add it.
46344         (configure.ac): Just invoke gl_FUNC_ATAN.
46346 2011-10-08  Bruno Haible  <bruno@clisp.org>
46348         Tests for module 'acosf'.
46349         * modules/acosf-tests: New file.
46350         * tests/test-acosf.c: New file.
46352         New module 'acosf'.
46353         * lib/math.in.h (acosf): New declaration.
46354         * lib/acosf.c: New file.
46355         * m4/acosf.m4: New file.
46356         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
46357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
46358         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
46359         * modules/acosf: New file.
46360         * tests/test-math-c++.cc: Check the declaration of acosf.
46361         * doc/posix-functions/acosf.texi: Mention the new module.
46363         acos: Use a .m4 file.
46364         * m4/acos.m4: New file.
46365         * modules/acos (Files): Add it.
46366         (configure.ac): Just invoke gl_FUNC_ACOS.
46368 2011-10-08  Bruno Haible  <bruno@clisp.org>
46370         Tests for module 'asinf'.
46371         * modules/asinf-tests: New file.
46372         * tests/test-asinf.c: New file.
46374         New module 'asinf'.
46375         * lib/math.in.h (asinf): New declaration.
46376         * lib/asinf.c: New file.
46377         * m4/asinf.m4: New file.
46378         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
46379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
46380         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
46381         * modules/asinf: New file.
46382         * tests/test-math-c++.cc: Check the declaration of asinf.
46383         * doc/posix-functions/asinf.texi: Mention the new module.
46385         asin: Use a .m4 file.
46386         * m4/asin.m4: New file.
46387         * modules/asin (Files): Add it.
46388         (configure.ac): Just invoke gl_FUNC_ASIN.
46390 2011-10-08  Bruno Haible  <bruno@clisp.org>
46392         Tests for module 'tanf'.
46393         * modules/tanf-tests: New file.
46394         * tests/test-tanf.c: New file.
46396         New module 'tanf'.
46397         * lib/math.in.h (tanf): New declaration.
46398         * lib/tanf.c: New file.
46399         * m4/tanf.m4: New file.
46400         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
46401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
46402         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
46403         * modules/tanf: New file.
46404         * tests/test-math-c++.cc: Check the declaration of tanf.
46405         * doc/posix-functions/tanf.texi: Mention the new module.
46407         tan: Use a .m4 file.
46408         * m4/tan.m4: New file.
46409         * modules/tan (Files): Add it.
46410         (configure.ac): Just invoke gl_FUNC_TAN.
46412 2011-10-08  Bruno Haible  <bruno@clisp.org>
46414         Tests for module 'cosf'.
46415         * modules/cosf-tests: New file.
46416         * tests/test-cosf.c: New file.
46418         New module 'cosf'.
46419         * lib/math.in.h (cosf): New declaration.
46420         * lib/cosf.c: New file.
46421         * m4/cosf.m4: New file.
46422         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
46423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
46424         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
46425         * modules/cosf: New file.
46426         * tests/test-math-c++.cc: Check the declaration of cosf.
46427         * doc/posix-functions/cosf.texi: Mention the new module.
46429         cos: Use a .m4 file.
46430         * m4/cos.m4: New file.
46431         * modules/cos (Files): Add it.
46432         (configure.ac): Just invoke gl_FUNC_COS.
46434 2011-10-08  Bruno Haible  <bruno@clisp.org>
46436         Tests for module 'sinf'.
46437         * modules/sinf-tests: New file.
46438         * tests/test-sinf.c: New file.
46440         New module 'sinf'.
46441         * lib/math.in.h (sinf): New declaration.
46442         * lib/sinf.c: New file.
46443         * m4/sinf.m4: New file.
46444         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
46445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
46446         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
46447         * modules/sinf: New file.
46448         * tests/test-math-c++.cc: Check the declaration of sinf.
46449         * doc/posix-functions/sinf.texi: Mention the new module.
46451         sin: Use a .m4 file.
46452         * m4/sin.m4: New file.
46453         * modules/sin (Files): Add it.
46454         (configure.ac): Just invoke gl_FUNC_SIN.
46456 2011-10-08  Bruno Haible  <bruno@clisp.org>
46458         Tests for module 'powf'.
46459         * modules/powf-tests: New file.
46460         * tests/test-powf.c: New file.
46462         New module 'powf'.
46463         * lib/math.in.h (powf): New declaration.
46464         * lib/powf.c: New file.
46465         * m4/powf.m4: New file.
46466         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
46467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
46468         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
46469         * modules/powf: New file.
46470         * tests/test-math-c++.cc: Check the declaration of powf.
46471         * doc/posix-functions/powf.texi: Mention the new module.
46473         pow: Use a .m4 file.
46474         * m4/pow.m4: New file.
46475         * modules/pow (Files): Add it.
46476         (configure.ac): Just invoke gl_FUNC_POW.
46478 2011-10-08  Bruno Haible  <bruno@clisp.org>
46480         Tests for module 'log10f'.
46481         * modules/log10f-tests: New file.
46482         * tests/test-log10f.c: New file.
46484         New module 'log10f'.
46485         * lib/math.in.h (log10f): New declaration.
46486         * lib/log10f.c: New file.
46487         * m4/log10f.m4: New file.
46488         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
46489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
46490         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
46491         * modules/log10f: New file.
46492         * tests/test-math-c++.cc: Check the declaration of log10f.
46493         * doc/posix-functions/log10f.texi: Mention the new module.
46495         log10: Use a .m4 file.
46496         * m4/log10.m4: New file.
46497         * modules/log10 (Files): Add it.
46498         (configure.ac): Just invoke gl_FUNC_LOG10.
46500 2011-10-08  Bruno Haible  <bruno@clisp.org>
46502         Tests for module 'logf'.
46503         * modules/logf-tests: New file.
46504         * tests/test-logf.c: New file.
46506         New module 'logf'.
46507         * lib/math.in.h (logf): New declaration.
46508         * lib/logf.c: New file.
46509         * m4/logf.m4: New file.
46510         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
46511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
46512         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
46513         * modules/logf: New file.
46514         * tests/test-math-c++.cc: Check the declaration of logf.
46515         * doc/posix-functions/logf.texi: Mention the new module.
46517         log: Use a .m4 file.
46518         * m4/log.m4: New file.
46519         * modules/log (Files): Add it.
46520         (configure.ac): Just invoke gl_FUNC_LOG.
46522 2011-10-08  Bruno Haible  <bruno@clisp.org>
46524         Tests for module 'expf'.
46525         * modules/expf-tests: New file.
46526         * tests/test-expf.c: New file.
46528         New module 'expf'.
46529         * lib/math.in.h (expf): New declaration.
46530         * lib/expf.c: New file.
46531         * m4/expf.m4: New file.
46532         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
46533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
46534         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
46535         * modules/expf: New file.
46536         * tests/test-math-c++.cc: Check the declaration of expf.
46537         * doc/posix-functions/expf.texi: Mention the new module.
46539         exp: Use a .m4 file.
46540         * m4/exp.m4: New file.
46541         * modules/exp (Files): Add it.
46542         (configure.ac): Just invoke gl_FUNC_EXP.
46544 2011-10-08  Bruno Haible  <bruno@clisp.org>
46546         Tests for module 'sqrtf'.
46547         * modules/sqrtf-tests: New file.
46548         * tests/test-sqrtf.c: New file.
46550         New module 'sqrtf'.
46551         * lib/math.in.h (sqrtf): New declaration.
46552         * lib/sqrtf.c: New file.
46553         * m4/sqrtf.m4: New file.
46554         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
46555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
46556         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
46557         * modules/sqrtf: New file.
46558         * tests/test-math-c++.cc: Check the declaration of sqrtf.
46559         * doc/posix-functions/sqrtf.texi: Mention the new module.
46561 2011-10-08  Bruno Haible  <bruno@clisp.org>
46563         Tests: Avoid link failures w.r.t. libintl.
46564         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
46565         $(LIBINTL).
46566         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
46567         $(LIBINTL).
46568         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
46569         against $(LIBINTL).
46570         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
46571         $(LIBINTL).
46572         * modules/openat-tests (Makefile.am): Link test-fchmodat against
46573         $(LIBINTL).
46574         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
46576 2011-10-08  Bruno Haible  <bruno@clisp.org>
46578         pow tests: Defeat compiler optimizations.
46579         * tests/test-pow.c (main): Assign arguments to x and y before use.
46581 2011-10-08  Bruno Haible  <bruno@clisp.org>
46583         gnulib-tool: Improve last commit.
46584         * gnulib-tool (func_modules_transitive_closure): Simplify code.
46585         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
46586         ignore dependencies that are not among the modules list.
46588 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
46590         gnulib-tool: don't follow dependencies to avoided modules
46591         This fixes a bug that is related to the previous one.
46592         * gnulib-tool (func_modules_transitive_closure)
46593         (func_emit_autoconf_snippets):
46594         Check whether a dependency is acceptable before using it.
46595         (--extract-dependencies): Report an error if --avoid is also used,
46596         since this combination of options is not yet supported.
46598         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
46599         Problem reported by Peter Dyballa in
46600         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
46601         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
46602         when echoing "$condition".
46604 2011-10-07  Bruno Haible  <bruno@clisp.org>
46606         Fix documentation about math functions on MacOS X.
46607         * doc/posix-functions/exp2.texi: Don't say the function is missing on
46608         MacOS X 10.5.
46609         * doc/posix-functions/fdim.texi: Likewise.
46610         * doc/posix-functions/feclearexcept.texi: Likewise.
46611         * doc/posix-functions/fegetenv.texi: Likewise.
46612         * doc/posix-functions/fegetround.texi: Likewise.
46613         * doc/posix-functions/feholdexcept.texi: Likewise.
46614         * doc/posix-functions/feraiseexcept.texi: Likewise.
46615         * doc/posix-functions/fesetenv.texi: Likewise.
46616         * doc/posix-functions/fesetround.texi: Likewise.
46617         * doc/posix-functions/fetestexcept.texi: Likewise.
46618         * doc/posix-functions/feupdateenv.texi: Likewise.
46619         * doc/posix-functions/fmax.texi: Likewise.
46620         * doc/posix-functions/fmin.texi: Likewise.
46621         * doc/posix-functions/log2.texi: Likewise.
46622         * doc/posix-functions/modff.texi: Likewise.
46623         * doc/posix-functions/nan.texi: Likewise.
46624         * doc/posix-functions/nanf.texi: Likewise.
46625         * doc/posix-functions/nextafterf.texi: Likewise.
46626         * doc/posix-functions/remquo.texi: Likewise.
46628 2011-10-07  Bruno Haible  <bruno@clisp.org>
46630         modff: Drop assumption about library that defines modff.
46631         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
46632         AC_CHECK_FUNCS.
46633         * modules/modff (Files): Add m4/mathfunc.m4.
46635 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
46637         raise tests: Avoid a GCC warning.
46638         * tests/test-raise.c (handler): Use _Noreturn.
46640 2011-10-07  Bruno Haible  <bruno@clisp.org>
46642         Tests for module 'ldexpf'.
46643         * modules/ldexpf-tests: New file.
46644         * tests/test-ldexpf.c: New file.
46646         New module 'ldexpf'.
46647         * lib/math.in.h (ldexpf): New declaration.
46648         * lib/ldexpf.c: New file.
46649         * m4/ldexpf.m4: New file.
46650         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
46651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
46652         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
46653         * modules/ldexpf: New file.
46654         * tests/test-math-c++.cc: Check the declaration of ldexpf.
46655         * doc/posix-functions/ldexpf.texi: Mention the new module.
46657 2011-10-06  Bruno Haible  <bruno@clisp.org>
46659         frexpf: Work around problems on IRIX and mingw.
46660         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
46661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
46662         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
46663         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
46664         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
46665         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
46666         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
46668 2011-10-06  Bruno Haible  <bruno@clisp.org>
46670         fabsf: Drop assumption about library that defines fabsf.
46671         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
46672         AC_CHECK_FUNCS.
46673         * modules/fabsf (Files): Add m4/mathfunc.m4.
46675 2011-10-06  Bruno Haible  <bruno@clisp.org>
46677         frexpf: Drop assumption about library that defines frexpf.
46678         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
46679         'int *', 'float *', 'long double *', 'float', 'long double'.
46680         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
46681         AC_CHECK_FUNCS.
46682         * modules/frexpf (Files): Add m4/mathfunc.m4.
46684         Tests for module 'frexpf'.
46685         * modules/frexpf-tests: New file.
46686         * tests/test-frexpf.c: New file.
46688         New module 'frexpf'.
46689         * lib/math.in.h (frexpf): New declaration.
46690         * lib/frexpf.c: New file.
46691         * m4/frexpf.m4: New file.
46692         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
46693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
46694         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
46695         * modules/frexpf: New file.
46696         * tests/test-math-c++.cc: Check the declaration of frexpf.
46697         * doc/posix-functions/frexpf.texi: Mention the new module.
46699 2011-10-06  Bruno Haible  <bruno@clisp.org>
46701         math: Sort function declarations of math.in.h.
46702         * lib/math.in.h (frexp, logb): Move declarations.
46704 2011-10-05  Bruno Haible  <bruno@clisp.org>
46706         Tests for module 'modff'.
46707         * modules/modff-tests: New file.
46708         * tests/test-modff.c: New file.
46710         New module 'modff'.
46711         * lib/math.in.h (modff): New declaration.
46712         * lib/modff.c: New file.
46713         * m4/modff.m4: New file.
46714         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
46715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
46716         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
46717         * modules/modff: New file.
46718         * tests/test-math-c++.cc: Check the declaration of modff.
46719         * doc/posix-functions/modff.texi: Mention the new module.
46721         modf tests: Make test sharper.
46722         * tests/test-modf.c (main): Strengthen upper bound.
46724         modf: Use a .m4 file.
46725         * m4/modf.m4: New file.
46726         * modules/modf (Files): Add it.
46727         (configure.ac): Just invoke gl_FUNC_MODF.
46729 2011-10-05  Bruno Haible  <bruno@clisp.org>
46731         Tests for module 'fmodf'.
46732         * modules/fmodf-tests: New file.
46733         * tests/test-fmodf.c: New file.
46735         New module 'fmodf'.
46736         * lib/math.in.h (fmodf): New declaration.
46737         * lib/fmodf.c: New file.
46738         * m4/fmodf.m4: New file.
46739         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
46740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
46741         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
46742         * modules/fmodf: New file.
46743         * tests/test-math-c++.cc: Check the declaration of fmodf.
46744         * doc/posix-functions/fmodf.texi: Mention the new module.
46746         fmod: Use a .m4 file.
46747         * m4/fmod.m4: New file.
46748         * modules/fmod (Files): Add it.
46749         (configure.ac): Just invoke gl_FUNC_FMOD.
46751 2011-10-05  Bruno Haible  <bruno@clisp.org>
46753         Tests for module 'fabsf'.
46754         * modules/fabsf-tests: New file.
46755         * tests/test-fabsf.c: New file.
46757         New module 'fabsf'.
46758         * lib/math.in.h (fabsf): New declaration.
46759         * lib/fabsf.c: New file.
46760         * m4/fabsf.m4: New file.
46761         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
46762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
46763         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
46764         * modules/fabsf: New file.
46765         * tests/test-math-c++.cc: Check the declaration of fabsf.
46766         * doc/posix-functions/fabsf.texi: Mention the new module.
46768         fabs: Use a .m4 file.
46769         * m4/fabs.m4: New file.
46770         * modules/fabs (Files): Add it.
46771         (configure.ac): Just invoke gl_FUNC_FABS.
46773 2011-10-05  Jim Meyering  <meyering@redhat.com>
46775         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
46776         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
46777         ls -lL regression introduced in coreutils-8.12, it does so at the
46778         cost of an additional stat call in the common case.  Besides, now
46779         that the kernel change that prompted commit 95f7c57f has been reverted
46780         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
46781         we have no use for commit 95f7c57f, "file-has-acl: use
46782         acl_extended_file_nofollow if available".
46784 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
46786         file-has-acl: revert unintended change in behavior of ls -L
46787         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
46788         derived from...
46789         (file_has_acl): ...code here.  Call it.
46790         This problem was introduced with 2011-07-22 commit 95f7c57f,
46791         "file-has-acl: use acl_extended_file_nofollow if available".
46792         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
46794 2011-10-03  Bruno Haible  <bruno@clisp.org>
46796         poll: Avoid link errors on MSVC.
46797         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
46798         * modules/poll (Depends-on): Add sockets.
46799         (Link): New section.
46800         * NEWS: Mention the change.
46801         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
46802         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
46803         $(LIB_POLL) instead of $(LIBSOCKET).
46805 2011-10-03  Bruno Haible  <bruno@clisp.org>
46807         sys_select tests: Fix link error on MSVC 9.
46808         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
46809         with $(LIB_SELECT) instead of $(LIBSOCKET).
46811 2011-10-03  Bruno Haible  <bruno@clisp.org>
46813         sys_select: Fix compilation error on mingw.
46814         * lib/sys_select.in.h: On native Windows, include <io.h>.
46816 2011-10-03  Bruno Haible  <bruno@clisp.org>
46818         wmemset: Support for MSVC.
46819         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
46820         whether wmemset() exists.
46822 2011-10-03  Bruno Haible  <bruno@clisp.org>
46824         wmemmove: Support for MSVC.
46825         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
46826         whether wmemmove() exists.
46828 2011-10-03  Bruno Haible  <bruno@clisp.org>
46830         wmemcpy: Support for MSVC.
46831         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
46832         whether wmemcpy() exists.
46834 2011-10-03  Bruno Haible  <bruno@clisp.org>
46836         wmemcmp: Support for MSVC.
46837         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
46838         whether wmemcmp() exists.
46840 2011-10-03  Bruno Haible  <bruno@clisp.org>
46842         wmemchr: Support for MSVC.
46843         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
46844         whether wmemchr() exists.
46846 2011-10-03  Bruno Haible  <bruno@clisp.org>
46848         glthread/*, strsignal: Support for MSVC.
46849         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
46850         including <winsock.h> on MSVC 9.
46851         * lib/glthread/lock.h: Likewise.
46852         * lib/glthread/thread.h: Likewise.
46853         * lib/glthread/tls.h: Likewise.
46854         * lib/glthread/yield.h: Likewise.
46855         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
46856         if HAVE_UNISTD_H is false.
46857         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
46859 2011-10-03  Bruno Haible  <bruno@clisp.org>
46861         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
46862         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
46863         Set to 100000.
46865 2011-10-03  Bruno Haible  <bruno@clisp.org>
46867         acl: Fix specification.
46868         * lib/file-has-acl.c (file_has_acl): Fix specification.
46870 2011-10-03  Bruno Haible  <bruno@clisp.org>
46872         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
46873         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
46874         (compute_curr_prefix, shared_library_fullname,
46875         find_shared_library_fullname, get_shared_library_fullname, relocate):
46876         Use it together with PIC && INSTALLDIR.
46877         Reported by <jojelino@gmail.com>
46878         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
46880 2011-10-01  Jim Meyering  <meyering@redhat.com>
46882         maint.mk: adjust a release-related rule not to require use of gzip
46883         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
46884         Instead, check each file in $(DIST_ARCHIVES).  This is better for
46885         projects that build only .tar.xz files.  Also fix an erroneous test.
46887         test-linkat: don't leave behind a temporary file
46888         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
46889         Otherwise, coreutils' "make distcheck" would fail with this:
46890           Only in /c/cu/tests/torture/coreutils/test/\
46891             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
46892           make[2]: *** [my-distcheck] Error 1
46894         float, math: add omitted file
46895         * lib/itold.c: Add file, required for yesterday's float change.
46897 2011-10-01  Bruno Haible  <bruno@clisp.org>
46899         isinf: Fix for OpenBSD/x86.
46900         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
46901         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
46902         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
46904 2011-10-01  Bruno Haible  <bruno@clisp.org>
46906         isfinite: Fix syntax error in configure test.
46907         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
46909         isfinite: Fix typo.
46910         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
46911         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
46913 2011-10-01  Bruno Haible  <bruno@clisp.org>
46915         nonblocking tests: Fix test failure on Linux/IA-64.
46916         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
46917         Set to 270000.
46919 2011-10-01  Bruno Haible  <bruno@clisp.org>
46921         mkfifoat tests: Fix a test failure on mingw.
46922         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
46923         with error ENOSYS.
46925 2011-09-30  Bruno Haible  <bruno@clisp.org>
46927         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
46928         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
46929         'long double'. Set REPLACE_ITOLD.
46930         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
46931         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
46932         * lib/itold.c: New file.
46933         * modules/float (Files): Add lib/itold.c.
46934         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
46935         (Makefile.am): Substitute REPLACE_ITOLD.
46936         * modules/math (Depends-on): Add float.
46937         (Makefile.am): Substitute REPLACE_ITOLD.
46938         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
46939         * doc/posix-headers/math.texi: Likewise.
46940         * doc/posix-functions/logl.texi: Likewise.
46942 2011-09-30  Bruno Haible  <bruno@clisp.org>
46944         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
46945         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
46946         Set to 140000.
46948 2011-09-30  Bruno Haible  <bruno@clisp.org>
46950         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
46951         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
46952         invocation, say "right after AC_PROG_CC_STDC", not "right after
46953         AC_PROG_CC".
46954         Reported by Gary V. Vaughan <gary@gnu.org>.
46956 2011-09-30  Bruno Haible  <bruno@clisp.org>
46958         Centralize C99 requirement.
46959         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
46960         * modules/stdarg (configure.ac-early): Invoke it instead of
46961         AC_PROG_CC_STDC.
46962         Reported by Gary V. Vaughan and Paul Eggert.
46964 2011-09-29  Bruno Haible  <bruno@clisp.org>
46966         float: Fix LDBL_MAX value on Linux/PowerPC.
46967         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
46968         on Linux/PowerPC.
46969         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
46970         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
46971         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
46972         platform.
46973         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
46975 2011-09-29  Bruno Haible  <bruno@clisp.org>
46977         doc: Improve doc about gl_EARLY.
46978         * doc/gnulib-tool.texi (Initial import): Mention where to place an
46979         AC_PROG_CC_STDC invocation.
46980         Reported by Gary V. Vaughan <gary@gnu.org>.
46982 2011-09-28  Bruno Haible  <bruno@clisp.org>
46984         fgetc, fputc, fread, fwrite tests: Fix link error.
46985         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
46986         on non-MSVC platforms.
46987         * tests/test-fputc.c (main): Likewise.
46988         * tests/test-fread.c (main): Likewise.
46989         * tests/test-fwrite.c (main): Likewise.
46990         Reported by Jim Meyering.
46992 2011-09-27  Bruno Haible  <bruno@clisp.org>
46994         fputc, fwrite tests: Avoid test failure on MSVC.
46995         * tests/test-fgetc.c: Include msvc-inval.h.
46996         (main): Invoke gl_msvc_inval_ensure_handler.
46997         * tests/test-fputc.c: Include msvc-inval.h.
46998         (main): Invoke gl_msvc_inval_ensure_handler.
46999         * tests/test-fread.c: Include msvc-inval.h.
47000         (main): Invoke gl_msvc_inval_ensure_handler.
47001         * tests/test-fwrite.c: Include msvc-inval.h.
47002         (main): Invoke gl_msvc_inval_ensure_handler.
47003         * modules/fgetc-tests (Depends-on): Add msvc-inval.
47004         * modules/fputc-tests (Depends-on): Likewise.
47005         * modules/fread-tests (Depends-on): Likewise.
47006         * modules/fwrite-tests (Depends-on): Likewise.
47008 2011-09-27  Bruno Haible  <bruno@clisp.org>
47010         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
47011         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
47012         (raise): Remove older, duplicated declaration.
47013         (_gl_raise_SIGPIPE): New declaration.
47014         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
47015         (rpl_raise): Remove function.
47016         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
47017         a gnulib-defined SIGPIPE here.
47018         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
47019         'sigprocmask' has detected missing signal-blocking and the module
47020         'sigpipe' is enabled.
47021         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
47023 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
47025         base64-tests: avoid memory leak
47026         * tests/test-base64.c (main): Plug memory leak.
47028         base32: new module
47029         * modules/base32: New module.
47030         * lib/base32.c: New file.
47031         * lib/base32.h: Likewise.
47032         * m4/base32.m4: Likewise.
47033         * modules/base32-tests: New test.
47034         * tests/test-base32.c: Likewise.
47035         * MODULES.html.sh (Misc): Mention it.
47037 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47039         gnulib: use more-standard license notice wording
47040         * gnulib-tool (func_emit_copyright_notice): When emitting a
47041         license notice into a file, use the standard wording as suggested
47042         by the current information for GNU maintainers, except say "file"
47043         rather than "program".  The new wording gives a license version
47044         number, which addresses an issue raised by Glenn Morris in
47045         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
47046         * m4/onceonly.m4: Use that same wording here, too.
47048         dup2: minor simplification
47049         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
47050         as lib/dup2.c no longer uses 'inline'.
47052 2011-09-25  Bruno Haible  <bruno@clisp.org>
47054         strings: Fix compilation error on MSVC.
47055         * lib/strings.in.h: Include <stddef.h> for size_t.
47057 2011-09-25  Bruno Haible  <bruno@clisp.org>
47059         fflush et al.: Document limitation on MSVC.
47060         * doc/posix-functions/fflush.texi: Document possible crash in handling
47061         mode other than DEFAULT_HANDLING.
47062         * doc/posix-functions/fgetc.texi: Likewise.
47063         * doc/posix-functions/fputc.texi: Likewise.
47064         * doc/posix-functions/fread.texi: Likewise.
47065         * doc/posix-functions/fwrite.texi: Likewise.
47067 2011-09-25  Bruno Haible  <bruno@clisp.org>
47069         msvc-inval: Allow three invalid parameter handling modes.
47070         * lib/msvc-inval.h: Don't include <stdlib.h> here.
47071         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
47072         macros.
47073         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
47074         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
47075         SANE_LIBRARY_HANDLING as a no-op.
47076         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
47077         <stdlib.h>.
47078         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
47080 2011-09-25  Bruno Haible  <bruno@clisp.org>
47082         msvc-inval: Make handler multithread-safe.
47083         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
47084         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
47085         declarations.
47086         (gl_msvc_inval_current): New declaration.
47087         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47088         Operate on the structure returned by gl_msvc_inval_current().
47089         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
47090         Remove varaiables.
47091         (tls_index, tls_initialized): New variables.
47092         (not_per_thread): New variable.
47093         (gl_msvc_inval_current): New function.
47094         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
47095         returned by gl_msvc_inval_current().
47097 2011-09-25  Bruno Haible  <bruno@clisp.org>
47099         msvc-inval: Install handler globally.
47100         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
47101         !_MSC_VER.
47102         (gl_msvc_invalid_parameter_handler): Remove declaration.
47103         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
47104         declarations.
47105         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47106         Install the handler globally, don't uninstall it.
47107         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
47108         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
47109         currently valid, call RaiseException instead.
47110         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
47111         for !_MSC_VER.
47113 2011-09-25  Bruno Haible  <bruno@clisp.org>
47115         strerror_r-posix: Fix for MSVC 9.
47116         * lib/strerror_r.c (local_snprintf): New function.
47117         (snprintf): Define to local_snprintf, not to _snprintf.
47119 2011-09-25  Bruno Haible  <bruno@clisp.org>
47121         ftruncate: Support for MSVC 9.
47122         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
47123         (chsize_nothrow): New function.
47124         (chsize): Redefine as a macro.
47125         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
47126         * modules/ftruncate (Depends-on): Add msvc-inval.
47128 2011-09-25  Bruno Haible  <bruno@clisp.org>
47130         New module 'fstat'.
47131         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
47132         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
47133         * lib/fchdir.c (rpl_fstat): Remove function.
47134         * m4/fstat.m4: New file.
47135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
47136         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
47137         declared.
47138         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
47139         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
47140         * modules/fstat: New file.
47141         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
47142         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
47143         is set.
47144         * doc/posix-functions/fstat.texi: Mention the new module and the
47145         problem on MSVC.
47146         * NEWS: Mention the change.
47147         * modules/acl (Depends-on): Add fstat.
47148         * modules/chdir-safer (Depends-on): Likewise.
47149         * modules/chown (Depends-on): Likewise.
47150         * modules/copy-file (Depends-on): Likewise.
47151         * modules/fchdir (Depends-on): Likewise.
47152         * modules/fdopendir (Depends-on): Likewise.
47153         * modules/fopen (Depends-on): Likewise.
47154         * modules/fts (Depends-on): Likewise.
47155         * modules/getcwd (Depends-on): Likewise.
47156         * modules/isapipe (Depends-on): Likewise.
47157         * modules/linkat (Depends-on): Likewise.
47158         * modules/lseek (Depends-on): Likewise.
47159         * modules/mkdir-p (Depends-on): Likewise.
47160         * modules/open (Depends-on): Likewise.
47161         * modules/openat (Depends-on): Likewise.
47162         * modules/read-file (Depends-on): Likewise.
47163         * modules/renameat (Depends-on): Likewise.
47164         * modules/utimens (Depends-on): Likewise.
47166 2011-09-25  Bruno Haible  <bruno@clisp.org>
47168         linkat: Fix compilation on MSVC 9.
47169         * lib/linkat.c: Don't include <stdint.h>.
47171 2011-09-25  Bruno Haible  <bruno@clisp.org>
47173         fclose: Support for MSVC 9.
47174         * lib/fclose.c: Include msvc-inval.h.
47175         (fclose_nothrow): New function.
47176         (rpl_fclose): Use it.
47177         * modules/fclose (Depends-on): Add msvc-inval.
47178         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
47180 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47182         dup2: minor simplifications
47183         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
47184         that it's a performance win.
47185         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
47186         ! defined __CYGWIN__)" to "ifdef F_GETFL".
47188 2011-09-24  Jim Meyering  <meyering@redhat.com>
47190         test-futimens: avoid a warning from gcc -Wshadow
47191         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
47192         to avoid a shadowing warning.
47194 2011-09-24  Bruno Haible  <bruno@clisp.org>
47196         fdopen: Support for MSVC 9.
47197         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
47198         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
47199         * lib/fdopen.c: Include msvc-inval.h.
47200         (fdopen_nothrow): New function.
47201         (rpl_fdopen): Use it.
47202         * modules/fdopen (Depends-on): Add msvc-inval.
47203         * modules/fclose-tests (Depends-on): Add fdopen.
47204         * modules/fflush-tests (Depends-on): Likewise.
47205         * modules/fgetc-tests (Depends-on): Likewise.
47206         * modules/fputc-tests (Depends-on): Likewise.
47207         * modules/fread-tests (Depends-on): Likewise.
47208         * modules/freopen-tests (Depends-on): Likewise.
47209         * modules/fseeko-tests (Depends-on): Likewise.
47210         * modules/ftello-tests (Depends-on): Likewise.
47211         * modules/fwrite-tests  (Depends-on): Likewise.
47212         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
47214 2011-09-24  Bruno Haible  <bruno@clisp.org>
47216         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
47217         * modules/fgetc-tests (Depends-on): Add unistd.
47218         * modules/fputc-tests (Depends-on): Likewise.
47219         * modules/fread-tests (Depends-on): Likewise.
47220         * modules/fwrite-tests (Depends-on): Likewise.
47222 2011-09-24  Bruno Haible  <bruno@clisp.org>
47224         dup: Simplify autoconf test.
47225         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
47226         on gl_MSVC_INVAL's result.
47228 2011-09-24  Bruno Haible  <bruno@clisp.org>
47230         Tests for function fwrite().
47231         * modules/fwrite-tests: New file.
47232         * tests/test-fwrite.c: New file.
47233         * modules/stdio-tests (Depends-on): Add fwrite-tests.
47235         Tests for function fread().
47236         * modules/fread-tests: New file.
47237         * tests/test-fread.c: New file.
47238         * modules/stdio-tests (Depends-on): Add fread-tests.
47240         Activate fputc tests.
47241         * modules/stdio-tests (Depends-on): Add fputc-tests.
47243         Enhance fgetc, fputc tests.
47244         * tests/test-fgetc.c (main): Also test the stream's error indicator.
47245         * tests/test-fputc.c (main): Likewise.
47247 2011-09-24  Bruno Haible  <bruno@clisp.org>
47249         write: Support for MSVC 9.
47250         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47251         is not 1.
47252         * lib/write.c (write_nothrow): New function.
47253         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
47254         not 1. Use write_nothrow.
47255         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
47256         invalid parameter handler.
47257         (gl_PREREQ_WRITE): New macro.
47258         * modules/write (Depends-on): Add msvc-inval.
47259         (configure.ac): Invoke gl_PREREQ_WRITE.
47260         * doc/posix-functions/write.texi: Mention the problem on MSVC.
47262 2011-09-24  Bruno Haible  <bruno@clisp.org>
47264         read: Fix last commit.
47265         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
47267 2011-09-24  Bruno Haible  <bruno@clisp.org>
47269         dup2: Fix last commit.
47270         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
47271         (rpl_dup2): Disable fcntl workaround on native Windows.
47273         sigprocmask: Make code safer.
47274         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
47275         section that changes macro definitions for this compilation unit.
47277 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47279         dup2: clarify by coalescing Windows-specific material
47280         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
47281         "msvc-nothrow.h"' to the Windows-specific section, so that the
47282         Emacs source need not contain these include files.
47283         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
47284         Windows-specific fixes into this function rather than just the
47285         nothrow fix, as this shortens and clarifies the code.  Always
47286         define as a function, as that's a bit cleaner than having it be
47287         sometimes a function and sometimes a macro.
47288         (rpl_dup2): Move the Windows-specific stuff out of here and into
47289         ms_windows_dup2.  Don't protect the Haiku-related fix with
47290         "#if !defined __linux__", as the same code also works around
47291         a Linux kernel bug, and it doesn't add any system calls on any
47292         platform.  Add comment about FreeBSD 6.1.
47294         sigprocmask: move #include directive
47295         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
47296         Windows-specific section, so that the Emacs source need not
47297         contain msvc-inval.h.
47299 2011-09-23  Bruno Haible  <bruno@clisp.org>
47301         read: Support for MSVC 9.
47302         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47303         is not 1.
47304         * lib/read.c (read_nothrow): New function.
47305         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
47306         read_nothrow.
47307         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
47308         invalid parameter handler.
47309         (gl_PREREQ_READ): New macro.
47310         * modules/read (Depends-on): Add msvc-inval.
47311         (configure.ac): Invoke gl_PREREQ_READ.
47312         * doc/posix-functions/read.texi: Mention the problem on MSVC.
47314 2011-09-23  Bruno Haible  <bruno@clisp.org>
47316         close: Support for MSVC 9.
47317         * lib/close.c: Include <errno.h>, msvc-inval.h.
47318         (close_nothrow): New function.
47319         (rpl_close): Use it.
47320         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
47321         invalid parameter handler.
47322         * modules/close (Depends-on): Add msvc-inval.
47323         * modules/dup2-tests (Depends-on): Add close.
47324         * modules/dup3-tests (Depends-on): Likewise.
47325         * modules/fcntl-tests (Depends-on): Likewise.
47326         * modules/spawn-pipe-tests (Depends-on): Likewise.
47327         * modules/unistd-safer-tests (Depends-on): Likewise.
47328         * doc/posix-functions/close.texi: Mention the problem on MSVC.
47330 2011-09-23  Bruno Haible  <bruno@clisp.org>
47332         New module 'dup'.
47333         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
47334         Allow replacement.
47335         * lib/dup.c: New file.
47336         * lib/fchdir.c (rpl_dup): Remove function.
47337         * m4/dup.m4: New file.
47338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
47339         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
47340         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
47341         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
47342         * modules/dup: New file.
47343         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
47344         'dup' module is in use.
47345         * modules/fdopendir (Depends-on): Add dup.
47346         * modules/fdutimensat-tests (Depends-on): Likewise.
47347         * modules/fts (Depends-on): Likewise.
47348         * modules/futimens-tests (Depends-on): Likewise.
47349         * modules/posix_spawnp-tests (Depends-on): Likewise.
47350         * modules/unistd-safer-tests (Depends-on): Likewise.
47351         * modules/utimens-tests (Depends-on): Likewise.
47352         * doc/posix-functions/dup.texi: Mention the new module and the problem
47353         on MSVC.
47355 2011-09-23  Bruno Haible  <bruno@clisp.org>
47357         getdtablesize: Support for MSVC 9.
47358         * lib/getdtablesize.c: Include msvc-inval.h.
47359         (_setmaxstdio_nothrow): New function.
47360         (_setmaxstdio): Redefine it.
47361         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
47362         * modules/getdtablesize (Depends-on): Add msvc-inval.
47363         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
47365 2011-09-23  Bruno Haible  <bruno@clisp.org>
47367         signal-h: Rename from signal.
47368         * modules/signal-h: Renamed from modules/signal.
47369         * modules/pthread_sigmask (Depends-on): Update.
47370         * modules/raise (Depends-on): Likewise.
47371         * modules/sigaction (Depends-on): Likewise.
47372         * modules/sigpipe (Depends-on): Likewise.
47373         * modules/sigprocmask (Depends-on): Likewise.
47374         * modules/sys_select (Depends-on): Likewise.
47375         * modules/signal-h-tests: Renamed from modules/signal-tests.
47376         (Files, Depends-on, Makefile.am): Update.
47377         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
47378         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
47379         (Files, Makefile.am): Update.
47380         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
47381         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
47382         * modules/signal: New placeholder file.
47383         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
47384         * doc/posix-headers/signal.texi: Update.
47385         * NEWS: Mention the change.
47387 2011-09-23  Bruno Haible  <bruno@clisp.org>
47389         sigprocmask: Avoid crashes through signal() on MSVC 9.
47390         * lib/sigprocmask.c: Include msvc-inval.h.
47391         (signal_nothrow): New function.
47392         (signal): Redefine it.
47393         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
47394         * modules/sigprocmask (Depends-on): Add msvc-inval.
47395         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
47397 2011-09-23  Bruno Haible  <bruno@clisp.org>
47399         Tests for module 'raise'.
47400         * modules/raise-tests: New file.
47401         * tests/test-raise.c: New file.
47403         raise: Support for MSVC.
47404         * lib/signal.in.h (raise): New declaration.
47405         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
47406         for native Windows platforms.
47407         * m4/raise.m4: New file.
47408         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
47409         HAVE_RAISE, REPLACE_RAISE.
47410         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
47411         REPLACE_RAISE.
47412         * modules/raise (Status, Notice): Remove fields.
47413         (Files): Add m4/raise.m4.
47414         (Depends-on): Add signal, msvc-inval.
47415         (configure.ac): Use the common idioms.
47416         (Maintainer): Add me.
47417         * tests/test-signal-c++.cc: Check the signature of raise.
47418         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
47420 2011-09-23  Bruno Haible  <bruno@clisp.org>
47422         pipe2: Fix compilation on pre-C99 compilers.
47423         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
47425 2011-09-23  Bruno Haible  <bruno@clisp.org>
47427         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
47428         * lib/msvc-nothrow.h: New file.
47429         * lib/msvc-nothrow.c: New file.
47430         * m4/msvc-nothrow.m4: New file.
47431         * modules/msvc-nothrow: New file.
47432         * lib/dup2.c: Include msvc-nothrow.h.
47433         (rpl_dup2): No need to protect _get_osfhandle call here.
47434         * lib/accept4.c: Include msvc-nothrow.h.
47435         * lib/error.c: Likewise.
47436         * lib/fcntl.c: Likewise.
47437         * lib/lseek.c: Likewise.
47438         * lib/nonblocking.c: Likewise.
47439         * lib/poll.c: Likewise.
47440         * lib/read.c: Likewise.
47441         * lib/select.c: Likewise.
47442         * lib/sockets.h: Likewise.
47443         * lib/sockets.c: Likewise.
47444         * lib/stdio-read.c: Likewise.
47445         * lib/stdio-write.c: Likewise.
47446         * lib/write.c: Likewise.
47447         * lib/w32sock.h: Likewise.
47448         * lib/w32spawn.h: Likewise.
47449         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
47450         * lib/fsync.c: Likewise.
47451         * lib/isapipe.c: Likewise.
47452         * modules/dup2 (Depends-on): Add msvc-nothrow.
47453         * modules/accept4 (Depends-on): Likewise.
47454         * modules/error (Depends-on): Likewise.
47455         * modules/fcntl (Depends-on): Likewise.
47456         * modules/lseek (Depends-on): Likewise.
47457         * modules/nonblocking (Depends-on): Likewise.
47458         * modules/poll (Depends-on): Likewise.
47459         * modules/read (Depends-on): Likewise.
47460         * modules/select (Depends-on): Likewise.
47461         * modules/sockets (Depends-on): Likewise.
47462         * modules/sigpipe (Depends-on): Likewise.
47463         * modules/write (Depends-on): Likewise.
47464         * modules/accept (Depends-on): Likewise.
47465         * modules/bind (Depends-on): Likewise.
47466         * modules/connect (Depends-on): Likewise.
47467         * modules/gethostname (Depends-on): Likewise.
47468         * modules/getpeername (Depends-on): Likewise.
47469         * modules/getsockname (Depends-on): Likewise.
47470         * modules/getsockopt (Depends-on): Likewise.
47471         * modules/ioctl (Depends-on): Likewise.
47472         * modules/listen (Depends-on): Likewise.
47473         * modules/recv (Depends-on): Likewise.
47474         * modules/recvfrom (Depends-on): Likewise.
47475         * modules/send (Depends-on): Likewise.
47476         * modules/sendto (Depends-on): Likewise.
47477         * modules/setsockopt (Depends-on): Likewise.
47478         * modules/shutdown (Depends-on): Likewise.
47479         * modules/socket (Depends-on): Likewise.
47480         * modules/execute (Depends-on): Likewise.
47481         * modules/spawn-pipe (Depends-on): Likewise.
47482         * modules/flock (Depends-on): Likewise.
47483         * modules/fsync (Depends-on): Likewise.
47484         * modules/isapipe (Depends-on): Likewise.
47485         * tests/test-cloexec.c: Include msvc-nothrow.h.
47486         * tests/test-dup-safer.c: Likewise.
47487         * tests/test-dup2.c: Likewise.
47488         * tests/test-dup3.c: Likewise.
47489         * tests/test-fcntl.c: Likewise.
47490         * tests/test-pipe.c: Likewise.
47491         * tests/test-pipe2.c: Likewise.
47492         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
47493         * modules/unistd-safer-tests (Depends-on): Likewise.
47494         * modules/dup2-tests (Depends-on): Likewise.
47495         * modules/dup3-tests (Depends-on): Likewise.
47496         * modules/fcntl-tests (Depends-on): Likewise.
47497         * modules/pipe-posix-tests (Depends-on): Likewise.
47498         * modules/pipe2-tests (Depends-on): Likewise.
47500 2011-09-23  Bruno Haible  <bruno@clisp.org>
47502         dup2: Make code more maintainable.
47503         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
47504         (rpl_dup2): Use it.
47505         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
47506         * modules/dup2 (configure.ac): Invoke it.
47507         Reported by Paul Eggert.
47509 2011-09-23  Bruno Haible  <bruno@clisp.org>
47511         msvc-inval: Fix compilation error.
47512         * lib/msvc-inval.h: Include <excpt.h>.
47514 2011-09-23  Bruno Haible  <bruno@clisp.org>
47516         mkdir: Tweak for MSVC 9.
47517         * lib/sys_stat.in.h: Update comments.
47518         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
47520         Tests for module 'chdir'.
47521         * modules/chdir-tests: New file.
47522         * tests/test-chdir.c: New file.
47524         New module 'chdir'.
47525         * modules/chdir: New file.
47526         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
47527         (chdir): New declaration.
47528         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
47529         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
47530         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
47531         * tests/test-unistd-c++.cc: Check signature of chdir.
47532         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
47533         * modules/chdir-long (Depends-on): Add chdir.
47534         * modules/fchdir (Depends-on): Likewise.
47535         * modules/rename (Depends-on): Likewise.
47536         * modules/savewd (Depends-on): Likewise.
47538         rmdir: Support for mingw, MSVC 9.
47539         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
47540         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
47542         getcwd: Tweak for MSVC 9.
47543         * lib/unistd.in.h: Update comments.
47544         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
47546 2011-09-22  Bruno Haible  <bruno@clisp.org>
47548         strerror_r-posix: Avoid a link error on MSVC.
47549         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
47550         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
47552 2011-09-22  Bruno Haible  <bruno@clisp.org>
47554         select: Avoid link errors on MSVC.
47555         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
47556         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
47557         * modules/pselect (Link): Likewise.
47558         * NEWS: Mention the change.
47559         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
47560         test-select-stdin against $(LIB_SELECT).
47561         * modules/pselect-tests (Makefile.am): Link test-pselect against
47562         $(LIB_SELECT).
47564 2011-09-22  Bruno Haible  <bruno@clisp.org>
47566         select: Avoid compilation error on MSVC.
47567         * lib/select.c: Don't include <stdbool.h>.
47569 2011-09-21  Bruno Haible  <bruno@clisp.org>
47571         Consolidate all uses of PATH_MAX in *.m4 files.
47572         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
47573         macros.
47574         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
47575         and gl_PATHMAX_SNIPPET.
47576         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
47577         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47578         * modules/chdir-long (Files): Add m4/pathmax.m4.
47579         * modules/getcwd (Files): Likewise.
47581 2011-09-21  Bruno Haible  <bruno@clisp.org>
47583         ftruncate: Un-deprecate, concentrate on Win32 support.
47584         * modules/ftruncate (Status, Notice): Remove sections.
47585         (Depends-on): Add largefile.
47586         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
47587         non-mingw platforms.
47588         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
47589         include <io.h>.
47590         * modules/perror-tests (Depends-on): Add ftruncate.
47591         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
47592         'ftruncate' module.
47594 2011-09-21  Bruno Haible  <bruno@clisp.org>
47596         Add dependencies to new dirent related modules.
47597         * modules/opendir (Depends-on): Add closedir.
47598         * modules/getcwd (Depends-on): Add opendir, closedir.
47599         * modules/dirent-safer-tests (Depends-on): Likewise.
47600         * modules/fdopendir-tests (Depends-on): Likewise.
47601         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
47602         * modules/renameat-tests (Depends-on): Likewise.
47604 2011-09-21  Bruno Haible  <bruno@clisp.org>
47606         opendir: Avoid compilation error on mingw.
47607         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
47608         * modules/opendir (Depends-on): Add unistd.
47610 2011-09-21  Bruno Haible  <bruno@clisp.org>
47612         ftruncate tests: Avoid a test failure on mingw.
47613         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
47615 2011-09-21  Bruno Haible  <bruno@clisp.org>
47617         select tests: Avoid test failures on OSF/1 5.1 and mingw.
47618         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
47619         native Windows.
47621 2011-09-21  Bruno Haible  <bruno@clisp.org>
47623         New module 'fdopen'.
47624         * lib/stdio.in.h (fdopen): New declaration.
47625         * lib/fdopen.c: New file.
47626         * m4/fdopen.m4: New file.
47627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
47628         REPLACE_FDOPEN.
47629         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
47630         REPLACE_FDOPEN.
47631         * modules/fdopen: New file.
47632         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
47633         * tests/test-stdio-c++.cc: Check signature of fdopen.
47634         * doc/posix-functions/fdopen.texi: Mention the new module.
47636 2011-09-21  Bruno Haible  <bruno@clisp.org>
47638         unlockpt tests: Avoid test failure on NetBSD 5.1.
47639         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
47640         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
47642 2011-09-21  Bruno Haible  <bruno@clisp.org>
47644         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
47645         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
47646         * tests/test-getlogin_r.c (main): Likewise.
47648 2011-09-20  Bruno Haible  <bruno@clisp.org>
47650         time tests: Don't require pid_t.
47651         * doc/posix-headers/time.texi: Revert last change.
47652         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
47653         * tests/test-time.c: Comment out the check for pid_t.
47655 2011-09-20  Bruno Haible  <bruno@clisp.org>
47657         fsync tests: Avoid a test failure on mingw.
47658         * tests/test-fsync.c (main): Allow a failure with EIO.
47660 2011-09-20  Bruno Haible  <bruno@clisp.org>
47662         euidaccess: Update comments.
47663         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
47665 2011-09-20  Bruno Haible  <bruno@clisp.org>
47667         Ensure EBADF returns for socket functions on mingw.
47668         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
47669         descriptor is invalid.
47670         * lib/bind.c (rpl_bind): Likewise.
47671         * lib/connect.c (rpl_connect): Likewise.
47672         * lib/getpeername.c (rpl_getpeername): Likewise.
47673         * lib/getsockname.c (rpl_getsockname): Likewise.
47674         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47675         * lib/listen.c (rpl_listen): Likewise.
47676         * lib/recv.c (rpl_recv): Likewise.
47677         * lib/recvfrom.c (rpl_recvfrom): Likewise.
47678         * lib/send.c (rpl_send): Likewise.
47679         * lib/sendto.c (rpl_sendto): Likewise.
47680         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47681         * lib/shutdown.c (rpl_shutdown): Likewise.
47683 2011-09-20  Bruno Haible  <bruno@clisp.org>
47685         select tests: EBADF tests.
47686         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
47687         test_bad_fd): New functions.
47688         (test_function): Invoke also test_bad_fd.
47690 2011-09-20  Bruno Haible  <bruno@clisp.org>
47692         Tests for module 'posix_spawn_file_actions_addopen.
47693         * modules/posix_spawn_file_actions_addopen-tests: New file.
47694         * tests/test-posix_spawn_file_actions_addopen.c: New file.
47696         Tests for module 'posix_spawn_file_actions_adddup2'.
47697         * modules/posix_spawn_file_actions_adddup2-tests: New file.
47698         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
47700         Tests for module 'posix_spawn_file_actions_addclose'.
47701         * modules/posix_spawn_file_actions_addclose-tests: New file.
47702         * tests/test-posix_spawn_file_actions_addclose.c: New file.
47704 2011-09-20  Bruno Haible  <bruno@clisp.org>
47706         Tests for module 'unlockpt'.
47707         * modules/unlockpt-tests: New file.
47708         * tests/test-unlockpt.c: New file.
47709         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
47711         Tests for module 'grantpt'.
47712         * modules/grantpt-tests: New file.
47713         * tests/test-grantpt.c: New file.
47714         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
47716 2011-09-20  Bruno Haible  <bruno@clisp.org>
47718         freopen tests: EBADF tests.
47719         * tests/test-freopen.c: Include errno.h, unistd.h.
47720         (main): Add tests for EBADF, commented out for the moment.
47722         fclose tests: EBADF tests.
47723         * tests/test-fclose.c (main): Add tests for EBADF.
47725         fflush tests: EBADF tests.
47726         * tests/test-fflush.c: Include errno.h, macros.h.
47727         (main): Add tests for EBADF.
47729         ftello tests: EBADF tests.
47730         * tests/test-ftello4.sh: New file.
47731         * tests/test-ftello4.c: New file.
47732         * modules/ftello-tests (Files): Add them.
47733         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
47735         fseeko tests: EBADF tests.
47736         * tests/test-fseeko4.sh: New file.
47737         * tests/test-fseeko4.c: New file.
47738         * modules/fseeko-tests (Files): Add them.
47739         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
47741         Tests for function fputc().
47742         * modules/fputc-tests: New file.
47743         * tests/test-fputc.c: New file.
47744         * modules/stdio-tests (Depends-on): Add fputc-tests.
47746         Tests for function fgetc().
47747         * modules/fgetc-tests: New file.
47748         * tests/test-fgetc.c: New file.
47749         * modules/stdio-tests (Depends-on): Add fgetc-tests.
47751         Tests for function fdopen().
47752         * modules/fdopen-tests: New file.
47753         * tests/test-fdopen.c: New file.
47754         * modules/stdio-tests (Depends-on): Add fdopen-tests.
47756         Tests for module 'vdprintf'.
47757         * modules/vdprintf-tests: New file.
47758         * tests/test-vdprintf.c: New file.
47760         Tests for module 'dprintf'.
47761         * modules/dprintf-tests: New file.
47762         * tests/test-dprintf.c: New file.
47764 2011-09-20  Bruno Haible  <bruno@clisp.org>
47766         Tests for module 'ioctl'.
47767         * modules/ioctl-tests: New file.
47768         * tests/test-ioctl.c: New file.
47770 2011-09-20  Bruno Haible  <bruno@clisp.org>
47772         fcntl tests: EBADF tests.
47773         * tests/test-fcntl.c (main): Add more tests for EBADF.
47775 2011-09-20  Bruno Haible  <bruno@clisp.org>
47777         utimensat tests: EBADF tests.
47778         * tests/test-utimensat.c (main): Add tests for EBADF.
47780         renameat tests: EBADF tests.
47781         * tests/test-renameat.c (main): Add tests for EBADF.
47783         mkfifoat tests: EBADF tests.
47784         * tests/test-mkfifoat.c (main): Add tests for EBADF.
47786         readlinkat tests: EBADF tests.
47787         * tests/test-readlinkat.c (main): Add tests for EBADF.
47789         symlinkat tests: EBADF tests.
47790         * tests/test-symlinkat.c (main): Add tests for EBADF.
47792         linkat tests: EBADF tests.
47793         * tests/test-linkat.c (main): Add tests for EBADF.
47795         Tests for module 'faccessat'.
47796         * modules/faccessat-tests: New file.
47797         * tests/test-faccessat.c: New file.
47799         fdopendir tests: EBADF tests.
47800         * tests/test-fdopendir.c (main): Add more tests for EBADF.
47802         openat tests: EBADF tests.
47803         * tests/test-fchownat.c (main): Add tests for EBADF.
47804         * tests/test-fstatat.c (main): Likewise.
47805         * tests/test-mkdirat.c (main): Likewise.
47806         * tests/test-openat.c (main): Likewise.
47807         * tests/test-unlinkat.c (main): Likewise.
47808         * tests/test-fchmodat.c: New file.
47809         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
47810         (Makefile.am): Also run 'test-fchmodat'.
47812 2011-09-20  Bruno Haible  <bruno@clisp.org>
47814         utimens, futimens, fdutimensat tests: EBADF tests.
47815         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
47817         Tests for function fstat().
47818         * modules/fstat-tests: New file.
47819         * tests/test-fstat.c: New file.
47820         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
47822 2011-09-20  Bruno Haible  <bruno@clisp.org>
47824         test-ttyname_r tests: EBADF tests.
47825         * tests/test-ttyname_r.c (main): Add tests for EBADF.
47827         Tests for module 'isatty'.
47828         * modules/isatty-tests: New file.
47829         * tests/test-isatty.c: New file.
47831         Tests for module 'write'.
47832         * modules/write-tests: New file.
47833         * tests/test-write.c: New file.
47835         Tests for module 'read'.
47836         * modules/read-tests: New file.
47837         * tests/test-read.c: New file.
47839         pwrite tests: EBADF tests.
47840         * tests/test-pwrite.c (main): Add tests for EBADF.
47842         pread tests: EBADF tests.
47843         * tests/test-pread.c (main): Add tests for EBADF.
47845         lseek tests: EBADF tests.
47846         * tests/test-lseek.c (main): Add more tests for EBADF.
47848         Tests for module 'ftruncate'.
47849         * modules/ftruncate-tests: New file.
47850         * tests/test-ftruncate.sh: New file.
47851         * tests/test-ftruncate.c: New file.
47853         fsync tests: EBADF tests.
47854         * tests/test-fsync.c (main): Add more tests for EBADF.
47856         fdatasync tests: EBADF tests.
47857         * tests/test-fdatasync.c (main): Add more tests for EBADF.
47859         Tests for module 'fchown'.
47860         * modules/fchown-tests: New file.
47861         * tests/test-fchown.c: New file.
47863         Tests for module 'fchmod'.
47864         * modules/fchmod-tests: New file.
47865         * tests/test-fchmod.c: New file.
47867         fchdir tests: EBADF tests.
47868         * tests/test-fchdir.c (main): Add more tests for EBADF.
47870         dup2 tests: EBADF tests.
47871         * tests/test-dup2.c (main): Add more tests for EBADF.
47873         Tests for module 'dup'.
47874         * modules/dup-tests: New file.
47875         * tests/test-dup.c: New file.
47877         Tests for module 'close'.
47878         * modules/close-tests: New file.
47879         * tests/test-close.c: New file.
47881 2011-09-20  Bruno Haible  <bruno@clisp.org>
47883         Tests for module 'shutdown'.
47884         * modules/shutdown-tests: New file.
47885         * tests/test-shutdown.c: New file.
47887         Tests for module 'setsockopt'.
47888         * modules/setsockopt-tests: New file.
47889         * tests/test-setsockopt.c: New file.
47891         Tests for module 'sendto'.
47892         * modules/sendto-tests: New file.
47893         * tests/test-sendto.c: New file.
47895         Tests for module 'send'.
47896         * modules/send-tests: New file.
47897         * tests/test-send.c: New file.
47899         Tests for module 'recvfrom'.
47900         * modules/recvfrom-tests: New file.
47901         * tests/test-recvfrom.c: New file.
47903         Tests for module 'recv'.
47904         * modules/recv-tests: New file.
47905         * tests/test-recv.c: New file.
47907         Tests for module 'listen'.
47908         * modules/listen-tests: New file.
47909         * tests/test-listen.c: New file.
47911         Tests for module 'getsockopt'.
47912         * modules/getsockopt-tests: New file.
47913         * tests/test-getsockopt.c: New file.
47915         Tests for module 'getsockname'.
47916         * modules/getsockname-tests: New file.
47917         * tests/test-getsockname.c: New file.
47919         Tests for module 'getpeername'.
47920         * modules/getpeername-tests: New file.
47921         * tests/test-getpeername.c: New file.
47923         Tests for module 'connect'.
47924         * modules/connect-tests: New file.
47925         * tests/test-connect.c: New file.
47927         Tests for module 'bind'.
47928         * modules/bind-tests: New file.
47929         * tests/test-bind.c: New file.
47931         accept4 tests: Fix for native Windows.
47932         * tests/test-accept4.c: Include sockets.h.
47933         (main): Invoke gl_sockets_startup.
47934         * modules/accept4-tests (Depends-on): Add sockets.
47936         accept tests: Fix for native Windows.
47937         * tests/test-accept.c: Include sockets.h.
47938         (main): Invoke gl_sockets_startup.
47939         * modules/accept-tests (Depends-on): Add sockets.
47941 2011-09-19  Bruno Haible  <bruno@clisp.org>
47943         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
47944         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
47945         do...while(0).
47946         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
47947         Suggested by Paul Eggert.
47949 2011-09-19  Bruno Haible  <bruno@clisp.org>
47951         sched: Ensure pid_t is defined.
47952         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
47953         not define pid_t.
47954         * lib/sched.in.h: Include <sys/types.h>.
47955         * doc/posix-headers/sched.texi: Mention the pid_t problem.
47956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47958 2011-09-19  Bruno Haible  <bruno@clisp.org>
47960         msvc-inval: Ensure the entire expansion is a single statement.
47961         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
47962         of braces.
47964 2011-09-19  Jim Meyering  <meyering@redhat.com>
47966         tests: use printf, not echo in init.sh's warn_ function
47967         * tests/init.sh (warn_): Use printf, not echo.  The latter would
47968         misbehave when given strings containing a backslash or starting
47969         with e.g., -n.  James Youngman suggested setting IFS.
47971 2011-09-19  Eric Blake  <eblake@redhat.com>
47973         futimens: enhance test
47974         * tests/test-futimens.h (test_futimens): Also check for EBADF on
47975         closed non-negative fd.
47977         date: accept 'hence' as opposite of 'ago'
47978         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
47979         * tests/test-parse-datetime.c (main): Enhance test.
47980         Suggested by Jesse Wilson.
47982 2011-09-19  Jim Meyering  <meyering@redhat.com>
47984         getcwd: don't fail in a deep directory on a system without openat
47985         Before this change, getcwd would fail when called from a directory
47986         of depth PATH_MAX / 3 or greater.  That was due to the fact that
47987         the non-openat implementation used "..", "../..", "../../..", etc.
47988         to access ancestor directories.  With too many, that string would
47989         be longer than PATH_MAX.
47990         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
47991         using gnulib's openat replacement.
47992         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
47993         we're using the replacement function.
47995 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
47997         maint.mk: avoid warnings from perl about missing files
47998         * top/maint.mk (def_sym_regex): Ignore files listed in
47999         $(gl_other_headers_) that do not exist, say because a project
48000         does not use a corresponding module.
48002 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48004         stat: use pathmax.h only if needed
48005         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
48006         This is better for Emacs, which does not have a mingw port and
48007         therefore can avoid the pathmax module.
48009         utimens: remove dependency on dup2
48010         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
48011         to work around the Linux kernel bug.
48012         * modules/utimens (Depends-on): Remove dup2.
48014 2011-09-18  Bruno Haible  <bruno@clisp.org>
48016         inet_ntop, inet_pton: Look for it also in libresolv.
48017         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
48018         libnsl, search for it in libresolv.
48019         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48020         Needed on Solaris 7.
48022 2011-09-18  Bruno Haible  <bruno@clisp.org>
48024         accept, accept4 tests: Avoid link error on Solaris.
48025         * modules/accept-tests (Makefile.am): Link test-accept against
48026         $(LIBSOCKET).
48027         * modules/accept4-tests (Makefile.am): Link test-accept4 against
48028         $(LIBSOCKET).
48030         accept4: Avoid link error on Solaris.
48031         * modules/accept4 (Link): New section.
48033         socket functions: Avoid link errors on Solaris.
48034         * modules/accept (Depends-on): Add socketlib.
48035         (Link): New section.
48036         * modules/bind (Depends-on): Add socketlib.
48037         (Link): New section.
48038         * modules/connect (Depends-on): Add socketlib.
48039         (Link): New section.
48040         * modules/getpeername (Depends-on): Add socketlib.
48041         (Link): New section.
48042         * modules/getsockname (Depends-on): Add socketlib.
48043         (Link): New section.
48044         * modules/getsockopt (Depends-on): Add socketlib.
48045         (Link): New section.
48046         * modules/listen (Depends-on): Add socketlib.
48047         (Link): New section.
48048         * modules/recv (Depends-on): Add socketlib.
48049         (Link): New section.
48050         * modules/recvfrom (Depends-on): Add socketlib.
48051         (Link): New section.
48052         * modules/send (Depends-on): Add socketlib.
48053         (Link): New section.
48054         * modules/sendto (Depends-on): Add socketlib.
48055         (Link): New section.
48056         * modules/setsockopt (Depends-on): Add socketlib.
48057         (Link): New section.
48058         * modules/shutdown (Depends-on): Add socketlib.
48059         (Link): New section.
48060         * modules/socket (Depends-on): Add socketlib.
48061         (Link): New section.
48063 2011-09-18  Bruno Haible  <bruno@clisp.org>
48065         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
48066         * tests/test-ptsname.c (main): Terminate the test if it takes longer
48067         than 5 seconds.
48068         * modules/ptsname-tests (configure.ac): Test for alarm.
48070 2011-09-18  Bruno Haible  <bruno@clisp.org>
48072         posix_spawn_file_actions_add*: Fix module dependencies.
48073         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
48074         posix_spawn_file_actions_init.
48075         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
48076         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
48078 2011-09-18  Bruno Haible  <bruno@clisp.org>
48080         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
48081         * tests/test-rename.h (test_rename): Allow error code EEXIST.
48082         * tests/test-renameat.c (main): Likewise.
48084 2011-09-18  Bruno Haible  <bruno@clisp.org>
48086         Tests for module 'accept4'.
48087         * modules/accept4-tests: New file.
48088         * tests/test-accept4.c: New file.
48090 2011-09-18  Bruno Haible  <bruno@clisp.org>
48092         Tests for module 'accept'.
48093         * modules/accept-tests: New file.
48094         * tests/test-accept.c: New file.
48096 2011-09-18  Bruno Haible  <bruno@clisp.org>
48098         dup2: Support for MSVC.
48099         * lib/dup2.c: Include msvc-inval.h.
48100         (rpl_dup2): Handle invalid parameter notifications during dup2 and
48101         _get_osfhandle calls.
48102         * modules/dup2 (Depends-on): Add msvc-inval.
48103         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
48105         New module 'msvc-inval'.
48106         * lib/msvc-inval.h: New file.
48107         * lib/msvc-inval.c: New file.
48108         * m4/msvc-inval.m4: New file.
48109         * modules/msvc-inval: New file.
48111 2011-09-17  Bruno Haible  <bruno@clisp.org>
48113         Tests for module 'pclose'.
48114         * modules/pclose-tests: New file.
48116         New module 'pclose'.
48117         * lib/stdio.in.h (pclose): New declaration.
48118         * lib/pclose.c: New file.
48119         * m4/pclose.m4: New file.
48120         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
48121         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
48122         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
48123         * modules/pclose: New file.
48124         * modules/popen-tests (Depends-on): Add pclose.
48125         * modules/popen-safer-tests (Depends-on): Likewise.
48126         * doc/posix-functions/pclose.texi: Mention the new module.
48128 2011-09-17  Bruno Haible  <bruno@clisp.org>
48130         popen: Support for MSVC.
48131         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
48132         * lib/popen.c (popen): Provide alternate definition for native Windows.
48133         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
48134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
48135         * modules/popen (Depends-on, configure.ac): Update condition.
48136         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
48137         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
48138         fixed.
48140 2011-09-17  Bruno Haible  <bruno@clisp.org>
48142         isnanl, isnand, isnanf: Work around MSVC bug.
48143         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
48145 2011-09-17  Bruno Haible  <bruno@clisp.org>
48147         sys_socket tests: Fix recent mistake.
48148         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
48150 2011-09-17  Bruno Haible  <bruno@clisp.org>
48152         putenv: Support for MSVC.
48153         * modules/putenv (Depends-on): Add environ.
48154         * lib/putenv.c (environ): Disable declaration.
48155         * lib/unistd.in.h: Update comment.
48157 2011-09-17  Bruno Haible  <bruno@clisp.org>
48159         math: Avoid macro redefinition warnings on MSVC.
48160         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
48161         Undefine before redefining.
48163 2011-09-17  Bruno Haible  <bruno@clisp.org>
48165         doc: Mention functions which are declared as macros.
48166         * doc/posix-functions/*[fl].texi: Mention that some functions are
48167         defined as macros with arguments only.
48169 2011-09-17  Bruno Haible  <bruno@clisp.org>
48171         Add dependencies to new dirent related modules.
48172         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
48173         * modules/fts (Depends-on): Likewise.
48174         * modules/glob (Depends-on): Likewise.
48175         * modules/savedir (Depends-on): Likewise.
48176         * modules/scandir (Depends-on): Likewise.
48177         * modules/dirent-safer (Depends-on): Add opendir, closedir.
48178         * modules/fdopendir (Depends-on): Add opendir.
48180 2011-09-17  Bruno Haible  <bruno@clisp.org>
48182         inet_pton: Support for MSVC on Windows Vista or newer.
48183         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
48184         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
48185         HAVE_DECL_INET_PTON is defined.
48186         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48187         On platforms with <winsock2.h>, test whether inet_pton is declared in
48188         <ws2tcpip.h>. If so, arrange to replace it.
48189         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48190         REPLACE_INET_PTON.
48191         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
48192         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
48193         (Depends-on, configure.ac): Update condition.
48194         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
48196 2011-09-17  Bruno Haible  <bruno@clisp.org>
48198         inet_ntop: Support for MSVC on Windows Vista or newer.
48199         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
48200         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
48201         HAVE_DECL_INET_NTOP is defined.
48202         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48203         On platforms with <winsock2.h>, test whether inet_ntop is declared in
48204         <ws2tcpip.h>. If so, arrange to replace it.
48205         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48206         REPLACE_INET_NTOP.
48207         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
48208         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
48209         (Depends-on, configure.ac): Update condition.
48210         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
48212 2011-09-16  Eric Blake  <eblake@redhat.com>
48214         test-fsync: yet another enhancement
48215         * tests/test-fsync.c (main): Also test behavior on read-only text
48216         file.
48218 2011-09-16  Bruno Haible  <bruno@clisp.org>
48220         Enhance fsync, fdatasync tests.
48221         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
48222         * tests/test-fdatasync.c (main): Likewise.
48224 2011-09-16  Bruno Haible  <bruno@clisp.org>
48226         Support for MSVC compiler: Ensure mode_t gets defined.
48227         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
48228         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48230         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
48231         * tests/test-fcntl-h.c: Check that mode_t is defined.
48232         * tests/test-sys_stat.c: Likewise.
48233         * tests/test-sys_types.c: Likewise.
48234         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
48235         * doc/posix-headers/sys_stat.texi: Likewise.
48236         * doc/posix-headers/sys_types.texi: Likewise.
48238 2011-09-16  Bruno Haible  <bruno@clisp.org>
48240         sys_stat: Support for MSVC.
48241         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
48242         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
48243         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
48244         MSVC.
48246 2011-09-16  Bruno Haible  <bruno@clisp.org>
48248         Support for MSVC compiler: Ensure off_t gets defined.
48249         * lib/unistd.in.h: Include <sys/types.h>.
48250         * tests/test-fcntl-h.c: Check that off_t is defined.
48251         * tests/test-sys_stat.c: Likewise.
48252         * tests/test-sys_types.c: Likewise.
48254 2011-09-16  Eric Blake  <eblake@redhat.com>
48256         fdatasync: port to Solaris
48257         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
48258         * modules/fdatasync (Link): Document it.
48259         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
48261         fdatasync: port to MacOS X 10.7
48262         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
48263         declared.
48264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
48265         * modules/unistd (Makefile.am): Substitute it.
48266         * lib/unistd.in.h (fdatasync): Declare on MacOS.
48267         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
48269         fdatasync: minor improvements
48270         * modules/fdatasync (Depends-on): Add condition for fsync.
48271         * lib/fdatasync.c (fdatasync): Add comment.
48272         * tests/test-unistd-c++.cc: Test fdatasync.
48274         unistd: update refs to newer POSIX
48275         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
48276         Suggested by Bruno Haible.
48278         fdatasync: new module
48279         * modules/fsync (Description): Document difference to fdatasync.
48280         * modules/fdatasync: New module.
48281         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
48282         * lib/fdatasync.c (fdatasync): Likewise.
48283         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
48284         defaults.
48285         * modules/unistd (Makefile.am): Set witnesses.
48286         * lib/unistd.in.h (fdatasync): Declare.
48287         * MODULES.html.sh: Document it.
48288         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
48289         * modules/fdatasync-tests: New test.
48290         * tests/test-fdatasync.c: Likewise.
48292 2011-09-16  Eric Blake  <eblake@redhat.com>
48294         test-fsync: enhance tests
48295         * modules/fsync-tests (Depends-on): Add errno, for mingw.
48296         * tests/test-fsync.c (main): Enhance test.
48298 2011-09-15  Bruno Haible  <bruno@clisp.org>
48300         Support for MSVC compiler: Ensure ssize_t gets defined.
48301         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
48302         * doc/posix-headers/stdio.texi: Likewise.
48303         * modules/stdio (Depends-on): Add ssize_t.
48304         * modules/sys_socket (Depends-on): Likewise.
48305         * modules/sys_types (Depends-on): Likewise.
48306         * modules/sys_uio (Depends-on): Likewise.
48307         * modules/unistd (Depends-on): Likewise.
48308         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
48309         * tests/test-sys_types.c: Check that ssize_t is defined.
48311 2011-09-14  Bruno Haible  <bruno@clisp.org>
48313         Avoid using #, the m4 comment starter character, near brackets.
48314         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
48315         delimiter character in sed expressions.
48316         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
48317         Suggested by Eric Blake.
48319         Properly quote AC_CHECK_DECLS' 4th argument.
48320         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
48321         argument.
48322         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48323         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48324         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
48325         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
48326         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48327         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
48328         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
48329         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
48330         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
48331         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
48332         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
48333         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48334         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48335         * m4/isinf.m4 (gl_ISINF): Likewise.
48336         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
48337         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48338         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48339         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48340         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48341         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48342         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
48343         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
48344         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
48345         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48346         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48347         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48348         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
48349         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48351         Reported by Eric Blake.
48353         Properly quote AC_CHECK_DECL's 4th argument.
48354         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
48355         argument.
48356         * m4/argp.m4 (gl_ARGP): Likewise.
48357         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
48358         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
48359         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
48360         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
48361         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
48362         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
48363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
48364         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
48365         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48366         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
48367         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
48368         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
48369         Reported by Eric Blake.
48371 2011-09-14  Eric Blake  <eblake@redhat.com>
48373         opendir: avoid compile warning
48374         * lib/opendir.c (includes): Always include errno.h.
48375         Reported by Tatsuro MATSUOKA.
48377 2011-09-14  Jim Meyering  <meyering@redhat.com>
48379         maint.mk: sc_tight_scope: propagate failure from sub-make
48380         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
48381         Reported by Martin von Gagern.
48383 2011-09-13  Bruno Haible  <bruno@clisp.org>
48385         tempname: Support for MSVC.
48386         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
48387         MSVC.
48388         * modules/tempname (Depends-on): Add fcntl-h.
48390 2011-09-13  Bruno Haible  <bruno@clisp.org>
48392         sys_time: Support for MSVC.
48393         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
48394         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
48395         include <winsock2.h>.
48396         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
48397         function declarations that collide with POSIX.
48398         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
48399         (Makefile.am): Substitute HAVE_WINSOCK2_H.
48401 2011-09-13  Bruno Haible  <bruno@clisp.org>
48403         stat: Support for MSVC.
48404         * lib/stat.c: Include pathmax.h.
48405         * modules/stat (Depends-on): Add pathmax.
48407         pathmax: Support for native Windows.
48408         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
48410 2011-09-12  Bruno Haible  <bruno@clisp.org>
48412         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
48413         * lib/dirent.in.h (struct dirent): New type.
48414         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
48415         DT_WHT): New macros.
48416         (DIR): New type.
48417         (opendir, closedir): Declare only if the module 'opendir' is enabled.
48418         (readdir, rewinddir): New declarations.
48419         * lib/dirent-private.h: New file.
48420         * lib/opendir.c: New file.
48421         * lib/readdir.c: New file.
48422         * lib/rewinddir.c: New file.
48423         * lib/closedir.c: New file.
48424         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
48425         * m4/opendir.m4: New file.
48426         * m4/readdir.m4: New file.
48427         * m4/rewinddir.m4: New file.
48428         * m4/closedir.m4: New file.
48429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
48430         REPLACE_CLOSEDIR here.
48431         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
48432         readdir, rewinddir are declared.
48433         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
48434         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
48435         HAVE_REWINDDIR, HAVE_CLOSEDIR.
48436         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
48437         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
48438         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
48439         * modules/opendir: New file.
48440         * modules/readdir: New file.
48441         * modules/rewinddir: New file.
48442         * modules/closedir: New file.
48443         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
48444         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
48445         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
48446         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
48447         * NEWS: Mention the 'fchdir' change.
48449 2011-09-11  Bruno Haible  <bruno@clisp.org>
48451         asm-underscore.m4: Support for MSVC.
48452         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
48453         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
48455 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
48457         Doc about crypt functions.
48458         * doc/posix-functions/crypt.texi: Expand range of glibc versions
48459         needing for _GNU_SOURCE to get crypt.
48460         * doc/posix-functions/encrypt.texi: Likewise.
48461         * doc/posix-functions/setkey.texi: Likewise.
48463 2011-09-11  Bruno Haible  <bruno@clisp.org>
48465         doc: Update regarding MSVC 9.
48466         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
48467         tested".
48468         * doc/posix-functions/*.texi: Update with info about MSVC 9.
48469         * doc/posix-headers/*.texi: Likewise.
48470         * doc/pastposix-functions/*.texi: Likewise.
48471         * doc/glibc-functions/*.texi: Likewise.
48472         * doc/glibc-headers/*.texi: Likewise.
48474 2011-09-11  Bruno Haible  <bruno@clisp.org>
48476         unistd et al.: Don't assume <unistd.h> exists.
48477         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
48478         does not exist.
48479         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
48480         exist. But include <stdlib.h>.
48481         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
48482         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
48483         symlink() does not exist.
48484         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
48485         include <io.h> instead.
48486         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
48487         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
48488         include <direct.h> instead.
48489         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48491         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
48492         <io.h> instead.
48493         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
48494         correctly if the system does not have hard links.
48495         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
48496         <direct.h> instead.
48497         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
48498         it when looking for function declarations.
48499         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
48500         <direct.h> and <io.h> instead.
48501         * doc/posix-headers/unistd.texi: More details about MSVC problem.
48503 2011-09-11  Bruno Haible  <bruno@clisp.org>
48505         strcase: Support for MSVC.
48506         * modules/strcase (Status, Notice): Remove obsoletion mark.
48507         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
48508         * doc/posix-functions/strncasecmp.texi: Likewise.
48510         strings: Don't assume <strings.h> exists.
48511         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
48512         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
48513         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
48514         * doc/posix-headers/strings.texi: Mention the MSVC problem.
48516 2011-09-11  Bruno Haible  <bruno@clisp.org>
48518         dirent: Don't assume <dirent.h> exists.
48519         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
48520         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
48521         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
48522         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
48524 2011-09-11  Bruno Haible  <bruno@clisp.org>
48526         Fix wint_t on MSVC.
48527         * lib/wchar.in.h (wint_t): On MSVC, override it.
48528         * lib/wctype.in.h (wint_t): Likewise.
48529         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
48530         MSVC.
48531         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
48532         * doc/posix-headers/wctype.texi: Likewise.
48534 2011-09-11  Bruno Haible  <bruno@clisp.org>
48536         sys_types: Fix typo.
48537         * lib/sys_types.in.h: Fix typo in comment.
48538         Reported by Paul Eggert.
48540         Support for MSVC compiler: Ensure size_t gets defined.
48541         * modules/strings (Depends-on): Add 'sys_types'.
48542         * modules/sys_uio (Depends-on): Likewise.
48543         * lib/sys_uio.in.h: Update comment.
48545         C++ tests for module 'sys_types'.
48546         * modules/sys_types-c++-tests: New file.
48547         * tests/test-sys_types-c++.cc: New file.
48549         Tests for module 'sys_types'.
48550         * modules/sys_types-tests: New file.
48551         * tests/test-sys_types.c: New file.
48553         New module 'sys_types'.
48554         * lib/sys_types.in.h: New file.
48555         * m4/sys_types_h.m4: New file.
48556         * modules/sys_types: New file.
48557         * doc/posix-headers/sys_types.texi: Mention the new module and the
48558         size_t problem on MSVC 9.
48560 2011-09-11  Bruno Haible  <bruno@clisp.org>
48562         Support for MSVC compiler: Avoid division by a literal 0.
48563         * lib/math.in.h (NAN): Define through a function call also on MSVC.
48564         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
48565         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
48566         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
48567         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
48568         * tests/infinity.h: New file.
48569         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
48570         on MSVC.
48571         * tests/test-ceilf1.c: Include infinity.h.
48572         (main): Use Infinityf.
48573         * tests/test-ceil1.c: Include infinity.h.
48574         (main): Use Infinityd.
48575         * tests/test-ceill.c: Include infinity.h.
48576         (main): Use Infinityl.
48577         * tests/test-dprintf-posix.c: Include infinity.h.
48578         (test_function): Use Infinityd.
48579         * tests/test-floorf1.c: Include infinity.h.
48580         (main): Use Infinityf.
48581         * tests/test-floor1.c: Include infinity.h.
48582         (main): Use Infinityd.
48583         * tests/test-floorl.c: Include infinity.h.
48584         (main): Use Infinityl.
48585         * tests/test-fprintf-posix.c: Include infinity.h.
48586         (test_function): Use Infinityd.
48587         * tests/test-frexp.c: Include infinity.h.
48588         (main): Use Infinityd.
48589         * tests/test-frexpl.c: Include infinity.h.
48590         (main): Use Infinityl.
48591         * tests/test-isfinite.c: Include infinity.h.
48592         (test_isfinitef): Use Infinityf.
48593         (test_isfinited): Use Infinityd.
48594         (test_isfinitel): Use Infinityl.
48595         * tests/test-isinf.c: Include infinity.h.
48596         (test_isinff): Use Infinityf.
48597         (test_isinfd): Use Infinityd.
48598         (test_isinfl): Use Infinityl.
48599         * tests/test-isnan.c: Include infinity.h.
48600         (test_float): Use Infinityf.
48601         (test_double): Use Infinityd.
48602         (test_long_double): Use Infinityl.
48603         * tests/test-isnanf.h: Include infinity.h.
48604         (main): Use Infinityf.
48605         * tests/test-isnand.h: Include infinity.h.
48606         (main): Use Infinityd.
48607         * tests/test-isnanl.h: Include infinity.h.
48608         (main): Use Infinityl.
48609         * tests/test-ldexpl.c: Include infinity.h.
48610         (main): Use Infinityl.
48611         * tests/test-printf-posix.h: Include infinity.h.
48612         (test_function): Use Infinityd.
48613         * tests/test-roundf1.c: Include infinity.h.
48614         (main): Use Infinityf.
48615         * tests/test-round1.c: Include infinity.h.
48616         (main): Use Infinityd.
48617         * tests/test-roundl.c: Include infinity.h.
48618         (main): Use Infinityl.
48619         * tests/test-signbit.c: Include infinity.h.
48620         (test_signbitf): Use Infinityf.
48621         (test_signbitd): Use Infinityd.
48622         (test_signbitl): Use Infinityl.
48623         * tests/test-snprintf-posix.h: Include infinity.h.
48624         (test_function): Use Infinityd, Infinityl.
48625         * tests/test-sprintf-posix.h: Include infinity.h.
48626         (test_function): Use Infinityd, Infinityl.
48627         * tests/test-truncf1.c: Include infinity.h.
48628         (main): Use Infinityf.
48629         * tests/test-trunc1.c: Include infinity.h.
48630         (main): Use Infinityd.
48631         * tests/test-truncl.c: Include infinity.h.
48632         (main): Use Infinityl.
48633         * tests/test-vasnprintf-posix.c: Include infinity.h.
48634         (test_function): Use Infinityd, Infinityl.
48635         * tests/test-vasprintf-posix.c: Include infinity.h.
48636         (test_function): Use Infinityd, Infinityl.
48637         * modules/ceilf-tests (Files): Add tests/infinity.h.
48638         * modules/ceil-tests (Files): Likewise.
48639         * modules/ceill-tests (Files): Likewise.
48640         * modules/dprintf-posix-tests (Files): Likewise.
48641         * modules/floorf-tests (Files): Likewise.
48642         * modules/floor-tests (Files): Likewise.
48643         * modules/floorl-tests (Files): Likewise.
48644         * modules/fprintf-posix-tests (Files): Likewise.
48645         * modules/frexp-tests (Files): Likewise.
48646         * modules/frexp-nolibm-tests (Files): Likewise.
48647         * modules/frexpl-tests (Files): Likewise.
48648         * modules/frexpl-nolibm-tests (Files): Likewise.
48649         * modules/isfinite-tests (Files): Likewise.
48650         * modules/isinf-tests (Files): Likewise.
48651         * modules/isnan-tests (Files): Likewise.
48652         * modules/isnanf-tests (Files): Likewise.
48653         * modules/isnanf-nolibm-tests (Files): Likewise.
48654         * modules/isnand-tests (Files): Likewise.
48655         * modules/isnand-nolibm-tests (Files): Likewise.
48656         * modules/isnanl-tests (Files): Likewise.
48657         * modules/isnanl-nolibm-tests (Files): Likewise.
48658         * modules/ldexpl-tests (Files): Likewise.
48659         * modules/printf-posix-tests (Files): Likewise.
48660         * modules/roundf-tests (Files): Likewise.
48661         * modules/round-tests (Files): Likewise.
48662         * modules/roundl-tests (Files): Likewise.
48663         * modules/signbit-tests (Files): Likewise.
48664         * modules/snprintf-posix-tests (Files): Likewise.
48665         * modules/sprintf-posix-tests (Files): Likewise.
48666         * modules/truncf-tests (Files): Likewise.
48667         * modules/trunc-tests (Files): Likewise.
48668         * modules/truncl-tests (Files): Likewise.
48669         * modules/vasnprintf-posix-tests (Files): Likewise.
48670         * modules/vasprintf-posix-tests (Files): Likewise.
48671         * modules/vdprintf-posix-tests (Files): Likewise.
48672         * modules/vfprintf-posix-tests (Files): Likewise.
48673         * modules/vprintf-posix-tests (Files): Likewise.
48674         * modules/vsnprintf-posix-tests (Files): Likewise.
48675         * modules/vsprintf-posix-tests (Files): Likewise.
48676         * modules/xprintf-posix-tests (Files): Likewise.
48678 2011-09-11  Bruno Haible  <bruno@clisp.org>
48680         Ensure pid_t gets defined.
48681         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
48682         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
48683         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48684         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48685         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
48686         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
48687         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48688         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48689         * tests/test-fcntl-h.c: Check that pid_t is defined.
48690         * tests/test-sched.c: Likewise.
48691         * tests/test-termios.c: Likewise.
48692         * tests/test-time.c: Likewise.
48693         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
48694         * doc/posix-headers/signal.texi: Likewise.
48695         * doc/posix-headers/sys_types.texi: Likewise.
48696         * doc/posix-headers/time.texi: Likewise.
48698 2011-09-11  Bruno Haible  <bruno@clisp.org>
48700         acl: Fix compilation on Solaris 10 (older version).
48701         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
48702         of ACE_EVERYONE.
48703         * lib/set-mode-acl.c (qset_acl): Likewise.
48704         Reported by Christian Jullien <eligis@orange.fr>.
48706 2011-09-10  Bruno Haible  <bruno@clisp.org>
48708         iconv, unsetenv: Add support for MSVC compiler.
48709         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
48710         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
48712 2011-09-10  Bruno Haible  <bruno@clisp.org>
48714         *printf: Add support for MSVC compiler.
48715         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
48716         handles the exception caused by the %n directive. When cross-compiling,
48717         guess no on native Windows.
48718         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
48719         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
48720         emulate it through vsnprintf.
48721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
48722         * doc/posix-functions/dprintf.texi: Update documentation regarding
48723         MSVC 9.
48724         * doc/posix-functions/fprintf.texi: Likewise.
48725         * doc/posix-functions/printf.texi: Likewise.
48726         * doc/posix-functions/snprintf.texi: Likewise.
48727         * doc/posix-functions/sprintf.texi: Likewise.
48728         * doc/posix-functions/swprintf.texi: Likewise.
48729         * doc/posix-functions/vdprintf.texi: Likewise.
48730         * doc/posix-functions/vfprintf.texi: Likewise.
48731         * doc/posix-functions/vprintf.texi: Likewise.
48732         * doc/posix-functions/vsnprintf.texi: Likewise.
48733         * doc/posix-functions/vsprintf.texi: Likewise.
48734         * doc/glibc-functions/asprintf.texi: Likewise.
48735         * doc/glibc-functions/obstack_printf.texi: Likewise.
48736         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48737         * doc/glibc-functions/vasprintf.texi: Likewise.
48739 2011-09-10  Bruno Haible  <bruno@clisp.org>
48741         nocrash: Add support for native Windows.
48742         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
48744 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
48745             Bruno Haible  <bruno@clisp.org>
48747         absolute-header, include-next: Add support for MSVC compiler.
48748         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
48749         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
48750         directory separator in #line directives.
48751         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
48752         recognize also backslash as directory separator in #line directives.
48754 2011-09-08  Jim Meyering  <meyering@redhat.com>
48756         maint.mk: mark the post-release commit log with "maint: " prefix
48757         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
48758         one-line commit-log summary.
48760 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
48761             Bruno Haible  <bruno@clisp.org>
48763         Doc about crypt functions.
48764         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
48765         systems.
48766         * doc/posix-functions/encrypt.texi: Likewise.
48767         * doc/posix-functions/setkey.texi: Likewise.
48769 2011-09-08  Simon Josefsson  <simon@josefsson.org>
48771         * lib/gc.h: Fix copyright header.
48773 2011-09-07  Bruno Haible  <bruno@clisp.org>
48775         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
48776         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
48777         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
48779 2011-09-07  Bruno Haible  <bruno@clisp.org>
48781         openat: Work around compilation error with OSF/1 5.1 DTK cc.
48782         * lib/fopen.c: Use different syntax for include of <stdio.h>.
48783         * lib/freopen.c: Likewise.
48784         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
48785         * lib/lstat.c: Likewise.
48786         * lib/stat.c: Likewise.
48787         * lib/open.c: Use different syntax for include of <fcntl.h>.
48788         * lib/openat.c: Include fcntl.h again, explicitly.
48790 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
48792         parse-datetime: document the newly accepted format
48793         * doc/parse-datetime.texi (Combined date and time of day items):
48794         New section.
48796 2011-09-06  Bruno Haible  <bruno@clisp.org>
48798         acl: Fix a test failure on newer Solaris 10 with ZFS.
48799         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
48800         ENOSYS as no ACL.
48801         Reported by Jim Meyering.
48803 2011-09-06  Bruno Haible  <bruno@clisp.org>
48805         acl: Update for AIX >= 5.3 with NFS.
48806         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
48807         ENOSYS as no ACL.
48809         acl: Fix a test failure on AIX >= 5.3 with NFS.
48810         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
48811         as no ACL.
48813 2011-09-06  Bruno Haible  <bruno@clisp.org>
48815         acl: Fix a test failure on IRIX 6.5 with NFS.
48816         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
48817         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
48818         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
48819         * lib/copy-acl.c (qcopy_acl): Likewise.
48821 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48823         openat: port to AIX 7.1 with large files
48824         AIX 7.1 does a "#define openat open64at" if large files are in use,
48825         so we can't simply #undef openat.  Use the orig_openat trick (similar
48826         to orig_open in lib/open.c) to work around the problem.  Problem
48827         reported by Kevin Brott for GNU tar, in the thread containing
48828         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
48829         * lib/openat.c (__need_system_fcntl_h): Define first.
48830         Include <fcntl.h> and <sys/types.h> before undefining.
48831         (orig_openat) [HAVE_OPENAT]: New inline function.
48832         (openat) [HAVE_OPENAT]: Do not undef.
48833         (rpl_openat): Use orig_openat, not openat.
48835 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48836             Bruno Haible  <bruno@clisp.org>
48838         acl: Avoid errors on NonStop Kernel.
48839         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
48840         ENOTSUP errors.
48842 2011-09-05  Bruno Haible  <bruno@clisp.org>
48844         acl: Clean up Solaris code.
48845         * lib/acl-internal.h: Remove no-op #if.
48846         * lib/file-has-acl.c: Likewise.
48847         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
48848         * lib/copy-acl.c (qcopy_acl): Likewise.
48850 2011-09-05  Bruno Haible  <bruno@clisp.org>
48852         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
48853         binaries built on the original Solaris 10.
48854         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
48855         trivial.
48857 2011-09-05  Bruno Haible  <bruno@clisp.org>
48859         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48860         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
48861         10.
48862         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
48863         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
48864         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
48865         instead of acl_get, facl_get, acl_set, facl_set.
48867 2011-09-05  Bruno Haible  <bruno@clisp.org>
48869         copy-file: Try unit tests on more file systems.
48870         * tests/test-copy-file-1.sh: New file.
48871         * tests/test-copy-file-2.sh: New file.
48872         * modules/copy-file-tests (Files): Add them.
48873         (Makefile.am): Add them to TESTS.
48875         acl: Try unit tests on more file systems.
48876         * tests/test-file-has-acl-1.sh: New file.
48877         * tests/test-file-has-acl-2.sh: New file.
48878         * tests/test-set-mode-acl-1.sh: New file.
48879         * tests/test-set-mode-acl-2.sh: New file.
48880         * tests/test-copy-acl-1.sh: New file.
48881         * tests/test-copy-acl-2.sh: New file.
48882         * modules/acl-tests (Files): Add them.
48883         (Makefile.am): Add them to TESTS.
48885 2011-09-04  Bruno Haible  <bruno@clisp.org>
48887         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48888         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
48889         10.
48890         (OLD_ALLOW, OLD_DENY): New macros.
48891         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
48892         ACE_ACCESS_ALLOWED_ACE_TYPE.
48893         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
48894         ACE_ACCESS_DENIED_ACE_TYPE.
48895         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
48896         (NEW_ACE_EXECUTE): Fix value.
48897         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
48898         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
48899         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
48900         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
48901         NEW_ACE_SYNCHRONIZE): New macros.
48902         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
48903         instead of acl_fromtext, acl_set, facl_set.
48904         Fixes a coreutils/tests/cp/perm failure.
48906 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
48908         openat: test for fstatat (..., 0) bug
48909         Further testing with tar suggests that fstatat (..., 0)
48910         does not work in general, on AIX 7.1; see
48911         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
48912         So, give up entirely on AIX 7.1's fstatat, and fall back on our
48913         replacement fstatat (which is what older AIX releases were using
48914         anyway).
48915         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
48916         use is now changed to orig_fstatat.  This was probably the right
48917         thing to do anyway.
48918         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
48919         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
48920         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
48921         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
48922         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
48923         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
48924         if the bug is found.
48926         openat: test for fstatat (AT_FDCWD, ..., 0) bug
48927         This tests for another fstatat bug on AIX 7.1:
48928         fstatat (AT_FDCWD, ..., 0) does not work.  See
48929         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
48930         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
48931         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
48932         (rpl_fstatat): Adjust so that it works around either (or both)
48933         bugs if present.
48934         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
48936 2011-09-03  Karl Berry  <karl@gnu.org>
48938         * doc/regex.texi (Character Class Operators): Avoid literal ":"
48939         in index entries.
48941 2011-09-02  Bruno Haible  <bruno@clisp.org>
48943         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
48944         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
48945         values of AR, ARFLAGS, RANLIB.
48946         Reported by John W. Eaton <jwe@gnu.org> for Octave.
48948 2011-09-02  Bruno Haible  <bruno@clisp.org>
48950         Find 'ar' program that fits with --host argument.
48951         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
48953 2011-09-02  Bruno Haible  <bruno@clisp.org>
48955         tests: init.sh: Support any non-GNU diff.
48956         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
48957         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
48958         Solaris 8.
48960 2011-09-02  Bruno Haible  <bruno@clisp.org>
48962         tests: init.sh: work also with any non-GNU diff that supports -u
48963         * tests/init.sh: Relax check for diff -u support.
48964         Rather than checking for GNU diff via --version, simply check
48965         for support for -u itself.  Useful at least on OpenBSD 4.9,
48966         AIX 7.1, IRIX 6.5, and Solaris 10.
48968 2011-09-01  Bruno Haible  <bruno@clisp.org>
48970         strtoimax, strtoumax: Document problem on HP-UX 11.
48971         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
48972         * doc/posix-functions/strtoumax.texi: Likewise.
48974 2011-09-01  Bruno Haible  <bruno@clisp.org>
48976         strtoumax: Avoid link error on OSF/1 with DTK cc.
48977         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
48978         defined as a function.
48979         * modules/strtoumax (Depends-on, configure.ac): Test only whether
48980         strtoumax is defined, not whether it is declared.
48982 2011-09-01  Bruno Haible  <bruno@clisp.org>
48984         strtoimax: Avoid link error on OSF/1 with DTK cc.
48985         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
48986         defined as a function.
48987         * modules/strtoimax (Depends-on, configure.ac): Test only whether
48988         strtoimax is defined, not whether it is declared.
48990 2011-09-01  Bruno Haible  <bruno@clisp.org>
48992         imaxdiv: Avoid link error on OSF/1 with DTK cc.
48993         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
48994         as a function.
48995         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
48996         whether it is declared.
48998 2011-09-01  Bruno Haible  <bruno@clisp.org>
49000         imaxabs: Avoid link error on OSF/1 with DTK cc.
49001         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
49002         as a function.
49003         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
49004         whether it is declared.
49006 2011-09-01  Bruno Haible  <bruno@clisp.org>
49008         Tests for module 'strtoumax'.
49009         * modules/strtoumax-tests: New file.
49010         * tests/test-strtoumax.c: New file.
49012         Tests for module 'strtoimax'.
49013         * modules/strtoimax-tests: New file.
49014         * tests/test-strtoimax.c: New file.
49016         Tests for module 'imaxdiv'.
49017         * modules/imaxdiv-tests: New file.
49018         * tests/test-imaxdiv.c: New file.
49020         Tests for module 'imaxabs'.
49021         * modules/imaxabs-tests: New file.
49022         * tests/test-imaxabs.c: New file.
49024 2011-09-01  Bruno Haible  <bruno@clisp.org>
49026         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
49027         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
49028         pthread_create.
49030 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49032         openat: work around AIX 7.1 fstatat issue
49033         This should fix the problem that was not properly fixed
49034         in the previous change, dated 2011-08-30.
49035         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
49036         __need_system_stat_h defined.
49037         (orig_fstatat) [HAVE_FSTATAT]: New function.
49038         (rpl_fstatat): Go back to the old way of doing things,
49039         except call orig_fstatat instead of fstatat.
49040         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
49041         Remove unnecessary check whether fstatat fills in st_size etc.
49043 2011-09-01  Bruno Haible  <bruno@clisp.org>
49045         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
49046         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
49047         just include the system's header.
49049 2011-08-31  Jim Meyering  <meyering@redhat.com>
49051         tests: avoid spurious assertion failure in test-float.c on ppc64
49052         * tests/test-float.c (test_long_double): Comment out an assertion,
49053         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
49054         with gcc-4.4.4.
49056         maint: indent with spaces, not TABs
49057         I need to get in the habit of running gnulib's "make check".
49058         Both of these would have been caught.
49059         * m4/largefile.m4: Indent with spaces, not TABs.
49060         * lib/parse-datetime.y (iso_8601_time): Likewise.
49061         Spotted by Pádraig Brady.
49063         test-parse-datetime.c: accommodate a relatively strict gcc warning
49064         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
49065         to avoid a warning from gcc's -Werror=missing-declarations.
49066         Insert a few spaces-before-funcall-parenthesis.
49068 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
49070         parse-datetime: accept ISO 8601 date and time rep with "T" separator
49071         The parser now accepts ISO 8601 date-time strings with "T" as the
49072         separator.  It has long parsed dates like "2004-02-29 16:21:42"
49073         with a space between the date and time strings.  Now it also parses
49074         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
49075         variants like "2004-02-29T16:21:42.333-07:00"
49076         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
49077         of day representation using the 'T' separator character.
49078         * doc/parse-datetime.texi (General date syntax): replace use of
49079         deprecated --iso-8601 option with --rfc-3339 in example of date
49080         command output formats that can be parsed.
49081         * tests/test-parse-datetime.c (tm_diff): New function, taken from
49082         lib/parse-datetime.y.
49083         (gmt_offset): New function.
49084         (main): Add additional test cases to validate ISO8601 extended
49085         date and time of day parsing.
49087 2011-08-31  Bruno Haible  <bruno@clisp.org>
49089         freopen: Documentation.
49090         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
49091         name.
49092         Reported by Claudio Bley <claudio.bley@gmail.com>.
49094 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
49096         freopen: Don't crash if the filename argument is NULL.
49097         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
49098         NULL.
49100 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49102         openat: work around AIX 7.1 fstatat bug
49103         Problem reported by Kevin Brott for GNU tar, in the thread containing
49104         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
49105         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
49106         FSTATAT_ST_SIZE_ETC_BROKEN.
49107         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
49108         rpl_fstatat.
49109         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
49110         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
49111         AC_CHECK_FUNCS_ONCE for fstatat.
49112         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
49113         fchmodat, mkdirat, openat and unlinkat.
49115 2011-08-30  Bruno Haible  <bruno@clisp.org>
49117         Avoid endless recursions if config.h includes some header files.
49118         * lib/fopen.c (__need_FILE): Define already before including config.h.
49119         * lib/freopen.c (__need_FILE): Likewise.
49120         * lib/open.c (__need_system_fcntl_h): Likewise.
49121         * lib/stat.c (__need_system_sys_stat_h): Likewise.
49122         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
49123         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
49125 2011-08-25  Karl Berry  <karl@gnu.org>
49127         * config/srclist.txt (ylwrap): new try.
49128         * build-aux/ylwrap: new file.
49130 2011-08-23  Bruno Haible  <bruno@clisp.org>
49132         tmpdir: Use a good default directory on native Windows.
49133         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
49134         (P_tmpdir): Default to _P_tmpdir on native Windows.
49135         (path_search): On native Windows, try the value returned by GetTempPath
49136         before trying P_tmpdir.
49137         * modules/tmpdir (Depends-on): Add pathmax.
49138         Suggested by John Darrington <john@darrington.wattle.id.au>.
49140 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
49142         doc: fix typo in README-release
49143         * top/README-release: Capitalize first word of a sentence.
49145 2011-08-19  Jim Meyering  <meyering@redhat.com>
49147         fts: do not exhaust memory when processing million-entry directories
49148         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
49149         directory would require about 256*N bytes of memory.  Thus, it was
49150         easy to construct a directory too large to be processed by any of
49151         those tools.  With this change, fts' maximum memory utilization is
49152         now limited to around 30MB.
49153         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
49154         (fts_read): When we've processed the final entry (i.e., when
49155         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
49156         using the parent entry to read any remaining entries.  Dispatch
49157         depending on what fts_build returns:
49158         - NULL+stop, aka failure: stop
49159         - NULL otherwise: move up in the dir hierarchy
49160         - non-NULL: handle this new entry
49161         (fts_build): Declare and use new local, continue_readdir.
49162         Prepare to be called from fts_read, when the entries
49163         from a partially-read directory have just been exhausted.
49164         In that case, we'll skip the opendir and instead use the parent's
49165         fts_dirp and derive dir_fd from that.
49166         Finally, in the readdir loop, if we read max_entries entries,
49167         exit the loop ensuring *not* to call closedir.  This is required
49168         so that fts_dirp can be reused on a subsequent call.
49169         Prompted by Ben England's report of memory exhaustion in find
49170         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
49172         maint: fts: move decl of `dp' down into while loop; split a long line
49173         * lib/fts.c (fts_build): No semantic change.
49175         fts: add/use new struct member, fts_dirp
49176         We are about to use this to manage any directory with
49177         too many entries to read all of them into memory at once.
49178         To do that, we'll need to save the DIR* pointer in each
49179         affected FTSENT struct.
49180         * lib/fts_.h: Include <dirent.h>.
49181         (struct FTSENT) [fts_dirp]: New member.
49182         * lib/fts.c (closedir_and_clear): Define.
49183         Use it in place of closedir so that we are sure to
49184         clear the new fts_dirp member when done with it.
49185         (fts_alloc): Initialize the new member.
49186         (fts_lfree): Free, if needed.
49188         maint: fts: give __opendir2 a new parameter and rename
49189         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
49190         than surreptitiously using sole caller's "dir_fd".
49191         (fts_opendir): Rename from __opendir2.
49193         maint: fts.c: remove __opendir2's now-unused parameter, oflag
49194         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
49196         maint: fts.c: correct off-by-one indentation
49197         * lib/fts.c (fts_build): Correct indentation, change style
49198         of a couple of block comments, and bracing style.
49200         maint: fts.c: move __opendir2 #define "up" out of function body
49201         * lib/fts.c (__opendir2): Move "up".  No semantic change.
49203         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
49204         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
49205         out for a long time and besides was useful only on BSD systems.
49207 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49209         regex: port to Stratus OpenVOS
49210         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
49211         define to empty, rather than attempting nonportable optimizations.
49212         Problem reported by Paul Green in:
49213         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
49214         and fix suggested by Eric Blake in:
49215         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
49217 2011-08-17  Eric Blake  <eblake@redhat.com>
49219         getcwd: fix test failures on mingw
49220         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
49221         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
49222         test if long directory cannot be created, and allow mingw errno.
49224         getcwd-lgpl: fix m4 to match relaxed test for BSD
49225         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
49226         (gl_FUNC_GETCWD_SIGNATURE): New macro.
49227         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
49228         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
49229         signature problem.
49231         getcwd: fix compilation on mingw64
49232         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
49233         getcwd.
49234         Reported by Marc-André Lureau.
49236         pipe2: silence compiler warning
49237         * lib/pipe2.c (pipe2): Hide label if it is not used.
49239 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
49241         relocatable-prog: fix link error
49242         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
49243         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
49244         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
49245         into modules/relocatable-lib without noticing that
49246         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
49247         also needs to build relocatable.c.
49249 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
49251         getaddrinfo: fix sh typo in gai_strerrorA decl checking
49252         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
49253         shell code: it contained a 'break' that was not in a loop.
49254         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
49255         via a shell-language loop; this may have been true in old Autoconf
49256         versions, but it's not true in Autoconf 2.68.  I found this bug
49257         when testing coreutils git on Solaris 8, whose shell complains
49258         about the syntax error.
49260 2011-08-12  Simon Josefsson  <simon@josefsson.org>
49262         * lib/base64.c: Fix comment to reference RFC 4648.
49263         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
49264         <gvtulder@gmail.com>.
49266 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49268         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
49270         po/Makefile.in.in: fix make -q problem
49271         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
49272         rule, since there's no file named 'check-macro-version' and its
49273         use as a file breaks make -q.
49274         (all): Don't depend on check-macro-version.
49275         (CHECK_MACRO_VERSION): New macro.
49276         (stamp-po): Use it.
49278         configmake: fix make -q problem
49279         * modules/configmake (configmake.h): Update configmake.h's time stamp
49280         even if the file does not change.  Otherwise, 'make -q' fails.
49281         Problem reported by Simon Josefsson in
49282         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
49284 2011-08-11  Jim Meyering  <meyering@redhat.com>
49286         git-version-gen: correct the advice in a comment
49287         * build-aux/git-version-gen: Correct comment.
49288         Don't recommend to list .tarball-version in .gitignore.
49290 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49292         base64: fix off-by-one buffer size bug
49293         Problem and (trivial) fix reported by Gijs van Tulder in
49294         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
49295         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
49296         * tests/test-base64.c (main): Catch the bug.
49298 2011-08-10  Eric Blake  <eblake@redhat.com>
49300         closein: correct comments
49301         * lib/closein.c (close_stdin): Improve comments.
49303 2011-08-09  Bruno Haible  <bruno@clisp.org>
49305         More tests for 'fseeko'.
49306         * tests/test-fseeko3.c: New file, from Eric Blake.
49307         * tests/test-fseeko3.sh: New file.
49308         * modules/fseeko-tests (Files): Add them.
49309         (TESTS): Add test-fseeko3.sh.
49310         (check_PROGRAMS): Add test-fseeko3.
49312 2011-08-09  Eric Blake  <eblake@redhat.com>
49314         fseeko: remove unneeded hack
49315         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
49317         fseeko: fix bug on glibc
49318         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
49319         Reported by John W. Eaton.
49321 2011-08-08  Bruno Haible  <bruno@clisp.org>
49323         unictype/base: Fix interoperability with preinstalled libunistring.
49324         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
49325         Reported by Simon Josefsson.
49327 2011-08-08  Bruno Haible  <bruno@clisp.org>
49329         iswblank: Detect declaration correctly.
49330         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
49331         AC_CHECK_DECLS invocation.
49333 2011-08-08  Bruno Haible  <bruno@clisp.org>
49335         tcgetsid: Detect declaration correctly.
49336         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
49337         AC_CHECK_DECLS invocation.
49338         Reported by Simon Josefsson.
49340 2011-08-08  Eric Blake  <eblake@redhat.com>
49342         largefile: fix typo that regressed large file support
49343         * modules/largefile (configure.ac-early): Fix section name.
49345 2011-08-06  Karl Berry  <karl@gnu.org>
49347         * MODULES.html.sh (func_all_files): _Noreturn is no longer
49348         a separate module.
49350 2011-08-05  Simon Josefsson  <simon@josefsson.org>
49352         openat: Fix warnings and commens when building unlinkat.c on Hurd.
49353         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
49354         get prototype for free.
49356 2011-08-04  Bruno Haible  <bruno@clisp.org>
49358         Tests for module 'pathmax'.
49359         * modules/pathmax-tests: New file.
49360         * tests/test-pathmax.c: New file.
49362         canonicalize-lgpl: Support larger filenames on the Hurd.
49363         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
49364         Reported by Paul Eggert.
49366         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
49367         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
49368         * lib/chdir-long.h: Include pathmax.h.
49369         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
49370         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
49371         (PATH_MAX): Remove code that is done by pathmax.h.
49372         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
49373         * lib/tmpfile.c: Add a comment.
49374         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
49375         * modules/chdir-long (Depends-on): Add pathmax.
49376         * modules/getcwd (Depends-on): Add pathmax.
49377         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
49378         is not defined.
49379         * doc/posix-headers/limits.texi: Mention the pathmax module.
49380         * NEWS: Mention the change.
49382 2011-08-02  Bruno Haible  <bruno@clisp.org>
49384         pthread_sigmask: Actually use results of gl_THREADLIB.
49385         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
49386         gl_THREADLIB, not gl_[]THREADLIB.
49387         Reported by Eric Blake.
49389 2011-08-02  Jim Meyering  <meyering@redhat.com>
49391         maint.mk: relax the default _gl_TS_function_match regexp
49392         * top/maint.mk (_gl_TS_function_match): Don't require at least one
49393         space between function name and "(" in an "extern" declaration.
49394         That would fail to match a decl with no space there: extern void foo();
49396 2011-07-31  Iain Nicol  <iain@thenicols.net>
49398         git-version-gen: document that EXTRA_DIST must include .version
49399         * build-aux/git-version-gen: In the how-to-use comment, document
49400         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
49401         will fail when run from an unpacked distribution tarball.
49403 2011-08-01  Bruno Haible  <bruno@clisp.org>
49405         wctype-h: Fix last change.
49406         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
49407         REPLACE_TOWLOWER to 0.
49408         Reported by Sam Steingold <sds@gnu.org>.
49410 2011-07-31  Bruno Haible  <bruno@clisp.org>
49412         frexpl: Update autoconf test.
49413         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
49414         according to changes of 2011-06-20.
49416 2011-07-31  Bruno Haible  <bruno@clisp.org>
49418         sys_utsname: Add support for Minix.
49419         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
49420         <sys/utsname.h>.
49421         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49422         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
49424 2011-07-31  Bruno Haible  <bruno@clisp.org>
49426         strings: Add support for Minix.
49427         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
49428         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
49429         * doc/posix-headers/strings.texi: Document the Minix problem.
49431 2011-07-31  Bruno Haible  <bruno@clisp.org>
49433         wctype-h: Add support for Minix.
49434         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
49435         REPLACE_TOWLOWER.
49436         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
49437         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
49438         REPLACE_ISWCNTRL.
49440 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
49442         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
49443         This is a performance improvement for 64-bit hosts: it causes the
49444         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
49446 2011-07-31  Bruno Haible  <bruno@clisp.org>
49448         stdioext: Add support for Minix.
49449         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
49450         * lib/fpurge.c (fpurge): Likewise.
49451         * lib/freadahead.c (freadahead): Likewise.
49452         * lib/freadable.c (freadable): Likewise.
49453         * lib/freading.c (freading): Likewise.
49454         * lib/freadptr.c (freadptr): Likewise.
49455         * lib/freadseek.c (freadptrinc): Likewise.
49456         * lib/fseeko.c (rpl_fseeko): Likewise.
49457         * lib/fseterr.c (fseterr): Likewise.
49458         * lib/fwritable.c (fwritable): Likewise.
49459         * lib/fwriting.c (fwriting): Likewise.
49460         * lib/fflush.c (clear_ungetc_buffer): Update comment.
49461         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
49463 2011-07-31  Bruno Haible  <bruno@clisp.org>
49465         errno: Port to Minix.
49466         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
49467         ECONNABORTED are defined.
49468         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
49469         GNULIB_defined_ECONNABORTED): New macros.
49470         * lib/strerror-override.h (strerror_override): Test also
49471         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
49472         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
49473         ECONNABORTED.
49474         * doc/posix-headers/errno.texi: Mention the Minix problem.
49476 2011-07-31  Bruno Haible  <bruno@clisp.org>
49478         Work around declaration collisions on Minix.
49479         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
49480         defined, set REPLACE_MBSINIT.
49481         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
49482         defined, set REPLACE_MBRTOWC.
49483         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
49484         set REPLACE_MBRLEN.
49485         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
49486         defined, set REPLACE_MBSRTOWCS.
49487         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
49488         defined, set REPLACE_WCRTOMB.
49489         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
49490         defined, set REPLACE_WCSRTOMBS.
49492 2011-07-31  Bruno Haible  <bruno@clisp.org>
49494         Add support for Minix with ACK compiler.
49495         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
49496         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
49497         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
49499 2011-07-31  Bruno Haible  <bruno@clisp.org>
49501         Documentation about Minix.
49502         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
49503         * doc/glibc-headers/*.texi: Likewise.
49504         * doc/posix-functions/*.texi: Likewise.
49505         * doc/glibc-functions/*.texi: Likewise.
49507 2011-07-31  Bruno Haible  <bruno@clisp.org>
49509         snippet/warn-on-use: Fix indentation.
49510         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
49512 2011-07-25  Jim Meyering  <meyering@redhat.com>
49514         tests: test-update-copyright.sh: remove unnecessary "rm" commands
49515         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
49516         commands.
49518 2011-07-27  Jim Meyering  <meyering@redhat.com>
49520         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
49521         * top/maint.mk (gl_extract_significant_defines_): Now that
49522         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
49523         gnulib/lib/signal.in.h, and now that we recommend to
49524         define-if-undefined those two symbols in application code,
49525         we must filter them out of the "significant" list.
49526         This avoids a "make syntax-check" failure in coreutils.
49528 2011-07-26  Eric Blake  <eblake@redhat.com>
49530         warnings: add comments about previous patch
49531         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
49532         * m4/include_next.m4: Likewise.
49533         * m4/warn-on-use.m4: Likewise.
49534         * m4/warnings.m4: Likewise, and simplify use.
49535         Suggested by Stefano Lattarini.
49537         include-next, warnings: support older autoconf
49538         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
49539         AS_VAR_PUSHDEF in a way that works with older autoconf.
49540         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
49541         Reported by Daniel P. Berrange.
49543 2011-07-25  Bruno Haible  <bruno@clisp.org>
49545         fseek, ftell: Fix doc.
49546         * doc/posix-functions/fseek.texi: Reword statement about
49547         AC_SYS_LARGEFILE.
49548         * doc/posix-functions/ftell.texi: Likewise.
49550 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49551             Bruno Haible  <bruno@clisp.org>
49553         Add dependencies to the 'largefile' module.
49554         * modules/fopen (Depends-on): Add 'largefile'.
49555         * modules/freopen (Depends-on): Likewise.
49556         * modules/fseeko (Depends-on): Likewise.
49557         * modules/ftello (Depends-on): Likewise.
49558         * modules/glob (Depends-on): Likewise.
49559         * modules/lseek (Depends-on): Likewise.
49560         * modules/lstat (Depends-on): Likewise.
49561         * modules/mkostemp (Depends-on): Likewise.
49562         * modules/mkostemps (Depends-on): Likewise.
49563         * modules/mkstemp (Depends-on): Likewise.
49564         * modules/mkstemps (Depends-on): Likewise.
49565         * modules/open (Depends-on): Likewise.
49566         * modules/openat (Depends-on): Likewise.
49567         * modules/pread (Depends-on): Likewise.
49568         * modules/pwrite (Depends-on): Likewise.
49569         * modules/scandir (Depends-on): Likewise.
49570         * modules/stat (Depends-on): Likewise.
49571         * modules/tmpfile (Depends-on): Likewise.
49572         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
49573         since the containing module now depends on the largefile module.
49574         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
49575         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
49576         off_t is fixed by gnulib.
49577         * doc/posix-functions/freopen.texi: Likewise.
49578         * doc/posix-functions/fseeko.texi: Likewise.
49579         * doc/posix-functions/fstatat.texi: Likewise.
49580         * doc/posix-functions/ftello.texi: Likewise.
49581         * doc/posix-functions/glob.texi: Likewise.
49582         * doc/posix-functions/lseek.texi: Likewise.
49583         * doc/posix-functions/lstat.texi: Likewise.
49584         * doc/posix-functions/mkstemp.texi: Likewise.
49585         * doc/posix-functions/open.texi: Likewise.
49586         * doc/posix-functions/openat.texi: Likewise.
49587         * doc/posix-functions/pread.texi: Likewise.
49588         * doc/posix-functions/pwrite.texi: Likewise.
49589         * doc/posix-functions/scandir.texi: Likewise.
49590         * doc/posix-functions/stat.texi: Likewise.
49591         * doc/posix-functions/tmpfile.texi: Likewise.
49592         * doc/glibc-functions/mkostemp.texi: Likewise.
49593         * doc/glibc-functions/mkostemps.texi: Likewise.
49594         * doc/glibc-functions/mkstemps.texi: Likewise.
49596 2011-07-25  Bruno Haible  <bruno@clisp.org>
49598         fcntl: Move AC_LIBOBJ invocation to module description.
49599         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
49600         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
49602         fcntl: Remove call-in from fchdir.m4.
49603         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
49604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
49606         dup3: Remove potential call-in from fchdir.m4.
49607         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
49608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
49610         dup2: Move AC_LIBOBJ invocation to module description.
49611         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
49612         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
49613         Don't invoke AC_LIBOBJ.
49614         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
49616         dup2: Remove call-in from fchdir.m4.
49617         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
49618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
49620         fclose: Move AC_LIBOBJ invocation to module description.
49621         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
49622         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
49623         to 1.
49624         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
49626         fclose: Remove call-in from close.m4.
49627         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
49628         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
49630         close: Move AC_LIBOBJ invocation to module description.
49631         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
49632         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
49633         1.
49634         * modules/close (configure.ac): Invoke AC_LIBOBJ.
49636         close: Remove call-in from fchdir.m4.
49637         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
49638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
49640         open: Move AC_LIBOBJ invocation to module description.
49641         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
49642         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
49643         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
49645         open: Remove call-in from fchdir.m4.
49646         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
49647         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
49649         fchdir: Start to remove gl_REPLACE_* idiom.
49650         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
49651         (gl_FUNC_FCHDIR): Invoke it.
49653 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49655         * lib/ftell.c (ftell): Comment out cast.
49657         close: use gl_REPLACE_FCLOSE only if defined
49658         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
49659         is defined.  The close module doesn't depend on the fclose module
49660         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
49661         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
49662         I reproduced the problem with "./gnulib-tool --test close sys_socket".
49664 2011-07-24  Jim Meyering  <meyering@redhat.com>
49666         test-select.h: avoid warning when using gcc's -Wmissing-declarations
49667         * tests/test-select.h (test_function): Declare as "static".
49669 2011-07-24  Bruno Haible  <bruno@clisp.org>
49671         doc: Mention the effects of AC_SYS_LARGEFILE.
49672         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
49673         on this function.
49674         * doc/posix-functions/aio_error.texi: Likewise.
49675         * doc/posix-functions/aio_fsync.texi: Likewise.
49676         * doc/posix-functions/aio_read.texi: Likewise.
49677         * doc/posix-functions/aio_return.texi: Likewise.
49678         * doc/posix-functions/aio_suspend.texi: Likewise.
49679         * doc/posix-functions/aio_write.texi: Likewise.
49680         * doc/posix-functions/fgetpos.texi: Likewise.
49681         * doc/posix-functions/fopen.texi: Likewise.
49682         * doc/posix-functions/freopen.texi: Likewise.
49683         * doc/posix-functions/fsetpos.texi: Likewise.
49684         * doc/posix-functions/fstatvfs.texi: Likewise.
49685         * doc/posix-functions/ftruncate.texi: Likewise.
49686         * doc/posix-functions/ftw.texi: Likewise.
49687         * doc/posix-functions/getrlimit.texi: Likewise.
49688         * doc/posix-functions/glob.texi: Likewise.
49689         * doc/posix-functions/lio_listio.texi: Likewise.
49690         * doc/posix-functions/lockf.texi: Likewise.
49691         * doc/posix-functions/mkstemp.texi: Likewise.
49692         * doc/posix-functions/mmap.texi: Likewise.
49693         * doc/posix-functions/nftw.texi: Likewise.
49694         * doc/posix-functions/openat.texi: Likewise.
49695         * doc/posix-functions/opendir.texi: Likewise.
49696         * doc/posix-functions/posix_fadvise.texi: Likewise.
49697         * doc/posix-functions/posix_fallocate.texi: Likewise.
49698         * doc/posix-functions/pread.texi: Likewise.
49699         * doc/posix-functions/pwrite.texi: Likewise.
49700         * doc/posix-functions/readdir.texi: Likewise.
49701         * doc/posix-functions/readdir_r.texi: Likewise.
49702         * doc/posix-functions/rewinddir.texi: Likewise.
49703         * doc/posix-functions/scandir.texi: Likewise.
49704         * doc/posix-functions/seekdir.texi: Likewise.
49705         * doc/posix-functions/setrlimit.texi: Likewise.
49706         * doc/posix-functions/statvfs.texi: Likewise.
49707         * doc/posix-functions/telldir.texi: Likewise.
49708         * doc/posix-functions/tmpfile.texi: Likewise.
49709         * doc/posix-functions/truncate.texi: Likewise.
49710         * doc/glibc-functions/fallocate.texi: Likewise.
49711         * doc/glibc-functions/fstatfs.texi: Likewise.
49712         * doc/glibc-functions/fts_children.texi: Likewise.
49713         * doc/glibc-functions/fts_read.texi: Likewise.
49714         * doc/glibc-functions/getdirentries.texi: Likewise.
49715         * doc/glibc-functions/mkostemp.texi: Likewise.
49716         * doc/glibc-functions/mkostemps.texi: Likewise.
49717         * doc/glibc-functions/mkstemps.texi: Likewise.
49718         * doc/glibc-functions/preadv.texi: Likewise.
49719         * doc/glibc-functions/pwritev.texi: Likewise.
49720         * doc/glibc-functions/sendfile.texi: Likewise.
49721         * doc/glibc-functions/statfs.texi: Likewise.
49723 2011-07-24  Bruno Haible  <bruno@clisp.org>
49725         doc: Fix typo.
49726         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
49728 2011-07-24  Bruno Haible  <bruno@clisp.org>
49730         doc: Mention fsusage.
49731         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
49733 2011-07-24  Bruno Haible  <bruno@clisp.org>
49735         doc: Mention new glibc headers and functions.
49736         * doc/glibc-headers/gshadow.texi: New file.
49737         * doc/glibc-functions/endsgent.texi: New file.
49738         * doc/glibc-functions/fgetsgent.texi: New file.
49739         * doc/glibc-functions/fgetsgent_r.texi: New file.
49740         * doc/glibc-functions/getsgent.texi: New file.
49741         * doc/glibc-functions/getsgent_r.texi: New file.
49742         * doc/glibc-functions/getsgnam.texi: New file.
49743         * doc/glibc-functions/getsgnam_r.texi: New file.
49744         * doc/glibc-functions/putsgent.texi: New file.
49745         * doc/glibc-functions/setsgent.texi: New file.
49746         * doc/glibc-functions/sgetsgent.texi: New file.
49747         * doc/glibc-functions/sgetsgent_r.texi: New file.
49748         * doc/glibc-functions/malloc_info.texi: New file.
49749         * doc/glibc-functions/preadv.texi: New file.
49750         * doc/glibc-functions/pwritev.texi: New file.
49751         * doc/glibc-functions/register_printf_modifier.texi: New file.
49752         * doc/glibc-functions/register_printf_specifier.texi: New file.
49753         * doc/glibc-functions/register_printf_type.texi: New file.
49754         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
49755         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
49756         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
49757         * doc/glibc-functions/pthread_getname_np.texi: New file.
49758         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
49759         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
49760         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
49761         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
49762         * doc/glibc-functions/pthread_setname_np.texi: New file.
49763         * doc/glibc-functions/pthread_sigqueue.texi: New file.
49764         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
49765         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
49766         * doc/glibc-functions/qsort_r.texi: New file.
49767         * doc/glibc-functions/quick_exit.texi: New file.
49768         * doc/glibc-functions/syncfs.texi: New file.
49769         * doc/gnulib.texi: Include them.
49770         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
49771         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
49772         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
49773         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
49774         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
49775         * doc/glibc-functions/execvpe.texi: Likewise.
49777 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49779         ftell: don't include <unistd.h>
49780         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
49781         guaranteed to define off_t, and the ftell module depends on the
49782         stdio module.
49784         ftell: do not assume wraparound signed arithmetic
49785         * lib/ftell.c: Include <limits.h>.
49786         (ftell): Don't assume wraparound signed arithmetic.
49788 2011-07-24  Bruno Haible  <bruno@clisp.org>
49790         close: No longer depend on module 'fclose'.
49791         * modules/close (Depends-on): Remove fclose.
49792         * NEWS: Mention the change.
49793         Suggested by Sam Steingold <sds@gnu.org>.
49795 2011-07-24  Bruno Haible  <bruno@clisp.org>
49797         fsusage: Enable large volume support on AIX >= 5.2.
49798         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
49799         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
49800         instead of STAT_STATVFS.
49801         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
49803         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
49804         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
49805         f_blocks field only on MacOS X.
49807         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
49808         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
49809         * modules/fsusage (Depends-on): Add largefile.
49811 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49813         * README: Modernize discussion of signed integers.
49814         Assuming overflow wraparound is no longer safe.
49815         Mention ones' complement and signed magnitude.
49817 2011-07-22  Bruno Haible  <bruno@clisp.org>
49819         select tests, pselect tests: Refactor.
49820         * tests/test-select.h: New file, extracted from tests/test-select.c.
49821         (select_fn): New type.
49822         (test, do_select, do_select_nowait, do_select_wait, test_tty,
49823         test_connect_first, test_accept_first, test_pair, test_socket_pair,
49824         test_pipe): Add my_select argument.
49825         (test_function): Renamed from main. Add my_select argument.
49826         * tests/test-select.c: Move most code to tests/test-select.h. Include
49827         test-select.h.
49828         * modules/select-tests (Files): Add tests/test-select.h.
49829         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
49830         (my_select, main): New functions.
49831         * modules/pselect-tests (Files): Add tests/test-select.h,
49832         tests/macros.h, tests/signature.h.
49833         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
49834         (configure.ac): Check for <sys/wait.h>.
49836 2011-07-22  Bruno Haible  <bruno@clisp.org>
49838         sys_select tests: Check the signature of FD_*.
49839         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
49840         signature tests from here...
49841         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
49842         here.
49843         * modules/sys_select-tests (Files): Add tests/signature.h.
49845 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49847         largefile: new module, replacing large-inode
49848         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
49849         * MODULES.html.sh: Add largefile, remove large-inode.
49850         * modules/largefile, m4/largefile.m4: New files.
49851         * modules/large-inode, m4/large-inode.m4: Remove.
49853         fsusage: port to MacOS X 10.7 with 4 TiB file systems
49854         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
49855         implementations that use only 32 bits to count blocks.
49856         On typical hosts with 1024-byte blocks, this fails with file
49857         systems as small as 4 TiB.  Problem reported by Herb Wartens
49858         <http://debbugs.gnu.org/9140> and this should also fix a similar
49859         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
49861         large-inode: New module
49862         * MODULES.html.sh: Add it.
49863         * modules/large-inode, m4/large-inode.m4: New files.
49865         extensions: Enable extensions on MacOS X 10.5 and later.
49866         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
49868 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
49870         file-has-acl: use acl_extended_file_nofollow if available
49871         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
49872         (acl_extended_file): New macro.
49873         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
49874         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
49876 2011-07-21  Bruno Haible  <bruno@clisp.org>
49878         Declare system functions in a way that works with C++.
49879         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
49880         declare fdopendir as extern "C".
49881         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
49882         declare frexpl as extern "C".
49883         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
49884         declare gai_strerror as extern "C".
49885         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
49886         programs, declare gai_strerror as extern "C".
49887         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
49888         declare getlogin_r as extern "C".
49889         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
49890         as extern "C".
49891         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
49892         declare ldexpl as extern "C".
49893         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
49894         as extern "C".
49895         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
49896         program, declare getmntinfo as extern "C".
49897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
49898         stpncpy as extern "C".
49899         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
49900         program, declare __xpg_strerror_r as extern "C".
49901         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
49902         strndup as extern "C".
49903         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
49904         declare memset and bzero as extern "C".
49905         Reported by Sam Steingold <sds@gnu.org>.
49907 2011-07-12  Jim Meyering  <meyering@redhat.com>
49909         maint.mk: prohibit inclusion of "verify.h" without use
49910         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
49912 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49914         timer-time: A new module to check for timer_settime()
49915         * m4/timer_time.m4: Check for the posix function.
49916         * modules/timer-time: Add the new module.
49917         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
49918         Mention it.
49920 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
49921             Bruno Haible  <bruno@clisp.org>
49923         pthread_sigmask: assume POSIX threads if --avoid=threadlib
49924         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
49925         not defined, assume POSIX threads and look for pthread_sigmask in
49926         $LIBS, without changing $CPPFLAGS.
49928 2011-07-19  Bruno Haible  <bruno@clisp.org>
49930         strstr: Update cross-compilation guess.
49931         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
49932         CPUs, guess no, in view of glibc
49933         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
49934         Suggested by Eric Blake. Reported by Reuben Thomas.
49936 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49938         getopt-gnu: suppress core dumps from detection code
49939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
49940         to suppress core dumps that may well occur on glibc systems.
49941         * modules/getopt-gnu: Depend on nocrash.
49943 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49945         pthread_sigmask: ensure usleep is declared
49946         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
49947         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
49949 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49951         doc: Document NonStop portability issues.
49952         * doc/posix-functions/sigaction.texi (sigaction):
49953         * doc/posix-headers/signal.texi (signal.h):
49954         Document NonStop.  See Joachim Schmitz in
49955         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
49957 2011-07-15  Bruno Haible  <bruno@clisp.org>
49959         ffsl, ffsll: Avoid unportable behaviour.
49960         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
49962 2011-07-15  Bruno Haible  <bruno@clisp.org>
49964         ffs: More tests.
49965         * tests/test-ffs.c (NBITS): New macro.
49966         (main): Add more tests.
49967         * tests/test-ffsl.c (NBITS): New macro.
49968         (main): Add more tests.
49969         * tests/test-ffsll.c (NBITS): New macro.
49970         (main): Add more tests.
49972 2011-07-15  Eric Blake  <eblake@redhat.com>
49974         ffsl, ffsll: new modules
49975         * modules/ffsl: New file.
49976         * modules/ffsll: Likewise.
49977         * m4/ffsl.m4: Likewise.
49978         * m4/ffsll.m4: Likewise.
49979         * lib/ffsl.c: Likewise.
49980         * lib/ffsl.h: Likewise.
49981         * lib/ffsll.c: Likewise.
49982         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
49983         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
49984         * modules/string (Makefile.am): Substitute witnesses.
49985         * lib/strings.in.h (ffsl, ffsll): Declare.
49986         * modules/ffsl-tests: New test file.
49987         * modules/ffsll-tests: Likewise.
49988         * tests/test-ffsl.c: Likewise.
49989         * tests/test-ffsll.c: Likewise.
49990         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49991         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
49992         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
49994         ffs: fix m4 prerequisite
49995         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
49997         ffs: avoid undefined behavior
49998         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
49999         * tests/test-ffs.c (naive, main): Avoid signed shifts.
50000         Reported by Bruno Haible.
50002 2011-07-12  Bruno Haible  <bruno@clisp.org>
50004         pthread_sigmask: Rely on module 'threadlib'.
50005         * modules/pthread_sigmask (Depends-on): Add threadlib.
50006         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
50007         is defined.
50009 2011-07-12  Bruno Haible  <bruno@clisp.org>
50011         regex: Depend on module 'strcase'.
50012         * modules/regex (Depends-on): Add strcase, for strcasecmp().
50014 2011-07-12  Jim Meyering  <meyering@redhat.com>
50016         warn-on-use: fix typo in file name
50017         * modules/snippet/warn-on-use (Files): Correct file name:
50018         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
50020 2011-07-12  Bruno Haible  <bruno@clisp.org>
50022         strings: Document module.
50023         * doc/posix-headers/strings.texi: Mention module 'strings'.
50025 2011-07-12  Bruno Haible  <bruno@clisp.org>
50027         Rename module '_Noreturn' to 'snippet/_Noreturn'.
50028         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
50029         (Files, Makefile.am): Update.
50030         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
50031         * modules/stdlib (Depends-on): Update.
50033 2011-07-12  Bruno Haible  <bruno@clisp.org>
50035         * NEWS: Mention the changes.
50037         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
50038         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
50039         (Files, Makefile.am): Update.
50040         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
50041         * modules/arpa_inet (Depends-on): Update.
50042         * modules/ctype (Depends-on): Update.
50043         * modules/dirent (Depends-on): Update.
50044         * modules/fcntl-h (Depends-on): Update.
50045         * modules/glob (Depends-on): Update.
50046         * modules/iconv-h (Depends-on): Update.
50047         * modules/inttypes-incomplete (Depends-on): Update.
50048         * modules/langinfo (Depends-on): Update.
50049         * modules/locale (Depends-on): Update.
50050         * modules/math (Depends-on): Update.
50051         * modules/netdb (Depends-on): Update.
50052         * modules/poll-h (Depends-on): Update.
50053         * modules/pty (Depends-on): Update.
50054         * modules/search (Depends-on): Update.
50055         * modules/signal (Depends-on): Update.
50056         * modules/spawn (Depends-on): Update.
50057         * modules/stdio (Depends-on): Update.
50058         * modules/stdlib (Depends-on): Update.
50059         * modules/string (Depends-on): Update.
50060         * modules/strings (Depends-on): Update.
50061         * modules/sys_file (Depends-on): Update.
50062         * modules/sys_ioctl (Depends-on): Update.
50063         * modules/sys_select (Depends-on): Update.
50064         * modules/sys_socket (Depends-on): Update.
50065         * modules/sys_stat (Depends-on): Update.
50066         * modules/sys_time (Depends-on): Update.
50067         * modules/sys_times (Depends-on): Update.
50068         * modules/sys_utsname (Depends-on): Update.
50069         * modules/sys_wait (Depends-on): Update.
50070         * modules/termios (Depends-on): Update.
50071         * modules/time (Depends-on): Update.
50072         * modules/unistd (Depends-on): Update.
50073         * modules/wchar (Depends-on): Update.
50074         * modules/wctype-h (Depends-on): Update.
50075         * MODULES.html.sh (Support for building libraries and executables):
50076         Update.
50078         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
50079         * modules/snippet/unused-parameter: Renamed from
50080         modules/unused-parameter.
50081         (Files, Makefile.am): Update.
50082         * build-aux/snippet/unused-parameter.h: Renamed from
50083         build-aux/unused-parameter.h.
50084         * modules/selinux-h (Depends-on): Update.
50085         * modules/unistr/base (Depends-on): Update.
50086         * MODULES.html.sh (Core language properties): Update.
50088         Rename module 'link-warning' to 'snippet/link-warning'.
50089         * modules/snippet/link-warning: Renamed from modules/link-warning.
50090         (Files, Makefile.am): Update.
50091         * build-aux/snippet/link-warning.h: Renamed from
50092         build-aux/link-warning.h.
50093         * MODULES.html.sh (Support for building libraries and executables):
50094         Update.
50096         Rename module 'c++defs' to 'snippet/c++defs'.
50097         * modules/snippet/c++defs: Renamed from modules/c++defs.
50098         (Files, Makefile.am): Update.
50099         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
50100         * modules/arpa_inet (Depends-on): Update.
50101         * modules/ctype (Depends-on): Update.
50102         * modules/dirent (Depends-on): Update.
50103         * modules/fcntl-h (Depends-on): Update.
50104         * modules/glob (Depends-on): Update.
50105         * modules/iconv-h (Depends-on): Update.
50106         * modules/langinfo (Depends-on): Update.
50107         * modules/locale (Depends-on): Update.
50108         * modules/math (Depends-on): Update.
50109         * modules/netdb (Depends-on): Update.
50110         * modules/poll-h (Depends-on): Update.
50111         * modules/pty (Depends-on): Update.
50112         * modules/search (Depends-on): Update.
50113         * modules/signal (Depends-on): Update.
50114         * modules/spawn (Depends-on): Update.
50115         * modules/stdio (Depends-on): Update.
50116         * modules/stdlib (Depends-on): Update.
50117         * modules/string (Depends-on): Update.
50118         * modules/strings (Depends-on): Update.
50119         * modules/sys_ioctl (Depends-on): Update.
50120         * modules/sys_select (Depends-on): Update.
50121         * modules/sys_socket (Depends-on): Update.
50122         * modules/sys_stat (Depends-on): Update.
50123         * modules/sys_time (Depends-on): Update.
50124         * modules/sys_wait (Depends-on): Update.
50125         * modules/termios (Depends-on): Update.
50126         * modules/time (Depends-on): Update.
50127         * modules/unistd (Depends-on): Update.
50128         * modules/wchar (Depends-on): Update.
50129         * modules/wctype-h (Depends-on): Update.
50131         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
50132         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
50133         (Files, Makefile.am): Update.
50134         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
50135         * modules/argv-iter (Depends-on): Update.
50136         * modules/arpa_inet (Depends-on): Update.
50137         * modules/dirent (Depends-on): Update.
50138         * modules/fcntl-h (Depends-on): Update.
50139         * modules/fnmatch (Depends-on): Update.
50140         * modules/getopt-posix (Depends-on): Update.
50141         * modules/glob (Depends-on): Update.
50142         * modules/iconv-h (Depends-on): Update.
50143         * modules/inttypes-incomplete (Depends-on): Update.
50144         * modules/locale (Depends-on): Update.
50145         * modules/math (Depends-on): Update.
50146         * modules/netdb (Depends-on): Update.
50147         * modules/search (Depends-on): Update.
50148         * modules/signal (Depends-on): Update.
50149         * modules/spawn (Depends-on): Update.
50150         * modules/stdio (Depends-on): Update.
50151         * modules/stdlib (Depends-on): Update.
50152         * modules/string (Depends-on): Update.
50153         * modules/strings (Depends-on): Update.
50154         * modules/sys_socket (Depends-on): Update.
50155         * modules/sys_stat (Depends-on): Update.
50156         * modules/sys_time (Depends-on): Update.
50157         * modules/sys_times (Depends-on): Update.
50158         * modules/sys_utsname (Depends-on): Update.
50159         * modules/time (Depends-on): Update.
50160         * modules/unistd (Depends-on): Update.
50161         * modules/wchar (Depends-on): Update.
50162         * MODULES.html.sh (Support for building libraries and executables):
50163         Update.
50165 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50167         Improvements on _Noreturn and related modules.
50169         modules/_Exit-tests: test _Noreturn too
50170         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
50171         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
50172         (main): Use them.
50174         stdnoreturn, stdnoreturn-tests: remove modules
50175         They're not needed here and a bit premature for use elsewhere.  See
50176         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
50177         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
50178         * tests/test-stdnoreturn.c: Remove files.
50179         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
50180         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
50181         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
50182         and using noreturn.
50183         * modules/openat, modules/sigpipe-die, modules/xalloc:
50184         * modules/xmemdup0, modules/xstrtol:
50185         Remove dependency on stdnoreturn.
50187         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
50188         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
50189         Reparenthesize to avoid GCC warning.
50190         Support Microsoft's syntax.
50191         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
50193         _Noreturn-tests: remove module
50194         * modules/_Noreturn-tests: Remove.
50195         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
50196         * tests/test-_Noreturn.c: Remove.
50197         * tests/test-stdnoreturn.c: Merge from the old
50198         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
50200 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50202         _Noreturn, stdnoreturn, and related modules.
50204         * top/maint.mk: Adjust to new noreturn support.
50205         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
50206         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
50208         xalloc: use stdnoreturn.h
50209         * lib/xalloc.h: Include <stdnoreturn.h>.
50210         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50211         * modules/xalloc (Depends-on): Add stdnoreturn.
50213         xstrtol: use stdnoreturn.h
50214         * lib/xstrtol.h: Include <stdnoreturn.h>.
50215         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50216         * modules/xstrtol (Depends-on): Add stdnoreturn.
50218         xmemdup0: use stdnoreturn.h
50219         * lib/xmemdup0.h: Include <stdnoreturn.h>.
50220         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50221         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
50223         sigpipe-die: use stdnoreturn.h
50224         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
50225         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50226         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
50228         openat: use stdnoreturn.h
50229         * lib/openat.h: Include <stdnoreturn.h>.
50230         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50231         * modules/openat (Depends-on): Add stdnoreturn.
50233         * lib/openat-die.c (openat_save_fail): Modernize comment.
50235         * lib/xalloc-die.c (xalloc_die): Modernize comment.
50237         * lib/glthread/thread.h: Modernize comment.
50239         obstack: use _Noreturn
50240         * lib/obstack.c (__attribute__): Remove macro.
50241         (print_and_abort): Use _Noreturn.
50243         c-stack: use _Noreturn
50244         * lib/c-stack.c (die, overflow_handler, segv_handler):
50245         Use _Noreturn rather than __attribute__((noreturn)).
50247         argmatch-tests, exclude_tests: use _Noreturn
50248         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
50249         Remove.
50250         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
50252         stdlib: use _Noreturn
50253         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
50254         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
50255         * modules/stdlib (Depends-on): Add _Noreturn.
50256         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
50258         stdnoreturn-tests: new module
50259         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
50261         stdnoreturn: new module
50262         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
50263         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
50265         _Noreturn-tests: new module
50266         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
50268         _Noreturn: new module
50269         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
50270         New section, mentioning it.
50271         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
50273         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
50275 2011-07-11  Eric Blake  <eblake@redhat.com>
50277         ffs: new module
50278         * modules/ffs: New file.
50279         * m4/ffs.m4: Likewise.
50280         * lib/ffs.c: Likewise.
50281         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
50282         * modules/strings (Makefile.am): Substitute witness.
50283         (Depends-on): Add c++defs.
50284         * lib/strings.in.h (ffs): Declare.
50285         * modules/ffs-tests: New test file.
50286         * tests/test-ffs.c: Test new module.
50287         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50288         * doc/posix-functions/ffs.texi (ffs): Likewise.
50290         regex: avoid compiler warning
50291         * lib/regex.c (includes): Include <strings.h>, for use of
50292         strcasecmp in regcomp.c.
50293         Reported by Joachim Schmitz.
50295 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50297         stdint: respect system's intmax_t if INTMAX_MAX
50298         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
50299         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
50300         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
50301         long but int64_t is long long, and where we will clash with the
50302         system intmax_t if we override it.  See
50303         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
50304         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
50305         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
50306         similarly for UINTMAX_C.
50308 2011-07-08  Bruno Haible  <bruno@clisp.org>
50310         pthread_sigmask tests: Avoid a compiler warning.
50311         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
50312         non-zero.
50314         sigprocmask tests: A better way to avoid a compiler warning.
50315         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
50316         (main): Complain if system() returns non-zero.
50317         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
50319 2011-07-08  Bruno Haible  <bruno@clisp.org>
50321         pthread_sigmask: Work around IRIX bug.
50322         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
50323         bug.
50324         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
50325         there may be unblocked pending signals.
50326         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
50328 2011-07-08  Bruno Haible  <bruno@clisp.org>
50330         pthread_sigmask: Work around Cygwin bug.
50331         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
50332         bug.
50333         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
50334         the system's pthread_sigmask function.
50335         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
50337 2011-07-08  Bruno Haible  <bruno@clisp.org>
50339         pthread_sigmask: Work around bug in single-threaded implementation.
50340         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
50341         FreeBSD, HP-UX, Solaris bug.
50342         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
50343         * lib/pthread_sigmask.c: Include <stddef.h>.
50344         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
50345         the system's pthread_sigmask function.
50346         * modules/pthread_sigmask (configure.ac): Invoke
50347         gl_PREREQ_PTHREAD_SIGMASK.
50348         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
50349         HP-UX, Solaris.
50351 2011-07-08  Eric Blake  <eblake@redhat.com>
50353         test-sigprocmask: avoid compiler warning
50354         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
50355         * tests/test-sigprocmask.c (main): Use it to silence warning.
50356         Reported by Jim Meyering.
50358         test-snprintf: avoid compiler warning
50359         * tests/test-snprintf.c (main): Avoid shadowed declaration.
50360         * tests/test-vsnprintf.c (main): Likewise.
50361         Reported by Jim Meyering.
50363 2011-07-08  Bruno Haible  <bruno@clisp.org>
50365         Tests for module 'pthread_sigmask'.
50366         * modules/pthread_sigmask-tests: New file.
50367         * tests/test-pthread_sigmask1.c: New file, based on
50368         tests/test-sigprocmask.c.
50369         * tests/test-pthread_sigmask2.c: New file.
50371 2011-07-08  Jim Meyering  <meyering@redhat.com>
50373         test-getopt.h: avoid warning about an unused variable
50374         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
50376 2011-07-07  Jim Meyering  <meyering@redhat.com>
50378         maint: reduce list of files exempt from sc_prohibit_leading_TABs
50379         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
50380         now that it no longer contains leading TABs.
50381         Remove unused "url=FIXME" statement.
50383 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50385         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
50386         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50387         When gl_THREADLIB is not in use, assume that the POSIX sematics
50388         are desired.  This is better for Emacs, which uses POSIX semantics
50389         on GNUish and/or POSIXish platforms, and does not use threads at
50390         all otherwise.
50392         pthread_sigmask: fix typo when testing for libraries
50393         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50394         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
50396 2011-07-08  Eric Blake  <eblake@redhat.com>
50398         fts: introduce FTS_NOATIME
50399         * lib/fts_.h (FTS_NOATIME): New bit flag.
50400         (FTS_OPTIONMASK): Adjust.
50401         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
50402         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
50404 2011-07-08  Bruno Haible  <bruno@clisp.org>
50406         Tests for module 'thread'.
50407         * modules/thread-tests: New file.
50408         * tests/test-thread_self.c: New file.
50409         * tests/test-thread_create.cc: New file.
50411 2011-07-08  Bruno Haible  <bruno@clisp.org>
50413         thread: Avoid gcc warnings when using gl_thread_self().
50414         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
50415         'void *'.
50416         (gl_thread_self_pointer): Update.
50418 2011-07-07  Bruno Haible  <bruno@clisp.org>
50420         signal-c++-tests: Check declaration of pthread_sigmask.
50421         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
50422         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
50423         $(LIB_PTHREAD_SIGMASK).
50425 2011-07-07  Bruno Haible  <bruno@clisp.org>
50427         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
50428         * lib/signal.in.h (pthread_sigmask): Override if
50429         REPLACE_PTHREAD_SIGMASK is 1.
50430         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50431         REPLACE_PTHREAD_SIGMASK.
50432         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
50433         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
50434         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
50435         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50436         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
50438 2011-07-07  Bruno Haible  <bruno@clisp.org>
50440         pthread_sigmask: Ensure declaration in <signal.h>.
50441         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
50442         include <pthread.h>.
50443         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
50444         problem.
50446 2011-07-07  Bruno Haible  <bruno@clisp.org>
50448         pthread_sigmask: Document the module.
50449         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
50451 2011-07-07  Bruno Haible  <bruno@clisp.org>
50453         pthread_sigmask: Follow gnulib conventions.
50454         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
50455         gl_PTHREAD_SIGMASK.
50456         * modules/pthread_sigmask (configure.ac): Update.
50458 2011-07-07  Bruno Haible  <bruno@clisp.org>
50460         pthread_sigmask: Make declaration C++ safe.
50461         * lib/signal.in.h: In two special conditions, just do an #include_next.
50462         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50463         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
50464         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50465         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50466         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
50467         not REPLACE_PTHREAD_MASK.
50468         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
50469         not REPLACE_PTHREAD_MASK.
50470         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50472 2011-07-07  Bruno Haible  <bruno@clisp.org>
50474         pthread_sigmask: Fix return value.
50475         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
50476         * lib/pthread_sigmask.c: New file.
50477         * modules/pthread_sigmask (Files): Add it.
50478         (configure.ac): Invoke AC_LIBOBJ.
50480 2011-07-07  Eric Blake  <eblake@redhat.com>
50482         getopt: more portable argv creation
50483         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
50484         const, use char arrays rather than strings.
50485         Suggested by Paul Eggert.
50487 2011-07-07  Bruno Haible  <bruno@clisp.org>
50489         Tests for module 'sigprocmask'.
50490         * modules/sigprocmask-tests: New file.
50491         * tests/test-sigprocmask.c: New file.
50493 2011-07-07  Bruno Haible  <bruno@clisp.org>
50495         float tests: Tweak.
50496         * tests/test-float.c (main): Tweak skip message.
50498 2011-07-07  Eric Blake  <eblake@redhat.com>
50500         getopt: avoid compiler warning during configure
50501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
50502         assigning string literals to non-const pointer.
50504         getopt-gnu: avoid crash in glibc getopt
50505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
50506         * tests/test-getopt.h (test_getopt): Enhance test.
50507         * tests/test-getopt_long.h (test_getopt_long): Likewise.
50508         * doc/posix-functions/getopt.texi (getopt): Document it.
50509         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50510         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50511         Likewise.
50513 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
50515         getopt: handle W; without long options in getopt [BZ #12922]
50516         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
50517         but no long options are defined, just return 'W'.
50519 2011-07-07  Bruno Haible  <bruno@clisp.org>
50521         Avoid literal tabs.
50522         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
50523         variable containing a tab instead of a literal tab.
50524         Reported by Jim Meyering.
50526 2011-07-07  Bruno Haible  <bruno@clisp.org>
50528         Comments.
50529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
50531 2011-07-06  Bruno Haible  <bruno@clisp.org>
50533         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
50534         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
50535         <winsock2.h>.
50536         (rpl_fd_isset, FD_ISSET): New definitions, copied from
50537         lib/sys_socket.in.h.
50538         (close, gethostname): Hide declarations from <winsock2.h>.
50539         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50540         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
50541         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
50542         (select): Don't override if gnulib's <sys/select.h> was already
50543         included.
50544         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50545         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50546         setsockopt, shutdown, select): Tweak indentation.
50548 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50550         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
50551         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
50552         in an application that does not use the sys_select module.
50554 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
50556         poll: do not return 0 on timeout=-1
50557         * lib/poll.c: Loop with yield if no events occurred.
50559 2011-07-06  Eric Blake  <eblake@redhat.com>
50561         pthread_sigmask: always replace when not using pthread
50562         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
50563         replacement when using some threading other than pthread.  Fix
50564         logic bug.
50566 2011-07-06  Bruno Haible  <bruno@clisp.org>
50568         Comments.
50569         * m4/printf.m4: Update comments about mingw.
50571 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50573         sys_select: define sigset_t more portably
50574         * lib/sys_select.in.h: Always include <sys/types.h>, since
50575         we now need sigset_t and mingw defines it there.
50576         Include <signal.h> before split inclusion guard, to avoid
50577         mishaps on Solaris, whose <signal.h> eventually includes us.
50578         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
50579         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
50580         which come from ...
50581         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50582         gl_CHECK_TYPE_SIGSET_T.
50583         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
50584         does the real work.
50585         * modules/sys_select (Depends-on): Add 'signal'.
50587         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
50588         Suggested by Bruno Haible.
50590         pselect: Use pthread_sigmask, not sigprocmask.
50591         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
50592         multithreaded apps better than sigprocmask does.
50593         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
50594         sigprocmask directly.
50596 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50598         * lib/pselect.c (pselect): Use plain name, without "rpl_".
50599         Don't #undef,  since we don't need any underlying pselect.
50600         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
50601         (Depends-on): Add select.
50602         (Link): Add $(LIBSOCKET).
50603         These changes suggested by Bruno Haible.
50605         pselect: document better
50606         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50607         * doc/posix-functions/pselect.texi (pselect): Document new module.
50609         pthread_sigmask: new module
50610         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50611         * doc/posix-functions/pthread_sigmask.texi: Document new module.
50612         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
50613         This is done only as a macro; I don't know how well that'll
50614         work for C++.  Move <sys/types.h> include before the include_next,
50615         to avoid mishap on Solaris.
50616         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
50617         * modules/signal (Makefile.am): Substitute the check's results.
50618         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
50620         test-pselect: new module
50621         * modules/pselect-tests, tests/test-pselect.c: New files.
50622         * tests/test-select.c, tests/test-sys_select-c++.cc:
50623         If TEST_PSELECT is defined, test pselect instead of testing select.
50625         * tests/test-sys_select.c (sigset_t): Test for it, too.
50626         Suggested by Bruno Haible.
50628 2011-07-05  Eric Blake  <eblake@redhat.com>
50630         snprintf: guarantee %1$d, for libintl
50631         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
50632         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50633         * doc/posix-functions/snprintf.texi (snprintf): Update.
50634         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50635         * tests/test-snprintf.c (main): Enhance test.
50636         * tests/test-vsnprintf.c (main): Likewise.
50638 2011-07-05  Jim Meyering  <meyering@redhat.com>
50640         maint: exempt stdio-read.c and stdio-write.c from the cppi check
50641         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
50642         per Bruno's request, to accommodate this idiom (no space after "#")
50643         even when the function is inside an #if block:
50644         char *
50645         gets (char *s)
50646         #undef gets
50647         {
50648           ...
50649         }
50651 2011-07-04  Jim Meyering  <meyering@redhat.com>
50653         maint: indent with spaces, not TABs, and add a rule to check this
50654         * tests/test-userspec.c: Indent with spaces, not TABs.
50655         * tests/test-argp.c: Likewise.
50656         * tests/test-c-stack2.sh: Likewise.
50657         * tests/test-parse-duration.sh: Likewise
50658         * m4/strtod.m4: Likewise.
50659         * m4/alloca.m4: Likewise.
50660         * m4/pselect.m4: Likewise.
50661         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
50663 2011-07-03  Jim Meyering  <meyering@redhat.com>
50665         maint.mk: correct omissions in prohibit_argmatch_without_use check
50666         This rule would mistakenly report that argmatch.h is included without
50667         use even when both the argmatch and invalid_arg macro were used.
50668         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
50669         of argmatch and invalid_arg.
50671 2011-07-03  Bruno Haible  <bruno@clisp.org>
50673         Comments about EINTR.
50674         * lib/safe-read.h: Explain the purpose of this module.
50675         * lib/safe-write.h: Likewise.
50676         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
50677         module.
50678         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
50679         module.
50680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50682 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50684         xnanosleep: Rewrite to use new dtotimespec module.
50685         It has the conversion code that used to be in xnanosleep.
50686         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
50687         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
50688         (TIME_T_MAX): Remove.
50689         (xnanosleep): Rewrite in terms of dtotimespec.
50690         * modules/xnanosleep (Depends-on): Add dtotimespec.
50691         Remove intprops, stdbool.
50693         timespec-add, timespec-sub: new modules
50694         * lib/timespec.h (timespec_add, timespec_sub): New decls.
50695         * lib/timespec-add.c, lib/timespec-sub.c:
50696         * modules/timespec-add, modules/timespec-sub: New files.
50698         dtotimespec: new module
50699         * lib/timespec.h (dtotimespec): New decl.
50700         * lib/dtotimespec.c, modules/dtotimespec: New files.
50702         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
50704         pselect: new module
50705         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
50706         (pselect): New decls.
50707         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
50708         since the standard pselect decl uses 'restrict'.
50709         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
50710         HAVE_PSELECT, REPLACE_PSELECT.
50711         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
50712         HAVE_PSELECT, REPLACE_PSELECT.
50713         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
50715         sys_select: don't depend on sys_socket
50716         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
50717         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
50718         This fix works on GNU and GNU-like platforms, but has not been tested
50719         on native Windows.
50720         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
50721         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
50722         gl_HEADER_SYS_SOCKET.
50723         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
50724         gl_PREREQ_SYS_H_WINSOCK2.
50726 2011-06-29  Eric Blake  <eblake@redhat.com>
50728         pipe2: fix C89 compile problem
50729         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
50730         Reported by Bruno Haible.
50732         pipe, pipe2: don't corrupt fd on error
50733         * lib/pipe.c (pipe): Leave fd unchanged on error.
50734         * lib/pipe2.c (pipe2): Likewise.
50735         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
50736         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50738 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
50740         mmap-anon: do not use regular expressions inadvertently
50741         * m4/mmap-anon.m4: Remove trailing period from strings sought
50742         in the output.
50744 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
50746         nanosleep: fix integer overflow problem
50747         * lib/nanosleep.c (my_usleep): Don't assume signed integer
50748         arithmetic wraps around on overflow.
50750         nanosleep: simplify carrying
50751         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
50752         first call to the underyling nanosleep, not for the last one.
50753         This doesn't fix any bugs, but it simplifies the computation of
50754         the remaining delay.  Found while auditing integer overflow issues.
50756         dup2: remove test for existence of fcntl
50757         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
50758         "#if HAVE_FCNTL", in the configure-time test program.
50759         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
50760         and therefore speeds up "configure" a bit.  Found while
50761         adding the dup2 module to Emacs.
50763 2011-06-24  Eric Blake  <eblake@redhat.com>
50765         maint.mk: enhance useless header checks
50766         * top/maint.mk (_sc_header_without_use): Check both include
50767         styles.
50768         (sc_prohibit_assert_without_use)
50769         (sc_prohibit_close_stream_without_use)
50770         (sc_prohibit_getopt_without_use)
50771         (sc_prohibit_quotearg_without_use)
50772         (sc_prohibit_quote_without_use)
50773         (sc_prohibit_long_options_without_use)
50774         (sc_prohibit_inttostr_without_use)
50775         (sc_prohibit_ignore_value_without_use)
50776         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
50777         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
50778         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
50779         (sc_prohibit_hash_pjw_without_use)
50780         (sc_prohibit_safe_read_without_use)
50781         (sc_prohibit_argmatch_without_use)
50782         (sc_prohibit_canonicalize_without_use)
50783         (sc_prohibit_root_dev_ino_without_use)
50784         (sc_prohibit_openat_without_use)
50785         (sc_prohibit_c_ctype_without_use)
50786         (sc_prohibit_signal_without_use)
50787         (sc_prohibit_stdio--_without_use)
50788         (sc_prohibit_stdio-safer_without_use)
50789         (sc_prohibit_strings_without_use)
50790         (sc_prohibit_intprops_without_use)
50791         (sc_prohibit_stddef_without_use)
50792         (sc_prohibit_xfreopen_without_use): Update clients.
50794 2011-06-24  Jim Meyering  <meyering@redhat.com>
50796         syntax-check: keep one maint.mk rule in sync with its header
50797         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
50798         of the bug Eric has just fixed, with today's commit 25e4c2ec.
50799         I prefer to avoid temporary files here, so use <(...), but that
50800         is not supported by /bin/sh, so...
50801         (SHELL): Define to /bin/bash.
50803 2011-06-24  Eric Blake  <eblake@redhat.com>
50805         maint.mk: update sc_prohibit_intprops_without_use
50806         * top/maint.mk (_intprops_names): Match recent changes.
50808 2011-06-24  Bruno Haible  <bruno@clisp.org>
50810         strerror-override: No-op tweak.
50811         * lib/strerror-override.h (strerror_override): Reorder conditions,
50812         for consistency with lib/strerror-override.c.
50814 2011-06-23  Eric Blake  <eblake@redhat.com>
50816         maint.mk: test further PATH_MAX issues
50817         * top/maint.mk (sc_prohibit_path_max_array): Rename...
50818         (sc_prohibit_path_max_allocation): ...and also test alloca.
50819         Suggested by Jim Meyering.
50821 2011-06-22  Eric Blake  <eblake@redhat.com>
50823         maint.mk: add syntax-check to avoid char[PATH_MAX]
50824         * top/maint.mk (sc_prohibit_path_max_array): New rule.
50826         stat: be robust to PATH_MAX definition
50827         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
50828         * modules/stat (Depends-on): Add verify.
50830         link: work around IRIX bug
50831         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
50832         * lib/link.c (rpl_link): Work around it.
50833         * tests/test-link.h (test_link): Enhance test.
50834         * doc/posix-functions/link.texi (link): Document the bug.
50836         getopt: silence clang warning
50837         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
50838         dereference.
50839         Reported by Gustavo Martin Domato.
50841 2011-06-22  Jim Meyering  <meyering@redhat.com>
50843         bootstrap: do not insert a blank line into each .gitignore file
50844         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
50846 2011-06-21  Eric Blake  <eblake@redhat.com>
50848         perror: test for output mismatch
50849         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
50850         perror on IRIX.
50852         strerror_r: fix OpenBSD behavior on out-of-range
50853         * lib/strerror_r.c (strerror_r): Always use maximal string.
50854         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
50856         strerror_r: fix OpenBSD behavior on 0
50857         * lib/strerror-override.c (strerror_override): Also override 0
50858         when needed.
50859         * lib/strerror-override.h (strerror_override): Likewise.
50860         * lib/strerror.c (strerror): Simplify, now that 0 override is done
50861         earlier.
50862         * lib/strerror_r.c (strerror_r): Likewise.
50863         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
50864         behavior...
50865         (gl_FUNC_STRERROR_0): ...into new macro.
50866         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
50867         is overridden.
50868         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
50869         * modules/strerror-override (Files): Add strerror.m4.
50870         (configure.ac): Also provide override for 0 when needed.
50871         * doc/posix-functions/strerror.texi (strerror): Document this.
50872         * doc/posix-functions/perror.texi (perror): Likewise.
50874         perror: adjust array size
50875         * modules/perror (Depends-on): Add strerror-override.
50876         * lib/perror.c (perror): Use it to avoid magic number.
50878         strerror-override: reduce size
50879         * lib/strerror-override.c (strerror_override): Use fewer lines.
50881 2011-06-20  Bruno Haible  <bruno@clisp.org>
50883         pathmax: Ensure correct value for PATH_MAX on HP-UX.
50884         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
50886 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50888         alloca: port to compilers that can optimize like GCC 4.6.0
50889         * lib/alloca.c (find_stack_direction): New signature, taken from
50890         Autoconf git.  This works with GCC 4.6.0.  This code should never
50891         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
50892         be used with other compilers that optimize as well as GCC 4.6.0 does.
50893         (alloca): Adjust to new signature.
50894         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
50895         New macro, which patches Autoconf in a similar way.
50897         c-stack: stop worrying about stack direction
50898         * lib/c-stack.c (find_stack_direction): Remove.
50899         (segv_handler): Don't worry about stack direction growth, as it's
50900         too much of a pain to configure this correctly, given how compilers
50901         are optimizing-away our stack-growth detection code.  Instead, assume
50902         that any access to just before or just after the stack is OK.
50903         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50904         Don't require AC_FUNC_ALLOCA; no longer needed.
50906 2011-06-20  Eric Blake  <eblake@redhat.com>
50908         test-stat: don't allocate PATH_MAX bytes
50909         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
50910         PATH_MAX-sized buffer.
50911         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
50912         * modules/stat-tests (Depends-on): Likewise.
50913         * tests/test-fstatat.c (includes): Drop pathmax.h.
50914         * tests/test-stat.c (includes): Likewise.
50915         Reported by Bruno Haible.
50917 2011-06-20  Bruno Haible  <bruno@clisp.org>
50919         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
50920         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
50921         * lib/float.c: New file.
50922         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
50923         REPLACE_FLOAT_LDBL.
50924         * modules/float (Files): Add lib/float.c.
50925         (configure.ac): Invoke AC_LIBOBJ.
50926         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
50928 2011-06-20  Bruno Haible  <bruno@clisp.org>
50930         Tests for module 'float'.
50931         * modules/float-tests: New file.
50932         * tests/test-float.c: New file.
50934 2011-06-19  Bruno Haible  <bruno@clisp.org>
50936         isinf: Coding style.
50937         * lib/isinf.c: Use GNU coding style.
50939 2011-06-19  Bruno Haible  <bruno@clisp.org>
50941         linkat test: Avoid test failure on AIX 7.1.
50942         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
50943         * tests/test-link.h (test_link): Likewise.
50945 2011-06-19  Bruno Haible  <bruno@clisp.org>
50947         pread test: Avoid test failure on OpenBSD 4.9.
50948         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
50950 2011-06-19  Bruno Haible  <bruno@clisp.org>
50952         sprintf-posix: Fix test failure on AIX 7.1.
50953         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
50954         * doc/posix-functions/dprintf.texi: Mention limited precision problem
50955         on AIX.
50956         * doc/posix-functions/fprintf.texi: Likewise.
50957         * doc/posix-functions/printf.texi: Likewise.
50958         * doc/posix-functions/snprintf.texi: Likewise.
50959         * doc/posix-functions/sprintf.texi: Likewise.
50960         * doc/posix-functions/vdprintf.texi: Likewise.
50961         * doc/posix-functions/vfprintf.texi: Likewise.
50962         * doc/posix-functions/vprintf.texi: Likewise.
50963         * doc/posix-functions/vsnprintf.texi: Likewise.
50964         * doc/posix-functions/vsprintf.texi: Likewise.
50966 2011-06-19  Bruno Haible  <bruno@clisp.org>
50968         roundl-ieee: Fix test failure on AIX 7.1.
50969         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
50970         * doc/posix-functions/roundl.texi: Mention problem with negative
50971         arguments.
50973 2011-06-19  Bruno Haible  <bruno@clisp.org>
50975         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50976         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
50977         * doc/posix-functions/round.texi: Mention problem with negative
50978         arguments.
50979         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
50981 2011-06-19  Bruno Haible  <bruno@clisp.org>
50983         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50984         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
50985         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
50986         * doc/posix-functions/roundf.texi: Mention problem with negative
50987         arguments.
50988         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
50990 2011-06-19  Bruno Haible  <bruno@clisp.org>
50992         ceilf-ieee: Work around bug on MacOS X 10.5.
50993         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
50995         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
50996         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
50997         IEEE compliant, avoid compiler optimizations.
50998         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
50999         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51000         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
51001         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51002         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51003         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
51004         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51005         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
51006         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
51007         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
51009 2011-06-19  Bruno Haible  <bruno@clisp.org>
51011         ceilf-ieee: Work around bug on AIX 7.1.
51012         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
51013         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
51015 2011-06-19  Bruno Haible  <bruno@clisp.org>
51017         ceil-ieee: Work around bug on AIX 7.1.
51018         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
51019         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
51021 2011-06-18  Bruno Haible  <bruno@clisp.org>
51023         fsync test: Avoid test failure on MacOS X and AIX.
51024         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
51025         EINVAL.
51027 2011-06-18  Bruno Haible  <bruno@clisp.org>
51029         openat, fdopendir tests: Fix link errors.
51030         * modules/openat-tests (Depends-on): Add progname.
51031         * modules/fdopendir-tests (Depends-on): Likewise.
51032         * tests/test-fchownat.c: Include progname.h.
51033         (main): Call set_program_name.
51034         * tests/test-fstatat.c: Include progname.h.
51035         (main): Call set_program_name.
51036         * tests/test-mkdirat.c: Include progname.h.
51037         (main): Call set_program_name.
51038         * tests/test-openat.c: Include progname.h.
51039         (main): Call set_program_name.
51040         * tests/test-unlinkat.c: Include progname.h.
51041         (main): Call set_program_name.
51042         * tests/test-fdopendir.c: Include progname.h.
51043         (main): Call set_program_name.
51045 2011-06-18  Bruno Haible  <bruno@clisp.org>
51047         Doc update.
51048         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
51049         HP-UX.
51050         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
51052 2011-06-18  Bruno Haible  <bruno@clisp.org>
51054         getcwd tests: Avoid compilation error on HP-UX 11.31.
51055         * modules/getcwd-tests (Depends-on): Add pathmax.
51056         * tests/test-getcwd.c: Include pathmax.h.
51058 2011-06-18  Bruno Haible  <bruno@clisp.org>
51060         isfinite, isinf: Fix link error on AIX 6 and 7.
51061         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
51062         needed, also test the macro with a 'float' argument.
51063         * m4/isinf.m4 (gl_ISINF): Likewise.
51065 2011-06-18  Bruno Haible  <bruno@clisp.org>
51067         getloadavg: Don't clobber LIBS. Regression from previous commit.
51068         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
51069         AC_CHECK_LIB from here...
51070         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
51071         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
51072         gl_func_getloadavg_done.
51073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51075 2011-06-18  Bruno Haible  <bruno@clisp.org>
51077         clean-temp: Improve documentation.
51078         * lib/clean-temp.h: Explain better how to use this module.
51079         Reported by John Darrington <john@darrington.wattle.id.au>.
51081 2011-06-17  Bruno Haible  <bruno@clisp.org>
51083         pread, pwrite: Avoid cc warning on AIX.
51084         * lib/unistd.in.h (pread): Undefine before defining as a macro.
51085         (pwrite): Likewise.
51087 2011-06-17  Bruno Haible  <bruno@clisp.org>
51089         spawn-pipe tests: Fix link error.
51090         * tests/test-spawn-pipe-child.c: Undefine fprintf.
51091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51093 2011-06-17  Bruno Haible  <bruno@clisp.org>
51095         Tests: Remove unnecessary dependency.
51096         * modules/canonicalize-tests (Depends-on): Remove progname.
51097         * modules/chown-tests (Depends-on): Likewise.
51098         * modules/dirname-tests (Depends-on): Likewise.
51099         * modules/fdopendir-tests (Depends-on): Likewise.
51100         * modules/fdutimensat-tests (Depends-on): Likewise.
51101         * modules/hash-tests (Depends-on): Likewise.
51102         * modules/lchown-tests (Depends-on): Likewise.
51103         * modules/linkat-tests (Depends-on): Likewise.
51104         * modules/renameat-tests (Depends-on): Likewise.
51105         * modules/spawn-pipe-tests (Depends-on): Likewise.
51106         * modules/utimensat-tests (Depends-on): Likewise.
51108 2011-06-17  Bruno Haible  <bruno@clisp.org>
51110         spawn-pipe tests: Fix link error.
51111         * tests/test-spawn-pipe-child.c: Undefine fflush.
51113 2011-06-17  Bruno Haible  <bruno@clisp.org>
51115         Fix tests link errors.
51116         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
51117         * modules/chown-tests (Makefile.am): Don't link test-chown with
51118         LIBINTL.
51119         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
51120         LIBINTL.
51121         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
51122         LIBINTL.
51123         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
51124         LIBINTL.
51126 2011-06-16  Bruno Haible  <bruno@clisp.org>
51128         crypto/gc-sha1: Fix recent regression.
51129         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
51130         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
51132         crypto/gc-md5: Fix recent regression.
51133         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
51135         crypto/gc-md4: Fix recent regression.
51136         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
51137         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
51139         crypto/gc-arctwo: Fix recent regression.
51140         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
51141         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
51143         crypto/gc-rijndael: Fix recent regression.
51144         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
51145         (configure.ac): Invoke AC_LIBOBJ here.
51146         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
51147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51149         crypto/gc-hmac-sha1: Fix recent regression.
51150         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
51151         (configure.ac): Invoke AC_LIBOBJ here.
51152         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
51153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51155         crypto/gc-hmac-md5: Fix recent regression.
51156         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
51157         (configure.ac): Invoke AC_LIBOBJ here.
51158         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
51159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51161         crypto/gc-des: Fix recent regression.
51162         * modules/crypto/gc-des (Files): Remove m4/des.m4.
51163         (configure.ac): Invoke AC_LIBOBJ here.
51164         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
51165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51167         crypto/gc-arcfour: Fix recent regression.
51168         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
51169         (configure.ac): Invoke AC_LIBOBJ here.
51170         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
51171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51173 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
51175         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
51176         After the 2011-05-21 change, this macro requires
51177         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
51178         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51180 2011-06-16  Bruno Haible  <bruno@clisp.org>
51182         fprintftime: Move AC_LIBOBJ invocations to module description.
51183         * m4/fprintftime.m4: Remove file.
51184         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
51185         (configure.ac): Remove gl_FPRINTFTIME call.
51186         (Makefile.am): Augment lib_SOURCES.
51187         Reported by Jim Meyering.
51189 2011-06-16  Bruno Haible  <bruno@clisp.org>
51191         tmpfile-safer: Finish 2011-05-23 commit.
51192         * m4/stdio-safer.m4: Really remove file.
51193         Reported by Jim Meyering.
51195 2011-06-16  Bruno Haible  <bruno@clisp.org>
51197         syntax-check: Fix typo.
51198         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
51199         printf-posix.m4.
51200         Reported by Jim Meyering.
51202 2011-06-13  Jim Meyering  <meyering@redhat.com>
51204         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
51205         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
51207 2011-05-23  Bruno Haible  <bruno@clisp.org>
51209         yesno: Move AC_LIBOBJ invocations to module description.
51210         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
51211         * modules/yesno (Makefile.am): Augment lib_SOURCES.
51213 2011-05-23  Bruno Haible  <bruno@clisp.org>
51215         xstrtol: Move AC_LIBOBJ invocations to module description.
51216         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
51217         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
51219 2011-05-23  Bruno Haible  <bruno@clisp.org>
51221         xstrtold: Move AC_LIBOBJ invocations to module description.
51222         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
51223         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
51225 2011-05-23  Bruno Haible  <bruno@clisp.org>
51227         xstrtod: Move AC_LIBOBJ invocations to module description.
51228         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
51229         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
51231 2011-05-23  Bruno Haible  <bruno@clisp.org>
51233         xnanosleep: Move AC_LIBOBJ invocations to module description.
51234         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
51235         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
51237 2011-05-23  Bruno Haible  <bruno@clisp.org>
51239         xgetcwd: Move AC_LIBOBJ invocations to module description.
51240         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
51241         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
51243 2011-05-23  Bruno Haible  <bruno@clisp.org>
51245         xalloc: Move AC_LIBOBJ invocations to module description.
51246         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
51247         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
51249 2011-05-23  Bruno Haible  <bruno@clisp.org>
51251         write-any-file: Move AC_LIBOBJ invocations to module description.
51252         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
51253         invocation.
51254         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
51256 2011-05-23  Bruno Haible  <bruno@clisp.org>
51258         utimens: Move AC_LIBOBJ invocations to module description.
51259         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
51260         * modules/utimens (Makefile.am): Augment lib_SOURCES.
51262 2011-05-23  Bruno Haible  <bruno@clisp.org>
51264         utimecmp: Move AC_LIBOBJ invocations to module description.
51265         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
51266         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
51268 2011-05-23  Bruno Haible  <bruno@clisp.org>
51270         userspec: Move AC_LIBOBJ invocations to module description.
51271         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
51272         * modules/userspec (Makefile.am): Augment lib_SOURCES.
51274 2011-05-23  Bruno Haible  <bruno@clisp.org>
51276         unlinkdir: Move AC_LIBOBJ invocations to module description.
51277         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
51278         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
51280 2011-05-23  Bruno Haible  <bruno@clisp.org>
51282         unistd-safer: Move AC_LIBOBJ invocations to module description.
51283         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
51284         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
51286 2011-05-23  Bruno Haible  <bruno@clisp.org>
51288         tempname: Move AC_LIBOBJ invocations to module description.
51289         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
51290         * modules/tempname (Makefile.am): Augment lib_SOURCES.
51292 2011-05-23  Bruno Haible  <bruno@clisp.org>
51294         strftime: Move AC_LIBOBJ invocations to module description.
51295         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
51296         * modules/strftime (Makefile.am): Augment lib_SOURCES.
51298 2011-05-23  Bruno Haible  <bruno@clisp.org>
51300         stdlib-safer: Move AC_LIBOBJ invocations to module description.
51301         * m4/stdlib-safer.m4: Remove file.
51302         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
51303         (configure.ac): Remove gl_STDLIB_SAFER call.
51304         (Makefile.am): Augment lib_SOURCES.
51306 2011-05-23  Bruno Haible  <bruno@clisp.org>
51308         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
51309         * m4/stdio-safer.m4: Remove file.
51310         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
51311         (configure.ac): Remove gl_TMPFILE_SAFER call.
51312         (Makefile.am): Augment lib_SOURCES.
51314 2011-05-23  Bruno Haible  <bruno@clisp.org>
51316         popen-safer: Move AC_LIBOBJ invocations to module description.
51317         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
51318         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
51319         (configure.ac): Remove gl_POPEN_SAFER call.
51320         (Makefile.am): Augment lib_SOURCES.
51322 2011-05-23  Bruno Haible  <bruno@clisp.org>
51324         freopen-safer: Move AC_LIBOBJ invocations to module description.
51325         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
51326         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
51327         (configure.ac): Remove gl_FREOPEN_SAFER call.
51328         (Makefile.am): Augment lib_SOURCES.
51330 2011-05-23  Bruno Haible  <bruno@clisp.org>
51332         fopen-safer: Move AC_LIBOBJ invocations to module description.
51333         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
51334         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
51335         (configure.ac): Remove gl_FOPEN_SAFER call.
51336         (Makefile.am): Augment lib_SOURCES.
51338 2011-05-23  Bruno Haible  <bruno@clisp.org>
51340         crypto/sha512: Move AC_LIBOBJ invocations to module description.
51341         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
51342         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
51344 2011-05-23  Bruno Haible  <bruno@clisp.org>
51346         crypto/sha256: Move AC_LIBOBJ invocations to module description.
51347         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
51348         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
51350 2011-05-23  Bruno Haible  <bruno@clisp.org>
51352         crypto/sha1: Move AC_LIBOBJ invocations to module description.
51353         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
51354         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
51356 2011-05-23  Bruno Haible  <bruno@clisp.org>
51358         settime: Move AC_LIBOBJ invocations to module description.
51359         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
51360         * modules/settime (Makefile.am): Augment lib_SOURCES.
51362 2011-05-23  Bruno Haible  <bruno@clisp.org>
51364         savedir: Move AC_LIBOBJ invocations to module description.
51365         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
51366         * modules/savedir (Makefile.am): Augment lib_SOURCES.
51368 2011-05-23  Bruno Haible  <bruno@clisp.org>
51370         save-cwd: Move AC_LIBOBJ invocations to module description.
51371         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
51372         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
51374 2011-05-23  Bruno Haible  <bruno@clisp.org>
51376         same: Move AC_LIBOBJ invocations to module description.
51377         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
51378         * modules/same (Makefile.am): Augment lib_SOURCES.
51380 2011-05-23  Bruno Haible  <bruno@clisp.org>
51382         safe-write: Move AC_LIBOBJ invocations to module description.
51383         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
51384         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
51385         instead of gl_SAFE_WRITE.
51386         (Makefile.am): Augment lib_SOURCES.
51388 2011-05-23  Bruno Haible  <bruno@clisp.org>
51390         safe-read: Move AC_LIBOBJ invocations to module description.
51391         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
51392         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
51393         of gl_SAFE_READ.
51394         (Makefile.am): Augment lib_SOURCES.
51396 2011-05-23  Bruno Haible  <bruno@clisp.org>
51398         safe-alloc: Move AC_LIBOBJ invocations to module description.
51399         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
51400         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
51402 2011-05-23  Bruno Haible  <bruno@clisp.org>
51404         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
51405         * m4/rijndael.m4: Remove file.
51406         * modules/crypto/rijndael (Files): Remove it.
51407         (configure.ac): Remove gl_RIJNDAEL call.
51408         (Makefile.am): Augment lib_SOURCES.
51410 2011-05-23  Bruno Haible  <bruno@clisp.org>
51412         readtokens: Move AC_LIBOBJ invocations to module description.
51413         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
51414         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
51416 2011-05-23  Bruno Haible  <bruno@clisp.org>
51418         read-file: Move AC_LIBOBJ invocations to module description.
51419         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
51420         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
51421         of gl_FUNC_READ_FILE.
51422         (Makefile.am): Augment lib_SOURCES.
51424 2011-05-23  Bruno Haible  <bruno@clisp.org>
51426         quotearg: Move AC_LIBOBJ invocations to module description.
51427         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
51428         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
51430 2011-05-23  Bruno Haible  <bruno@clisp.org>
51432         quote: Move AC_LIBOBJ invocations to module description.
51433         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
51434         * modules/quote (Makefile.am): Augment lib_SOURCES.
51436 2011-05-23  Bruno Haible  <bruno@clisp.org>
51438         posixver: Move AC_LIBOBJ invocations to module description.
51439         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
51440         * modules/posixver (Makefile.am): Augment lib_SOURCES.
51442 2011-05-23  Bruno Haible  <bruno@clisp.org>
51444         posixtm: Move AC_LIBOBJ invocations to module description.
51445         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
51446         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
51448 2011-05-23  Bruno Haible  <bruno@clisp.org>
51450         physmem: Move AC_LIBOBJ invocations to module description.
51451         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
51452         * modules/physmem (Makefile.am): Augment lib_SOURCES.
51454 2011-05-23  Bruno Haible  <bruno@clisp.org>
51456         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
51457         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
51458         invocation.
51459         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
51461 2011-05-23  Bruno Haible  <bruno@clisp.org>
51463         mpsort: Move AC_LIBOBJ invocations to module description.
51464         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
51465         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
51467 2011-05-23  Bruno Haible  <bruno@clisp.org>
51469         modechange: Move AC_LIBOBJ invocations to module description.
51470         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
51471         * modules/modechange (Makefile.am): Augment lib_SOURCES.
51473 2011-05-23  Bruno Haible  <bruno@clisp.org>
51475         mkdir-p: Move AC_LIBOBJ invocations to module description.
51476         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
51477         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
51479 2011-05-23  Bruno Haible  <bruno@clisp.org>
51481         mkancesdirs: Move AC_LIBOBJ invocations to module description.
51482         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
51483         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
51485 2011-05-23  Bruno Haible  <bruno@clisp.org>
51487         mgetgroups: Move AC_LIBOBJ invocations to module description.
51488         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
51489         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
51491 2011-05-23  Bruno Haible  <bruno@clisp.org>
51493         memxor: Move AC_LIBOBJ invocations to module description.
51494         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
51495         * modules/memxor (Makefile.am): Augment lib_SOURCES.
51497 2011-05-23  Bruno Haible  <bruno@clisp.org>
51499         memcoll: Move AC_LIBOBJ invocations to module description.
51500         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
51501         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
51503 2011-05-23  Bruno Haible  <bruno@clisp.org>
51505         memcasecmp: Move AC_LIBOBJ invocations to module description.
51506         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
51507         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
51509 2011-05-23  Bruno Haible  <bruno@clisp.org>
51511         crypto/md5: Move AC_LIBOBJ invocations to module description.
51512         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
51513         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
51515 2011-05-23  Bruno Haible  <bruno@clisp.org>
51517         crypto/md4: Move AC_LIBOBJ invocations to module description.
51518         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
51519         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
51521 2011-05-23  Bruno Haible  <bruno@clisp.org>
51523         crypto/md2: Move AC_LIBOBJ invocations to module description.
51524         * m4/md2.m4: Remove file.
51525         * modules/crypto/md2 (Files): Remove it.
51526         (configure.ac): Remove gl_MD2 call.
51527         (Makefile.am): Augment lib_SOURCES.
51529 2011-05-23  Bruno Haible  <bruno@clisp.org>
51531         long-options: Move AC_LIBOBJ invocations to module description.
51532         * m4/long-options.m4: Remove file.
51533         * modules/long-options (Files): Remove it.
51534         (configure.ac): Remove gl_LONG_OPTIONS call.
51535         (Makefile.am): Augment lib_SOURCES.
51537 2011-05-23  Bruno Haible  <bruno@clisp.org>
51539         i-ring: Move AC_LIBOBJ invocations to module description.
51540         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
51541         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
51543 2011-05-23  Bruno Haible  <bruno@clisp.org>
51545         idcache: Move AC_LIBOBJ invocations to module description.
51546         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
51547         * modules/idcache (Makefile.am): Augment lib_SOURCES.
51549 2011-05-23  Bruno Haible  <bruno@clisp.org>
51551         human: Move AC_LIBOBJ invocations to module description.
51552         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
51553         * modules/human (Makefile.am): Augment lib_SOURCES.
51555 2011-05-23  Bruno Haible  <bruno@clisp.org>
51557         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
51558         * m4/hmac-sha1.m4: Remove file.
51559         * modules/crypto/hmac-sha1 (Files): Remove it.
51560         (configure.ac): Remove gl_HMAC_SHA1 call.
51561         (Makefile.am): Augment lib_SOURCES.
51563 2011-05-23  Bruno Haible  <bruno@clisp.org>
51565         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
51566         * m4/hmac-md5.m4: Remove file.
51567         * modules/crypto/hmac-md5 (Files): Remove it.
51568         (configure.ac): Remove gl_HMAC_MD5 call.
51569         (Makefile.am): Augment lib_SOURCES.
51571 2011-05-23  Bruno Haible  <bruno@clisp.org>
51573         hash: Move AC_LIBOBJ invocations to module description.
51574         * m4/hash.m4: Remove file.
51575         * modules/hash (Files): Remove it.
51576         (configure.ac): Remove gl_HASH call.
51577         (Makefile.am): Augment lib_SOURCES.
51579 2011-05-23  Bruno Haible  <bruno@clisp.org>
51581         hard-locale: Move AC_LIBOBJ invocations to module description.
51582         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
51583         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
51585 2011-05-23  Bruno Haible  <bruno@clisp.org>
51587         getugroups: Move AC_LIBOBJ invocations to module description.
51588         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
51589         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
51591 2011-05-23  Bruno Haible  <bruno@clisp.org>
51593         gettime: Move AC_LIBOBJ invocations to module description.
51594         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
51595         * modules/gettime (Makefile.am): Augment lib_SOURCES.
51597 2011-05-23  Bruno Haible  <bruno@clisp.org>
51599         getndelim2: Move AC_LIBOBJ invocations to module description.
51600         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
51601         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
51603 2011-05-23  Bruno Haible  <bruno@clisp.org>
51605         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
51606         * m4/gc-pbkdf2-sha1.m4: Remove file.
51607         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
51608         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
51609         (Makefile.am): Augment lib_SOURCES.
51611 2011-05-23  Bruno Haible  <bruno@clisp.org>
51613         fts: Move AC_LIBOBJ invocations to module description.
51614         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
51615         * modules/fts (configure.ac): ... to here.
51617 2011-05-23  Bruno Haible  <bruno@clisp.org>
51619         file-type: Move AC_LIBOBJ invocations to module description.
51620         * m4/file-type.m4: Remove file.
51621         * modules/file-type (Files): Remove it.
51622         (configure.ac): Remove gl_FILE_TYPE call.
51623         (Makefile.am): Augment lib_SOURCES.
51625 2011-05-23  Bruno Haible  <bruno@clisp.org>
51627         filenamecat*: Respect rules for use of AC_LIBOBJ.
51628         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
51629         Remove AC_LIBOBJ invocation.
51630         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
51631         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
51633 2011-05-23  Bruno Haible  <bruno@clisp.org>
51635         filemode: Move AC_LIBOBJ invocations to module description.
51636         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
51637         * modules/filemode (Makefile.am): Augment lib_SOURCES.
51639 2011-05-23  Bruno Haible  <bruno@clisp.org>
51641         openat-safer: Move AC_LIBOBJ invocations to module description.
51642         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
51643         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
51645 2011-05-23  Bruno Haible  <bruno@clisp.org>
51647         fcntl-safer: Move AC_LIBOBJ invocations to module description.
51648         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
51649         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
51651 2011-05-23  Bruno Haible  <bruno@clisp.org>
51653         exclude: Move AC_LIBOBJ invocations to module description.
51654         * m4/exclude.m4: Remove file.
51655         * modules/exclude (Files): Remove it.
51656         (configure.ac): Remove gl_EXCLUDE call.
51657         (Makefile.am): Augment lib_SOURCES.
51659 2011-05-23  Bruno Haible  <bruno@clisp.org>
51661         dirname*: Respect rules for use of AC_LIBOBJ.
51662         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
51663         invocations.
51664         * modules/dirname (Makefile.am): Augment lib_SOURCES.
51665         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
51667 2011-05-23  Bruno Haible  <bruno@clisp.org>
51669         dirent-safer: Move AC_LIBOBJ invocations to module description.
51670         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
51671         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
51673 2011-05-23  Bruno Haible  <bruno@clisp.org>
51675         crypto/des: Move AC_LIBOBJ invocations to module description.
51676         * m4/des.m4: Remove file.
51677         * modules/crypto/des (Files): Remove it.
51678         (configure.ac): Remove gl_DES call.
51679         (Makefile.am): Augment lib_SOURCES.
51681 2011-05-23  Bruno Haible  <bruno@clisp.org>
51683         cycle-check: Move AC_LIBOBJ invocations to module description.
51684         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
51685         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
51687 2011-05-23  Bruno Haible  <bruno@clisp.org>
51689         c-strtold: Move AC_LIBOBJ invocations to module description.
51690         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
51691         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
51693 2011-05-23  Bruno Haible  <bruno@clisp.org>
51695         c-strtod: Move AC_LIBOBJ invocations to module description.
51696         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
51697         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
51699 2011-05-23  Bruno Haible  <bruno@clisp.org>
51701         crc: Move AC_LIBOBJ invocations to module description.
51702         * m4/crc.m4: Remove file.
51703         * modules/crc (Files): Remove it.
51704         (configure.ac): Remove gl_CRC call.
51705         (Makefile.am): Augment lib_SOURCES.
51707 2011-05-23  Bruno Haible  <bruno@clisp.org>
51709         close-stream: Move AC_LIBOBJ invocations to module description.
51710         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
51711         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
51713 2011-05-23  Bruno Haible  <bruno@clisp.org>
51715         closeout: Move AC_LIBOBJ invocations to module description.
51716         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
51717         * modules/closeout (Makefile.am): Augment lib_SOURCES.
51719 2011-05-23  Bruno Haible  <bruno@clisp.org>
51721         closein: Move AC_LIBOBJ invocations to module description.
51722         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
51723         * modules/closein (Makefile.am): Augment lib_SOURCES.
51725 2011-05-23  Bruno Haible  <bruno@clisp.org>
51727         cloexec: Move AC_LIBOBJ invocations to module description.
51728         * m4/cloexec.m4: Remove file.
51729         * modules/cloexec (Files): Remove it.
51730         (configure.ac): Remove gl_CLOEXEC call.
51731         (Makefile.am): Augment lib_SOURCES.
51733 2011-05-23  Bruno Haible  <bruno@clisp.org>
51735         check-version: Move AC_LIBOBJ invocations to module description.
51736         * m4/check-version.m4: Remove file.
51737         * modules/check-version (Files): Remove it.
51738         (configure.ac): Remove gl_CHECK_VERSION call.
51739         (Makefile.am): Augment lib_SOURCES.
51741 2011-05-23  Bruno Haible  <bruno@clisp.org>
51743         chdir-safer: Move AC_LIBOBJ invocations to module description.
51744         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
51745         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
51747 2011-05-23  Bruno Haible  <bruno@clisp.org>
51749         canonicalize: Move AC_LIBOBJ invocations to module description.
51750         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
51751         AC_LIBOBJ invocation.
51752         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
51754 2011-05-23  Bruno Haible  <bruno@clisp.org>
51756         canon-host: Move AC_LIBOBJ invocations to module description.
51757         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
51758         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
51759         instead of gl_CANON_HOST.
51760         (Makefile.am): Augment lib_SOURCES.
51762 2011-05-23  Bruno Haible  <bruno@clisp.org>
51764         backupfile: Move AC_LIBOBJ invocations to module description.
51765         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
51766         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
51768 2011-05-23  Bruno Haible  <bruno@clisp.org>
51770         argmatch: Move AC_LIBOBJ invocations to module description.
51771         * m4/argmatch.m4: Remove file.
51772         * modules/argmatch (Files): Remove it.
51773         (configure.ac): Remove gl_ARGMATCH call.
51774         (Makefile.am): Augment lib_SOURCES.
51776 2011-05-23  Bruno Haible  <bruno@clisp.org>
51778         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
51779         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
51780         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
51782 2011-05-23  Bruno Haible  <bruno@clisp.org>
51784         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
51785         * m4/arcfour.m4: Remove file.
51786         * modules/crypto/arcfour (Files): Remove it.
51787         (configure.ac): Remove gl_ARCFOUR call.
51788         (Makefile.am): Augment lib_SOURCES.
51790 2011-05-22  Bruno Haible  <bruno@clisp.org>
51792         write: Move AC_LIBOBJ invocations to module description.
51793         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
51794         * modules/write (configure.ac): ... to here.
51796 2011-05-22  Bruno Haible  <bruno@clisp.org>
51798         wmemset: Move AC_LIBOBJ invocations to module description.
51799         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
51800         here...
51801         * modules/wmemset (configure.ac): ... to here.
51803 2011-05-22  Bruno Haible  <bruno@clisp.org>
51805         wmemmove: Move AC_LIBOBJ invocations to module description.
51806         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
51807         here...
51808         * modules/wmemmove (configure.ac): ... to here.
51810 2011-05-22  Bruno Haible  <bruno@clisp.org>
51812         wmemcpy: Move AC_LIBOBJ invocations to module description.
51813         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
51814         here...
51815         * modules/wmemcpy (configure.ac): ... to here.
51817 2011-05-22  Bruno Haible  <bruno@clisp.org>
51819         wmemcmp: Move AC_LIBOBJ invocations to module description.
51820         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
51821         here...
51822         * modules/wmemcmp (configure.ac): ... to here.
51824 2011-05-22  Bruno Haible  <bruno@clisp.org>
51826         wmemchr: Move AC_LIBOBJ invocations to module description.
51827         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
51828         here...
51829         * modules/wmemchr (configure.ac): ... to here.
51831 2011-05-22  Bruno Haible  <bruno@clisp.org>
51833         wcswidth: Move AC_LIBOBJ invocations to module description.
51834         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
51835         here...
51836         * modules/wcswidth (configure.ac): ... to here.
51838 2011-05-22  Bruno Haible  <bruno@clisp.org>
51840         wcwidth: Respect rules for use of AC_LIBOBJ.
51841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
51842         invocation from here...
51843         * modules/wcwidth (configure.ac): ... to here.
51844         (Depends-on): Update conditions.
51846 2011-05-22  Bruno Haible  <bruno@clisp.org>
51848         wctype: Move AC_LIBOBJ invocations to module description.
51849         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
51850         invocation from here...
51851         * modules/wctype (configure.ac): ... to here.
51852         (Depends-on): Update conditions.
51854 2011-05-22  Bruno Haible  <bruno@clisp.org>
51856         wctrans: Move AC_LIBOBJ invocations to module description.
51857         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
51858         invocation from here...
51859         * modules/wctrans (configure.ac): ... to here.
51861 2011-05-22  Bruno Haible  <bruno@clisp.org>
51863         wctomb: Move AC_LIBOBJ invocations to module description.
51864         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
51865         invocations from here...
51866         * modules/wctomb (configure.ac): ... to here.
51868 2011-05-22  Bruno Haible  <bruno@clisp.org>
51870         wctob: Move AC_LIBOBJ invocations to module description.
51871         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
51872         gl_PREREQ_WCTOB invocations from here...
51873         * modules/wctob (configure.ac): ... to here.
51874         (Depends-on): Update conditions.
51876 2011-05-22  Bruno Haible  <bruno@clisp.org>
51878         wcsxfrm: Move AC_LIBOBJ invocations to module description.
51879         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
51880         here...
51881         * modules/wcsxfrm (configure.ac): ... to here.
51883 2011-05-22  Bruno Haible  <bruno@clisp.org>
51885         wcstok: Move AC_LIBOBJ invocations to module description.
51886         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
51887         * modules/wcstok (configure.ac): ... to here.
51889 2011-05-22  Bruno Haible  <bruno@clisp.org>
51891         wcsstr: Move AC_LIBOBJ invocations to module description.
51892         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
51893         * modules/wcsstr (configure.ac): ... to here.
51895 2011-05-22  Bruno Haible  <bruno@clisp.org>
51897         wcsspn: Move AC_LIBOBJ invocations to module description.
51898         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
51899         * modules/wcsspn (configure.ac): ... to here.
51901 2011-05-22  Bruno Haible  <bruno@clisp.org>
51903         wcsrtombs: Move AC_LIBOBJ invocations to module description.
51904         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
51905         gl_PREREQ_WCSRTOMBS invocations from here...
51906         * modules/wcsrtombs (configure.ac): ... to here.
51908 2011-05-22  Bruno Haible  <bruno@clisp.org>
51910         wcsrchr: Move AC_LIBOBJ invocations to module description.
51911         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
51912         here...
51913         * modules/wcsrchr (configure.ac): ... to here.
51915 2011-05-22  Bruno Haible  <bruno@clisp.org>
51917         wcspbrk: Move AC_LIBOBJ invocations to module description.
51918         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
51919         here...
51920         * modules/wcspbrk (configure.ac): ... to here.
51922 2011-05-22  Bruno Haible  <bruno@clisp.org>
51924         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
51925         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
51926         gl_PREREQ_WCSNRTOMBS invocations from here...
51927         * modules/wcsnrtombs (configure.ac): ... to here.
51929 2011-05-22  Bruno Haible  <bruno@clisp.org>
51931         wcsnlen: Move AC_LIBOBJ invocations to module description.
51932         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
51933         here...
51934         * modules/wcsnlen (configure.ac): ... to here.
51936 2011-05-22  Bruno Haible  <bruno@clisp.org>
51938         wcsncpy: Move AC_LIBOBJ invocations to module description.
51939         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
51940         here...
51941         * modules/wcsncpy (configure.ac): ... to here.
51943 2011-05-22  Bruno Haible  <bruno@clisp.org>
51945         wcsncmp: Move AC_LIBOBJ invocations to module description.
51946         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
51947         here...
51948         * modules/wcsncmp (configure.ac): ... to here.
51950 2011-05-22  Bruno Haible  <bruno@clisp.org>
51952         wcsncat: Move AC_LIBOBJ invocations to module description.
51953         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
51954         here...
51955         * modules/wcsncat (configure.ac): ... to here.
51957 2011-05-22  Bruno Haible  <bruno@clisp.org>
51959         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
51960         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
51961         from here...
51962         * modules/wcsncasecmp (configure.ac): ... to here.
51964 2011-05-22  Bruno Haible  <bruno@clisp.org>
51966         wcslen: Move AC_LIBOBJ invocations to module description.
51967         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
51968         * modules/wcslen (configure.ac): ... to here.
51970 2011-05-22  Bruno Haible  <bruno@clisp.org>
51972         wcsdup: Move AC_LIBOBJ invocations to module description.
51973         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
51974         * modules/wcsdup (configure.ac): ... to here.
51976 2011-05-22  Bruno Haible  <bruno@clisp.org>
51978         wcscspn: Move AC_LIBOBJ invocations to module description.
51979         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
51980         here...
51981         * modules/wcscspn (configure.ac): ... to here.
51983 2011-05-22  Bruno Haible  <bruno@clisp.org>
51985         wcscpy: Move AC_LIBOBJ invocations to module description.
51986         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
51987         * modules/wcscpy (configure.ac): ... to here.
51989 2011-05-22  Bruno Haible  <bruno@clisp.org>
51991         wcscoll: Move AC_LIBOBJ invocations to module description.
51992         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
51993         here...
51994         * modules/wcscoll (configure.ac): ... to here.
51996 2011-05-22  Bruno Haible  <bruno@clisp.org>
51998         wcscmp: Move AC_LIBOBJ invocations to module description.
51999         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
52000         * modules/wcscmp (configure.ac): ... to here.
52002 2011-05-22  Bruno Haible  <bruno@clisp.org>
52004         wcschr: Move AC_LIBOBJ invocations to module description.
52005         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
52006         * modules/wcschr (configure.ac): ... to here.
52008 2011-05-22  Bruno Haible  <bruno@clisp.org>
52010         wcscat: Move AC_LIBOBJ invocations to module description.
52011         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
52012         * modules/wcscat (configure.ac): ... to here.
52014 2011-05-22  Bruno Haible  <bruno@clisp.org>
52016         wcscasecmp: Move AC_LIBOBJ invocations to module description.
52017         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
52018         here...
52019         * modules/wcscasecmp (configure.ac): ... to here.
52021 2011-05-22  Bruno Haible  <bruno@clisp.org>
52023         wcrtomb: Move AC_LIBOBJ invocations to module description.
52024         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
52025         invocations from here...
52026         * modules/wcrtomb (configure.ac): ... to here.
52028 2011-05-22  Bruno Haible  <bruno@clisp.org>
52030         wcpncpy: Move AC_LIBOBJ invocations to module description.
52031         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
52032         here...
52033         * modules/wcpncpy (configure.ac): ... to here.
52035 2011-05-22  Bruno Haible  <bruno@clisp.org>
52037         wcpcpy: Move AC_LIBOBJ invocations to module description.
52038         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
52039         * modules/wcpcpy (configure.ac): ... to here.
52041 2011-05-22  Bruno Haible  <bruno@clisp.org>
52043         waitpid: Move AC_LIBOBJ invocations to module description.
52044         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
52045         invocation from here...
52046         * modules/waitpid (configure.ac): ... to here.
52048 2011-05-22  Bruno Haible  <bruno@clisp.org>
52050         utimensat: Move AC_LIBOBJ invocations to module description.
52051         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
52052         here...
52053         * modules/utimensat (configure.ac): ... to here.
52055 2011-05-22  Bruno Haible  <bruno@clisp.org>
52057         usleep: Move AC_LIBOBJ invocations to module description.
52058         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
52059         here...
52060         * modules/usleep (configure.ac): ... to here.
52062 2011-05-22  Bruno Haible  <bruno@clisp.org>
52064         unlockpt: Move AC_LIBOBJ invocations to module description.
52065         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
52066         gl_PREREQ_UNLOCKPT invocations from here...
52067         * modules/unlockpt (configure.ac): ... to here.
52069 2011-05-22  Bruno Haible  <bruno@clisp.org>
52071         unlink: Respect rules for use of AC_LIBOBJ.
52072         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
52073         * modules/unlink (configure.ac): ... to here.
52075 2011-05-22  Bruno Haible  <bruno@clisp.org>
52077         uname: Move AC_LIBOBJ invocations to module description.
52078         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
52079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
52080         here...
52081         * modules/uname (configure.ac): ... to here.
52083 2011-05-22  Bruno Haible  <bruno@clisp.org>
52085         ttyname_r: Move AC_LIBOBJ invocations to module description.
52086         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
52087         gl_PREREQ_TTYNAME_R invocations from here...
52088         * modules/ttyname_r (configure.ac): ... to here.
52090 2011-05-22  Bruno Haible  <bruno@clisp.org>
52092         tsearch: Move AC_LIBOBJ invocations to module description.
52093         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
52094         invocations from here...
52095         * modules/tsearch (configure.ac): ... to here.
52097 2011-05-22  Bruno Haible  <bruno@clisp.org>
52099         towctrans: Move AC_LIBOBJ invocations to module description.
52100         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
52101         AC_LIBOBJ invocation from here...
52102         * modules/towctrans (configure.ac): ... to here.
52104 2011-05-22  Bruno Haible  <bruno@clisp.org>
52106         tmpfile: Move AC_LIBOBJ invocations to module description.
52107         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
52108         invocations from here...
52109         * modules/tmpfile (configure.ac): ... to here.
52111 2011-05-22  Bruno Haible  <bruno@clisp.org>
52113         times: Move AC_LIBOBJ invocations to module description.
52114         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
52115         * modules/times (configure.ac): ... to here.
52117 2011-05-22  Bruno Haible  <bruno@clisp.org>
52119         time_r: Move AC_LIBOBJ invocations to module description.
52120         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
52121         invocations from here...
52122         * modules/time_r (configure.ac): ... to here.
52124 2011-05-22  Bruno Haible  <bruno@clisp.org>
52126         timegm: Move AC_LIBOBJ invocations to module description.
52127         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
52128         invocations from here...
52129         * modules/timegm (configure.ac): ... to here.
52131 2011-05-22  Bruno Haible  <bruno@clisp.org>
52133         tcgetsid: Move AC_LIBOBJ invocations to module description.
52134         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
52135         and gl_PREREQ_TCGETSID invocations from here...
52136         * modules/tcgetsid (configure.ac): ... to here.
52137         (Depends-on): Update conditions.
52139 2011-05-22  Bruno Haible  <bruno@clisp.org>
52141         symlinkat: Move AC_LIBOBJ invocations to module description.
52142         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
52143         here...
52144         * modules/symlinkat (configure.ac): ... to here.
52146 2011-05-22  Bruno Haible  <bruno@clisp.org>
52148         symlink: Move AC_LIBOBJ invocations to module description.
52149         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
52150         here...
52151         * modules/symlink (configure.ac): ... to here.
52153 2011-05-22  Bruno Haible  <bruno@clisp.org>
52155         strverscmp: Move AC_LIBOBJ invocations to module description.
52156         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
52157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
52158         from here...
52159         * modules/strverscmp (configure.ac): ... to here.
52161 2011-05-22  Bruno Haible  <bruno@clisp.org>
52163         strtok_r: Move AC_LIBOBJ invocations to module description.
52164         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
52165         and gl_PREREQ_STRTOK_R invocations from here...
52166         * modules/strtok_r (configure.ac): ... to here.
52167         (Depends-on): Update conditions.
52169 2011-05-22  Bruno Haible  <bruno@clisp.org>
52171         strtoumax: Move AC_LIBOBJ invocations to module description.
52172         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
52173         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
52174         from here...
52175         * modules/strtoumax (configure.ac): ... to here.
52177 2011-05-22  Bruno Haible  <bruno@clisp.org>
52179         strtoimax: Move AC_LIBOBJ invocations to module description.
52180         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
52181         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
52182         from here...
52183         * modules/strtoimax (configure.ac): ... to here.
52185 2011-05-22  Bruno Haible  <bruno@clisp.org>
52187         strtoull: Move AC_LIBOBJ invocations to module description.
52188         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
52189         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
52190         from here...
52191         * modules/strtoull (configure.ac): ... to here.
52193 2011-05-22  Bruno Haible  <bruno@clisp.org>
52195         strtoll: Move AC_LIBOBJ invocations to module description.
52196         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
52197         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
52198         here...
52199         * modules/strtoll (configure.ac): ... to here.
52201 2011-05-22  Bruno Haible  <bruno@clisp.org>
52203         strtoul: Move AC_LIBOBJ invocations to module description.
52204         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
52205         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52206         * modules/strtoul (configure.ac): ... to here.
52208 2011-05-22  Bruno Haible  <bruno@clisp.org>
52210         strtol: Move AC_LIBOBJ invocations to module description.
52211         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
52212         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52213         * modules/strtol (configure.ac): ... to here.
52215 2011-05-22  Bruno Haible  <bruno@clisp.org>
52217         strtod: Move AC_LIBOBJ invocations to module description.
52218         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
52219         invocations from here...
52220         * modules/strtod (configure.ac): ... to here.
52222 2011-05-22  Bruno Haible  <bruno@clisp.org>
52224         strstr*: Move AC_LIBOBJ invocations to module description.
52225         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
52226         invocations from here...
52227         * modules/strstr-simple (configure.ac): ... to here.
52228         * modules/strstr (configure.ac): ... and here.
52230 2011-05-22  Bruno Haible  <bruno@clisp.org>
52232         strsignal: Move AC_LIBOBJ invocations to module description.
52233         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
52234         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
52235         * modules/strsignal (configure.ac): ... to here.
52236         (Depends-on): Update conditions.
52238 2011-05-22  Bruno Haible  <bruno@clisp.org>
52240         strsep: Move AC_LIBOBJ invocations to module description.
52241         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
52242         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
52243         here...
52244         * modules/strsep (configure.ac): ... to here.
52246 2011-05-22  Bruno Haible  <bruno@clisp.org>
52248         strptime: Move AC_LIBOBJ invocations to module description.
52249         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
52250         gl_PREREQ_STRPTIME invocations from here...
52251         * modules/strptime (configure.ac): ... to here.
52253 2011-05-22  Bruno Haible  <bruno@clisp.org>
52255         strpbrk: Move AC_LIBOBJ invocations to module description.
52256         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
52257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
52258         here...
52259         * modules/strpbrk (configure.ac): ... to here.
52261 2011-05-22  Bruno Haible  <bruno@clisp.org>
52263         strnlen: Move AC_LIBOBJ invocations to module description.
52264         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
52265         invocations from here...
52266         * modules/strnlen (configure.ac): ... to here.
52268 2011-05-22  Bruno Haible  <bruno@clisp.org>
52270         strndup: Move AC_LIBOBJ invocations to module description.
52271         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
52272         invocations from here...
52273         * modules/strndup (configure.ac): ... to here.
52274         (Depends-on): Update conditions.
52276 2011-05-22  Bruno Haible  <bruno@clisp.org>
52278         strncat: Move AC_LIBOBJ invocations to module description.
52279         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
52280         invocations from here...
52281         * modules/strncat (configure.ac): ... to here.
52283 2011-05-22  Bruno Haible  <bruno@clisp.org>
52285         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
52286         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
52287         invocations from here...
52288         * modules/strdup (configure.ac): ... to here.
52289         * modules/strdup-posix (configure.ac): ... and here.
52291 2011-05-22  Bruno Haible  <bruno@clisp.org>
52293         strcspn: Move AC_LIBOBJ invocations to module description.
52294         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
52295         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
52296         here...
52297         * modules/strcspn (configure.ac): ... to here.
52299 2011-05-22  Bruno Haible  <bruno@clisp.org>
52301         strchrnul: Move AC_LIBOBJ invocations to module description.
52302         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
52303         gl_PREREQ_STRCHRNUL invocations from here...
52304         * modules/strchrnul (configure.ac): ... to here.
52306 2011-05-22  Bruno Haible  <bruno@clisp.org>
52308         strcasestr*: Move AC_LIBOBJ invocations to module description.
52309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
52310         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
52311         * modules/strcasestr-simple (configure.ac): ... to here.
52312         * modules/strcasestr (configure.ac): ... and here.
52314 2011-05-22  Bruno Haible  <bruno@clisp.org>
52316         strcase: Move AC_LIBOBJ invocations to module description.
52317         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
52318         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
52319         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
52320         gl_PREREQ_STRNCASECMP invocations from here...
52321         * modules/strcase (configure.ac): ... to here.
52323 2011-05-22  Bruno Haible  <bruno@clisp.org>
52325         stpncpy: Move AC_LIBOBJ invocations to module description.
52326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
52327         here...
52328         * modules/stpncpy (configure.ac): ... to here.
52330 2011-05-22  Bruno Haible  <bruno@clisp.org>
52332         stpcpy: Move AC_LIBOBJ invocations to module description.
52333         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
52334         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
52335         here...
52336         * modules/stpcpy (configure.ac): ... to here.
52338 2011-05-21  Bruno Haible  <bruno@clisp.org>
52340         stat: Move AC_LIBOBJ invocations to module description.
52341         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
52342         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
52343         here...
52344         * modules/stat (configure.ac): ... to here.
52346 2011-05-21  Bruno Haible  <bruno@clisp.org>
52348         sleep: Move AC_LIBOBJ invocations to module description.
52349         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
52350         * modules/sleep (configure.ac): ... to here.
52352 2011-05-21  Bruno Haible  <bruno@clisp.org>
52354         signbit: Move AC_LIBOBJ invocations to module description.
52355         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
52356         * modules/signbit (configure.ac): ... to here.
52358 2011-05-21  Bruno Haible  <bruno@clisp.org>
52360         sigprocmask: Move AC_LIBOBJ invocations to module description.
52361         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
52362         gl_PREREQ_SIGPROMASK invocations from here...
52363         * modules/sigprocmask (configure.ac): ... to here.
52365 2011-05-21  Bruno Haible  <bruno@clisp.org>
52367         sigaction: Move AC_LIBOBJ invocations to module description.
52368         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
52369         gl_PREREQ_SIGACTION invocations from here...
52370         * modules/sigaction (configure.ac): ... to here.
52372 2011-05-21  Bruno Haible  <bruno@clisp.org>
52374         sig2str: Move AC_LIBOBJ invocations to module description.
52375         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
52376         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
52377         here...
52378         * modules/sig2str (configure.ac): ... to here.
52380 2011-05-21  Bruno Haible  <bruno@clisp.org>
52382         setlocale: Move AC_LIBOBJ invocations to module description.
52383         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
52384         gl_PREREQ_SETLOCALE invocations from here...
52385         * modules/setlocale (configure.ac): ... to here.
52387 2011-05-21  Bruno Haible  <bruno@clisp.org>
52389         unsetenv: Move AC_LIBOBJ invocations to module description.
52390         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
52391         and gl_PREREQ_UNSETENV invocations from here...
52392         * modules/unsetenv (configure.ac): ... to here.
52393         (Depends-on): Update.
52395 2011-05-21  Bruno Haible  <bruno@clisp.org>
52397         setenv: Move AC_LIBOBJ invocations to module description.
52398         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
52399         here...
52400         * modules/setenv (configure.ac): ... to here.
52402 2011-05-21  Bruno Haible  <bruno@clisp.org>
52404         selinux-h: Move AC_LIBOBJ invocations to module description.
52405         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
52406         AC_LIBOBJ invocation from here...
52407         * modules/selinux-h (configure.ac): ... to here.
52409 2011-05-21  Bruno Haible  <bruno@clisp.org>
52411         select: Respect rules for use of AC_LIBOBJ.
52412         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
52413         here...
52414         * modules/select (configure.ac): ... to here.
52416 2011-05-21  Bruno Haible  <bruno@clisp.org>
52418         scandir: Move AC_LIBOBJ invocations to module description.
52419         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
52420         invocations from here...
52421         * modules/scandir (configure.ac): ... to here.
52423 2011-05-21  Bruno Haible  <bruno@clisp.org>
52425         rpmatch: Move AC_LIBOBJ invocations to module description.
52426         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
52427         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
52428         here...
52429         * modules/rpmatch (configure.ac): ... to here.
52431 2011-05-21  Bruno Haible  <bruno@clisp.org>
52433         rmdir: Respect rules for use of AC_LIBOBJ.
52434         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
52435         * modules/rmdir (configure.ac): ... to here.
52437 2011-05-21  Bruno Haible  <bruno@clisp.org>
52439         renameat: Move AC_LIBOBJ invocations to module description.
52440         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
52441         here...
52442         * modules/renameat (configure.ac): ... to here.
52444 2011-05-21  Bruno Haible  <bruno@clisp.org>
52446         rename: Respect rules for use of AC_LIBOBJ.
52447         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
52448         here...
52449         * modules/rename (configure.ac): ... to here.
52451 2011-05-21  Bruno Haible  <bruno@clisp.org>
52453         remove: Move AC_LIBOBJ invocations to module description.
52454         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
52455         here...
52456         * modules/remove (configure.ac): ... to here.
52458 2011-05-21  Bruno Haible  <bruno@clisp.org>
52460         relocatable-lib: Move AC_LIBOBJ invocations to module description.
52461         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
52462         macro.
52463         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
52464         * modules/relocatable-lib (configure.ac): ... to here.
52465         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52466         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
52468 2011-05-21  Bruno Haible  <bruno@clisp.org>
52470         relocatable-prog: Move AC_LIBOBJ invocations to module description.
52471         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
52472         here...
52473         * modules/relocatable-prog (configure.ac): ... to here.
52475 2011-05-21  Bruno Haible  <bruno@clisp.org>
52477         regex: Move AC_LIBOBJ invocations to module description.
52478         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
52479         invocations from here...
52480         * modules/regex (configure.ac): ... to here.
52482 2011-05-21  Bruno Haible  <bruno@clisp.org>
52484         realloc-*: Move AC_LIBOBJ invocations to module description.
52485         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
52486         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
52487         AC_LIBOBJ invocations from here...
52488         * modules/realloc-gnu (configure.ac): ... to here.
52489         * modules/realloc-posix (configure.ac): ... and here.
52491 2011-05-21  Bruno Haible  <bruno@clisp.org>
52493         readutmp: Move AC_LIBOBJ invocations to module description.
52494         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
52495         * modules/readutmp (configure.ac): ... to here.
52497 2011-05-21  Bruno Haible  <bruno@clisp.org>
52499         readlinkat: Move AC_LIBOBJ invocations to module description.
52500         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
52501         here...
52502         * modules/readlinkat (configure.ac): ... to here.
52504 2011-05-21  Bruno Haible  <bruno@clisp.org>
52506         readlink: Move AC_LIBOBJ invocations to module description.
52507         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
52508         gl_PREREQ_READLINK invocations from here...
52509         * modules/readlink (configure.ac): ... to here.
52511 2011-05-21  Bruno Haible  <bruno@clisp.org>
52513         readline: Move AC_LIBOBJ invocations to module description.
52514         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
52515         gl_PREREQ_READLINE invocations from here...
52516         * modules/readline (configure.ac): ... to here.
52518 2011-05-21  Bruno Haible  <bruno@clisp.org>
52520         read: Move AC_LIBOBJ invocations to module description.
52521         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
52522         * modules/read (configure.ac): ... to here.
52524 2011-05-21  Bruno Haible  <bruno@clisp.org>
52526         rawmemchr: Move AC_LIBOBJ invocations to module description.
52527         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
52528         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
52529         from here...
52530         * modules/rawmemchr (configure.ac): ... to here.
52532 2011-05-21  Bruno Haible  <bruno@clisp.org>
52534         random_r: Move AC_LIBOBJ invocations to module description.
52535         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
52536         gl_PREREQ_RANDOM_R invocations from here...
52537         * modules/random_r (configure.ac): ... to here.
52539 2011-05-21  Bruno Haible  <bruno@clisp.org>
52541         pwrite: Move AC_LIBOBJ invocations to module description.
52542         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
52543         * modules/pwrite (configure.ac): ... to here.
52545 2011-05-21  Bruno Haible  <bruno@clisp.org>
52547         putenv: Move AC_LIBOBJ invocations to module description.
52548         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
52549         * modules/putenv (configure.ac): ... to here.
52551 2011-05-21  Bruno Haible  <bruno@clisp.org>
52553         login_tty: Move AC_LIBOBJ invocations to module description.
52554         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
52555         * modules/login_tty (configure.ac): ... to here.
52557 2011-05-21  Bruno Haible  <bruno@clisp.org>
52559         openpty: Move AC_LIBOBJ invocations to module description.
52560         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
52561         * modules/openpty (configure.ac): ... to here.
52563 2011-05-21  Bruno Haible  <bruno@clisp.org>
52565         forkpty: Move AC_LIBOBJ invocations to module description.
52566         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
52567         * modules/forkpty (configure.ac): ... to here.
52569 2011-05-21  Bruno Haible  <bruno@clisp.org>
52571         ptsname: Move AC_LIBOBJ invocations to module description.
52572         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
52573         invocations from here...
52574         * modules/ptsname (configure.ac): ... to here.
52576 2011-05-21  Bruno Haible  <bruno@clisp.org>
52578         pread: Move AC_LIBOBJ invocations to module description.
52579         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
52580         * modules/pread (configure.ac): ... to here.
52582 2011-05-21  Bruno Haible  <bruno@clisp.org>
52584         posix_spawn*: Move AC_LIBOBJ invocations to module description.
52585         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
52586         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
52587         * modules/posix_spawn (configure.ac): ... to here.
52588         * modules/posix_spawnp (configure.ac): ... and here.
52590 2011-05-21  Bruno Haible  <bruno@clisp.org>
52592         popen: Move AC_LIBOBJ invocations to module description.
52593         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
52594         invocations from here...
52595         * modules/popen (configure.ac): ... to here.
52597 2011-05-21  Bruno Haible  <bruno@clisp.org>
52599         poll: Move AC_LIBOBJ invocations to module description.
52600         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
52601         invocations from here...
52602         * modules/poll (configure.ac): ... to here.
52604 2011-05-21  Bruno Haible  <bruno@clisp.org>
52606         pipe-posix: Move AC_LIBOBJ invocations to module description.
52607         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
52608         * modules/pipe-posix (configure.ac): ... to here.
52610 2011-05-21  Bruno Haible  <bruno@clisp.org>
52612         openat: Respect rules for use of AC_LIBOBJ.
52613         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
52614         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52615         * modules/openat (configure.ac): ... to here.
52617 2011-05-21  Bruno Haible  <bruno@clisp.org>
52619         obstack-printf*: Move AC_LIBOBJ invocations to module description.
52620         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
52621         invocation from here...
52622         * modules/obstack-printf (configure.ac): ... to here.
52623         * modules/obstack-printf-posix (configure.ac): ... and here.
52625 2011-05-21  Bruno Haible  <bruno@clisp.org>
52627         nl_langinfo: Move AC_LIBOBJ invocations to module description.
52628         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
52629         from here...
52630         * modules/nl_langinfo (configure.ac): ... to here.
52632 2011-05-21  Bruno Haible  <bruno@clisp.org>
52634         nanosleep: Move AC_LIBOBJ invocations to module description.
52635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
52636         gl_PREREQ_NANOSLEEP invocations from here...
52637         * modules/nanosleep (configure.ac): ... to here.
52639 2011-05-21  Bruno Haible  <bruno@clisp.org>
52641         mountlist: Move AC_LIBOBJ invocations to module description.
52642         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
52643         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
52644         * modules/mountlist (configure.ac): ... to here.
52646 2011-05-21  Bruno Haible  <bruno@clisp.org>
52648         mktime: Respect rules for use of AC_LIBOBJ.
52649         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
52650         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
52651         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
52652         (gl_FUNC_MKTIME_INTERNAL): ... and here...
52653         * modules/mktime (configure.ac): ... to here.
52654         * modules/mktime-internal (configure.ac): ... and here.
52655         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
52657 2011-05-21  Bruno Haible  <bruno@clisp.org>
52659         mkstemps: Move AC_LIBOBJ invocations to module description.
52660         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
52661         here...
52662         * modules/mkstemps (configure.ac): ... to here.
52664 2011-05-21  Bruno Haible  <bruno@clisp.org>
52666         mkstemp: Move AC_LIBOBJ invocations to module description.
52667         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
52668         gl_PREREQ_MKSTEMP invocations from here...
52669         * modules/mkstemp (configure.ac): ... to here.
52671 2011-05-21  Bruno Haible  <bruno@clisp.org>
52673         mkostemps: Move AC_LIBOBJ invocations to module description.
52674         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
52675         here...
52676         * modules/mkostemps (configure.ac): ... to here.
52678 2011-05-21  Bruno Haible  <bruno@clisp.org>
52680         mkostemp: Move AC_LIBOBJ invocations to module description.
52681         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
52682         gl_PREREQ_MKOSTEMP invocations from here...
52683         * modules/mkostemp (configure.ac): ... to here.
52685 2011-05-21  Bruno Haible  <bruno@clisp.org>
52687         mknod: Move AC_LIBOBJ invocations to module description.
52688         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
52689         * modules/mknod (configure.ac): ... to here.
52691 2011-05-21  Bruno Haible  <bruno@clisp.org>
52693         mkfifoat: Move AC_LIBOBJ invocations to module description.
52694         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
52695         here...
52696         * modules/mkfifoat (configure.ac): ... to here.
52698 2011-05-21  Bruno Haible  <bruno@clisp.org>
52700         mkfifo: Respect rules for use of AC_LIBOBJ.
52701         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
52702         here...
52703         * modules/mkfifo (configure.ac): ... to here.
52705 2011-05-21  Bruno Haible  <bruno@clisp.org>
52707         mkdtemp: Move AC_LIBOBJ invocations to module description.
52708         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
52709         invocations from here...
52710         * modules/mkdtemp (configure.ac): ... to here.
52712 2011-05-21  Bruno Haible  <bruno@clisp.org>
52714         mkdir: Move AC_LIBOBJ invocations to module description.
52715         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
52716         * modules/mkdir (configure.ac): ... to here.
52718 2011-05-21  Bruno Haible  <bruno@clisp.org>
52720         memset: Move AC_LIBOBJ invocations to module description.
52721         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
52722         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
52723         here...
52724         * modules/memset (configure.ac): ... to here.
52726 2011-05-21  Bruno Haible  <bruno@clisp.org>
52728         memrchr: Move AC_LIBOBJ invocations to module description.
52729         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
52730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
52731         here...
52732         * modules/memrchr (configure.ac): ... to here.
52734 2011-05-21  Bruno Haible  <bruno@clisp.org>
52736         mempcpy: Move AC_LIBOBJ invocations to module description.
52737         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
52738         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
52739         here...
52740         * modules/mempcpy (configure.ac): ... to here.
52742 2011-05-21  Bruno Haible  <bruno@clisp.org>
52744         memmove: Move AC_LIBOBJ invocations to module description.
52745         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
52746         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
52747         here...
52748         * modules/memmove (configure.ac): ... to here.
52750 2011-05-21  Bruno Haible  <bruno@clisp.org>
52752         memmem*: Move AC_LIBOBJ invocations to module description.
52753         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
52754         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
52755         here...
52756         (gl_FUNC_MEMMEM): ... and here...
52757         * modules/memmem-simple (configure.ac): ... to here.
52758         * modules/memmem (configure.ac): ... and here.
52760 2011-05-21  Bruno Haible  <bruno@clisp.org>
52762         memcpy: Move AC_LIBOBJ invocations to module description.
52763         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
52764         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
52765         here...
52766         * modules/memcpy (configure.ac): ... to here.
52768 2011-05-21  Bruno Haible  <bruno@clisp.org>
52770         memcmp: Simplify autoconf macro.
52771         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
52772         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
52773         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
52775 2011-05-21  Bruno Haible  <bruno@clisp.org>
52777         memcmp: Move AC_LIBOBJ invocations to module description.
52778         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
52779         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
52780         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
52781         * modules/memcmp (configure.ac): ... to here.
52782         (Depends-on): Update conditions.
52784 2011-05-21  Bruno Haible  <bruno@clisp.org>
52786         memchr: Respect rules for use of AC_LIBOBJ.
52787         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
52788         invocations from here...
52789         * modules/memchr (configure.ac): ... to here.
52791 2011-05-21  Bruno Haible  <bruno@clisp.org>
52793         mbtowc: Move AC_LIBOBJ invocations to module description.
52794         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
52795         invocations from here...
52796         * modules/mbtowc (configure.ac): ... to here.
52798 2011-05-21  Bruno Haible  <bruno@clisp.org>
52800         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
52801         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
52802         gl_PREREQ_MBSRTOWCS invocations from here...
52803         * modules/mbsrtowcs (configure.ac): ... to here.
52805 2011-05-21  Bruno Haible  <bruno@clisp.org>
52807         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
52808         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
52809         gl_PREREQ_MBSNRTOWCS invocations from here...
52810         * modules/mbsnrtowcs (configure.ac): ... to here.
52812 2011-05-21  Bruno Haible  <bruno@clisp.org>
52814         mbsinit: Move AC_LIBOBJ invocations to module description.
52815         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
52816         invocations from here...
52817         * modules/mbsinit (configure.ac): ... to here.
52819 2011-05-21  Bruno Haible  <bruno@clisp.org>
52821         mbrlen: Move AC_LIBOBJ invocations to module description.
52822         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
52823         invocations from here...
52824         * modules/mbrlen (configure.ac): ... to here.
52826 2011-05-21  Bruno Haible  <bruno@clisp.org>
52828         mbrtowc: Respect rules for use of AC_LIBOBJ.
52829         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
52830         invocations from here...
52831         * modules/mbrtowc (configure.ac): ... to here.
52833 2011-05-21  Bruno Haible  <bruno@clisp.org>
52835         malloc-*: Move AC_LIBOBJ invocations to module description.
52836         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
52837         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
52838         AC_LIBOBJ invocations from here...
52839         * modules/malloc-gnu (configure.ac): ... to here.
52840         * modules/malloc-posix (configure.ac): ... and here.
52842 2011-05-21  Bruno Haible  <bruno@clisp.org>
52844         lstat, openat: Respect rules for use of AC_LIBOBJ.
52845         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
52846         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
52847         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
52848         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
52849         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
52850         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
52851         here.
52852         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
52854 2011-05-21  Bruno Haible  <bruno@clisp.org>
52856         lseek: Move AC_LIBOBJ invocations to module description.
52857         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
52858         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
52859         * modules/lseek (configure.ac): ... to here.
52861 2011-05-21  Bruno Haible  <bruno@clisp.org>
52863         linkat: Move AC_LIBOBJ invocations to module description.
52864         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
52865         here...
52866         * modules/linkat (configure.ac): ... to here.
52868 2011-05-21  Bruno Haible  <bruno@clisp.org>
52870         link: Respect rules for use of AC_LIBOBJ.
52871         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
52872         * modules/link (configure.ac): ... to here.
52874 2011-05-21  Bruno Haible  <bruno@clisp.org>
52876         lchown: Move AC_LIBOBJ invocations to module description.
52877         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52878         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52879         * modules/lchown (configure.ac): ... to here.
52881 2011-05-21  Bruno Haible  <bruno@clisp.org>
52883         iswctype: Move AC_LIBOBJ invocations to module description.
52884         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
52885         here...
52886         * modules/iswctype (configure.ac): ... to here.
52888 2011-05-21  Bruno Haible  <bruno@clisp.org>
52890         iswblank: Move AC_LIBOBJ invocations to module description.
52891         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
52892         here...
52893         * modules/iswblank (configure.ac): ... to here.
52895 2011-05-21  Bruno Haible  <bruno@clisp.org>
52897         atanl: Move AC_LIBOBJ invocations to module description.
52898         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
52899         * modules/atanl (configure.ac): ... to here.
52901 2011-05-21  Bruno Haible  <bruno@clisp.org>
52903         acosl: Move AC_LIBOBJ invocations to module description.
52904         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
52905         * modules/acosl (configure.ac): ... to here.
52907 2011-05-21  Bruno Haible  <bruno@clisp.org>
52909         asinl: Respect rules for use of AC_LIBOBJ.
52910         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
52911         * modules/asinl (configure.ac): ... to here.
52913 2011-05-21  Bruno Haible  <bruno@clisp.org>
52915         tanl: Move AC_LIBOBJ invocations to module description.
52916         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
52917         * modules/tanl (configure.ac): ... to here.
52919 2011-05-21  Bruno Haible  <bruno@clisp.org>
52921         cosl: Move AC_LIBOBJ invocations to module description.
52922         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
52923         * modules/cosl (configure.ac): ... to here.
52925 2011-05-21  Bruno Haible  <bruno@clisp.org>
52927         sinl: Move AC_LIBOBJ invocations to module description.
52928         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
52929         * modules/sinl (configure.ac): ... to here.
52931 2011-05-21  Bruno Haible  <bruno@clisp.org>
52933         logl: Move AC_LIBOBJ invocations to module description.
52934         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
52935         * modules/logl (configure.ac): ... to here.
52937 2011-05-21  Bruno Haible  <bruno@clisp.org>
52939         expl: Move AC_LIBOBJ invocations to module description.
52940         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
52941         * modules/expl (configure.ac): ... to here.
52943 2011-05-21  Bruno Haible  <bruno@clisp.org>
52945         roundl: Move AC_LIBOBJ invocations to module description.
52946         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
52947         * modules/roundl (configure.ac): ... to here.
52949 2011-05-21  Bruno Haible  <bruno@clisp.org>
52951         round: Move AC_LIBOBJ invocations to module description.
52952         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
52953         * modules/round (configure.ac): ... to here.
52955 2011-05-21  Bruno Haible  <bruno@clisp.org>
52957         roundf: Move AC_LIBOBJ invocations to module description.
52958         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
52959         * modules/roundf (configure.ac): ... to here.
52961 2011-05-21  Bruno Haible  <bruno@clisp.org>
52963         truncl: Move AC_LIBOBJ invocations to module description.
52964         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
52965         * modules/truncl (configure.ac): ... to here.
52967 2011-05-21  Bruno Haible  <bruno@clisp.org>
52969         trunc: Move AC_LIBOBJ invocations to module description.
52970         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
52971         * modules/trunc (configure.ac): ... to here.
52973 2011-05-21  Bruno Haible  <bruno@clisp.org>
52975         truncf: Move AC_LIBOBJ invocations to module description.
52976         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
52977         * modules/truncf (configure.ac): ... to here.
52979 2011-05-21  Bruno Haible  <bruno@clisp.org>
52981         ceill: Move AC_LIBOBJ invocations to module description.
52982         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
52983         * modules/ceill (configure.ac): ... to here.
52985 2011-05-21  Bruno Haible  <bruno@clisp.org>
52987         ceil: Move AC_LIBOBJ invocations to module description.
52988         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
52989         * modules/ceil (configure.ac): ... to here.
52991 2011-05-21  Bruno Haible  <bruno@clisp.org>
52993         ceilf: Move AC_LIBOBJ invocations to module description.
52994         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
52995         * modules/ceilf (configure.ac): ... to here.
52997 2011-05-21  Bruno Haible  <bruno@clisp.org>
52999         floorl: Respect rules for use of AC_LIBOBJ.
53000         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
53001         * modules/floorl (configure.ac): ... to here.
53003 2011-05-21  Bruno Haible  <bruno@clisp.org>
53005         floor: Respect rules for use of AC_LIBOBJ.
53006         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
53007         * modules/floor (configure.ac): ... to here.
53009 2011-05-21  Bruno Haible  <bruno@clisp.org>
53011         floorf: Move AC_LIBOBJ invocations to module description.
53012         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
53013         * modules/floorf (configure.ac): ... to here.
53015 2011-05-20  Bruno Haible  <bruno@clisp.org>
53017         sqrtl: Respect rules for use of AC_LIBOBJ.
53018         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
53019         * modules/sqrtl (configure.ac): ... to here.
53021 2011-05-20  Bruno Haible  <bruno@clisp.org>
53023         ldexpl: Respect rules for use of AC_LIBOBJ.
53024         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
53025         * modules/ldexpl (configure.ac): ... to here.
53027 2011-05-20  Bruno Haible  <bruno@clisp.org>
53029         frexpl*: Respect rules for use of AC_LIBOBJ.
53030         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
53031         invocation from here...
53032         * modules/frexpl (configure.ac): ... to here.
53033         * modules/frexpl-nolibm (configure.ac): ... and here.
53035 2011-05-20  Bruno Haible  <bruno@clisp.org>
53037         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
53038         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
53039         invocation from here...
53040         * modules/frexp (configure.ac): ... to here.
53041         * modules/frexp-nolibm (configure.ac): ... and here.
53043 2011-05-20  Bruno Haible  <bruno@clisp.org>
53045         isnan: Respect rules for use of AC_LIBOBJ.
53046         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
53047         invocations here.
53048         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
53049         REPLACE_ISNAN.
53050         * modules/isnand (configure.ac): Likewise.
53051         * modules/isnanl (configure.ac): Likewise.
53053 2011-05-20  Bruno Haible  <bruno@clisp.org>
53055         isnanl*: Respect rules for use of AC_LIBOBJ.
53056         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
53057         invocation from here...
53058         * modules/isnanl (configure.ac): ... to here.
53059         * modules/isnanl-nolibm (configure.ac): ... and here.
53061 2011-05-20  Bruno Haible  <bruno@clisp.org>
53063         isnand*: Move AC_LIBOBJ invocations to module description.
53064         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
53065         invocation from here...
53066         * modules/isnand (configure.ac): ... to here.
53067         * modules/isnand-nolibm (configure.ac): ... and here.
53069 2011-05-20  Bruno Haible  <bruno@clisp.org>
53071         isnanf*: Move AC_LIBOBJ invocations to module description.
53072         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
53073         invocation from here...
53074         * modules/isnanf (configure.ac): ... to here.
53075         * modules/isnanf-nolibm (configure.ac): ... and here.
53077 2011-05-20  Bruno Haible  <bruno@clisp.org>
53079         isnan*: Separate the AC_LIBOBJ invocations.
53080         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
53081         AC_LIBOBJ invocation.
53082         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
53083         here.
53084         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
53085         AC_LIBOBJ invocation.
53086         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
53087         here.
53088         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
53089         AC_LIBOBJ invocation.
53090         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
53091         here.
53092         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
53094 2011-05-08  Bruno Haible  <bruno@clisp.org>
53096         isinf: Move AC_LIBOBJ invocations to module description.
53097         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
53098         * modules/isinf (configure.ac): ... to here.
53100 2011-05-08  Bruno Haible  <bruno@clisp.org>
53102         isfinite: Move AC_LIBOBJ invocations to module description.
53103         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
53104         * modules/isfinite (configure.ac): ... to here.
53106 2011-05-08  Bruno Haible  <bruno@clisp.org>
53108         isblank: Move AC_LIBOBJ invocations to module description.
53109         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
53110         here...
53111         * modules/isblank (configure.ac): ... to here.
53113 2011-05-08  Bruno Haible  <bruno@clisp.org>
53115         isapipe: Move AC_LIBOBJ invocations to module description.
53116         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
53117         gl_PREREQ_ISAPIPE invocations from here...
53118         * modules/isapipe (configure.ac): ... to here.
53119         (Depends-on): Update condition.
53121 2011-05-08  Bruno Haible  <bruno@clisp.org>
53123         ioctl: Move AC_LIBOBJ invocations to module description.
53124         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
53125         invocations from here...
53126         * modules/ioctl (configure.ac): ... to here.
53127         (Depends-on): Update condition.
53129 2011-05-08  Bruno Haible  <bruno@clisp.org>
53131         imaxdiv: Move AC_LIBOBJ invocations to module description.
53132         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
53133         invocations from here...
53134         * modules/imaxdiv (configure.ac): ... to here.
53136 2011-05-08  Bruno Haible  <bruno@clisp.org>
53138         imaxabs: Move AC_LIBOBJ invocations to module description.
53139         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
53140         invocations from here...
53141         * modules/imaxabs (configure.ac): ... to here.
53143 2011-05-08  Bruno Haible  <bruno@clisp.org>
53145         getaddrinfo: Move AC_LIBOBJ invocations to module description.
53146         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
53147         AC_LIBOBJ invocations from here...
53148         * modules/getaddrinfo (configure.ac): ... to here.
53149         (Depends-on): Add conditions.
53151 2011-05-08  Bruno Haible  <bruno@clisp.org>
53153         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53154         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
53155         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53156         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
53157         (gl_PREREQ_INET_PTON): ... from here.
53158         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
53159         gl_PREREQ_INET_PTON here.
53160         (Depends-on): Update condition.
53162 2011-05-08  Bruno Haible  <bruno@clisp.org>
53164         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53165         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
53166         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53167         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
53168         (gl_PREREQ_INET_NTOP): ... from here.
53169         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
53170         gl_PREREQ_INET_NTOP here.
53171         (Depends-on): Update condition.
53173 2011-05-08  Bruno Haible  <bruno@clisp.org>
53175         iconv_open: Move AC_LIBOBJ invocations to module description.
53176         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
53177         AC_LIBOBJ invocations from here...
53178         * modules/iconv_open (configure.ac): ... to here.
53180 2011-05-08  Bruno Haible  <bruno@clisp.org>
53182         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
53183         If module 'iconv_open' is among the main modules and module
53184         'iconv_open-utf' is among the tests dependencies, then
53185         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
53186         return the special iconv_t values. Therefore iconv() and iconv_close()
53187         must support these special iconv_t values, already in lib, not only in
53188         tests.
53189         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
53190         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
53191         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
53192         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
53193         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
53194         (Depends-on): Add the dependencies of iconv_open-utf.
53195         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
53196         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
53197         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
53199 2011-05-08  Bruno Haible  <bruno@clisp.org>
53201         group-member: Move AC_LIBOBJ invocations to module description.
53202         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
53203         gl_PREREQ_GROUP_MEMBER invocations from here...
53204         * modules/group-member (configure.ac): ... to here.
53206 2011-05-08  Bruno Haible  <bruno@clisp.org>
53208         grantpt: Move AC_LIBOBJ invocations to module description.
53209         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
53210         invocations from here...
53211         * modules/grantpt (configure.ac): ... to here.
53213 2011-05-08  Bruno Haible  <bruno@clisp.org>
53215         glob: Move AC_LIBOBJ invocations to module description.
53216         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
53217         from here...
53218         * modules/glob (configure.ac): ... to here.
53220 2011-05-08  Bruno Haible  <bruno@clisp.org>
53222         getusershell: Move AC_LIBOBJ invocations to module description.
53223         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
53224         Move AC_LIBOBJ invocation from here...
53225         * modules/getusershell (configure.ac): ... to here.
53226         (Depends-on): Update condition.
53228 2011-05-08  Bruno Haible  <bruno@clisp.org>
53230         gettimeofday: Move AC_LIBOBJ invocations to module description.
53231         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53232         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
53233         gl_PREREQ_GETTIMEOFDAY invocations from here...
53234         * modules/gettimeofday (configure.ac): ... to here.
53236 2011-05-08  Bruno Haible  <bruno@clisp.org>
53238         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
53239         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
53240         just gl_FUNC_TZSET.
53241         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
53242         (gl_FUNC_TZSET_CLOBBER): Remove actions.
53243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
53244         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
53246 2011-05-08  Bruno Haible  <bruno@clisp.org>
53248         getsubopt: Move AC_LIBOBJ invocations to module description.
53249         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
53250         gl_PREREQ_GETSUBOPT invocations from here...
53251         * modules/getsubopt (configure.ac): ... to here.
53253 2011-05-08  Bruno Haible  <bruno@clisp.org>
53255         getpass-gnu: Move AC_LIBOBJ invocations to module description.
53256         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
53257         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
53258         * modules/getpass-gnu (configure.ac): ... to here.
53260 2011-05-08  Bruno Haible  <bruno@clisp.org>
53262         getpass: Move AC_LIBOBJ invocations to module description.
53263         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
53264         gl_PREREQ_GETPASS invocations from here...
53265         * modules/getpass (configure.ac): ... to here.
53267 2011-05-08  Bruno Haible  <bruno@clisp.org>
53269         getpagesize: Move AC_LIBOBJ invocations to module description.
53270         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
53271         from here...
53272         * modules/getpagesize (configure.ac): ... to here.
53274 2011-05-08  Bruno Haible  <bruno@clisp.org>
53276         getopt: Move AC_LIBOBJ invocations to module description.
53277         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
53278         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
53279         invocations from here...
53280         * modules/getopt-gnu (configure.ac): ... to here.
53281         * modules/getopt-posix (configure.ac): ... and here.
53282         (Depends-on): Update condition.
53284 2011-05-08  Bruno Haible  <bruno@clisp.org>
53286         getopt, argp: Respect rules for use of AC_LIBOBJ.
53287         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
53288         (gl_REPLACE_GETOPT_ALWAYS): New macro.
53289         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
53290         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
53292 2011-05-08  Bruno Haible  <bruno@clisp.org>
53294         getlogin_r: Move AC_LIBOBJ invocations to module description.
53295         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
53296         gl_PREREQ_GETLOGIN_R invocations from here...
53297         * modules/getlogin_r (configure.ac): ... to here.
53299 2011-05-08  Bruno Haible  <bruno@clisp.org>
53301         getlogin: Move AC_LIBOBJ invocations to module description.
53302         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
53303         here...
53304         * modules/getlogin (configure.ac): ... to here.
53306 2011-05-08  Bruno Haible  <bruno@clisp.org>
53308         getloadavg: Move AC_LIBOBJ invocations to module description.
53309         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
53310         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
53311         * modules/getloadavg (configure.ac): ... to here.
53313 2011-05-08  Bruno Haible  <bruno@clisp.org>
53315         gethrxtime: Move AC_LIBOBJ invocations to module description.
53316         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
53317         LIB_GETHRXTIME from here...
53318         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
53319         invocations from here...
53320         * modules/gethrxtime (configure.ac): ... to here.
53322 2011-05-08  Bruno Haible  <bruno@clisp.org>
53324         gethostname: Move AC_LIBOBJ invocations to module description.
53325         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
53326         gl_PREREQ_GETHOSTNAME invocations from here...
53327         * modules/gethostname (configure.ac): ... to here.
53329 2011-05-08  Bruno Haible  <bruno@clisp.org>
53331         getgroups: Move AC_LIBOBJ invocations to module description.
53332         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
53333         here...
53334         * modules/getgroups (configure.ac): ... to here.
53336 2011-05-08  Bruno Haible  <bruno@clisp.org>
53338         getdtablesize: Move AC_LIBOBJ invocations to module description.
53339         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
53340         invocation from here...
53341         * modules/getdtablesize (configure.ac): ... to here.
53343 2011-05-08  Bruno Haible  <bruno@clisp.org>
53345         getdomainname: Move AC_LIBOBJ invocations to module description.
53346         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
53347         gl_PREREQ_GETDOMAINNAME invocations from here...
53348         * modules/getdomainname (configure.ac): ... to here.
53350 2011-05-08  Bruno Haible  <bruno@clisp.org>
53352         getline: Move AC_LIBOBJ invocations to module description.
53353         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
53354         invocations from here...
53355         * modules/getline (configure.ac): ... to here.
53357 2011-05-08  Bruno Haible  <bruno@clisp.org>
53359         getline: Simplify.
53360         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
53361         It's already handled through the module dependency.
53363 2011-05-08  Bruno Haible  <bruno@clisp.org>
53365         getdelim: Move AC_LIBOBJ invocations to module description.
53366         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
53367         and gl_PREREQ_GETDELIM invocations from here...
53368         * modules/getdelim (configure.ac): ... to here.
53369         (Depends-on): Fix condition.
53371 2011-05-08  Bruno Haible  <bruno@clisp.org>
53373         getcwd: Move AC_LIBOBJ invocations to module description.
53374         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
53375         invocations from here...
53376         * modules/getcwd (configure.ac): ... to here.
53378 2011-05-08  Bruno Haible  <bruno@clisp.org>
53380         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
53381         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
53382         here...
53383         * modules/getcwd-lgpl (configure.ac): ... to here.
53385 2011-05-07  Bruno Haible  <bruno@clisp.org>
53387         crypto/gc: Move AC_LIBOBJ invocations to module description.
53388         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
53389         * modules/crypto/gc (configure.ac): ... to here.
53391 2011-05-07  Bruno Haible  <bruno@clisp.org>
53393         fwriting: Move AC_LIBOBJ invocations to module description.
53394         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
53395         here...
53396         * modules/fwriting (configure.ac): ... to here.
53398 2011-05-07  Bruno Haible  <bruno@clisp.org>
53400         fwritable: Move AC_LIBOBJ invocations to module description.
53401         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
53402         here...
53403         * modules/fwritable (configure.ac): ... to here.
53405 2011-05-07  Bruno Haible  <bruno@clisp.org>
53407         futimens: Move AC_LIBOBJ invocations to module description.
53408         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
53409         here...
53410         * modules/futimens (configure.ac): ... to here.
53412 2011-05-07  Bruno Haible  <bruno@clisp.org>
53414         ftruncate: Move AC_LIBOBJ invocations to module description.
53415         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
53416         gl_PREREQ_FTRUNCATE invocations from here...
53417         * modules/ftruncate (configure.ac): ... to here.
53419 2011-05-07  Bruno Haible  <bruno@clisp.org>
53421         fsync: Move AC_LIBOBJ invocations to module description.
53422         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
53423         invocations from here...
53424         * modules/fsync (configure.ac): ... to here.
53426 2011-05-07  Bruno Haible  <bruno@clisp.org>
53428         fsusage: Move AC_LIBOBJ invocations to module description.
53429         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
53430         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
53431         * modules/fsusage (configure.ac): ... to here.
53433 2011-05-07  Bruno Haible  <bruno@clisp.org>
53435         freopen: Move AC_LIBOBJ invocations to module description.
53436         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
53437         invocations from here...
53438         * modules/freopen (configure.ac): ... to here.
53440 2011-05-07  Bruno Haible  <bruno@clisp.org>
53442         free: Move AC_LIBOBJ invocations to module description.
53443         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
53444         invocations from here...
53445         * modules/free (configure.ac): ... to here.
53447 2011-05-07  Bruno Haible  <bruno@clisp.org>
53449         freadable: Move AC_LIBOBJ invocations to module description.
53450         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
53451         here...
53452         * modules/freadable (configure.ac): ... to here.
53454 2011-05-07  Bruno Haible  <bruno@clisp.org>
53456         fpurge: Move AC_LIBOBJ invocations to module description.
53457         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
53458         invocations from here...
53459         * modules/fpurge (configure.ac): ... to here.
53461 2011-05-07  Bruno Haible  <bruno@clisp.org>
53463         fpending: Move AC_LIBOBJ invocations to module description.
53464         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
53465         gl_FUNC_FPENDING.
53466         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
53467         invocations from here...
53468         * modules/fpending (configure.ac): ... to here.
53470 2011-05-07  Bruno Haible  <bruno@clisp.org>
53472         fopen: Move AC_LIBOBJ invocations to module description.
53473         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
53474         invocations from here...
53475         * modules/fopen (configure.ac): ... to here.
53477 2011-05-07  Bruno Haible  <bruno@clisp.org>
53479         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
53480         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
53481         gl_FUNC_FNMATCH_POSIX.
53482         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
53483         invocations from here...
53484         * modules/fnmatch (configure.ac): ... to here.
53485         * modules/fnmatch-gnu (configure.ac): ... and here.
53487 2011-05-07  Bruno Haible  <bruno@clisp.org>
53489         flock: Move AC_LIBOBJ invocations to module description.
53490         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
53491         invocations from here...
53492         * modules/flock (configure.ac): ... to here.
53494 2011-05-07  Bruno Haible  <bruno@clisp.org>
53496         fileblocks: Move AC_LIBOBJ invocations to module description.
53497         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
53498         gl_PREREQ_FILEBLOCKS invocations from here...
53499         * modules/fileblocks (configure.ac): ... to here.
53501 2011-05-06  Bruno Haible  <bruno@clisp.org>
53503         fflush: Move AC_LIBOBJ invocations to module description.
53504         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
53505         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
53506         invocations from here...
53507         * modules/fflush (configure.ac): ... to here.
53509 2011-05-06  Bruno Haible  <bruno@clisp.org>
53511         fdopendir: Move AC_LIBOBJ invocations to module description.
53512         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
53513         here...
53514         * modules/fdopendir (configure.ac): ... to here.
53515         (Depends-on): Improve conditions.
53517 2011-05-06  Bruno Haible  <bruno@clisp.org>
53519         _Exit: Move AC_LIBOBJ invocations to module description.
53520         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
53521         invocations from here...
53522         * modules/_Exit (configure.ac): ... to here.
53524 2011-05-21  Bruno Haible  <bruno@clisp.org>
53526         euidaccess: Respect rules for use of AC_LIBOBJ.
53527         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53528         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
53529         from here...
53530         * modules/euidaccess (configure.ac): ... to here.
53532 2011-05-06  Bruno Haible  <bruno@clisp.org>
53534         error: Move AC_LIBOBJ invocations to module description.
53535         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
53536         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
53537         invocations from here...
53538         * modules/error (configure.ac): ... to here.
53540 2011-05-06  Bruno Haible  <bruno@clisp.org>
53542         duplocale: Move AC_LIBOBJ invocations to module description.
53543         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
53544         gl_PREREQ_DUPLOCALE invocations from here...
53545         * modules/duplocale (configure.ac): ... to here.
53547 2011-05-05  Bruno Haible  <bruno@clisp.org>
53549         dirfd: Move AC_LIBOBJ invocations to module description.
53550         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
53551         gl_FUNC_DIRFD.
53552         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
53553         here...
53554         * modules/dirfd (configure.ac): ... to here.
53555         (Depends-on): Fix condition.
53557 2011-05-05  Bruno Haible  <bruno@clisp.org>
53559         chown: Respect rules for use of AC_LIBOBJ.
53560         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
53561         * modules/chown (configure.ac): ... to here.
53563 2011-05-05  Bruno Haible  <bruno@clisp.org>
53565         chdir-long: Move AC_LIBOBJ invocations to module description.
53566         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
53567         gl_PREREQ_CHDIR_LONG invocations from here...
53568         * modules/chdir-long (configure.ac): ... to here.
53570 2011-05-05  Bruno Haible  <bruno@clisp.org>
53572         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
53573         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
53574         from here...
53575         * modules/canonicalize-lgpl (configure.ac): ... to here.
53577 2011-05-05  Bruno Haible  <bruno@clisp.org>
53579         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
53580         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
53581         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
53582         REPLACE_CALLOC.
53583         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
53584         * modules/calloc-gnu (configure.ac): Likewise.
53586 2011-05-05  Bruno Haible  <bruno@clisp.org>
53588         btowc: Move AC_LIBOBJ invocations to module description.
53589         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
53590         invocations from here...
53591         * modules/btowc (configure.ac): ... to here.
53593 2011-05-21  Bruno Haible  <bruno@clisp.org>
53595         atexit: Move AC_LIBOBJ invocations to module description.
53596         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
53597         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
53598         here...
53599         * modules/atexit (configure.ac): ... to here.
53601 2011-05-05  Bruno Haible  <bruno@clisp.org>
53603         atoll: Move AC_LIBOBJ invocations to module description.
53604         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
53605         invocations from here...
53606         * modules/atoll (configure.ac): ... to here.
53608 2011-05-05  Bruno Haible  <bruno@clisp.org>
53610         argz: Move AC_LIBOBJ invocations to module description.
53611         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
53612         * modules/argz (configure.ac): ... to here.
53614 2011-05-05  Bruno Haible  <bruno@clisp.org>
53616         alphasort: Move AC_LIBOBJ invocations to module description.
53617         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
53618         gl_PREREQ_ALPHASORT invocations from here...
53619         * modules/alphasort (configure.ac): ... to here.
53621 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53623         verify: new macro verify_expr; verify_true deprecated
53624         * NEWS: Mention this.
53625         * doc/verify.texi (Compile-time Assertions): Document this.
53626         * lib/verify.h (verify_true): Deprecate.
53627         (verify_expr): New macro.
53628         * tests/test-verify.c (function): Test verify_expr.
53630 2011-06-14  Jim Meyering  <meyering@redhat.com>
53632         init.sh: give more portable redirection-related advice in a comment
53633         * tests/init.sh (stderr_fileno_): Update the advice in comments.
53634         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
53635         for lots of discussion.  Stefano Lattarini suggested the solution
53636         of putting "9>&2" after the command.  Reported by Bruno Haible.
53638 2011-06-13  Bruno Haible  <bruno@clisp.org>
53640         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
53641         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
53642         'none'.
53644 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
53646         ftoastr: use strtof only if HAVE_STRTOF
53647         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
53648         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
53649         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
53650         * modules/ftoastr (configure.ac): Check for strtof.
53652 2011-06-13  Bruno Haible  <bruno@clisp.org>
53654         gnulib-tool: Addendum to 2011-06-08 commit.
53655         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
53656         and --witness-c-macro have been given, augment AM_CPPFLAGS.
53658 2011-06-13  Bruno Haible  <bruno@clisp.org>
53660         fseeko: Provide a non-inline replacement of fseek().
53661         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
53662         * modules/fseeko (Depends-on): Add fseek.
53663         * modules/fseek (License): Change to LGPLv2+.
53665 2011-06-13  Bruno Haible  <bruno@clisp.org>
53667         ftello: Provide a non-inline replacement of ftell().
53668         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
53669         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
53670         not have ftello() (such as on mingw).
53671         * modules/ftello (Depends-on): Add ftell.
53672         * modules/ftell (License): Change to LGPLv2+.
53674 2011-05-07  Bruno Haible  <bruno@clisp.org>
53676         ftell: Move AC_LIBOBJ invocations to module description.
53677         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
53678         * modules/ftell (configure.ac): ... to here.
53680 2011-05-07  Bruno Haible  <bruno@clisp.org>
53682         ftello: Respect rules for use of AC_LIBOBJ.
53683         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
53684         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
53685         here...
53686         * modules/ftello (configure.ac): ... to here.
53688 2011-05-07  Bruno Haible  <bruno@clisp.org>
53690         fseeko: Simplify.
53691         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
53692         (gl_FUNC_FSEEKO): Inline it here.
53694 2011-05-07  Bruno Haible  <bruno@clisp.org>
53696         fseek: Move AC_LIBOBJ invocations to module description.
53697         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
53698         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53699         * modules/fseek (configure.ac): ... to here.
53701 2011-05-07  Bruno Haible  <bruno@clisp.org>
53703         fseek: Respect rules for use of AC_LIBOBJ.
53704         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
53705         here...
53706         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
53708 2011-05-07  Bruno Haible  <bruno@clisp.org>
53710         fseeko: Respect rules for use of AC_LIBOBJ.
53711         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
53712         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
53713         here...
53714         * modules/fseeko (configure.ac): ... to here.
53716 2011-06-13  Bruno Haible  <bruno@clisp.org>
53718         gnulib-tool: Allow comments in the 'Depends-on' section.
53719         * doc/gnulib.texi (Module description): Mention comment syntax in the
53720         Depends-on section.
53721         * gnulib-tool (func_get_dependencies): Filter out comment lines.
53723 2011-06-13  Bruno Haible  <bruno@clisp.org>
53725         file-set.h: guard __attibute__ use, now that it's not always defined
53726         * lib/file-set.h (record_file): Use __attribute__ only with compiler
53727         versions that support it.  This fixes a coreutils build failure with
53728         the vendor cc on HP-UX 11.31.
53730 2011-06-12  Bruno Haible  <bruno@clisp.org>
53732         acl: Add support for HP-UX >= 11.11 JFS ACLs.
53733         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
53734         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
53735         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
53736         (acl, aclsort): New declarations.
53737         (aclv_nontrivial): New declaration.
53738         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
53739         (file_has_acl): Read also the second kind of HP-UX ACLs.
53740         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
53741         kind of HP-UX ACLs if the first kind fails.
53742         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
53743         second kind of HP-UX ACLs.
53744         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
53745         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
53746         agree.
53747         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53748         hpuxjfs.
53749         Handle hpuxjfs.
53750         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53751         hpuxjfs.
53752         Handle hpuxjfs.
53753         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53754         (func_test_same_acls): Use both lsacl and getacl.
53755         Handle hpuxjfs.
53756         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53757         (func_test_same_acls): Use both lsacl and getacl.
53758         Handle hpuxjfs.
53760 2011-06-12  Bruno Haible  <bruno@clisp.org>
53762         acl: Complete the 2010-08-10 fix.
53763         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
53764         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
53765         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
53766         explicitly.
53767         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
53768         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
53770 2011-06-12  Bruno Haible  <bruno@clisp.org>
53772         spawn-pipe tests: Comments.
53773         * tests/test-spawn-pipe-child.c (main): Update comment.
53774         Reported by James Youngman <jay@gnu.org>.
53776 2011-06-11  James Youngman  <jay@gnu.org>
53778         New module 'stat-size'.
53779         * modules/stat-size: New module.  Provides macros for accessing
53780         file size information in instances of struct stat.  Depends on the
53781         fileblocks module because it calls st_blocks.
53782         * lib/stat-size.h: New file, adapted from coreutils' system.h.
53783         * doc/gnulib.texi: Include stat-size.texi.
53784         * doc/stat-size.texi: Documentation for this module.
53785         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
53786         * m4/fileblocks.m4: Mention that stat-size depends on the call to
53787         AC_STRUCT_ST_BLOCKS.
53789 2011-06-09  Bruno Haible  <bruno@clisp.org>
53791         thread: Support pthreads-win32.
53792         * lib/glthread/thread.h (gl_thread_self): Define differently on
53793         pthreads-win32.
53794         (gl_null_thread): New declaration.
53795         (gl_thread_self_pointer): New macro.
53796         * lib/glthread/thread.c (gl_null_thread): New constant.
53797         * tests/test-lock.c: Use gl_thread_self_pointer instead of
53798         gl_thread_self.
53799         * tests/test-tls.c: Likewise.
53800         Suggested by Paul Eggert. Reported by Eric Blake.
53802 2011-06-09  Bruno Haible  <bruno@clisp.org>
53804         thread: Fix confusion between NULL and 0.
53805         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
53806         Reported by Paul Eggert.
53808 2011-06-09  Bruno Haible  <bruno@clisp.org>
53810         spawn-pipe tests: Avoid test failure on HP-UX 11.
53811         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
53812         is closed.
53814 2011-06-09  Bruno Haible  <bruno@clisp.org>
53816         acl tests: Fix compilation error on HP-UX 11.
53817         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
53819 2011-06-09  Bruno Haible  <bruno@clisp.org>
53821         rmdir: Avoid test failure on HP-UX 10.20.
53822         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
53823         EEXIST.
53825 2011-06-08  Eric Blake  <eblake@redhat.com>
53827         perror: fix test on mingw
53828         * modules/perror-tests (Depends-on): Add dup2.
53830         strerror_r-posix: fix on MacOS
53831         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
53832         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
53833         logic bug.
53834         * lib/strerror_r.c (strerror_r): Fix the bug.
53835         * lib/strerror.c (strerror): Likewise.
53836         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
53837         problem.
53838         * doc/posix-functions/strerror.texi (strerror): Likewise.
53839         * doc/posix-functions/perror.texi (perror): Likewise.
53840         * tests/test-strerror.c (main): Enhance test.
53841         * tests/test-strerror_r.c (main): Likewise.
53843 2011-06-08  Bruno Haible  <bruno@clisp.org>
53845         gnulib-tool: Better isolation between different gnulib-tool invocations.
53846         * gnulib-tool: New option --witness-c-macro.
53847         (witness_c_macro): New variable.
53848         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
53849         AM_CPPFLAGS define it as a C macro.
53850         (func_emit_tests_Makefile_am): Likewise.
53851         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
53852         read it from there.
53853         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
53854         m4_define, not AC_DEFUN.
53855         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
53856         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
53857         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
53858         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
53859         s|...|...|, to substitute the values of the GNULIB_* module indicator
53860         variables.
53861         * modules/dirent (Makefile.am): Likewise.
53862         * modules/fcntl-h (Makefile.am): Likewise.
53863         * modules/iconv-h (Makefile.am): Likewise.
53864         * modules/langinfo (Makefile.am): Likewise.
53865         * modules/locale (Makefile.am): Likewise.
53866         * modules/math (Makefile.am): Likewise.
53867         * modules/netdb (Makefile.am): Likewise.
53868         * modules/poll-h (Makefile.am): Likewise.
53869         * modules/pty (Makefile.am): Likewise.
53870         * modules/search (Makefile.am): Likewise.
53871         * modules/signal (Makefile.am): Likewise.
53872         * modules/spawn (Makefile.am): Likewise.
53873         * modules/stdio (Makefile.am): Likewise.
53874         * modules/stdlib (Makefile.am): Likewise.
53875         * modules/string (Makefile.am): Likewise.
53876         * modules/sys_ioctl (Makefile.am): Likewise.
53877         * modules/sys_select (Makefile.am): Likewise.
53878         * modules/sys_socket (Makefile.am): Likewise.
53879         * modules/sys_stat (Makefile.am): Likewise.
53880         * modules/sys_times (Makefile.am): Likewise.
53881         * modules/sys_utsname (Makefile.am): Likewise.
53882         * modules/sys_wait (Makefile.am): Likewise.
53883         * modules/termios (Makefile.am): Likewise.
53884         * modules/time (Makefile.am): Likewise.
53885         * modules/unistd (Makefile.am): Likewise.
53886         * modules/wchar (Makefile.am): Likewise.
53888 2011-06-08  Eric Blake  <eblake@redhat.com>
53890         strerror: simplify replacement
53891         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
53892         * modules/strerror (configure.ac): No prereqs needed here...
53893         * modules/strerror-override (configure.ac): ...but this needs it.
53894         (Files): Add file for needed prereq macro.
53896 2011-06-08  Bruno Haible  <bruno@clisp.org>
53898         strerror_r-posix: Tweaks.
53899         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
53900         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
53901         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
53902         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
53903         (gl_FUNC_STRERROR_R): ... to here.
53904         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
53906 2011-06-07  Eric Blake  <eblake@redhat.com>
53908         perror: document fixed bugs
53909         * doc/posix-functions/perror.texi (perror): Document recent
53910         patches.
53912 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
53914         stat-time: get_stat_birthtime failure is better-defined
53915         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
53916         return a timestamp whose tv_sec and tv_nsec values are both -1.
53917         Previously, the spec said only that the tv_nsec value was negative.
53918         This upward-compatible change simplifies GNU tar a bit.
53920 2011-06-07  Eric Blake  <eblake@redhat.com>
53922         strerror_r-posix: work around cygwin 1.7.9
53923         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
53924         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
53925         bug without replacing strerror_r.
53926         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
53927         strerror_r is buggy, but without requiring strerror_r compilation.
53928         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
53930         test-perror: relax test to ignore cygwin bug
53931         * tests/test-perror2.c (main): Relax test on requiring detection
53932         of stream errors, and use unbuffered stream.
53933         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
53934         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
53935         * doc/posix-functions/fputc.texi (fputc): Likewise.
53936         * doc/posix-functions/fputs.texi (fputs): Likewise.
53937         * doc/posix-functions/fputws.texi (fputws): Likewise.
53938         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
53939         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
53940         * doc/posix-functions/getopt.texi (getopt): Likewise.
53941         * doc/posix-functions/perror.texi (perror): Likewise.
53942         * doc/posix-functions/printf.texi (printf): Likewise.
53943         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
53944         * doc/posix-functions/psignal.texi (psignal): Likewise.
53945         * doc/posix-functions/putc.texi (putc): Likewise.
53946         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
53947         Likewise.
53948         * doc/posix-functions/putchar.texi (putchar): Likewise.
53949         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
53950         Likewise.
53951         * doc/posix-functions/puts.texi (puts): Likewise.
53952         * doc/posix-functions/putwc.texi (putwc): Likewise.
53953         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53954         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53955         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53956         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
53957         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53958         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53959         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
53960         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
53962 2011-05-22  Bruno Haible  <bruno@clisp.org>
53964         strerror: Move AC_LIBOBJ invocations to module description.
53965         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
53966         gl_PREREQ_STRERROR invocations from here...
53967         * modules/strerror (configure.ac): ... to here.
53969 2011-05-21  Bruno Haible  <bruno@clisp.org>
53971         perror: Use common idiom.
53972         * modules/perror (configure.ac): Reorder statements.
53974 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53976         tests: fix usage message in 'mktempd_'
53977         * tests/init.sh (mktempd_): In the usage message, use literal
53978         'mktempd_', not '$ME' (which is even undefined), as the name of
53979         the subroutine.
53981 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53983         tests init: new function 'fatal_', for hard errors
53984         Before this patch, the only way offered by tests/init.sh to
53985         properly signal a hard error was the `framework_failure_'
53986         function.  But the error message issued by that function,
53987         as its name would suggest, refers to a set-up failure in the
53988         testsuite, while hard errors can obviously also be due to
53989         other reasons.  The best way to fix this inconsistency is to
53990         introduce a new function with a more general error message.
53991         * tests/init.sh (fatal_): New function.
53993 2011-06-06  Eric Blake  <eblake@redhat.com>
53995         canonicalize-lgpl: use common idiom
53996         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
53997         over newer POSIX -Rf.
53998         Reported by Bruno Haible.
54000         canonicalize-lgpl: work around AIX realpath bug
54001         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
54002         * doc/posix-functions/realpath.texi (realpath): Document it.
54003         Reported by Bruno Haible.
54005         strerror: work around FreeBSD bug
54006         * lib/strerror.c (strerror): Special case 0.
54007         Reported by Bruno Haible.
54009         strerror-override: avoid bloating errno module
54010         * modules/errno (Files, configure.ac): Move replacement strings...
54011         * modules/strerror-override: ...to new module.
54012         * modules/strerror (Depends-on): Add strerror-override.
54013         * modules/strerror_r-posix (Depends-on): Likewise.
54014         * MODULES.html.sh: Document new module.
54015         Reported by Bruno Haible.
54017 2011-06-06  Bruno Haible  <bruno@clisp.org>
54019         spawn-pipe tests: Rename program.
54020         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
54021         * tests/test-spawn-pipe-child.c: Update comment.
54022         * tests/test-spawn-pipe.sh: Update.
54023         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
54025         spawn-pipe tests: Link the child program only against libc.
54026         * tests/test-spawn-pipe-child.c: New file, extracted from
54027         tests/test-spawn-pipe.c.
54028         (main): Expect only one argument.
54029         (is_open): New function, copied from tests/test-pipe.c.
54030         * tests/test-spawn-pipe.c: Don't include <errno.h>.
54031         (child_main): Remove function.
54032         (test_pipe): Pass only one argument to the child program.
54033         (main): Remove child process code. Expect the child program's name as
54034         first argument.
54035         * tests/test-spawn-pipe.sh: Pass the child program's name as first
54036         argument.
54037         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
54038         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
54039         test-spawn-pipe-child against no libraries.
54041 2011-06-06  Bruno Haible  <bruno@clisp.org>
54043         careadlinkat: Avoid mismatch between ssize_t and int.
54044         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
54045         * lib/careadlinkat.c (careadlinkatcwd): Define always.
54047 2011-06-06  Jim Meyering  <meyering@redhat.com>
54049         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
54050         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
54051         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
54053 2011-06-05  Bruno Haible  <bruno@clisp.org>
54055         ansi-c++-opt: Interoperability with libtool.
54056         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
54057         set the variable to "no", not to ":".
54058         * NEWS: Mention the change.
54060 2011-06-05  Bruno Haible  <bruno@clisp.org>
54062         acl: Fix test failure on AIX 7.
54063         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
54064         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
54066 2011-06-05  Bruno Haible  <bruno@clisp.org>
54068         pipe-filter-ii: Fix test failure on AIX and IRIX.
54069         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
54070         with EAGAIN, retry with a smaller buffer size.
54072 2011-06-05  Bruno Haible  <bruno@clisp.org>
54074         localename: Fix link dependencies.
54075         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
54076         * modules/localename-tests (Makefile.am): Link test-localename with
54077         $(LIBTHREAD).
54079 2011-06-05  Bruno Haible  <bruno@clisp.org>
54081         error: Avoid gcc warning.
54082         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
54084 2011-06-05  Bruno Haible  <bruno@clisp.org>
54086         unsetenv: Avoid gcc warning.
54087         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
54089 2011-06-05  Bruno Haible  <bruno@clisp.org>
54091         setenv: Avoid gcc warning.
54092         * lib/setenv.c (setenv): Provide declaration if system lacks it.
54094 2011-06-05  Bruno Haible  <bruno@clisp.org>
54096         sys_select: Ensure memset is declared also on AIX 7.
54097         * lib/sys_select.in.h: Include <string.h> also on AIX.
54098         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
54099         self-contained also on AIX 7.1.
54101 2011-06-04  Jim Meyering  <meyering@redhat.com>
54103         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
54104         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
54105         function name, "error".
54106         (_gl_translatable_diag_func_re): New configurable variable.
54108 2011-06-04  Bruno Haible  <bruno@clisp.org>
54110         getopt: Avoid gcc warning.
54111         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
54113 2011-06-04  Bruno Haible  <bruno@clisp.org>
54115         strerror_r: Fix comments.
54116         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
54117         commit.
54119 2011-06-04  Bruno Haible  <bruno@clisp.org>
54121         perror: Fix compilation error.
54122         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
54123         Undefine fprintf, not sprintf.
54124         * modules/perror (Depends-on): Remove intprops, verify.
54126 2011-06-04  Bruno Haible  <bruno@clisp.org>
54128         setlocale: Enable replacement on Cygwin 1.5.
54129         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
54130         Cygwin 1.5.x.
54131         * doc/posix-functions/setlocale.texi: Mention that the problem with the
54132         LC_CTYPE category also exists on Cygwin 1.5.x.
54134 2011-06-04  Bruno Haible  <bruno@clisp.org>
54136         strerror-override: Don't disable symbol renamings.
54137         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
54138         * lib/strerror-override.c: Include config.h.
54139         (strerror_override): Don't undefine.
54141 2011-06-03  Bruno Haible  <bruno@clisp.org>
54143         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
54144         * lib/localename.h: Update copyright header.
54145         * lib/localename.c: Likewise.
54146         * lib/relocatable.h: Likewise.
54147         * lib/relocatable.c: Likewise.
54149 2011-06-02  Bruno Haible  <bruno@clisp.org>
54151         doc: Fix a module name.
54152         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
54154 2011-06-02  Bruno Haible  <bruno@clisp.org>
54156         pipe2: Remove dependency on 'nonblocking' module.
54157         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
54158         O_NONBLOCK is defined by gnulib.
54159         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
54160         is zero.
54161         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
54162         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
54163         defined by gnulib.
54164         (get_nonblocking_flag): New function.
54165         (main): Test O_NONBLOCK flag only if it is nonzero.
54166         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
54168 2011-06-03  Jim Meyering  <meyering@redhat.com>
54170         maint: three new prohibit-header-without-use rules
54171         Prohibit use of cloexec.h, posixver.h, same.h without use.
54172         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
54173         (sc_prohibit_posixver_without_use): Likewise.
54174         (sc_prohibit_same_without_use): Likewise.
54176 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54178         allocator: 'die' routine is now given requested size
54179         * lib/allocator.h (struct allocator.die): New size arg.
54180         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
54181         If the actual problem is an ssize_t limitation, not a size_t or
54182         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
54184 2011-06-01  Eric Blake  <eblake@redhat.com>
54186         strerror: drop strerror_r dependency
54187         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
54188         * lib/strerror-override.c (strerror_override): ...to new file.
54189         * lib/strerror-override.h: Add prototype.
54190         * lib/strerror-impl.h: Delete.
54191         * lib/strerror.c (strerror): New implementation.
54192         * modules/errno (Files): Add new files.
54193         (configure.ac): Compile new file as appropriate.
54194         * modules/strerror (Files): Drop unused file.
54195         (Depends-on): Drop strerror_r-posix.
54196         * MODULES.html.sh: Document strerror_r-posix.
54197         Requested by Sam Steingold.
54199         perror: call strerror_r directly
54200         * modules/perror (Files): Drop strerror-impl.h.
54201         * lib/perror.c (perror): Use our own stack buffer, rather than
54202         calling a wrapper that uses static storage.
54203         * doc/posix-functions/perror.texi (perror): Document a limitation
54204         of our replacement.
54206         strerror_r: fix includes for FreeBSD
54207         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
54208         since we use abort on some platforms.
54209         Reported by Matthias Bolte.
54211 2011-05-31  Bruno Haible  <bruno@clisp.org>
54213         Fix link errors in tests: openat-die uses gettext-h.
54214         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
54215         against $(LIBINTL).
54216         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
54217         against $(LIBINTL).
54218         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
54219         $(LIBINTL).
54220         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
54221         against $(LIBINTL).
54222         * modules/linkat-tests (Makefile.am): Link test-linkat against
54223         $(LIBINTL).
54224         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
54225         $(LIBINTL).
54226         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
54227         against $(LIBINTL).
54228         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
54229         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
54230         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
54231         $(LIBINTL).
54232         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
54233         $(LIBINTL).
54234         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
54235         $(LIBINTL).
54236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54238 2011-05-31  Bruno Haible  <bruno@clisp.org>
54240         Fix link errors in tests: wait-process uses gettext-h.
54241         * modules/nonblocking-pipe-tests (Makefile.am): Set
54242         test_nonblocking_pipe_main_LDADD.
54243         * modules/nonblocking-socket-tests (Makefile.am): Link
54244         test-nonblocking-socket-main against $(LIBINTL).
54245         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54247 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
54249         assert-h: work around 'verify' incompatibility
54250         * lib/verify.h: Use @...@ directives, not ifdef.
54251         * modules/assert-h (assert.h): Implement the directives.
54252         (assert.h): Substitute the symbol-prefix more consistently.
54254 2011-05-29  Jim Meyering  <meyering@redhat.com>
54256         trim: remove three superfluous assignments
54257         * lib/trim.c (trim2): Remove three superfluous assignments
54258         and correct brace positioning.
54260 2011-05-29  Bruno Haible  <bruno@clisp.org>
54262         wctype-h: Avoid namespace pollution on Solaris 2.6.
54263         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
54264         identifiers.
54265         * doc/posix-headers/wctype.texi: Mention the problem.
54266         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54268 2011-05-28  Jim Meyering  <meyering@redhat.com>
54270         parse-datetime.y: accommodate -Wstrict-overflow
54271         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
54272         placate -Wstrict-overflow.
54274         trim: avoid a warning from -O2 -Wstrict-overflow
54275         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
54277 2011-05-29  Bruno Haible  <bruno@clisp.org>
54279         gnulib-tool: Fix bug in yesterday's commit.
54280         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
54281         twice.
54283 2011-05-29  Bruno Haible  <bruno@clisp.org>
54285         Allow multiple gnulib generated include files to be combined.
54286         * gnulib-tool (func_compute_include_guard_prefix): New function.
54287         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
54288         ${gl_include_guard_prefix} references.
54289         (func_import, func_create_testdir): Invoke
54290         func_compute_include_guard_prefix.
54291         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
54292         * lib/ctype.in.h: Likewise.
54293         * lib/dirent.in.h: Likewise.
54294         * lib/errno.in.h: Likewise.
54295         * lib/fcntl.in.h: Likewise.
54296         * lib/float.in.h: Likewise.
54297         * lib/getopt.in.h: Likewise.
54298         * lib/iconv.in.h: Likewise.
54299         * lib/langinfo.in.h: Likewise.
54300         * lib/locale.in.h: Likewise.
54301         * lib/math.in.h: Likewise.
54302         * lib/netdb.in.h: Likewise.
54303         * lib/netinet_in.in.h: Likewise.
54304         * lib/poll.in.h: Likewise.
54305         * lib/pthread.in.h: Likewise.
54306         * lib/pty.in.h: Likewise.
54307         * lib/sched.in.h: Likewise.
54308         * lib/se-selinux.in.h: Likewise.
54309         * lib/search.in.h: Likewise.
54310         * lib/signal.in.h: Likewise.
54311         * lib/spawn.in.h: Likewise.
54312         * lib/stdarg.in.h: Likewise.
54313         * lib/stddef.in.h: Likewise.
54314         * lib/stdint.in.h: Likewise.
54315         * lib/stdio.in.h: Likewise.
54316         * lib/stdlib.in.h: Likewise.
54317         * lib/string.in.h: Likewise.
54318         * lib/strings.in.h: Likewise.
54319         * lib/sys_file.in.h: Likewise.
54320         * lib/sys_ioctl.in.h: Likewise.
54321         * lib/sys_select.in.h: Likewise.
54322         * lib/sys_socket.in.h: Likewise.
54323         * lib/sys_stat.in.h: Likewise.
54324         * lib/sys_time.in.h: Likewise.
54325         * lib/sys_times.in.h: Likewise.
54326         * lib/sys_uio.in.h: Likewise.
54327         * lib/sys_utsname.in.h: Likewise.
54328         * lib/sys_wait.in.h: Likewise.
54329         * lib/sysexits.in.h: Likewise.
54330         * lib/termios.in.h: Likewise.
54331         * lib/time.in.h: Likewise.
54332         * lib/unistd.in.h: Likewise.
54333         * lib/wchar.in.h: Likewise.
54334         * lib/wctype.in.h: Likewise.
54335         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
54336         * modules/ctype (Makefile.am): Likewise.
54337         * modules/dirent (Makefile.am): Likewise.
54338         * modules/errno (Makefile.am): Likewise.
54339         * modules/fcntl-h (Makefile.am): Likewise.
54340         * modules/float (Makefile.am): Likewise.
54341         * modules/getopt-posix (Makefile.am): Likewise.
54342         * modules/iconv-h (Makefile.am): Likewise.
54343         * modules/langinfo (Makefile.am): Likewise.
54344         * modules/locale (Makefile.am): Likewise.
54345         * modules/math (Makefile.am): Likewise.
54346         * modules/netdb (Makefile.am): Likewise.
54347         * modules/netinet_in (Makefile.am): Likewise.
54348         * modules/poll-h (Makefile.am): Likewise.
54349         * modules/pthread (Makefile.am): Likewise.
54350         * modules/pty (Makefile.am): Likewise.
54351         * modules/sched (Makefile.am): Likewise.
54352         * modules/search (Makefile.am): Likewise.
54353         * modules/selinux-h (Makefile.am): Likewise.
54354         * modules/signal (Makefile.am): Likewise.
54355         * modules/spawn (Makefile.am): Likewise.
54356         * modules/stdarg (Makefile.am): Likewise.
54357         * modules/stddef (Makefile.am): Likewise.
54358         * modules/stdint (Makefile.am): Likewise.
54359         * modules/stdio (Makefile.am): Likewise.
54360         * modules/stdlib (Makefile.am): Likewise.
54361         * modules/string (Makefile.am): Likewise.
54362         * modules/strings (Makefile.am): Likewise.
54363         * modules/sys_file (Makefile.am): Likewise.
54364         * modules/sys_ioctl (Makefile.am): Likewise.
54365         * modules/sys_select (Makefile.am): Likewise.
54366         * modules/sys_socket (Makefile.am): Likewise.
54367         * modules/sys_stat (Makefile.am): Likewise.
54368         * modules/sys_time (Makefile.am): Likewise.
54369         * modules/sys_times (Makefile.am): Likewise.
54370         * modules/sys_uio (Makefile.am): Likewise.
54371         * modules/sys_utsname (Makefile.am): Likewise.
54372         * modules/sys_wait (Makefile.am): Likewise.
54373         * modules/sysexits (Makefile.am): Likewise.
54374         * modules/termios (Makefile.am): Likewise.
54375         * modules/time (Makefile.am): Likewise.
54376         * modules/unistd (Makefile.am): Likewise.
54377         * modules/wchar (Makefile.am): Likewise.
54378         * modules/wctype-h (Makefile.am): Likewise.
54379         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
54381 2011-05-29  Bruno Haible  <bruno@clisp.org>
54383         assert-h: Allow multiple gnulib generated replacements to coexist.
54384         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
54386 2011-05-29  Bruno Haible  <bruno@clisp.org>
54388         argp: Allow coexistence with strerror_r-posix module.
54389         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
54390         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
54391         by gnulib's <string.h> replacement), assume it has the POSIX signature,
54392         not the glibc signature.
54394 2011-05-28  Bruno Haible  <bruno@clisp.org>
54396         gnulib-tool: Alternative structure of testdirs, similar to --import.
54397         * gnulib-tool: New option --single-configure.
54398         (func_usage): Document it.
54399         (single_configure): New variable.
54400         (func_modules_transitive_closure_separately,
54401         func_modules_transitive_closure_separately,
54402         func_determine_use_libtests, func_modules_add_dummy_separately,
54403         func_modules_to_filelist_separately): New functions, extracted from
54404         func_import.
54405         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
54406         (func_import): Use the new functions.
54407         (func_create_testdir): Set final_modules. Handle $single_configure =
54408         true case.
54410 2011-05-28  Bruno Haible  <bruno@clisp.org>
54412         getloadavg: Remove an unreliable safety check.
54413         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
54414         getloadavg.c is in place.
54415         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
54416         Reported by Sam Steingold <sds@gnu.org>.
54418 2011-05-28  Bruno Haible  <bruno@clisp.org>
54420         doc: Cleanup yet another file produced by texinfo.tex.
54421         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
54423 2011-05-28  Bruno Haible  <bruno@clisp.org>
54425         Finish the conditional dependencies mechanism.
54426         * gnulib-tool: New option --no-conditional-dependencies.
54427         (func_usage): Document it. Don't mark --conditional-dependencies as
54428         experimental.
54429         (cond_dependencies): The possible values can now be true, false, empty.
54430         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
54431         (func_import): Store setting in gnulib-cache.m4 and read it from there.
54432         * doc/gnulib-tool.texi (Conditional dependencies): New section.
54434 2011-05-28  Bruno Haible  <bruno@clisp.org>
54436         doc: Use a recent texinfo.tex.
54437         * doc/Makefile (tex_opts): New variable.
54438         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
54440 2011-05-28  Jim Meyering  <meyering@redhat.com>
54442         intprops.h: adjust comment to match code change
54443         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
54444         only once, it *may* have side effects.  Also fix an unrelated typo.
54445         (_GL_INT_SIGNED): Likewise.
54447 2011-05-26  Simon Josefsson  <simon@josefsson.org>
54449         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
54451 2011-05-26  Bruno Haible  <bruno@clisp.org>
54453         mbsrchr: Avoid collision with system function on Interix.
54454         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
54455         Reported by Markus Duft <mduft@gentoo.org>.
54457 2011-05-15  James Youngman  <jay@gnu.org>
54459         getopt: for ambiguous options, enumerate the possibilities.
54460         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
54461         the ambiguous options when an ambiguous prefix is given. This was
54462         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
54463         glibc change was
54464         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
54466 2011-05-25  Eric Blake  <eblake@redhat.com>
54468         getcwd: work around mingw bug
54469         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
54470         * doc/posix-functions/getcwd.texi (getcwd): Document it.
54471         Reported by Matthias Bolte.
54473 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
54475         test-intprops: disable -Wtype-limits diagnostics
54476         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
54477         diagnostics.  Otherwise, the integer overflow macros generate many
54478         diagnostics.  Reported by Jim Meyering in
54479         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54481         intprops: shorten, to pacify gcc -Woverlength-strings
54482         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
54483         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
54484         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
54485         likely to run afoul of C compiler limits for string constant lengths.
54486         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54488 2011-05-24  Eric Blake  <eblake@redhat.com>
54490         docs: document recently fixed glibc printf bug
54491         * doc/posix-functions/fprintf.texi (fprintf): Document it.
54492         * doc/posix-functions/printf.texi (printf): Likewise.
54493         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54494         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54496         closein-tests: convert to init.sh
54497         * modules/closein-tests (Files): Add init.sh
54498         * tests/test-closein.sh Use it.
54500         yesno-tests: convert to init.sh
54501         * modules/yesno-tests (Files): Add init.sh.
54502         * tests/test-yesno.sh: Use it.
54504         atexit-tests: ensure reliable exit status
54505         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
54506         Reported by Bruno Haible.
54508 2011-05-24  Bruno Haible  <bruno@clisp.org>
54510         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
54511         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
54512         gl_PREREQ_STRERROR_R invocations from here...
54513         * modules/strerror_r-posix (configure.ac): ... to here.
54515 2011-05-24  Eric Blake  <eblake@redhat.com>
54517         strerror_r: fix missing header
54518         * lib/strerror_r.c: Avoid compiler warning about snprintf.
54520         strerror_r: fix AIX test failures
54521         * lib/strerror_r.c (strerror_r): Convert silent truncation to
54522         ERANGE failure.
54524         strerror_r: fix Solaris test failures
54525         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
54526         failures.
54527         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54529         strerror_r: enforce POSIX recommendations
54530         * lib/strerror_r.c (safe_copy): New helper method.
54531         (strerror_r): Guarantee a non-empty string.
54532         * tests/test-strerror_r.c (main): Enhance tests to incorporate
54533         recent POSIX rulings and to match our strerror guarantees.
54534         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54536 2011-05-24  Jim Meyering  <meyering@redhat.com>
54538         test-perror2.c: avoid warning about unused variable
54539         * tests/test-perror2.c (main): Remove declaration of unused "fp".
54541 2011-05-24  Eric Blake  <eblake@redhat.com>
54543         perror: avoid spurious test failure on HP-UX
54544         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
54546         tests: fix logic bug in init.sh
54547         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
54548         shell.
54550 2011-05-24  Jim Meyering  <meyering@redhat.com>
54552         utimensat: do not reference an out-of-scope buffer
54553         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
54554         declared in an inner scope, yet "times" would be dereferenced outside
54555         the scope in which "ts" was valid.
54556         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
54557         of ts[2] "out/up", so that the use of aliased "times" (via
54558         "times = ts;") does not end up referencing an out-of-scope "ts"
54560         opendir-safer.c: don't clobber errno; don't close negative FD
54561         * lib/opendir-safer.c (opendir_safer):
54562         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
54563         file descriptor, and more importantly, don't clobber the
54564         offending errno value with EINVAL.  Before, upon failure
54565         of dup_safer, we would pass the negative file descriptor to
54566         fdopendir, which would clobber errno.
54568 2011-05-23  Bruno Haible  <bruno@clisp.org>
54570         idcache: Fix module description.
54571         * modules/idcache (Include): Set to "idcache.h".
54573 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
54575         gnulib-tool: fix portability problem with MacOS sed
54576         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
54577         before the "}".  Problem reported by Leo in
54578         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
54579         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
54580         sed_extract_condition1, sed_extract_condition2.
54582 2011-05-23  Bruno Haible  <bruno@clisp.org>
54584         hash: Simplify autoconf macro.
54585         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
54587 2011-05-23  Bruno Haible  <bruno@clisp.org>
54589         getugroups: Fix module description.
54590         * modules/getugroups (Include): Set to "getugroups.h".
54592 2011-05-23  Bruno Haible  <bruno@clisp.org>
54594         linkat: Simplify autoconf macro.
54595         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
54597 2011-05-23  Bruno Haible  <bruno@clisp.org>
54598             Eric Blake  <eblake@redhat.com>
54600         linkat, renameat: Update dependencies.
54601         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
54602         * modules/linkat (Depends-on): Likewise. Remove also readlink,
54603         symlinkat.
54605 2011-05-23  Jim Meyering  <meyering@redhat.com>
54607         maint.mk: more tight_scope improvements
54608         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
54609         (_gl_TS_headers): Define only in if-0'd block.
54610         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
54611         sometimes we must *not* use it.  Adjust uses accordingly.
54612         (sc_tight_scope): Use much simpler grep-based test to determine
54613         whether we skip this rule.
54615         maint.mk: generalize/improve the tight-scope rule
54616         * top/maint.mk: Emit a warning when the test is skipped.
54617         (_gl_TS_dir): Add $(srcdir)/ prefix.
54618         (_gl_TS_function_match): Simplify, rather than trying
54619         to enumerate common types.  Otherwise, it would fail to match an
54620         "extern unsigned char const *" declaration in idutils.
54621         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
54622         a way to support use of that type of macro.
54623         (_gl_TS_var_match): Simplify regexp.
54624         (_gl_TS_obj_files): New configurable variable.
54625         (_gl_TS_headers): Likewise.
54627 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54629         verify: fix bug when gnulib <assert.h> is also included
54630         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
54631         is defined, not if _GL_STATIC_ASSERT_H is not defined.
54632         Perhaps there's a better way, but this fixes the immediate problem.
54633         Problem reported by Bruno Haible in
54634         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
54636 2011-05-22  Bruno Haible  <bruno@clisp.org>
54638         xgetcwd: Simplify autoconf macro.
54639         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
54641 2011-05-22  Bruno Haible  <bruno@clisp.org>
54643         New module 'mktime-internal'.
54644         * modules/mktime-internal: New file.
54645         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
54646         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
54647         mktime_internal as a C macro if libc has __mktime_internal.
54648         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
54649         conditions.
54650         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
54652 2011-05-22  Bruno Haible  <bruno@clisp.org>
54654         timegm: Correct mktime replacement statements.
54655         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
54656         defining mktime as a C macro. This completes a 2009-07-28 commit.
54658 2011-05-22  Bruno Haible  <bruno@clisp.org>
54660         timegm: Simplify autoconf macro.
54661         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
54663 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
54665         clock-time: change to LGPLv2+.
54666         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
54667         BSD-like but we have no mark for that; this is good enough for now.
54669 2011-05-21  Bruno Haible  <bruno@clisp.org>
54671         strerror_r: Fix comments.
54672         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
54674 2011-05-21  Bruno Haible  <bruno@clisp.org>
54676         relocatable-prog-wrapper: Fix possible link error.
54677         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
54678         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
54679         (gl_FUNC_SETENV): ... to here.
54680         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
54681         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
54683 2011-05-21  Bruno Haible  <bruno@clisp.org>
54685         relocatable-prog-wrapper: Assume strerror() exists.
54686         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
54687         m4/strerror.m4.
54688         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
54689         * lib/relocwrapper.c: Remove mention of strerror module.
54690         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
54691         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
54692         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
54693         C macro.
54695 2011-05-21  Bruno Haible  <bruno@clisp.org>
54697         select: Simplify replacement idiom.
54698         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
54699         Win32 platforms.
54700         * lib/sys_select.in.h (select): Simplify accordingly.
54701         * modules/select (Depends-on): Likewise.
54703 2011-05-21  Bruno Haible  <bruno@clisp.org>
54705         mkdir-p: Simplify autoconf macro.
54706         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
54707         gl_FUNC_LCHOWN.
54709 2011-05-21  Eric Blake  <eblake@redhat.com>
54711         strerror_r: avoid clobbering strerror on cygwin
54712         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
54713         fall back instead to sys_errlist.
54714         * modules/strerror (configure.ac): Add witness.
54715         * tests/test-strerror_r.c (main): Enhance test.
54716         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54717         * tests/test-perror2.c (main): Free memory before exit.
54719 2011-05-21  Bruno Haible  <bruno@clisp.org>
54721         mkdtemp: Use gnulib naming conventions.
54722         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
54723         * modules/mkdtemp (configure.ac): Update.
54725 2011-05-20  Eric Blake  <eblake@redhat.com>
54727         strerror_r: avoid corrupting errno on Solaris
54728         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
54729         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54731         strerror_r: avoid compiler warning
54732         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
54734         strerror_r: simplify AIX code
54735         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
54737         test-perror: avoid spurious failure on FreeBSD
54738         * modules/perror-tests (Depends-on): Add strerror, now that
54739         strerror_r no longer pulls it in.
54741 2011-05-20  Bruno Haible  <bruno@clisp.org>
54743         strerror_r-posix: Remove unused dependencies.
54744         * modules/strerror_r-posix (Depends-on): Remove strerror.
54745         Reported by Eric Blake.
54747 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54749         intprops: remove assumption about A|B representation
54750         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
54751         is a valid integer if both A and B are.  Although this is true for
54752         all known practical hosts, the C standard doesn't guarantee it,
54753         and the code need not assume it.  Also, this change may work around
54754         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
54755         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
54757 2011-05-20  Eric Blake  <eblake@redhat.com>
54759         perror: work around FreeBSD bug
54760         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
54761         is broken.  Move AC_LIBOBJ...
54762         * modules/perror (configure.ac): Here.
54763         * doc/posix-functions/perror.texi (perror): Document this.
54764         * tests/test-perror2.c (main): Enhance test.
54766         test-perror: check for strerror interactions
54767         * tests/macros.h (STREQ): Add macro.
54768         * modules/perror-tests (Files): Add second test.
54769         * tests/test-perror2.c (main): New file.
54770         * doc/posix-functions/perror.texi (perror): Document glibc bug.
54772         test-perror: rewrite to use init script
54773         * modules/perror-tests (Files): Add init.sh.
54774         * tests/test-perror.sh: Use temporary directory.
54776 2011-05-20  Jim Meyering  <meyering@redhat.com>
54778         maint: replace misused "a" with "an"
54779         * doc/intprops.texi: "a integer"
54780         * doc/regex.texi: "a explanation"
54781         * lib/alignof.h: "a object"
54782         * lib/argmatch.h: "a explanation"
54783         * lib/argp-help.c: "a option" and "a OPTION_DOC"
54784         * lib/stdint.in.h: "a integer"
54785         * lib/userspec.c: "a owner"
54786         * doc/gnulib.texi: Fix "a idea", and reword.
54788 2011-05-19  Jim Meyering  <meyering@redhat.com>
54790         maint: correct misuse of "a" and "an"
54791         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
54792         * lib/argp-help.c: "an docum...": s/an/a/
54793         * lib/argp-parse.c: "An vector": s/An/A/
54794         * lib/execute.c: "an native": s/an/a/
54795         * lib/spawn-pipe.c: Likewise.
54796         * lib/gc.h: "an Gc_rc": s/an/a/
54797         * lib/unigbrk.in.h: "an grapheme": s/an/a/
54798         * lib/fts.c: "an stat.st_dev": s/an/a/
54800 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54802         intprops-tests: work around HP-UX 11.23 cc bug with constants
54803         * tests/test-intprops.c (VERIFY): New macro.
54804         (main): Use it, instead of verify, to work around the compiler bug; see
54805         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54807         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
54808         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
54809         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
54810         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
54811         (_GL_REMAINDER_OVERFLOW): Use it.
54813         intprops-tests: revert unsigned part of previous change
54814         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
54815         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
54816         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
54817         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
54819 2011-05-19  Bruno Haible  <bruno@clisp.org>
54821         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
54822         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
54823         strerror_r() returned without filling the buffer.
54824         Reported by Eric Blake.
54826 2011-05-19  Eric Blake  <eblake@redhat.com>
54828         strerror_r: guarantee unchanged errno
54829         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
54830         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
54831         failure.
54832         * tests/test-strerror_r.c (main): Enhance test.
54834 2011-05-19  Bruno Haible  <bruno@clisp.org>
54836         strerror_r: Reorder #if blocks.
54837         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
54838         for consistency with the previous commit.
54840 2011-05-19  Bruno Haible  <bruno@clisp.org>
54842         perror: Avoid clobbering the strerror buffer when possible.
54843         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
54844         * lib/strerror.c: Include it.
54845         * modules/strerror (Files): Add lib/strerror-impl.h.
54846         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
54847         (my_strerror): New function, defined through lib/strerror-impl.h.
54848         (perror): Use it instead of strerror.
54849         * modules/perror (Files): Add lib/strerror-impl.h.
54850         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
54852 2011-05-19  Eric Blake  <eblake@redhat.com>
54854         strerror_r: fix on newer cygwin
54855         * lib/strerror_r.c (strerror_r): Cygwin now has
54856         __xpg_strerror_r, use it.
54858 2011-05-19  Bruno Haible  <bruno@clisp.org>
54860         strerror_r: Avoid clobbering the strerror buffer when possible.
54861         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
54862         (sys_nerr, sys_errlist): New declarations.
54863         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
54864         HP-UX, native Win32, IRIX, and 32-bit Solaris.
54865         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
54867 2011-05-19  Bruno Haible  <bruno@clisp.org>
54869         strerror_r: Fix test failure on mingw.
54870         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
54871         EXTEND_STRERROR_R.
54872         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
54873         macros from errno.in.h instead.
54875 2011-05-19  Eric Blake  <eblake@redhat.com>
54877         strerror: relax test for Solaris
54878         * tests/test-strerror.c (main): Permit Solaris behavior.
54879         * tests/test-strerror_r.c (main): Likewise.
54881         strerror: enforce POSIX ruling on strerror(0)
54882         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
54883         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
54884         * lib/strerror_r.c (rpl_strerror_r): Work around it.
54885         * doc/posix-functions/strerror.texi (strerror): Document it.
54886         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
54887         * tests/test-strerror.c (main): Strengthen test.
54888         * tests/test-strerror_r.c (main): Likewise.
54890 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54892         intprop-tests: port to older and more-pedantic compilers
54893         * modules/intprops-tests (Files): Add tests/macros.h.
54894         * tests/test-intprops.c: Include macros.h.
54895         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
54896         it's no longer documented to expand to an integer constant expression.
54897         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
54898         argument is floating point, as it's no longer documented to expand
54899         to an integer constant expression in that case.
54900         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
54901         compiler bugs reported by Bruno Haible.  See
54902         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54903         (U0, U1): New constants, to work around the same bugs.  Also,
54904         in tests, use e.g., "(unsigned int) 39" rather than "39u".
54906         intprops: work around C compiler bugs
54907         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
54908         bug in Sun C 5.11 2010/08/13 and other compilers; see
54909         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54911         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
54912         * doc/intprops.texi (Integer Type Determination): Fix
54913         documentation for TYPE_IS_INTEGER: it returns an constant
54914         expression, not an integer constant expression.  Fix doc for
54915         TYPE_SIGNED: it returns an integer constant expression only if its
54916         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
54917         hardly worth documented that way....)
54919 2011-05-18  Bruno Haible  <bruno@clisp.org>
54921         strerror_r: Avoid clobbering the strerror buffer when possible.
54922         * lib/strerror_r.c (strerror_r): Merge the three implementations.
54923         Handle gnulib defined errno values here. When strerror() returns NULL
54924         or an empty string, return EINVAL.
54925         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
54926         gnulib defined errno values here.
54927         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
54929 2011-05-18  Eric Blake  <eblake@redhat.com>
54931         fnmatch: avoid compiler warning
54932         * lib/fnmatch_loop.c (FCT): Use correct type.
54933         Reported by Matthias Bolte.
54935 2011-05-13  Jim Meyering  <meyering@redhat.com>
54937         maint.mk: three new prohibit_<HDR>_without_use rules
54938         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
54939         (sc_prohibit_stdio-safer_without_use): Likewise.
54940         (sc_prohibit_xfreopen_without_use): Likewise.
54942 2011-05-17  Jim Meyering  <meyering@redhat.com>
54944         announce-gen: fail if the NEWS delta is empty
54945         If there's nothing noteworthy in NEWS, then either you forgot
54946         or you shouldn't be releasing.
54947         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
54949 2011-05-17  Pádraig Brady  <P@draigBrady.com>
54951         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
54952         reserved symbols starting with double underscore from the check.
54954 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54956         intprops: add doc
54957         * doc/intprops.texi: New file, documenting intprops.
54958         * doc/gnulib.texi (Particular Modules): Include it.
54960         verify: add doc to gnulib manual and fix example
54961         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
54962         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
54963         (Compile-time Assertions): Fix example so it can't overflow.
54965 2011-05-17  Jim Meyering  <meyering@redhat.com>
54967         warnings.m4: don't usurp save_CPPFLAGS variable name
54968         * m4/warnings.m4: Prefix local temporary variable name with gl_.
54970         doc: fix typo
54971         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
54973 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54974             Bruno Haible  <bruno@clisp.org>
54976         doc: Tweak recent change.
54977         * README (Portability guidelines): Tweak new text.
54978         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
54979         Interix 6.1.
54981 2011-05-16  Eric Blake  <eblake@redhat.com>
54983         inttypes: avoid autoconf warning
54984         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
54985         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54987 2011-05-16  Sam Steingold  <sds@gnu.org>
54988         and Eric Blake  <eblake@redhat.com>
54990         vc-list-files: accept multiple directory operands
54991         * build-aux/vc-list-files: Iterate over all remaining operands.
54993 2011-05-16  Bruno Haible  <bruno@clisp.org>
54995         Fix confusion regarding deprecated modules.
54996         * modules/calloc (Status, Notice): Mark module as deprecated, not
54997         obsolete.
54998         * modules/fnmatch-posix (Status, Notice): Likewise.
54999         * modules/getdate (Status, Notice): Likewise.
55000         * modules/getopt (Status, Notice): Likewise.
55001         * modules/malloc (Status, Notice): Likewise.
55002         * modules/pipe (Status, Notice): Likewise.
55003         * modules/realloc (Status, Notice): Likewise.
55004         * modules/rename-dest-slash (Status, Notice): Likewise.
55005         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
55006         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
55007         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
55008         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
55009         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
55011 2011-05-16  Bruno Haible  <bruno@clisp.org>
55013         doc: List the target platforms.
55014         * doc/gnulib-intro.texi (Target Platforms): New section.
55015         * doc/gnulib.texi (Introduction): Update menu.
55016         * README (Portability guidelines): Refer to the new section. Update
55017         statement about oldest supported environment. Remove rationale why
55018         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
55019         unportable C89 function.
55020         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
55021         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
55023 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55025         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
55027 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55029         intprops-tests: new module
55030         * modules/intprops-tests, tests/test-intprops.c: New files.
55032         intprops: add safe, portable integer overflow checking
55033         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
55034         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
55035         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
55036         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
55037         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
55038         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
55039         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
55040         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
55041         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
55042         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
55043         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
55045 2011-05-12  James Youngman  <jay@gnu.org>
55047         Add a test for glibc's Bugzilla bug #12378.
55048         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
55049         doesn't allow the literal matching of a lone "[" (which is
55050         required by POSIX).
55051         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
55053 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
55055         Sync glibc change fixing Bugzilla bug #12378.
55056         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
55057         beginning and fall back to matching as normal character if the
55058         string ends before the matching ']' is found.  This is what POSIX
55059         requires.
55061 2011-05-13  Eric Blake  <eblake@redhat.com>
55063         getcwd-lgpl: relax test for FreeBSD
55064         * doc/posix-functions/getcwd.texi (getcwd): Document portability
55065         issue.
55066         * tests/test-getcwd-lgpl.c (main): Relax test.
55067         Reported by Matthias Bolte.
55069 2011-05-11  Eric Blake  <eblake@redhat.com>
55071         test-fflush: silence compiler warning
55072         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
55074 2011-05-11  Bruno Haible  <bruno@clisp.org>
55076         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
55077         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
55078         * modules/canonicalize (Depends-on): Add 'nocrash'.
55079         * modules/canonicalize-lgpl (Depends-on): Likewise.
55080         * doc/posix-functions/realpath.texi: Update platforms list.
55081         Reported by Ryan Schmidt <ryandesign@macports.org>.
55083 2011-05-11  Bruno Haible  <bruno@clisp.org>
55085         group-member: Declare function in <unistd.h>.
55086         * lib/unistd.in.h (group_member): New declaration.
55087         * lib/group-member.h: Remove file.
55088         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
55089         * tests/test-unistd-c++.cc: Check signature of group_member.
55090         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
55091         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
55092         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
55093         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
55094         HAVE_GROUP_MEMBER.
55095         * modules/group-member (Files): Remove lib/group-member.h.
55096         (Depends-on): Add unistd. Specify conditions.
55097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55098         (Include): Change to <unistd.h>.
55099         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
55100         HAVE_GROUP_MEMBER.
55101         * NEWS: Mention the change.
55102         * lib/euidaccess.c: Don't include group-member.h.
55104 2011-05-11  Bruno Haible  <bruno@clisp.org>
55106         group-member: Document module.
55107         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
55108         module.
55110 2011-05-11  Bruno Haible  <bruno@clisp.org>
55112         fclose: Fix mistake earlier today.
55113         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
55115 2011-05-11  Eric Blake  <eblake@redhat.com>
55117         fclose: preserve fflush errors
55118         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
55119         Reported by Jim Meyering.
55121         bootstrap: support a prereq of 'rpcgen -' on RHEL5
55122         * build-aux/bootstrap (check_versions): When no specific version
55123         is required, merely check that the app produces an exit status
55124         that indicates its existence.
55126         maint.mk: drop redundant check
55127         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
55128         the same but better.
55130 2011-05-11  Bruno Haible  <bruno@clisp.org>
55132         fclose: Fix possible link error.
55133         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
55134         unregister_shadow_fd. Improve comments.
55135         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
55136         Eric Blake.
55138 2011-05-11  Jim Meyering  <meyering@redhat.com>
55140         maint.mk: improve "can not" detection and generalize rule name
55141         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
55142         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
55143         Use the same technique as in sc_prohibit_doubled_word, so that
55144         we recognize "can not" also when the words are separated by a newline.
55145         Suggested by Eric Blake.
55146         (perl_filename_lineno_text_): Define.  Factored out of...
55147         (prohibit_doubled_word_): ...here.  Use the new definition.
55148         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
55149         (prohibit_undesirable_word_seq_RE_): New overridable variable.
55150         (ignore_undesirable_word_sequence_RE_): New overridable variable.
55152 2011-05-10  Eric Blake  <eblake@redhat.com>
55154         fclose: avoid double close race when possible
55155         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
55156         all but WINDOWS_SOCKETS.
55158 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
55160         openat: correct new comment
55161         * lib/openat-proc.c (openat_proc_name): Correct the comment.
55163 2011-05-10  Jim Meyering  <meyering@redhat.com>
55165         openat: add comments
55166         * lib/openat-proc.c (openat_proc_name): Add comments,
55167         mostly from Eric Blake.
55169 2011-05-09  Eric Blake  <eblake@redhat.com>
55171         openat: reduce syscalls in first probe of /proc
55172         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
55173         be a directory.  Simplify the probe for .. bugs.
55174         * modules/openat (Depends-on): Drop same-inode.
55175         Reported by Bastien ROUCARIES.
55177 2011-05-09  Jim Meyering  <meyering@redhat.com>
55179         maint.mk: change semantics/name of tight_scope variables
55180         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
55181         Rename variables to align with semantics that make them more useful.
55183         maint.mk: tweak new rule's name not to impinge
55184         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
55185         (sc_tight_scope): Use new rule name rather than $@-0.
55187         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
55188         * top/maint.mk (sc_tight_scope): New rule.
55189         (sc_tight_scope-0): New rule, ifdef'd out.
55190         (_gl_TS_dir): Default.
55191         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
55192         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
55194 2011-05-09  Simon Josefsson  <simon@josefsson.org>
55196         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
55197         Haible <bruno@clisp.org>.
55199 2011-05-08  Bruno Haible  <bruno@clisp.org>
55201         Comments.
55202         * m4/isnanf.m4: Add comment.
55203         * m4/isnanl.m4: Likewise.
55205 2011-05-08  Bruno Haible  <bruno@clisp.org>
55207         glob: Remove obsolete macro.
55208         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
55210 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
55212         intprops: Sun C 5.11 supports __typeof__
55213         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
55214         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
55215         which is new.
55216         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
55218         intprops: switch to usual gnulib indenting and naming
55219         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
55220         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
55222         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
55224 2011-05-08  Jim Meyering  <meyering@redhat.com>
55226         maint.mk: suppress "Entering/Leaving directory" diag in announcement
55227         * top/maint.mk (release-prep): Use make's --no-print-directory
55228         option when generating the announcement.  This eliminates the
55229         pesky "make[2]: Entering/Leaving directory" diagnostics in the
55230         generated announcement template.
55232 2011-05-08  Bruno Haible  <bruno@clisp.org>
55234         tzset: Fix gettimeofday wrapper on Solaris 2.6.
55235         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
55236         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
55238 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
55240         ignore-value, verify: Omit include files from lib_SOURCES.
55241         * modules/ignore-value, modules/verify (Makefile.am):
55242         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
55243         that leads Automake to duplicate use of am__objects_... variables
55244         in Makefile.in.  See
55245         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
55247 2011-05-07  Bruno Haible  <bruno@clisp.org>
55249         fclose: Simplify autoconf macro.
55250         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
55251         defined.
55253 2011-05-07  Bruno Haible  <bruno@clisp.org>
55255         canonicalize-lgpl: Fix autoconf macro ordering bug.
55256         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
55257         gl_STDLIB_H_DEFAULTS.
55259 2011-05-06  Eric Blake  <eblake@redhat.com>
55261         maintainer-makefile: make sc_po_check easier to tune
55262         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
55263         to probe for strings, such as an alternate location for gnulib.
55265         fclose: guarantee behavior on seekable stdin
55266         * modules/fclose (Depends-on): Add fflush.
55267         * doc/posix-functions/fclose.texi (fclose): Document this.
55268         * tests/test-fclose.c (main): Make test for this unconditional.
55270 2011-05-06  Bruno Haible  <bruno@clisp.org>
55272         fflush, fpurge: Relicense under LGPLv2+.
55273         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
55274         * modules/fpurge (License): Likewise.
55275         With permission from Eric Blake and Jim Meyering.
55276         Suggested by Eric Blake.
55278 2011-05-06  Karl Berry  <karl@gnu.org>
55280         * MODULES.html.sh (func_all_modules): remove exit.
55282 2011-05-06  Jim Meyering  <meyering@redhat.com>
55284         maint.mk: use info-gnu@ as the default only for a stable release
55285         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
55286         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
55287         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
55288         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
55290 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55292         assert-h: new module, which supports C1X-style static_assert
55293         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
55294         * lib/verify.h: Revamp so that this can be copied into assert.h,
55295         while retaining the ability to use it standalone as before.
55296         Rename private identifiers so as not to encroach on the
55297         standard C namespace, since this is now used by assert.h.
55298         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
55299         the old verify_true.
55300         (_GL_VERIFY_TRUE): New macro, with much of the contents of
55301         the old verify_true.  Use _GL_VERIFY_TYPE.
55302         (_GL_VERIFY): New macro, with much of the contents of the old verify.
55303         (static_assert): New macro, if _GL_STATIC_ASSERT_H
55304         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
55305         defined when this file is copied into the replacement assert.h.
55306         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
55307         and _Static_assert is not built in.
55308         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
55309         defined, and use the new macros mentioned above.
55310         * doc/posix-headers/assert.texi: Document this.
55312 2011-05-05  Bruno Haible  <bruno@clisp.org>
55314         fclose, fflush: Respect rules for use of AC_LIBOBJ.
55315         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
55316         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
55317         gl_REPLACE_FCLOSE here.
55318         * modules/fflush (Depends-on): Remove fclose.
55319         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
55320         combination with module 'fclose'.
55322 2011-05-05  Bruno Haible  <bruno@clisp.org>
55324         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
55325         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
55326         gl_FUNC_FFLUSH.
55327         (gl_FUNC_FFLUSH): Use it.
55328         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
55329         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
55330         gl_REPLACE_FSEEKO here.
55332 2011-05-05  Bruno Haible  <bruno@clisp.org>
55334         tzset: Relicense under LGPL.
55335         * modules/tzset (License): Change to LGPL.
55336         No agreement needed; it's a no-op.
55338         strtoimax, strtoumax: Relicense under LGPL.
55339         * modules/strtoimax (License): Change to LGPL.
55340         * modules/strtoumax (License): Likewise.
55341         With permission from Jim Meyering, Paul Eggert:
55342         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
55343         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
55345         getgroups: Relicense under LGPL.
55346         * modules/getgroups (License): Change to LGPL.
55347         With permission from Jim Meyering, Paul Eggert, Eric Blake:
55348         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55349         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55350         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55352         nanosleep: Relicense under LGPL.
55353         * modules/nanosleep (License): Change to LGPL.
55354         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
55355         Haible:
55356         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55357         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55358         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55359         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55361         futimens: Relicense under LGPL.
55362         * modules/futimens (License): Change to LGPL.
55363         With permission from Eric Blake:
55364         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55366         fflush: Relicense under LGPL.
55367         * modules/fflush (License): Change to LGPL.
55368         With permission from Eric Blake, Bruno Haible, Jim Meyering:
55369         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55370         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55371         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
55373         tmpfile: Relicense under LGPL.
55374         * modules/tmpfile (License): Change to LGPL.
55375         With permission from Ben Pfaff:
55376         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55378         isfinite: Relicense under LGPL.
55379         * modules/isfinite (License): Change to LGPL.
55380         With permission from Ben Pfaff, Bruno Haible:
55381         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55382         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
55384         acosl..tanl: Relicense under LGPL.
55385         * modules/acosl (License): Change to LGPL.
55386         * modules/asinl (License): Likewise.
55387         * modules/atanl (License): Likewise.
55388         * modules/cosl (License): Likewise.
55389         * modules/expl (License): Likewise.
55390         * modules/logl (License): Likewise.
55391         * modules/sinl (License): Likewise.
55392         * modules/sqrtl (License): Likewise.
55393         * modules/tanl (License): Likewise.
55394         Source code originally from glibc and Paolo Bonzini. Agreements:
55395         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
55396         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
55398 2011-05-05  Bruno Haible  <bruno@clisp.org>
55400         signal: Define sighandler_t.
55401         * lib/signal.in.h (sighandler_t): New type.
55402         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
55403         whether sighandler_t is defined.
55404         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
55405         * modules/signal (Depends-on): Add extensions.
55406         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
55407         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
55408         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
55410 2011-05-05  Eric Blake  <eblake@redhat.com>
55412         maint: remove useless REPLACE_*_H macros
55413         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
55414         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
55415         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
55416         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
55417         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55418         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55419         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
55420         * m4/btowc.m4: Update callers.
55421         * m4/dirfd.m4: Likewise.
55422         * m4/duplocale.m4: Likewise.
55423         * m4/fchdir.m4: Likewise.
55424         * m4/fdopendir.m4: Likewise.
55425         * m4/inet_ntop.m4: Likewise.
55426         * m4/inet_pton.m4: Likewise.
55427         * m4/ioctl.m4: Likewise.
55428         * m4/mbrlen.m4: Likewise.
55429         * m4/mbrtowc.m4: Likewise.
55430         * m4/mbsinit.m4: Likewise.
55431         * m4/mbsnrtowcs.m4: Likewise.
55432         * m4/mbsrtowcs.m4: Likewise.
55433         * m4/poll.m4: Likewise.
55434         * m4/setlocale.m4: Likewise.
55435         * m4/wcrtomb.m4: Likewise.
55436         * m4/wcsnrtombs.m4: Likewise.
55437         * m4/wcsrtombs.m4: Likewise.
55438         * m4/wctob.m4: Likewise.
55439         * m4/wcwidth.m4: Likewise.
55440         * modules/posix_spawn: Likewise.
55441         * modules/posix_spawn_file_actions_addclose: Likewise.
55442         * modules/posix_spawn_file_actions_adddup2: Likewise.
55443         * modules/posix_spawn_file_actions_addopen: Likewise.
55444         * modules/posix_spawn_file_actions_destroy: Likewise.
55445         * modules/posix_spawn_file_actions_init: Likewise.
55446         * modules/posix_spawnattr_destroy: Likewise.
55447         * modules/posix_spawnattr_getflags: Likewise.
55448         * modules/posix_spawnattr_getpgroup: Likewise.
55449         * modules/posix_spawnattr_getschedparam: Likewise.
55450         * modules/posix_spawnattr_getschedpolicy: Likewise.
55451         * modules/posix_spawnattr_getsigdefault: Likewise.
55452         * modules/posix_spawnattr_getsigmask: Likewise.
55453         * modules/posix_spawnattr_init: Likewise.
55454         * modules/posix_spawnattr_setflags: Likewise.
55455         * modules/posix_spawnattr_setpgroup: Likewise.
55456         * modules/posix_spawnattr_setschedparam: Likewise.
55457         * modules/posix_spawnattr_setschedpolicy: Likewise.
55458         * modules/posix_spawnattr_setsigdefault: Likewise.
55459         * modules/posix_spawnattr_setsigmask: Likewise.
55460         * modules/posix_spawnp: Likewise.
55462 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
55464         Add option to do-release-commit-and-tag to specify branch.
55465         * build-aux/do-release-commit-and-tag: Add --branch.
55467 2011-05-03  Bruno Haible  <bruno@clisp.org>
55469         Avoid unnecessary compilation units, through conditional dependencies.
55470         * modules/accept (Depends-on): Add conditions to the dependencies.
55471         * modules/acosl (Depends-on): Likewise.
55472         * modules/argz (Depends-on): Likewise.
55473         * modules/asinl (Depends-on): Likewise.
55474         * modules/atanl (Depends-on): Likewise.
55475         * modules/atoll (Depends-on): Likewise.
55476         * modules/bind (Depends-on): Likewise.
55477         * modules/btowc (Depends-on): Likewise.
55478         * modules/canonicalize-lgpl (Depends-on): Likewise.
55479         * modules/ceil (Depends-on): Likewise.
55480         * modules/ceilf (Depends-on): Likewise.
55481         * modules/ceill (Depends-on): Likewise.
55482         * modules/chdir-long (Depends-on): Likewise.
55483         * modules/chown (Depends-on): Likewise.
55484         * modules/close (Depends-on): Likewise.
55485         * modules/connect (Depends-on): Likewise.
55486         * modules/cosl (Depends-on): Likewise.
55487         * modules/dirfd (Depends-on): Likewise.
55488         * modules/dprintf (Depends-on): Likewise.
55489         * modules/dprintf-posix (Depends-on): Likewise.
55490         * modules/error (Depends-on): Likewise.
55491         * modules/euidaccess (Depends-on): Likewise.
55492         * modules/expl (Depends-on): Likewise.
55493         * modules/faccessat (Depends-on): Likewise.
55494         * modules/fchdir (Depends-on): Likewise.
55495         * modules/fclose (Depends-on): Likewise.
55496         * modules/fcntl (Depends-on): Likewise.
55497         * modules/fdopendir (Depends-on): Likewise.
55498         * modules/fflush (Depends-on): Likewise.
55499         * modules/floor (Depends-on): Likewise.
55500         * modules/floorf (Depends-on): Likewise.
55501         * modules/floorl (Depends-on): Likewise.
55502         * modules/fnmatch (Depends-on): Likewise.
55503         * modules/fopen (Depends-on): Likewise.
55504         * modules/fprintf-posix (Depends-on): Likewise.
55505         * modules/frexp (Depends-on): Likewise.
55506         * modules/frexp-nolibm (Depends-on): Likewise.
55507         * modules/frexpl (Depends-on): Likewise.
55508         * modules/frexpl-nolibm (Depends-on): Likewise.
55509         * modules/fseek (Depends-on): Likewise.
55510         * modules/fsusage (Depends-on): Likewise.
55511         * modules/ftell (Depends-on): Likewise.
55512         * modules/ftello (Depends-on): Likewise.
55513         * modules/futimens (Depends-on): Likewise.
55514         * modules/getcwd (Depends-on): Likewise.
55515         * modules/getcwd-lgpl (Depends-on): Likewise.
55516         * modules/getdelim (Depends-on): Likewise.
55517         * modules/getdomainname (Depends-on): Likewise.
55518         * modules/getgroups (Depends-on): Likewise.
55519         * modules/gethostname (Depends-on): Likewise.
55520         * modules/getline (Depends-on): Likewise.
55521         * modules/getlogin_r (Depends-on): Likewise.
55522         * modules/getopt-posix (Depends-on): Likewise.
55523         * modules/getpeername (Depends-on): Likewise.
55524         * modules/getsockname (Depends-on): Likewise.
55525         * modules/getsockopt (Depends-on): Likewise.
55526         * modules/getsubopt (Depends-on): Likewise.
55527         * modules/getusershell (Depends-on): Likewise.
55528         * modules/glob (Depends-on): Likewise.
55529         * modules/grantpt (Depends-on): Likewise.
55530         * modules/iconv_open (Depends-on): Likewise.
55531         * modules/iconv_open-utf (Depends-on): Likewise.
55532         * modules/inet_ntop (Depends-on): Likewise.
55533         * modules/inet_pton (Depends-on): Likewise.
55534         * modules/ioctl (Depends-on): Likewise.
55535         * modules/isapipe (Depends-on): Likewise.
55536         * modules/isfinite (Depends-on): Likewise.
55537         * modules/isinf (Depends-on): Likewise.
55538         * modules/lchown (Depends-on): Likewise.
55539         * modules/ldexpl (Depends-on): Likewise.
55540         * modules/link (Depends-on): Likewise.
55541         * modules/linkat (Depends-on): Likewise.
55542         * modules/listen (Depends-on): Likewise.
55543         * modules/logl (Depends-on): Likewise.
55544         * modules/lstat (Depends-on): Likewise.
55545         * modules/mbrlen (Depends-on): Likewise.
55546         * modules/mbrtowc (Depends-on): Likewise.
55547         * modules/mbsinit (Depends-on): Likewise.
55548         * modules/mbsnrtowcs (Depends-on): Likewise.
55549         * modules/mbsrtowcs (Depends-on): Likewise.
55550         * modules/mbtowc (Depends-on): Likewise.
55551         * modules/memcmp (Depends-on): Likewise.
55552         * modules/mkdir (Depends-on): Likewise.
55553         * modules/mkdtemp (Depends-on): Likewise.
55554         * modules/mkfifo (Depends-on): Likewise.
55555         * modules/mkfifoat (Depends-on): Likewise.
55556         * modules/mknod (Depends-on): Likewise.
55557         * modules/mkostemp (Depends-on): Likewise.
55558         * modules/mkostemps (Depends-on): Likewise.
55559         * modules/mkstemp (Depends-on): Likewise.
55560         * modules/mkstemps (Depends-on): Likewise.
55561         * modules/mktime (Depends-on): Likewise.
55562         * modules/nanosleep (Depends-on): Likewise.
55563         * modules/open (Depends-on): Likewise.
55564         * modules/openat (Depends-on): Likewise.
55565         * modules/perror (Depends-on): Likewise.
55566         * modules/poll (Depends-on): Likewise.
55567         * modules/popen (Depends-on): Likewise.
55568         * modules/posix_spawn (Depends-on): Likewise.
55569         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
55570         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55571         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55572         * modules/posix_spawnp (Depends-on): Likewise.
55573         * modules/pread (Depends-on): Likewise.
55574         * modules/printf-posix (Depends-on): Likewise.
55575         * modules/ptsname (Depends-on): Likewise.
55576         * modules/putenv (Depends-on): Likewise.
55577         * modules/pwrite (Depends-on): Likewise.
55578         * modules/readline (Depends-on): Likewise.
55579         * modules/readlink (Depends-on): Likewise.
55580         * modules/readlinkat (Depends-on): Likewise.
55581         * modules/recv (Depends-on): Likewise.
55582         * modules/recvfrom (Depends-on): Likewise.
55583         * modules/regex (Depends-on): Likewise.
55584         * modules/remove (Depends-on): Likewise.
55585         * modules/rename (Depends-on): Likewise.
55586         * modules/renameat (Depends-on): Likewise.
55587         * modules/rmdir (Depends-on): Likewise.
55588         * modules/round (Depends-on): Likewise.
55589         * modules/roundf (Depends-on): Likewise.
55590         * modules/roundl (Depends-on): Likewise.
55591         * modules/rpmatch (Depends-on): Likewise.
55592         * modules/select (Depends-on): Likewise.
55593         * modules/send (Depends-on): Likewise.
55594         * modules/sendto (Depends-on): Likewise.
55595         * modules/setenv (Depends-on): Likewise.
55596         * modules/setlocale (Depends-on): Likewise.
55597         * modules/setsockopt (Depends-on): Likewise.
55598         * modules/shutdown (Depends-on): Likewise.
55599         * modules/sigaction (Depends-on): Likewise.
55600         * modules/signbit (Depends-on): Likewise.
55601         * modules/sigprocmask (Depends-on): Likewise.
55602         * modules/sinl (Depends-on): Likewise.
55603         * modules/sleep (Depends-on): Likewise.
55604         * modules/snprintf (Depends-on): Likewise.
55605         * modules/snprintf-posix (Depends-on): Likewise.
55606         * modules/socket (Depends-on): Likewise.
55607         * modules/sprintf-posix (Depends-on): Likewise.
55608         * modules/sqrtl (Depends-on): Likewise.
55609         * modules/stat (Depends-on): Likewise.
55610         * modules/strchrnul (Depends-on): Likewise.
55611         * modules/strdup-posix (Depends-on): Likewise.
55612         * modules/strerror (Depends-on): Likewise.
55613         * modules/strerror_r-posix (Depends-on): Likewise.
55614         * modules/strndup (Depends-on): Likewise.
55615         * modules/strnlen (Depends-on): Likewise.
55616         * modules/strptime (Depends-on): Likewise.
55617         * modules/strsep (Depends-on): Likewise.
55618         * modules/strsignal (Depends-on): Likewise.
55619         * modules/strstr-simple (Depends-on): Likewise.
55620         * modules/strtod (Depends-on): Likewise.
55621         * modules/strtoimax (Depends-on): Likewise.
55622         * modules/strtok_r (Depends-on): Likewise.
55623         * modules/strtoumax (Depends-on): Likewise.
55624         * modules/symlink (Depends-on): Likewise.
55625         * modules/symlinkat (Depends-on): Likewise.
55626         * modules/tanl (Depends-on): Likewise.
55627         * modules/tcgetsid (Depends-on): Likewise.
55628         * modules/tmpfile (Depends-on): Likewise.
55629         * modules/trunc (Depends-on): Likewise.
55630         * modules/truncf (Depends-on): Likewise.
55631         * modules/truncl (Depends-on): Likewise.
55632         * modules/uname (Depends-on): Likewise.
55633         * modules/unlink (Depends-on): Likewise.
55634         * modules/unlockpt (Depends-on): Likewise.
55635         * modules/unsetenv (Depends-on): Likewise.
55636         * modules/usleep (Depends-on): Likewise.
55637         * modules/utimensat (Depends-on): Likewise.
55638         * modules/vasprintf (Depends-on): Likewise.
55639         * modules/vdprintf (Depends-on): Likewise.
55640         * modules/vdprintf-posix (Depends-on): Likewise.
55641         * modules/vfprintf-posix (Depends-on): Likewise.
55642         * modules/vprintf-posix (Depends-on): Likewise.
55643         * modules/vsnprintf (Depends-on): Likewise.
55644         * modules/vsnprintf-posix (Depends-on): Likewise.
55645         * modules/vsprintf-posix (Depends-on): Likewise.
55646         * modules/wcrtomb (Depends-on): Likewise.
55647         * modules/wcscasecmp (Depends-on): Likewise.
55648         * modules/wcscspn (Depends-on): Likewise.
55649         * modules/wcsdup (Depends-on): Likewise.
55650         * modules/wcsncasecmp (Depends-on): Likewise.
55651         * modules/wcsnrtombs (Depends-on): Likewise.
55652         * modules/wcspbrk (Depends-on): Likewise.
55653         * modules/wcsrtombs (Depends-on): Likewise.
55654         * modules/wcsspn (Depends-on): Likewise.
55655         * modules/wcsstr (Depends-on): Likewise.
55656         * modules/wcstok (Depends-on): Likewise.
55657         * modules/wcswidth (Depends-on): Likewise.
55658         * modules/wctob (Depends-on): Likewise.
55659         * modules/wctomb (Depends-on): Likewise.
55660         * modules/wctype (Depends-on): Likewise.
55661         * modules/wcwidth (Depends-on): Likewise.
55662         * modules/write (Depends-on): Likewise.
55664 2011-05-03  Bruno Haible  <bruno@clisp.org>
55666         Support for conditional dependencies.
55667         * doc/gnulib.texi (Module description): Document the syntax of
55668         conditional dependencies.
55669         * gnulib-tool: New option --conditional-dependencies.
55670         (func_usage): Document it.
55671         (cond_dependencies): New variable.
55672         (func_get_automake_snippet_conditional,
55673         func_get_automake_snippet_unconditional): New functions, extracted from
55674         func_get_automake_snippet.
55675         (func_get_automake_snippet): Use them.
55676         (sed_first_32_chars): New variable.
55677         (func_module_shellfunc_name): New function.
55678         (func_module_shellvar_name): New function.
55679         (func_module_conditional_name): New function.
55680         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
55681         func_cond_module_condition): New functions.
55682         (func_modules_transitive_closure): Add support for conditional
55683         dependencies.
55684         (func_emit_lib_Makefile_am): For a conditional module, enclose the
55685         conditional automake snippet in an automake conditional.
55686         (func_emit_autoconf_snippets): Emit shell functions that contain the
55687         code for conditional modules.
55688         (func_import, func_create_testdir): Update specification.
55690 2011-05-03  Eric Blake  <eblake@redhat.com>
55692         test-getaddrinfo: report error information
55693         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
55695 2011-05-03  Jim Meyering  <meyering@redhat.com>
55697         bootstrap: avoid build failure when $GZIP is set
55698         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
55699         program name.  If defined at all, it is supposed to list gzip options.
55700         Reported by Alan Curry in http://debbugs.gnu.org/8609
55702 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
55704         readme-release: new module with release instructions
55705         * modules/readme-release: New module.
55706         * top/README-release: New file, from coreutils, grep, diffutils.
55707         * MODULES.html.sh (Support for maintaining and releasing): Add it.
55709 2011-05-02  Eric Blake  <eblake@redhat.com>
55711         fflush: also replace fclose when fixing fflush
55712         * modules/fflush (Depends-on): Add fclose.
55713         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
55714         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
55715         memstreams with no backing fd.
55716         * doc/posix-functions/fclose.texi (fclose): Document the use of
55717         fflush module to fix the bug.
55718         * tests/test-fclose.c (main): Relax test when fclose is used in
55719         isolation.
55721         fclose: add some tests
55722         * modules/fclose-tests: New test module.
55723         * tests/test-fclose.c: New file.
55724         * doc/posix-functions/fclose.texi (fclose): Document the bug.
55726         fclose: reduced dependencies
55727         * modules/fclose (Depends-on): Switch from fflush/fseeko to
55728         simpler lseek.
55729         * lib/fclose.c (rpl_fclose): Likewise.
55730         Reported by Simon Josefsson.
55732         exit: drop remaining clients
55733         * modules/argmatch (Depends-on): Replace exit with stdlib.
55734         * modules/copy-file (Depends-on): Likewise.
55735         * modules/execute (Depends-on): Likewise.
55736         * modules/exitfail (Depends-on): Likewise.
55737         * modules/obstack (Depends-on): Likewise.
55738         * modules/pagealign_alloc (Depends-on): Likewise.
55739         * modules/pipe-filter-gi (Depends-on): Likewise.
55740         * modules/pipe-filter-ii (Depends-on): Likewise.
55741         * modules/savewd (Depends-on): Likewise.
55742         * modules/spawn-pipe (Depends-on): Likewise.
55743         * modules/wait-process (Depends-on): Likewise.
55744         * modules/xsetenv (Depends-on): Likewise.
55745         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
55746         * modules/git-merge-changelog (Depends-on): Likewise.
55747         * modules/long-options (Depends-on): Likewise.
55748         * modules/pt_chown (Depends-on): Likewise.
55749         * modules/sysexits (Depends-on): Likewise.
55751         freading: relax license from LGPLv3+ to LGPLv2+
55752         * modules/freading (License): Relax LGPL version.
55754 2011-05-02  Bruno Haible  <bruno@clisp.org>
55756         fchdir: Remove unused dependencies.
55757         * modules/fchdir (Depends-on): Remove include_next.
55759 2011-05-02  Bruno Haible  <bruno@clisp.org>
55761         gnulib-tool: Refactor.
55762         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
55763         from func_emit_autoconf_snippets.
55764         (func_emit_autoconf_snippets): Use it.
55766 2011-05-02  Simon Josefsson  <simon@josefsson.org>
55768         * NEWS: Document removal of 'exit'.
55769         * modules/exit: Remove file.
55771 2011-05-01  Bruno Haible  <bruno@clisp.org>
55773         Update DEPENDENCIES.
55774         * DEPENDENCIES (gettext): Recommend the newest release.
55775         Reported by Simon Josefsson.
55777 2011-05-01  Bruno Haible  <bruno@clisp.org>
55779         gnulib-tool: Reduce code duplication.
55780         * gnulib-tool (func_emit_autoconf_snippets): New function.
55781         (func_import, func_create_testdir): Use it.
55783 2011-04-30  Eric Blake  <eblake@redhat.com>
55785         fclose: don't fail on non-seekable input stream
55786         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
55787         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
55788         since fflush is allowed to fail in that case.
55790 2011-04-30  Bruno Haible  <bruno@clisp.org>
55792         dup3: cleanup
55793         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
55795 2011-04-30  Bruno Haible  <bruno@clisp.org>
55797         netdb: Make it work in C++ mode.
55798         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
55799         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
55800         module.
55801         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
55802         gl_MODULE_INDICATOR_FOR_TESTS.
55803         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
55804         * modules/netdb-c++-tests: New file.
55805         * tests/test-netdb-c++.cc: New file.
55807 2011-04-30  Bruno Haible  <bruno@clisp.org>
55809         New modules 'vfscanf', 'vscanf'.
55810         * modules/vfscanf: New file.
55811         * modules/vscanf: New file.
55812         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
55813         here.
55814         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
55815         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
55817 2011-04-30  Bruno Haible  <bruno@clisp.org>
55819         passfd: Add comments.
55820         * lib/passfd.c: Add comments about platforms.
55822 2011-04-30  Bruno Haible  <bruno@clisp.org>
55824         sys_uio: Make <sys/uio.h> self-contained.
55825         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
55826         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
55828 2011-04-30  Bruno Haible  <bruno@clisp.org>
55830         sys_socket: Ensure 'struct iovec' definition.
55831         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
55832         <sys/socket.h>.
55833         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
55835 2011-04-30  Bruno Haible  <bruno@clisp.org>
55837         sys_uio: Protect definition of 'struct iovec'.
55838         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
55839         it as a C struct.
55841 2011-04-30  Bruno Haible  <bruno@clisp.org>
55843         manywarnings: fix indentation
55844         * m4/manywarnings.m4: Indent by 2 spaces consistently.
55846 2011-04-30  Pádraig Brady  <P@draigBrady.com>
55848         manywarnings: add -Wno-missing-field-initializers if needed.
55849         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
55850         option if it's needed to allow initialization with { 0, }
55852 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
55854         announce-gen: cosmetic improvement
55855         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
55857 2011-04-29  Jim Meyering  <meyering@redhat.com>
55859         vc-list-files: indent with spaces, not TABs
55860         * build-aux/vc-list-files: Convert leading TABs to spaces,
55861         to match the style of most other files in gnulib.
55863         announce-gen: indent with spaces, not TABs
55864         * build-aux/announce-gen: Convert all TABs to spaces, to match
55865         the style of most other files in gnulib.
55867 2011-04-29  Eric Blake  <eblake@redhat.com>
55869         quotearg: avoid uninitialized variable use
55870         * lib/quotearg.c (quoting_options_from_style): Initialize
55871         remaining fields, and ensure that custom styles are only used via
55872         quoting_options rather than quoting_style.
55874 2011-04-29  Jim Meyering  <meyering@redhat.com>
55876         maint.mk: remove unused VC-tag variable
55877         * top/maint.mk (VC-tag): Remove unused variable.
55879 2011-04-29  Bruno Haible  <bruno@clisp.org>
55881         netdb: fix gai_strerror replacements
55882         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
55883         * modules/netdb: Substitute it.
55885 2011-04-29  Jim Meyering  <meyering@redhat.com>
55887         test-getcwd.c: avoid new set-but-not-used warning
55888         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
55889         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
55890         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
55891         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
55893         test-hash.c: avoid a new shadowing warning
55894         * tests/test-hash.c (main): Don't shadow "dup".
55896 2011-04-28  Eric Blake  <eblake@redhat.com>
55898         getaddrinfo: fix gai_strerror signature
55899         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
55900         and work around mingw with UNICODE defined.
55901         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
55902         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
55903         * modules/netdb (Makefile.am): Substitute it.
55904         * lib/netdb.in.h (gai_strerror): Declare replacement.
55905         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
55906         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
55907         the fix.
55909         getsockopt: avoid compiler warning
55910         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
55911         Reported by Matthias Bolte.
55913         tests: drop unused link dependency
55914         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
55915         * modules/dirent-safer-tests (Makefile.am): Likewise.
55916         * modules/fdopendir-tests (Makefile.am): Likewise.
55917         * modules/mkfifoat-tests (Makefile.am): Likewise.
55918         * modules/openat-safer-tests (Makefile.am): Likewise.
55919         * modules/openat-tests (Makefile.am): Likewise.
55920         * modules/readlinkat-tests (Makefile.am): Likewise.
55921         * modules/symlinkat-tests (Makefile.am): Likewise.
55922         * modules/linkat-tests (Makefile.am): Likewise.
55923         (Depends-on): Switch to filenamecat-lgpl.
55924         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
55925         LIBINTL.
55926         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
55927         * tests/test-linkat.c (main): Don't require xalloc.
55929         hash, mgetgroups: drop xalloc dependency
55930         * lib/hash.c (includes): Adjust includes.
55931         * lib/mgetgroups.c (includes): Likewise.
55932         (xgetgroups): Move...
55933         * lib/xgetgroups.c: ...to new file.
55934         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
55935         * modules/xgetgroups: New file, split from...
55936         * modules/mgetgroups: ...here.
55937         (Depends-on): Add xalloc-oversized.
55938         * modules/hash (Depends-on): Likewise.
55939         * modules/hash-tests (Depends-on): Drop xalloc.
55940         (test_hash_LDADD): Drop unused library.
55941         * tests/test-hash.c (main): Break xalloc dependency.
55942         (includes): Drop unused include.
55944         xalloc-oversized: new module
55945         * modules/xalloc-oversized: New module.
55946         * modules/xalloc (Depends-on): Add it.
55947         * lib/xalloc.h (xalloc_oversized): Move...
55948         * lib/xalloc-oversized.h: ...into new file.
55950         utimecmp: drop dependency on xmalloc
55951         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
55952         due to memory pressure.
55953         * modules/utimecmp (Depends-on): Drop xalloc.
55955 2011-04-27  Eric Blake  <eblake@redhat.com>
55957         getcwd: fix mingw bugs
55958         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
55959         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
55960         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
55962 2011-04-27  Bruno Haible  <bruno@clisp.org>
55964         mkstemps: Ensure declaration on MacOS X 10.5.
55965         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
55966         * doc/glibc-functions/mkstemps.texi: Document header file problem on
55967         MacOS X.
55969 2011-04-27  Bruno Haible  <bruno@clisp.org>
55971         mkstemp: More documentation.
55972         * doc/posix-functions/mkstemp.texi: Document header file problem on
55973         MacOS X.
55975 2011-04-27  Bruno Haible  <bruno@clisp.org>
55977         mkstemp: Tweak configure message when cross-compiling.
55978         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
55979         result as a guess.
55981 2011-04-27  Bruno Haible  <bruno@clisp.org>
55983         clean-temp: Clarify what it does.
55984         * lib/clean-temp.h: Add more comments.
55985         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
55986         module.
55987         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
55988         * doc/glibc-functions/mkstemps.texi: Likewise.
55989         * doc/glibc-functions/mkostemps.texi: Likewise.
55991 2011-04-27  Eric Blake  <eblake@redhat.com>
55993         fchdir: avoid extra chdir and fix test
55994         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
55995         getcwd-lgpl.
55996         * lib/fchdir.c (get_name): Any absolute name will do; it does not
55997         have to be canonical.
55998         (canonicalize_file_name): Drop unused macro.
55999         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
56001         filenamecat-lgpl: fix licence
56002         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
56003         when it was first created.
56005         linkat, renameat: add missing dependency
56006         * modules/linkat (Depends-on): Require getcwd-lgpl.
56007         * modules/renameat (Depends-on): Likewise.
56009         tests: reduce dependencies
56010         * tests/test-linkat.c (main): Use lighter-weight getcwd.
56011         * tests/test-renameat.c (main): Likewise.
56012         * modules/linkat-tests (Depends-on): Relax dependency.
56013         * modules/renameat-tests (Depends-on): Likewise.
56014         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
56015         dependency explicit.
56017         save-cwd: reduce default dependency
56018         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
56019         * lib/save-cwd.c: Update comments.
56020         * NEWS: Document the semantic change.
56022         getcwd: enhance tests
56023         * tests/test-getcwd-lgpl.c: New file, taken from...
56024         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
56025         repeat long path stress tests from m4 probe.
56026         * modules/getcwd-lgpl-tests: New module.
56027         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
56028         * m4/getcwd-abort-bug.m4: Update comment.
56029         * m4/getcwd-path-max.m4: Likewise.
56031         getcwd-lgpl: new module
56032         * modules/getcwd-lgpl: New module.
56033         * lib/getcwd-lgpl.c: New file.
56034         * doc/posix-functions/getcwd.texi (getcwd): Document it.
56035         * MODULES.html.sh (lacking POSIX:2008): Likewise.
56036         * modules/getcwd (configure.ac): Set C witness.
56037         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
56039         getcwd: tweak comments
56040         * m4/getcwd-abort-bug.m4: Fix comments.
56041         * m4/getcwd-path-max.m4: Likewise.
56042         * m4/getcwd.m4: Likewise.
56044 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56045         and Eric Blake  <eblake@redhat.com>
56047         mkstemp: replace if system version uses wrong permissions
56048         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
56049         read/write mode bits set in file created by mkstemp.
56050         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
56052 2011-04-27  Eric Blake  <eblake@redhat.com>
56054         passfd: avoid compiler warning
56055         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
56056         Reported by Laine Stump.
56058 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
56060         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
56061         required by the NetBSD (and perhaps other 4.4BSD derived) join.
56063 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56064         and Eric Blake  <eblake@redhat.com>
56066         mkstemp: mention clean-temp module
56067         * lib/mkstemp.c: Add comment.
56068         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
56070 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
56072         inttypes: also provide default values for 32-bit tests
56073         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
56074         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
56076 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56078         strtoumax: remove dependency on strtoimax
56079         This is like the strtoull change of yesterday.
56080         * modules/strtoumax (Files): Add lib/strtoimax.c.
56081         (Depends-on): Remove strtoimax and add verify.
56083         inttypes-incomplete: new module
56084         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
56085         all but the PRI* and SCN* parts of gl_INTTYPES_H.
56086         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
56087         of gl_INTTYPES_H.
56088         (gl_INTTYPES_H): Rewrite in terms of these new macros.
56089         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
56090         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
56091         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
56092         * modules/strtoumax, modules/xstrtol (Depends-on):
56093         Depend on inttypes-incomplete, not inttypes.
56094         * modules/inttypes-incomplete: New module, containing the contents
56095         of the old modules/inttypes module, except that the Files: section
56096         omits m4/inttypes-pri.m4, and the configure.ac section invokes
56097         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
56098         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
56099         (Depends-on): Depend only on inttypes-incomplete.
56100         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
56102         inttypes: omit now-redundant strtoimax and strtoumax work
56103         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
56104         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
56106         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
56107         This supports apps that need pointers to strtoimax and strtoumax,
56108         and ports to HP-UX 11.00 64.bit, which has macros that expand to
56109         nonexistent functions.  See
56110         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
56111         et seq.
56112         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
56113         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
56114         a macro.
56115         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56117 2011-04-25  Simon Josefsson  <simon@josefsson.org>
56119         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
56121 2011-04-25  Bruno Haible  <bruno@clisp.org>
56123         strtol, strtoul: Mark modules as obsolete.
56124         * modules/strtol (Status, Notice): New sections.
56125         * modules/strtoul (Status, Notice): New sections.
56127 2011-04-25  Bruno Haible  <bruno@clisp.org>
56129         strtod: Remove check for strtod, unless supporting old platforms.
56130         * modules/strtod-obsolete: New file.
56131         * m4/strtod-obsolete.m4: New file.
56132         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
56133         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
56134         * modules/strtod (Depends-on): Add strtod-obsolete.
56135         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
56137 2011-04-25  Bruno Haible  <bruno@clisp.org>
56139         strcase: Make module obsolete.
56140         * modules/strcase (Status, Notice): New sections.
56142 2011-04-25  Bruno Haible  <bruno@clisp.org>
56144         dup2: Remove check for dup2, unless supporting old obsolete platforms.
56145         * modules/dup2-obsolete: New file.
56146         * m4/dup2-obsolete.m4: New file.
56147         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
56148         gl_FUNC_DUP2_OBSOLETE is not also defined.
56149         * modules/dup2 (Depends-on): Add dup2-obsolete.
56150         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
56152 2011-04-25  Bruno Haible  <bruno@clisp.org>
56154         strnlen: Avoid memchr related link error on old obsolete platforms.
56155         * modules/memchr-obsolete: New file.
56156         * m4/memchr-obsolete.m4: New file.
56157         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
56158         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
56159         * modules/memchr (Depends-on): Add memchr-obsolete.
56160         * modules/strnlen (Depends-on): Likewise.
56161         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
56163 2011-04-25  Jim Meyering  <meyering@redhat.com>
56165         maint.mk: makefile_at_at_check extend and clean up
56166         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
56167         in addition to */Makefile.am.
56168         Exempt legitimate uses of @VAR@ notation, e.g.,
56169         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
56170         Remove obsolete coreutils-specific comment.
56171         Prompted by discussion here:
56172         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
56174 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56176         strtoul: remove dependency on strtol
56177         This is so that 'configure' need not check for strtol merely because
56178         the application needs strtoul.
56179         * modules/strtoul (Files): Add lib/strtol.c.
56180         (Depends-on): Remove strtol.
56182         strtoull: remove dependency on strtoul
56183         This is like the strtoll change.
56184         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
56185         (Depends-on): Remove strtoul.
56187         strtoll: remove dependency on strtol
56188         This is so that 'configure' need not check for strtol merely because
56189         the application needs strtoll.
56190         * modules/strtoll (Files): Add lib/strtol.c.
56191         (Depends-on): Remove strtol.
56193 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56195         inttypes: Move some configure check to module 'imaxdiv'.
56196         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
56197         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
56198         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
56200 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56202         inttypes: Move some configure check to module 'imaxabs'.
56203         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
56204         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
56205         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
56207 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56209         inttypes: Remove configure tests that are not needed since 2009-12-31.
56210         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
56211         gl_cv_header_working_inttypes_h.
56213 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56215         * modules/strnlen (Depends-on): Remove memchr.
56216         The strnlen implementation doesn't need the memchr module's fixes; see
56217         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
56219         strtol: remove dependency on wchar
56220         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
56221         * modules/strtol (Depends-on): Remove wchar.
56223 2011-04-21  Eric Blake  <eblake@redhat.com>
56225         passfd: fix test regression on Linux
56226         * modules/passfd-tests (configure.ac): Correct socketpair check.
56228         passfd: speed up configure and drop unused code
56229         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
56230         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
56231         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
56232         Instead of probing at configure for unix_scm_rights_bsd44_way,
56233         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
56234         check to a struct member probe.
56235         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
56236         (sendfd, recvfd): Update preprocessor checks.
56237         * modules/passfd (Files): Reflect rename, and drop unused file.
56238         (Depends-on): Drop unused dependency.
56240         passfd: allow compilation on mingw
56241         * modules/sys_socket (Depends-on): Add sys_uio.
56242         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
56243         iovec and a minimal struct msghdr.
56244         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
56245         * tests/test-sys_socket.c (main): Enhance test.
56246         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
56247         guaranteed to provide what we need.
56248         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
56249         * modules/passfd-tests (Depends-on): Add sys_wait.
56250         * tests/test-passfd.c (main): Skip test on mingw, for now.
56251         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
56252         partial 'struct msghdr' implementation.
56254         sys_uio: new module
56255         * modules/sys_uio: New module.
56256         * modules/sys_uio-tests: Likewise.
56257         * lib/sys_uio.in.h: New file.
56258         * m4/sys_uio_h.m4: Likewise.
56259         * tests/test-sys_uio.c: Likewise.
56260         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
56261         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
56263 2011-04-20  Jim Meyering  <meyering@redhat.com>
56265         useless-if-before-free: avoid false-positive
56266         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
56267         disjunct so that it too requires a terminating ";".  Without that,
56268         this script would identify as useless one statement from gcc that
56269         was not:
56270           if (aligned_ptr)
56271             free (((void **) aligned_ptr) [-1]);
56273 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
56275         doc: update users.txt.
56276         * users.txt: Add barcode.
56278 2011-04-19  Bruno Haible  <bruno@clisp.org>
56280         ioctl: Remove link dependency on native Windows.
56281         * lib/fd-hook.h: Renamed from lib/close-hook.h.
56282         (gl_close_fn, gl_ioctl_fn): New types.
56283         (struct fd_hook): Renamed from struct close_hook. Change type of
56284         private_close_fn field. Add private_ioctl_fn field.
56285         (close_hook_fn): Add parameter for primary close method.
56286         (execute_close_hooks, execute_all_close_hooks): Likewise.
56287         (ioctl_hook_fn): New type.
56288         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
56289         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56290         argument.
56291         (unregister_fd_hook): Renamed from unregister_close_hook.
56292         * lib/fd-hook.c: Renamed from lib/close-hook.c.
56293         Don't include <unistd.h>.
56294         (close): Remove undef.
56295         (anchor): Update.
56296         (execute_close_hooks): Add argument for primary close method.
56297         (execute_all_close_hooks): Likewise.
56298         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
56299         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56300         argument. Allow each argument to be NULL.
56301         (unregister_fd_hook): Renamed from unregister_close_hook.
56302         * lib/close.c (rpl_close): Pass 'close' function pointer to
56303         execute_all_close_hooks.
56304         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
56305         (primary_ioctl): New function.
56306         (ioctl): Don't call ioctlsocket here. Instead, call
56307         execute_all_ioctl_hooks.
56308         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
56309         close method.
56310         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
56311         (fd_sockets_hook): Renamed from close_sockets_hook.
56312         (gl_sockets_startup, gl_sockets_cleanup): Update.
56313         * modules/fd-hook: Renamed from modules/close-hook. Update.
56314         * modules/close (Depends-on): Add fd-hook, remove close-hook.
56315         * modules/sockets (Depends-on): Likewise.
56316         * modules/ioctl (Depends-on): Add fd-hook.
56317         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
56318         GNULIB_SOCKET.
56320 2011-04-19  Bruno Haible  <bruno@clisp.org>
56322         Move the support of O_NONBLOCK in open() to the 'open' module.
56323         * modules/nonblocking (Depends-on): Remove 'open'.
56324         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
56325         gl_cv_have_open_O_NONBLOCK.
56326         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
56327         O_NONBLOCK support.
56328         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
56330 2011-04-17  Bruno Haible  <bruno@clisp.org>
56332         pipe2: Simplify code.
56333         * lib/pipe2.c (pipe2): Reduce code duplication.
56335 2011-04-17  Bruno Haible  <bruno@clisp.org>
56337         nonblocking: Add comment.
56338         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
56340 2011-04-17  Bruno Haible  <bruno@clisp.org>
56342         nonblocking: Add tests for sockets.
56343         * tests/test-nonblocking-socket.sh: New file.
56344         * tests/test-nonblocking-socket-main.c: New file.
56345         * tests/test-nonblocking-socket-child.c: New file.
56346         * tests/test-nonblocking-socket.h: New file.
56347         * tests/socket-server.h: New file.
56348         * tests/socket-client.h: New file.
56349         * modules/nonblocking-socket-tests: New file.
56350         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
56352 2011-04-17  Bruno Haible  <bruno@clisp.org>
56354         nonblocking: Add tests for pipes.
56355         * tests/test-nonblocking-pipe.sh: New file.
56356         * tests/test-nonblocking-pipe-main.c: New file.
56357         * tests/test-nonblocking-pipe-child.c: New file.
56358         * tests/test-nonblocking-pipe.h: New file.
56359         * tests/test-nonblocking-writer.h: New file.
56360         * tests/test-nonblocking-reader.h: New file.
56361         * tests/test-nonblocking-misc.h: New file.
56362         * modules/nonblocking-pipe-tests: New file.
56363         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
56365 2011-04-16  Bruno Haible  <bruno@clisp.org>
56367         gettext: Clarify the needed programmer actions.
56368         * modules/gettext (Notice): New field.
56369         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
56371 2011-04-16  Bruno Haible  <bruno@clisp.org>
56373         strchrnul: Tweak last commit.
56374         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
56375         bug.
56376         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
56377         as in _GL_FUNCDECL_SYS.
56378         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
56379         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
56381 2011-04-15  Eric Blake  <eblake@redhat.com>
56383         strchrnul: work around cygwin bug
56384         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
56385         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
56386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
56387         * modules/string (Makefile.am): Substitute it.
56388         * lib/string.in.h (strchrnul): Use it.
56390 2011-04-15  Bruno Haible  <bruno@clisp.org>
56392         Don't require lib/stdio-write.c when only module 'stdio' is used.
56393         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
56394         invocation.
56395         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
56397 2011-04-14  Bruno Haible  <bruno@clisp.org>
56399         Support non-blocking pipe I/O in read() on native Windows.
56400         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
56401         (read): New declaration.
56402         * lib/read.c: New file.
56403         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
56404         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
56405         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
56406         vscanf): New declarations.
56407         * lib/stdio-read.c: New file.
56408         * m4/read.m4: New file.
56409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
56410         REPLACE_READ.
56411         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
56412         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56413         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
56414         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
56415         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
56416         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56417         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56418         * modules/read: New file.
56419         * modules/nonblocking (Files): Add lib/stdio-read.c.
56420         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
56421         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
56422         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56423         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56424         * modules/pread (Depends-on): Add read.
56425         * modules/safe-read (Depends-on): Likewise.
56426         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
56427         gets, scanf, vfscanf, vscanf): Verify signatures.
56428         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
56429         problem with non-blocking pipes.
56430         * doc/posix-functions/fgetc.texi: Likewise.
56431         * doc/posix-functions/fgets.texi: Likewise.
56432         * doc/posix-functions/fread.texi: Likewise.
56433         * doc/posix-functions/fscanf.texi: Likewise.
56434         * doc/posix-functions/getc.texi: Likewise.
56435         * doc/posix-functions/getchar.texi: Likewise.
56436         * doc/posix-functions/gets.texi: Likewise.
56437         * doc/posix-functions/scanf.texi: Likewise.
56438         * doc/posix-functions/vfscanf.texi: Likewise.
56439         * doc/posix-functions/vscanf.texi: Likewise.
56441 2011-04-14  Bruno Haible  <bruno@clisp.org>
56443         Support non-blocking pipe I/O in write() on native Windows.
56444         * lib/write.c (rpl_write): Split a write request that failed merely
56445         because the byte count was larger than the pipe buffer's size.
56446         * doc/posix-functions/write.texi: Mention the problem with large byte
56447         counts.
56449 2011-04-14  Bruno Haible  <bruno@clisp.org>
56451         wchar: Ensure that wchar_t gets defined on uClibc.
56452         * lib/wchar.in.h: On uClibc, include <stddef.h>.
56453         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
56455 2011-04-13  Bruno Haible  <bruno@clisp.org>
56457         safe-write, full-read: Avoid unnecessary compilation units.
56458         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
56459         (Depends-on): Remove safe-read. Add ssize_t.
56460         * modules/full-read (Files): Add lib/full-write.c.
56461         (Depends-on): Add full-write.
56463 2011-04-13  Bruno Haible  <bruno@clisp.org>
56465         Support non-blocking pipe I/O and SIGPIPE in pwrite().
56466         * modules/pwrite (Depends-on): Add 'write'.
56468 2011-04-13  Bruno Haible  <bruno@clisp.org>
56470         Support non-blocking pipe I/O in write() on native Windows.
56471         * lib/unistd.in.h (write): Enable replacement also if
56472         GNULIB_UNISTD_H_NONBLOCKING is 1.
56473         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
56474         (rpl_write): When failing to write on a non-blocking pipe, change
56475         errno from ENOSPC to EAGAIN.
56476         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
56477         putchar, puts, vfprintf, vprintf): Enable replacement also if
56478         GNULIB_STDIO_H_NONBLOCKING is 1.
56479         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
56480         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
56481         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
56482         CALL_WITH_SIGPIPE_EMULATION.
56483         (CALL_WITH_SIGPIPE_EMULATION): Use them.
56484         * m4/nonblocking.m4: New file.
56485         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
56486         for non-blocking I/O support.
56487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56488         GNULIB_UNISTD_H_NONBLOCKING.
56489         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
56490         required for non-blocking I/O support.
56491         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
56492         * modules/nonblocking (Files): Add m4/nonblocking.m4,
56493         lib/stdio-write.c, m4/asm-underscore.m4.
56494         (Depends-on): Add stdio, unistd.
56495         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
56496         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
56497         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
56498         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
56499         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
56500         problem with non-blocking pipes.
56501         * doc/posix-functions/fputc.texi: Likewise.
56502         * doc/posix-functions/fputs.texi: Likewise.
56503         * doc/posix-functions/fwrite.texi: Likewise.
56504         * doc/posix-functions/printf.texi: Likewise.
56505         * doc/posix-functions/putc.texi: Likewise.
56506         * doc/posix-functions/putchar.texi: Likewise.
56507         * doc/posix-functions/puts.texi: Likewise.
56508         * doc/posix-functions/vfprintf.texi: Likewise.
56509         * doc/posix-functions/vprintf.texi: Likewise.
56510         * doc/posix-functions/write.texi: Likewise.
56512 2011-04-10  Jim Meyering  <meyering@redhat.com>
56514         maint.mk: prohibit doubled words
56515         Detect them also when they're separated by a newline.
56516         There are 3 ways to customize it:
56517           - disable the test on a per file basis, as usual with rules using
56518             $(VC_LIST_EXCEPT)
56519           - replace the default doubled-word-selecting regexp (affects all files)
56520           - ignore a particular file-vs-doubled-word match
56521         I nearly used that last one to ignore the "is is" match in
56522         coreutils' NEWS file, since the text was "ls -is is ..."
56523         To do that, I would have added this line to cfg.mk:
56524           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
56525         but it would have ignored any "is is" match in NEWS.
56526         Low probability, but still...
56527         Instead, I changed the text, slightly:
56528           -  ls -is is now consistent with ls -lis in ignoring values returned
56529           +  "ls -is" is now consistent with ls -lis in ignoring values returned
56530         * top/maint.mk (prohibit_double_word_RE_): Provide default.
56531         (prohibit_doubled_word_): Define.
56532         (sc_prohibit_doubled_word): New rule.
56533         (sc_prohibit_the_the): Remove.  Subsumed by the above.
56535 2011-04-10  Jim Meyering  <meyering@redhat.com>
56537         maint: fix doubled-word typo in comment
56538         * m4/gethostname.m4: s/is is/it is/
56539         * m4/getdomainname.m4: Likewise.
56541 2011-04-10  Jim Meyering  <meyering@redhat.com>
56543         maint: remove doubled word: s/it it/it/
56544         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
56546 2011-04-10  Jim Meyering  <meyering@redhat.com>
56548         maint.mk: remove useless semicolon and backslash
56549         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
56550         semicolon and backslash.
56552 2011-04-10  Bruno Haible  <bruno@clisp.org>
56554         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
56555         * modules/stdint-tests (Depends-on): Add wchar.
56557 2011-04-10  Jim Meyering  <meyering@redhat.com>
56559         maint: remove doubled words in comments, e.g., s/a a/a/
56560         * lib/strptime.c (day_of_the_week): s/the the/the/
56561         * tests/test-chown.h (test_chown): s/a a/a/
56563         test-chown.h: correct a cast
56564         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
56565         when the destination is a stat.st_gid.
56567 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
56569         getaddrinfo: Fix test for sa_len member.
56570         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
56571         include <sys/types.h> before <sys/socket.h>.
56573 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56575         maint: change "can not" to "cannot"
56576         * doc/posix-functions/iconv.texi (iconv): This one crossed line
56577         boundaries.
56579 2011-04-09  Jim Meyering  <meyering@redhat.com>
56581         maint: change "a a" to "a"
56582         * tests/test-lchown.h (test_lchown): s/a a/a/
56584         maint.mk: prohibit \<the the\>
56585         * top/maint.mk (sc_prohibit_the_the): New rule.
56587         maint: fix "the the" in comment
56588         * lib/count-one-bits.h: s/the the/the/
56590         maint: change "can not" to "cannot"
56591         But do not change the occurrences in maintain.texi or in
56592         build-aux/po/Makefile.in.in, which I presume comes from gettext.
56593         * doc/gnulib-tool.texi: s/can not/cannot/
56594         * doc/posix-functions/accept.texi (accept): Likewise.
56595         * doc/posix-functions/socket.texi (socket): Likewise.
56596         * lib/mbrtowc.c: Likewise.
56598         maint.mk: prohibit use of "can not"
56599         * top/maint.mk (sc_prohibit_can_not): New rule.
56600         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
56602 2011-04-09  Bruno Haible  <bruno@clisp.org>
56604         careadlinkat: Guard against misuse of careadlinkatcwd.
56605         * lib/careadlinkat.c: Include <stdlib.h>.
56606         (careadlinkatcwd): Check that the fd argument is as expected.
56608 2011-04-09  Bruno Haible  <bruno@clisp.org>
56610         careadlinkat: Use common coding style.
56611         * lib/careadlinkat.c: Move gnulib includes after system includes.
56613 2011-04-09  Bruno Haible  <bruno@clisp.org>
56615         careadlinkat: Clarify specification.
56616         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
56617         (careadlinkatcwd): Add comment.
56618         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
56620 2011-04-09  Bruno Haible  <bruno@clisp.org>
56622         areadlinkat: Avoid link error on many platforms.
56623         * modules/areadlinkat (Depends-on): Add areadlink.
56625 2011-04-09  Bruno Haible  <bruno@clisp.org>
56627         allocator, careadlinkat: Fix double-inclusion guard.
56628         * lib/allocator.h: Fix double-inclusion guard.
56629         * lib/careadlinkat.h: Likewise.
56631 2011-04-09  Bruno Haible  <bruno@clisp.org>
56633         relocatable-prog-wrapper: Update after module 'areadlink' changed.
56634         * lib/relocwrapper.c: Update dependencies hierarchy.
56635         * build-aux/install-reloc: Update list of files to be compiled.
56636         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
56637         lib/allocator.[hc].
56639 2011-04-08  Eric Blake  <eblake@redhat.com>
56641         strftime: silence gnulib-tool warning
56642         * modules/strftime-tests (Depends-on): Drop automatic dependency.
56644 2011-04-08  Bruno Haible  <bruno@clisp.org>
56646         verify: Fix syntax error with GCC 4.6 in C++ mode.
56647         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
56648         (HAVE_STATIC_ASSERT): New macro.
56649         (verify_true, verify): Use 'static_assert' if it is supported and
56650         '_Static_assert' is not supported.
56652 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
56654         allocator: New module.
56655         * modules/allocator, lib/allocator.c: New files.
56656         * lib/allocator.h (stdlib_allocator): New decl.
56657         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
56658         Remove.  Do not include <stdlib.h>.
56659         (careadlinkat): Use stdlib_allocator instead of rolling our own.
56660         * modules/careadlinkat (Files): Remove lib/allocator.h.
56661         (Depends-on): Add allocator.
56663         stdlib: let modules use system malloc, realloc
56664         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
56665         if !_GL_USE_STDLIB_ALLOC.
56666         (malloc, realloc): Limit this change to a smaller scope.
56668         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
56669         (malloc, realloc): Don't #undef; no longer needed.
56670         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56671         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56672         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56673         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56674         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56675         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56676         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56677         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56679         careadlinkat: rename members to avoid problem
56680         * lib/allocator.h (struct allocator): Rename members from
56681         malloc/realloc to allocate/reallocate, to avoid problems if malloc
56682         and realloc are #define'd.  Reported by Eric Blake in
56683         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
56684         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
56686 2011-04-08  Eric Blake  <eblake@redhat.com>
56688         nonblocking: reduce dependency
56689         * tests/test-nonblocking.c: Only test sockets when in use.
56690         * modules/nonblocking-tests (Depends-on): Drop socket.
56691         (Makefile.am): Link even if sockets are not present.
56692         * modules/pipe2-tests (Makefile.am): Likewise.
56693         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
56695         pipe2: fix O_NONBLOCK support on mingw
56696         * modules/pipe2 (Depends-on): Add nonblocking.
56697         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
56698         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
56699         * tests/test-nonblocking.c (main): Likewise.
56700         * modules/pipe2-tests (Makefile.am): Avoid link failure.
56702         fcntl-h: fix O_ACCMODE on cygwin
56703         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
56704         * lib/fcntl.in.h (O_ACCMODE): Fix it.
56706         pipe-filter: drop O_NONBLOCK workarounds
56707         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
56708         * modules/pipe-filter-ii (Depends-on): Likewise.
56709         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
56711         nonblocking: provide O_NONBLOCK for mingw
56712         * modules/nonblocking (Depends-on): Add open.
56713         (configure.ac): Set new witness macro.
56714         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
56715         * modules/fcntl-h (Makefile.am): Substitute it.
56716         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
56717         nonblocking module is in use.
56718         * lib/nonblocking.c: Adjust portability test.
56719         * lib/open.c (open): Don't let native open see gnulib flag.
56720         * tests/test-fcntl-h.c (main): Enhance test.
56721         * tests/test-open.h (test_open): Likewise.
56722         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
56724         careadlinkat: fix compilation error on mingw
56725         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
56726         within struct allocator.
56728 2011-04-06  Eric Blake  <eblake@redhat.com>
56730         binary-io: relicense under LGPLv2+
56731         * modules/binary-io (License): Relax to LGPLv2+.
56732         Requested for libvirt, and required by pipe2.
56734 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
56736         verify: use _Static_assert if available
56737         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
56738         (verify_true, verify): Use it if available.  This generates better
56739         diagnostics with GCC 4.6.0 and later.
56741 2011-04-05  Bruno Haible  <bruno@clisp.org>
56743         Remove leftover generated .h files after config.status changed.
56745         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
56746         GL_GENERATE_ALLOCA_H.
56747         * modules/alloca-opt (Makefile.am): Remove alloca.h if
56748         GL_GENERATE_ALLOCA_H evaluates to false.
56750         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
56751         GL_GENERATE_ARGZ_H.
56752         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
56753         evaluates to false.
56755         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
56756         GL_GENERATE_BYTESWAP_H.
56757         * modules/byteswap (Makefile.am): Remove byteswap.h if
56758         GL_GENERATE_BYTESWAP_H evaluates to false.
56760         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
56761         GL_GENERATE_ERRNO_H.
56762         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
56763         evaluates to false.
56765         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
56766         GL_GENERATE_FLOAT_H.
56767         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
56768         evaluates to false.
56770         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
56771         GL_GENERATE_FNMATCH_H.
56772         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
56773         GL_GENERATE_FNMATCH_H evaluates to false.
56775         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
56776         GL_GENERATE_GLOB_H.
56777         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
56778         evaluates to false.
56780         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
56781         automake conditional GL_GENERATE_ICONV_H.
56782         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
56783         evaluates to false.
56785         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
56786         GL_GENERATE_NETINET_IN_H.
56787         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
56788         GL_GENERATE_NETINET_IN_H evaluates to false.
56790         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
56791         conditional GL_GENERATE_PTHREAD_H.
56792         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
56793         * modules/pthread (Makefile.am): Remove pthread.h if
56794         GL_GENERATE_PTHREAD_H evaluates to false.
56796         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
56797         GL_GENERATE_SCHED_H.
56798         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
56799         evaluates to false.
56801         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
56802         conditional GL_GENERATE_SELINUX_CONTEXT_H.
56803         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
56804         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
56806         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
56807         GL_GENERATE_STDARG_H.
56808         * modules/stdarg (Makefile.am): Remove stdarg.h if
56809         GL_GENERATE_STDARG_H evaluates to false.
56811         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
56812         GL_GENERATE_STDBOOL_H.
56813         * modules/stdbool (Makefile.am): Remove stdbool.h if
56814         GL_GENERATE_STDBOOL_H evaluates to false.
56816         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
56817         conditional GL_GENERATE_STDDEF_H.
56818         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
56819         * modules/stddef (Makefile.am): Remove stddef.h if
56820         GL_GENERATE_STDDEF_H evaluates to false.
56822         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
56823         GL_GENERATE_STDINT_H.
56824         * modules/stdint (Makefile.am): Remove stdint.h if
56825         GL_GENERATE_STDINT_H evaluates to false.
56827         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
56828         GL_GENERATE_SYSEXITS_H.
56829         * modules/sysexits (Makefile.am): Remove sysexits.h if
56830         GL_GENERATE_SYSEXITS_H evaluates to false.
56832         Reported by Karl Berry and Ralf Wildenhues.
56834 2011-04-05  Bruno Haible  <bruno@clisp.org>
56836         Ensure to rebuild generated .h files when config.status has changed.
56837         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
56838         config.status.
56839         * modules/ctype (Makefile.am): Likewise.
56840         * modules/dirent (Makefile.am): Likewise.
56841         * modules/errno (Makefile.am): Likewise.
56842         * modules/fcntl-h (Makefile.am): Likewise.
56843         * modules/float (Makefile.am): Likewise.
56844         * modules/getopt-posix (Makefile.am): Likewise.
56845         * modules/glob (Makefile.am): Likewise.
56846         * modules/iconv-h (Makefile.am): Likewise.
56847         * modules/inttypes (Makefile.am): Likewise.
56848         * modules/langinfo (Makefile.am): Likewise.
56849         * modules/locale (Makefile.am): Likewise.
56850         * modules/math (Makefile.am): Likewise.
56851         * modules/netdb (Makefile.am): Likewise.
56852         * modules/netinet_in (Makefile.am): Likewise.
56853         * modules/poll-h (Makefile.am): Likewise.
56854         * modules/pthread (Makefile.am): Likewise.
56855         * modules/pty (Makefile.am): Likewise.
56856         * modules/sched (Makefile.am): Likewise.
56857         * modules/search (Makefile.am): Likewise.
56858         * modules/selinux-h (Makefile.am): Likewise.
56859         * modules/signal (Makefile.am): Likewise.
56860         * modules/spawn (Makefile.am): Likewise.
56861         * modules/stdarg (Makefile.am): Likewise.
56862         * modules/stdbool (Makefile.am): Likewise.
56863         * modules/stddef (Makefile.am): Likewise.
56864         * modules/stdint (Makefile.am): Likewise.
56865         * modules/stdio (Makefile.am): Likewise.
56866         * modules/stdlib (Makefile.am): Likewise.
56867         * modules/string (Makefile.am): Likewise.
56868         * modules/strings (Makefile.am): Likewise.
56869         * modules/sys_file (Makefile.am): Likewise.
56870         * modules/sys_ioctl (Makefile.am): Likewise.
56871         * modules/sys_select (Makefile.am): Likewise.
56872         * modules/sys_socket (Makefile.am): Likewise.
56873         * modules/sys_stat (Makefile.am): Likewise.
56874         * modules/sys_time (Makefile.am): Likewise.
56875         * modules/sys_times (Makefile.am): Likewise.
56876         * modules/sys_utsname (Makefile.am): Likewise.
56877         * modules/sys_wait (Makefile.am): Likewise.
56878         * modules/sysexits (Makefile.am): Likewise.
56879         * modules/termios (Makefile.am): Likewise.
56880         * modules/time (Makefile.am): Likewise.
56881         * modules/unistd (Makefile.am): Likewise.
56882         * modules/wchar (Makefile.am): Likewise.
56883         * modules/wctype-h (Makefile.am): Likewise.
56884         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
56886 2011-04-05  Bruno Haible  <bruno@clisp.org>
56888         pipe2: Relicense under LGPLv2+.
56889         * modules/pipe2 (License): Change to LGPLv2+.
56890         Requested by Eric Blake, for libvirt.
56892 2011-04-05  Bruce Korb  <bkorb@gnu.org>
56894         bootstrap: compute gnulib_extra_files after updating build_aux
56895         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
56896         change build_aux or also supply gnulib_extra_files.  Handle correctly.
56898 2011-04-05  Eric Blake  <eblake@redhat.com>
56900         bootstrap: preserve git whitelist item sorting
56901         * build-aux/bootstrap (sort_patterns): New function.
56902         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
56904 2011-04-05  Simon Josefsson  <simon@josefsson.org>
56906         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
56907         sc_space_tab check.
56909 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
56911         areadlink, areadlinkat: rewrite in terms of careadlinkat
56912         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
56913         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
56914         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
56915         (malloc, realloc): Remove #undefs.
56916         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
56917         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
56918         readlink, ssize_t, stdint, unistd.
56919         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
56920         areadlink, stdint.
56922         careadlinkat: new module
56923         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
56924         * modules/careadlinkat: New files, written by me with
56925         a review and feedback from Ben Pfaff in
56926         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
56928 2011-04-01  Bruno Haible  <bruno@clisp.org>
56930         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
56931         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
56932         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
56933         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
56934         Reported by Bruce Korb <bruce.korb@gmail.com>.
56936 2011-04-01  Bruno Haible  <bruno@clisp.org>
56938         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
56939         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
56940         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
56941         * modules/wcpcpy (Depends-on): Add extensions.
56942         * modules/wcpncpy (Depends-on): Likewise.
56943         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
56944         systems.
56945         * doc/posix-functions/wcpncpy.texi: Likewise.
56946         * doc/posix-functions/wcwidth.texi: Likewise.
56948 2011-03-31  Eric Blake  <eblake@redhat.com>
56950         nonblocking: fix mingw test failures
56951         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
56952         non-blocking flag on regular file.
56953         (get_nonblocking_flag): Set errno on invalid fd.
56954         * tests/test-nonblocking.c (main): Avoid test failure on
56955         directories if fchdir is not active.
56956         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
56958 2011-03-31  Bruno Haible  <bruno@clisp.org>
56960         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
56961         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
56962         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
56963         Reported by Simon Josefsson <simon@josefsson.org>.
56965 2011-03-31  Bruno Haible  <bruno@clisp.org>
56966         and Eric Blake  <eblake@redhat.com>
56968         nonblocking: new module
56969         * modules/nonblocking: New module.
56970         * modules/nonblocking-tests: Likewise.
56971         * lib/nonblocking.h: New file.
56972         * lib/nonblocking.c: Likewise.
56973         * tests/test-nonblocking.c: New test.
56974         * lib/ioctl.c (ioctl) [mingw]: Update comment.
56976 2011-03-30  Bruno Haible  <bruno@clisp.org>
56978         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
56979         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
56980         instead of 'printf' format for GCC >= 4.4.
56981         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
56982         (fprintf, printf, vfprintf, vprintf): Declare with
56983         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
56984         the system's vfprintf() function.
56985         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
56987 2011-03-30  Eric Blake  <eblake@redhat.com>
56989         passfd: fix scoping bug
56990         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
56991         before sendmsg/recvmsg.
56993         passfd: standardize coding conventions
56994         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
56995         can be learned at compile time.
56996         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
56997         ifdefs.
56998         (sendfd, recvfd): Follow gnulib code conventions.
57000         passfd: fix incorrect sendmsg arguments
57001         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
57002         incorrect msg_controllen value.
57003         * modules/passfd-tests (Depends-on): Check for alarm.
57004         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
57005         Reported by Bastien ROUCARIES.
57007 2011-03-30  Bruno Haible  <bruno@clisp.org>
57009         c-strcasestr: Relicense under LGPLv2+.
57010         * modules/c-strcasestr (License): Change to LGPLv2+.
57011         Requested by Eric Blake, for libvirt.
57013 2011-03-30  Simon Josefsson  <simon@josefsson.org>
57015         * users.txt: Add libidn2.  Fix libtasn1 link.
57017 2011-03-30  Jim Meyering  <meyering@redhat.com>
57019         tests: readlink* ("",... fails with EINVAL on newer kernels
57020         readlink and readlinkat have typically failed with ENOENT for
57021         the invalid, empty file name,  "".  However, with the advent
57022         of linux-2.6.39, they fail with EINVAL.
57023         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
57024         when operating on the empty file name.
57025         * tests/test-readlink.h (test_readlink): Likewise.
57027 2011-03-29  Bruno Haible  <bruno@clisp.org>
57029         Relicense some modules under LGPLv2+, for libidn2.
57030         * modules/array-mergesort (License): Change to LGPLv2+.
57031         * modules/c-strcaseeq (License): Likewise.
57032         * modules/striconveh (License): Likewise.
57033         * modules/striconveha (License): Likewise.
57034         * modules/uniconv/base (License): Likewise.
57035         * modules/uniconv/u8-conv-from-enc (License): Likewise.
57036         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
57037         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
57038         * modules/unictype/base (License): Likewise.
57039         * modules/unictype/bidiclass-of (License): Likewise.
57040         * modules/unictype/category-M (License): Likewise.
57041         * modules/unictype/category-none (License): Likewise.
57042         * modules/unictype/category-of (License): Likewise.
57043         * modules/unictype/category-test (License): Likewise.
57044         * modules/unictype/category-test-withtable (License): Likewise.
57045         * modules/unictype/combining-class (License): Likewise.
57046         * modules/unictype/joiningtype-of (License): Likewise.
57047         * modules/unictype/scripts (License): Likewise.
57048         * modules/uninorm/base (License): Likewise.
57049         * modules/uninorm/canonical-decomposition (License): Likewise.
57050         * modules/uninorm/composition (License): Likewise.
57051         * modules/uninorm/decompose-internal (License): Likewise.
57052         * modules/uninorm/decomposition-table (License): Likewise.
57053         * modules/uninorm/nfc (License): Likewise.
57054         * modules/uninorm/nfd (License): Likewise.
57055         * modules/uninorm/u32-normalize (License): Likewise.
57056         * modules/unistr/base (License): Likewise.
57057         * modules/unistr/u32-cpy (License): Likewise.
57058         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
57059         * modules/unistr/u32-to-u8 (License): Likewise.
57060         * modules/unistr/u32-uctomb (License): Likewise.
57061         * modules/unistr/u8-check (License): Likewise.
57062         * modules/unistr/u8-mblen (License): Likewise.
57063         * modules/unistr/u8-mbtouc (License): Likewise.
57064         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
57065         * modules/unistr/u8-mbtoucr (License): Likewise.
57066         * modules/unistr/u8-prev (License): Likewise.
57067         * modules/unistr/u8-strlen (License): Likewise.
57068         * modules/unistr/u8-to-u32 (License): Likewise.
57069         * modules/unistr/u8-uctomb (License): Likewise.
57070         * modules/unitypes (License): Likewise.
57071         Requested by Simon Josefsson.
57073 2011-03-29  Simon Josefsson  <simon@josefsson.org>
57075         lib-symbol-visibility: Add a notice.
57076         * modules/lib-symbol-visibility (Notice): New field.
57078 2011-03-29  Bruno Haible  <bruno@clisp.org>
57080         getaddrinfo: Doc fix.
57081         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
57082         section "fixed in Gnulib".
57084 2011-03-28  Simon Josefsson  <simon@josefsson.org>
57086         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
57087         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
57089 2011-03-26  Bruno Haible  <bruno@clisp.org>
57091         unictype/property-byname: Reduce the number of load-time relocations.
57092         * lib/unictype/pr_byname.c: Include <stdlib.h>.
57093         (UC_PROPERTY_INDEX_*): New enumeration values.
57094         (uc_property_byname): Convert an index from the lookup table to an
57095         uc_property_t.
57096         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
57097         values.
57099 2011-03-26  Bruno Haible  <bruno@clisp.org>
57101         unictype/property-byname: Allow omitted word separators and aliases.
57102         * lib/unictype/pr_byname.gperf: Add property names without word
57103         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
57104         for 'space'.
57106 2011-03-26  Bruno Haible  <bruno@clisp.org>
57108         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
57109         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
57110         also hyphens to space.
57111         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
57112         without spaces.
57113         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
57115 2011-03-26  Bruno Haible  <bruno@clisp.org>
57117         unictype/joiningtype-byname: Recognize long names as well.
57118         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
57119         a long name.
57120         * lib/unictype/joiningtype_byname.c: Include <string.h>,
57121         unictype/joiningtype_byname.h.
57122         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
57123         * lib/unictype/joiningtype_byname.gperf: New file.
57124         * modules/unictype/joiningtype-byname (Files): Add
57125         lib/unictype/joiningtype_byname.gperf.
57126         (Depends-on): Add gperf.
57127         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
57128         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
57129         long names.
57131         Tests for module 'unictype/joiningtype-longname'.
57132         * modules/unictype/joiningtype-longname-tests: New file.
57133         * tests/unictype/test-joiningtype_longname.c: New file.
57135         New module 'unictype/joiningtype-longname'.
57136         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
57137         * lib/unictype/joiningtype_longname.c: New file.
57138         * modules/unictype/joiningtype-longname: New file.
57139         * modules/unictype/joiningtype-all (Depends-on): Add
57140         unictype/joiningtype-longname.
57142 2011-03-26  Bruno Haible  <bruno@clisp.org>
57144         unictype/bidiclass-byname: Recognize long names as well.
57145         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
57146         name.
57147         * lib/unictype/bidi_byname.c: Include <string.h>,
57148         unictype/bidi_byname.h.
57149         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
57150         * lib/unictype/bidi_byname.gperf: New file.
57151         * modules/unictype/bidiclass-byname (Files): Add
57152         lib/unictype/bidi_byname.gperf.
57153         (Depends-on): Add gperf.
57154         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
57155         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
57156         long names.
57158         Tests for module 'unictype/bidiclass-longname'.
57159         * modules/unictype/bidiclass-longname-tests: New file.
57160         * tests/unictype/test-bidi_longname.c: New file.
57162         New module 'unictype/bidiclass-longname'.
57163         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
57164         * lib/unictype/bidi_longname.c: New file.
57165         * modules/unictype/bidiclass-longname: New file.
57166         * modules/unictype/bidiclass-all (Depends-on): Add
57167         unictype/bidiclass-longname.
57169 2011-03-26  Bruno Haible  <bruno@clisp.org>
57171         unictype/bidi*: Rename modules.
57172         * modules/unictype/bidiclass-all: Renamed from
57173         modules/unictype/bidicategory-all.
57174         * modules/unictype/bidiclass-name: Renamed from
57175         modules/unictype/bidiclass-name.
57176         (Description): Update.
57177         * modules/unictype/bidiclass-name-tests: Renamed from
57178         modules/unictype/bidicategory-name-tests.
57179         * modules/unictype/bidiclass-byname: Renamed from
57180         modules/unictype/bidicategory-byname.
57181         (Description): Update.
57182         * modules/unictype/bidiclass-byname-tests: Renamed from
57183         modules/unictype/bidicategory-byname-tests.
57184         * modules/unictype/bidiclass-of: Renamed from
57185         modules/unictype/bidicategory-of.
57186         (Description): Update.
57187         * modules/unictype/bidiclass-of-tests: Renamed from
57188         modules/unictype/bidicategory-of-tests.
57189         * modules/unictype/bidiclass-test: Renamed from
57190         modules/unictype/bidicategory-test.
57191         (Description): Update.
57192         * modules/unictype/bidiclass-test-tests: Renamed from
57193         modules/unictype/bidicategory-test-tests.
57194         * modules/unictype/bidicategory-all: New file, a simple redirection.
57195         * modules/unictype/bidicategory-name: Likewise.
57196         * modules/unictype/bidicategory-byname: Likewise.
57197         * modules/unictype/bidicategory-of: Likewise.
57198         * modules/unictype/bidicategory-test: Likewise.
57199         * modules/unictype/property-bidi-* (Dependencies): Update.
57200         * lib/unictype/bidi_*.c: Update comment.
57202 2011-03-26  Bruno Haible  <bruno@clisp.org>
57204         unictype/bidi*: Rename functions, part 2.
57205         * modules/unictype/bidicategory-name (configure.ac): Update required
57206         libunistring version.
57207         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
57209 2011-03-25  Bruno Haible  <bruno@clisp.org>
57211         New module 'unictype/combining-class-all'.
57212         * modules/unictype/combining-class-all: New file.
57214         Tests for module 'unictype/combining-class-byname'.
57215         * modules/unictype/combining-class-byname-tests: New file.
57216         * tests/unictype/test-combiningclass_byname.c: New file.
57218         New module 'unictype/combining-class-byname'.
57219         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
57220         * lib/unictype/combiningclass_byname.c: New file.
57221         * lib/unictype/combiningclass_byname.gperf: New file.
57222         * modules/unictype/combining-class-byname: New file.
57224         Tests for module 'unictype/combining-class-longname'.
57225         * modules/unictype/combining-class-longname-tests: New file.
57226         * tests/unictype/test-combiningclass_longname.c: New file.
57228         New module 'unictype/combining-class-longname'.
57229         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
57230         * lib/unictype/combiningclass_longname.c: New file.
57231         * modules/unictype/combining-class-longname: New file.
57233         Tests for module 'unictype/combining-class-name'.
57234         * modules/unictype/combining-class-name-tests: New file.
57235         * tests/unictype/test-combiningclass_name.c: New file.
57237         New module 'unictype/combining-class-name'.
57238         * lib/unictype.in.h (uc_combining_class_name): New declaration.
57239         * lib/unictype/combiningclass_name.c: New file.
57240         * modules/unictype/combining-class-name: New file.
57242 2011-03-25  Bruno Haible  <bruno@clisp.org>
57244         unictype/combining-class: Rename source files.
57245         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
57246         of unictype/combining.h.
57247         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
57248         Update.
57249         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
57250         * modules/unictype/combining-class (Description): Fix.
57251         (Files, Makefile.am): Update.
57252         * tests/unictype/test-combiningclass.c: Renamed from
57253         tests/unictype/test-combining.c.
57254         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
57256 2011-03-25  Bruno Haible  <bruno@clisp.org>
57258         unictype: Update list of canonical combining classes.
57259         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
57261 2011-03-25  Bruno Haible  <bruno@clisp.org>
57263         unictype/category-byname: Recognize long names as well.
57264         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
57265         a long name.
57266         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
57267         unictype/categ_byname.h.
57268         (UC_CATEGORY_INDEX_*): New enumeration values.
57269         (uc_general_category_byname): Use uc_general_category_lookup and
57270         convert from index to value.
57271         * lib/unictype/categ_byname.gperf: New file.
57272         * modules/unictype/category-byname (Files): Add
57273         lib/unictype/categ_byname.gperf.
57274         (Depends-on): Add gperf.
57275         (Makefile.am): Add rule for generating unictype/categ_byname.h.
57276         * tests/unictype/test-categ_byname.c (main): Test the recognition of
57277         long names.
57279         Tests for module 'unictype/category-longname'.
57280         * modules/unictype/category-longname-tests: New file.
57281         * tests/unictype/test-categ_longname.c: New file.
57283         New module 'unictype/category-longname'.
57284         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
57285         * lib/unictype/categ_longname.c: New file.
57286         * modules/unictype/category-longname: New file.
57287         * modules/unictype/category-all (Depends-on): Add it.
57289 2011-03-25  Bruno Haible  <bruno@clisp.org>
57291         Tests for module 'unictype/category-LC'.
57292         * modules/unictype/category-LC-tests: New file.
57293         * tests/unictype/test-categ_LC.c: New file, automatically generated.
57295         New module 'unictype/category-LC'.
57296         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
57297         (UC_CATEGORY_LC): New declaration.
57298         (UC_CASED_LETTER): New macro.
57299         * lib/gen-uni-tables.c (is_category_LC): New function.
57300         (output_categories): Also handle category LC.
57301         (UC_CATEGORY_MASK_LC): New enumeration value.
57302         (general_category_byname): Also handle category LC.
57303         * lib/unictype/categ_LC.c: New file.
57304         * lib/unictype/categ_LC.h: New file, automatically generated.
57305         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
57306         category LC.
57307         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
57308         * modules/unictype/category-LC: New file.
57309         * modules/unictype/category-byname (Depends-on): Add
57310         unictype/category-LC.
57311         * modules/unictype/category-all (Depends-on): Likewise.
57313 2011-03-25  Eric Blake  <eblake@redhat.com>
57315         xmalloc: revert yesterday's regression
57316         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
57317         realloc's underlying behavior (allowing allocation of zero-size
57318         objects, especially if malloc-gnu is also in use).
57320 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
57322         maint.mk: add missing version to VC-tag
57323         * top/maint.mk: git tag was missing actual tag name; add it.
57325         valgrind: do leak checking, and exit with code 1 on error (not 0)
57326         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
57327         to VALGRIND.
57329 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
57331         posix-modules: say what it does.
57332         * posix-modules: Add a line to the --help output saying what it does.
57334 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
57336         xmalloc: Do not leak if underlying realloc is C99 compatible.
57337         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
57338         This avoids a leak on C99-based systems.  See
57339         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
57341 2011-03-24  Eric Blake  <eblake@redhat.com>
57343         realloc: document portability problem
57344         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
57345         passing 0 size to realloc.
57347 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
57349         doc: update users.txt
57350         * users.txt: Add cvsps, tmpwatch
57352 2011-03-23  Matt Rice  <ratmice@gmail.com>
57354         doc: update users.txt
57355         * users.txt: Add gdb.
57357 2011-03-23  Jim Meyering  <meyering@redhat.com>
57359         doc: update users.txt
57360         Looking through matches up to the following URL (there are still
57361         several more pages), I found several projects that use gnulib:
57362         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
57363         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
57364         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
57366 2011-03-22  Bruno Haible  <bruno@clisp.org>
57368         unictype/bidi*: Rename functions.
57369         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
57370         uc_bidi_class, uc_is_bidi_class): New declarations.
57371         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
57372         uc_bidi_category_byname.
57373         (uc_bidi_category_byname): New function.
57374         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
57375         u_bidi_category_name.
57376         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
57377         (uc_bidi_category_name): New function.
57378         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
57379         uc_bidi_category.
57380         (uc_bidi_category): New function.
57381         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
57382         uc_is_bidi_category. Invoke uc_bidi_class.
57383         (uc_is_bidi_category): New function.
57384         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
57385         instead of uc_bidi_category_byname.
57386         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
57387         instead of uc_bidi_category_name.
57388         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
57389         uc_bidi_category.
57390         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
57391         instead of uc_is_bidi_category.
57393 2011-03-21  Bruno Haible  <bruno@clisp.org>
57395         New module 'unictype/joininggroup-all'.
57396         * modules/unictype/joininggroup-all: New file.
57398         Tests for module 'unictype/joininggroup-of'.
57399         * modules/unictype/joininggroup-of-tests: New file.
57400         * tests/unictype/test-joininggroup_of.c: New file.
57401         * tests/unictype/test-joininggroup_of.h: New file, automatically
57402         generated by gen-uni-tables.
57404         New module 'unictype/joininggroup-of'.
57405         * modules/unictype/joininggroup-of: New file.
57406         * lib/unictype/joininggroup_of.c: New file.
57407         * lib/unictype/joininggroup_of.h: New file, automatically generated by
57408         gen-uni-tables.
57410         Tests for module 'unictype/joininggroup-byname'.
57411         * modules/unictype/joininggroup-byname-tests: New file.
57412         * tests/unictype/test-joininggroup_byname.c: New file.
57414         New module 'unictype/joininggroup-byname'.
57415         * modules/unictype/joininggroup-byname: New file.
57416         * lib/unictype/joininggroup_byname.c: New file.
57417         * lib/unictype/joininggroup_byname.gperf: New file.
57419         Tests for module 'unictype/joininggroup-name'.
57420         * modules/unictype/joininggroup-name-tests: New file.
57421         * tests/unictype/test-joininggroup_name.c: New file.
57423         New module 'unictype/joininggroup-name'.
57424         * modules/unictype/joininggroup-name: New file.
57425         * lib/unictype/joininggroup_name.c: New file.
57426         * lib/unictype/joininggroup_name.h: New file.
57428         New module 'unictype/joiningtype-all'.
57429         * modules/unictype/joiningtype-all: New file.
57431         Tests for module 'unictype/joiningtype-of'.
57432         * modules/unictype/joiningtype-of-tests: New file.
57433         * tests/unictype/test-joiningtype_of.c: New file.
57434         * tests/unictype/test-joiningtype_of.h: New file, automatically
57435         generated by gen-uni-tables.
57437         New module 'unictype/joiningtype-of'.
57438         * modules/unictype/joiningtype-of: New file.
57439         * lib/unictype/joiningtype_of.c: New file.
57440         * lib/unictype/joiningtype_of.h: New file, automatically generated by
57441         gen-uni-tables.
57443         Tests for module 'unictype/joiningtype-byname'.
57444         * modules/unictype/joiningtype-byname-tests: New file.
57445         * tests/unictype/test-joiningtype_byname.c: New file.
57447         New module 'unictype/joiningtype-byname'.
57448         * modules/unictype/joiningtype-byname: New file.
57449         * lib/unictype/joiningtype_byname.c: New file.
57451         Tests for module 'unictype/joiningtype-name'.
57452         * modules/unictype/joiningtype-name-tests: New file.
57453         * tests/unictype/test-joiningtype_name.c: New file.
57455         New module 'unictype/joiningtype-name'.
57456         * modules/unictype/joiningtype-name: New file.
57457         * lib/unictype/joiningtype_name.c: New file.
57459         unictype: Add support for Arabic shaping properties.
57460         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
57461         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
57462         declarations.
57463         (UC_JOINING_GROUP_*): New enumeration values.
57464         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
57465         declarations.
57466         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
57467         (unicode_joining_type): New variable.
57468         (UC_JOINING_GROUP_*): New enumeration values.
57469         (unicode_joining_group): New variable.
57470         (fill_arabicshaping, joining_type_as_c_identifier,
57471         output_joining_type_test, output_joining_type,
57472         joining_group_as_c_identifier, output_joining_group_test,
57473         output_joining_group): New functions.
57474         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
57475         fill_arabicshaping and output_joining_type_test, output_joining_type,
57476         output_joining_group_test, output_joining_group.
57477         Reported by Simon Josefsson.
57479 2011-03-21  Jim Meyering  <meyering@redhat.com>
57481         strftime: fix a bug in yesterday's change
57482         * lib/strftime.c (add): Accommodate width's initial value of -1.
57483         Otherwise, nstrftime would copy uninitialized data into
57484         the result buffer.
57486 2011-03-21  Jim Meyering  <meyering@redhat.com>
57488         tests: add strftime-tests module
57489         * tests/test-strftime.c: New file.
57490         * modules/strftime-tests: New module.
57492 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57494         strftime: don't assume a byte count fits in 'int'
57495         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
57496         found this problem by static analysis, using gcc -Wstrict-overflow
57497         (GCC 4.5.2, x86-64).  This reported an optimization that depended
57498         on an integer overflow having undefined behavior, but it turns out
57499         that the argument is a size, which might not fit in 'int' anyway,
57501 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57503         stdio: don't require ignore_value around fwrite
57505         This patch works around libc bug 11959
57506         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
57507         Without this patch, applications must often write
57508         ignore_value (fwrite (...)) even though the ignore_value is
57509         not helpful here.  It's common to write many objects, using
57510         fwrite/printf/etc., and then use ferror to detect output error.
57512         I considered making this patch optional, but decided against it,
57513         because libc is obviously being inconsistent here: there is no
57514         reason libc should insist that user code must inspect fwrite
57515         return's value without also insisting that it inspect printf's,
57516         putchar's, etc.  If user code wants to have a strict style where
57517         all these functions' values are checked (so that ferror need not
57518         be checked), we could add support for that style in a new gnulib
57519         module, but in the meantime it's better to be consistent and to
57520         support common usage.
57522         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
57523         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
57524         that we are compiling in checking mode, and if not C++, and
57525         if not already wrapping fwrite for some other reason.
57526         (fwrite): #define to rpl_fwrite if the latter is defined.
57528 2011-03-20  Bruno Haible  <bruno@clisp.org>
57530         verror: Fix compilation error introduced on 2011-02-13.
57531         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
57532         instead of __attribute__.
57533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57535 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57536             Bruno Haible  <bruno@clisp.org>
57538         socklen: do not depend on sys_socket
57539         While trying to modify Emacs to use gnulib's socklen module,
57540         I discovered a circular dependency: socklen depends on sys_socket
57541         and vice versa.  Emacs can use socklen, but it does not need
57542         sys_socket because it has its own substitute for sys/socket.h.
57543         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
57544         gl_TYPE_SOCKLEN_T.
57545         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
57546         gl_PREREQ_SYS_H_SOCKET.
57547         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
57548         gl_PREREQ_SYS_H_SOCKET.
57549         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
57550         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
57551         * modules/socklen (Depends-on): Do not depend on sys_socket.
57552         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
57554 2011-03-20  Jim Meyering  <meyering@redhat.com>
57556         maint.mk: sort file names *after* new transformation
57557         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
57558         prefix would have led to an unwarranted failure in GNU parted.
57559         Sort after that transformation.
57561 2011-03-19  Jim Meyering  <meyering@redhat.com>
57563         maint.mk: fix po-file syntax-check rule
57564         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
57565         Patch by Bruno Haible.
57567 2011-03-19  Bruno Haible  <bruno@clisp.org>
57569         socklen: Update comment.
57570         * m4/socklen.m4: Update comment about platforms.
57572 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57573             Bruno Haible  <bruno@clisp.org>
57575         inet_ntop, inet_pton: Simplify.
57576         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
57577         documented to provide socklen_t and we already depend on sys_socket.
57578         * modules/inet_pton (Depends-on): Likewise.
57579         * lib/arpa_inet.in.h: Adjust comment.
57581 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57582             Bruno Haible  <bruno@clisp.org>
57584         netdb: Simplify.
57585         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
57586         documented to provide socklen_t and we already depend on sys_socket.
57587         * lib/netdb.in.h: Adjust comment.
57589 2011-03-19  Bruno Haible  <bruno@clisp.org>
57591         sys_socket, netdb: Document problem with socklen_t.
57592         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
57593         platforms.
57594         * doc/posix-headers/netdb.texi: Likewise.
57596 2011-03-18  Eric Blake  <eblake@redhat.com>
57598         maint.mk: let po check work in VPATH build
57599         * top/maint.mk (po_file): Allow cfg.mk override.
57600         (sc_po_check): Allow VPATH use.
57601         Reported by Jiri Denemark.
57603 2011-03-16  Jim Meyering  <meyering@redhat.com>
57605         maint.mk: allow fine-grained syntax-check exclusion via Make variables
57606         Before, you would have had to create one .x-sc_ file per rule in order
57607         to exempt offending files.  Now, you may instead use a Make variable --
57608         usually defined in cfg.mk -- whose name identifies the affected rule.
57609         * top/maint.mk (_sc_excl): Define.
57610         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
57611         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
57613 2011-03-13  Bruno Haible  <bruno@clisp.org>
57615         ignore-value tests: Avoid warnings.
57616         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
57617         empty for gcc < 3.4.
57619 2011-03-13  Bruno Haible  <bruno@clisp.org>
57621         passfd: Fix link error on Solaris.
57622         * modules/passfd (Description): Correct.
57623         (Depends-on): Add socketlib.
57624         (Link): New section.
57625         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
57627 2011-03-13  Bruno Haible  <bruno@clisp.org>
57629         passfd: Fix link error on AIX 5.2.
57630         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
57632 2011-03-13  Bruno Haible  <bruno@clisp.org>
57634         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
57635         * lib/sys_socket.in.h: Include <stddef.h>.
57636         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
57637         CMSG_FIRSTHDR. Remove unused variable.
57639 2011-03-13  Bruno Haible  <bruno@clisp.org>
57641         passfd: Fix compilation error on OpenBSD.
57642         * lib/passfd.c: Include <sys/uio.h>.
57644 2011-03-13  Bruno Haible  <bruno@clisp.org>
57646         passfd test: Fix warnings.
57647         * tests/test-passfd.c: Include <sys/wait.h>.
57648         (main): Fix typo.
57650 2011-03-13  Bruno Haible  <bruno@clisp.org>
57652         passfd module, part 4, tweaks.
57653         * tests/test-passfd.c: Reorder includes.
57654         (main): Fix perror and printf calls.
57656 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57658         passfd module, part 4.
57659         * modules/passfd-tests: New file.
57660         * tests/test-passfd.c: New file.
57662 2011-03-13  Jim Meyering  <meyering@redhat.com>
57664         Makefile: rely on GNU make; derive syntax-check rule names
57665         Rather than requiring that each sc_ rule be listed as a dependent
57666         of "check", use features of GNU make to derive the list.
57667         * Makefile (syntax-check-rules): Define.
57668         (check): Depend on the new variable, not the hard-coded list.
57670 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
57671             Bruno Haible  <bruno@clisp.org>
57673         passfd module, part 3.
57674         * lib/passfd.h (recvfd): Add a flags argument.
57675         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
57676         (recvfd): Add a flags argument.
57677         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
57678         exists.
57679         * modules/passfd (Depends-on): Add cloexec.
57680         Suggested by Eric Blake.
57682 2011-03-13  Bruno Haible  <bruno@clisp.org>
57684         passfd module, part 2, tweaks.
57685         * modules/passfd (Files): Reorder.
57686         (Depends-on): Remove errno.
57687         (Include): Remove <sys/socket.h>, <sys/un.h>.
57688         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
57689         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
57690         specification header. Include <sys/socket.h> always. Don't include
57691         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
57692         (sendfd): Clarify that it sets errno when it fails.
57693         (recvfd): Fix specification.
57695 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57697         passfd module, part 2.
57698         * modules/passfd: New file.
57699         * lib/passfd.h: New file.
57700         * lib/passfd.c: New file.
57702 2011-03-12  Bruno Haible  <bruno@clisp.org>
57704         wcswidth, mbswidth: Avoid integer overflow.
57705         * lib/wcswidth.c: Include <limits.h>.
57706         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
57707         * lib/mbswidth.c: Include <limits.h>.
57708         (mbsnwidth): Avoid 'int' overflow.
57709         Reported by Jim Meyering.
57711 2011-03-12  Bruno Haible  <bruno@clisp.org>
57713         futimens, utimensat: Avoid endless recursion on Solaris 10.
57714         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
57715         Solaris.
57716         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
57717         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
57719 2011-03-11  Jim Meyering  <meyering@redhat.com>
57721         maint.mk: relax a regexp to accommodate other formatting styles
57722         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
57723         between "ngettext" and the following "(".
57725 2011-03-11  Pádraig Brady  <P@draigBrady.com>
57727         maint.mk: suppress a false positive warning
57728         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
57729         diagnostics are marked with ngettext.
57731 2011-03-10  Eric Blake  <eblake@redhat.com>
57733         wchar: add explicit dependencies, for Tru64
57734         * modules/mbmemcasecoll (Depends-on): Add wchar.
57735         * modules/mbtowc (Depends-on): Likewise.
57736         * modules/vasnprintf (Depends-on): Likewise.
57737         * modules/unistdio/u-printf-args (Depends-on): Likewise.
57738         * modules/wctomb (Depends-on): Likewise.
57739         Reported by Peter O'Gorman.
57741 2011-03-08  Bruno Haible  <bruno@clisp.org>
57743         passfd module, part 1, tweaks.
57744         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
57745         Improve indentation. Improve AC_MSG_CHECKING messages.
57746         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
57747         gl_SOCKET_FAMILIES.
57749 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57751         passfd module, part 1.
57752         * m4/afunix.m4: New file.
57753         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
57754         sockets.
57756 2011-03-08  Bruno Haible  <bruno@clisp.org>
57758         regex-quote: New API.
57759         * lib/regex-quote.h: Include <stdbool.h>.
57760         (struct regex_quote_spec): New type.
57761         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57762         New declarations.
57763         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57764         'const struct regex_quote_spec *' argument.
57765         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
57766         (pcre_special): New constant.
57767         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57768         New functions.
57769         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57770         'const struct regex_quote_spec *' argument.
57771         * modules/regex-quote (Depends-on): Add stdbool.
57772         * tests/test-regex-quote.c (check): Update for new API. Add test for
57773         anchored results.
57774         * NEWS: Mention the API change.
57775         Reported by Reuben Thomas and Eric Blake.
57777 2011-03-06  Bruno Haible  <bruno@clisp.org>
57779         regex-quote: Fix creation of POSIX extended regular expressions.
57780         * lib/regex-quote.c (ere_special): Add grouping and alternation
57781         operators.
57783 2011-03-05  Bruno Haible  <bruno@clisp.org>
57785         doc: Improve doc regarding autopoint vs. gnulib.
57786         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
57787         disable autopoint while running autoreconf.
57788         Suggested by Ralf Wildenhues.
57790 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57792         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
57793         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
57795 2011-03-03  Bruce Korb  <bkorb@gnu.org>
57797         parse-duration: remove xalloc.h dependency
57798         * lib/parse-duration.c (parse_period): handle NULL return from
57799         strdup instead of calling xstrdup().
57800         * modules/parse-duration: remove "xalloc" dependency
57802 2011-03-03  Matthew Booth  <mbooth@redhat.com>
57804         bootstrap: honor m4_base when running aclocal
57805         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
57807 2011-03-02  Jim Meyering  <meyering@redhat.com>
57809         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
57810         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
57811         on request from Matt Booth.
57813 2011-03-01  Eric Blake  <eblake@redhat.com>
57815         test-link: work on Hurd
57816         * tests/test-link.h (test_link): Hurd rejects linking directories
57817         with EISDIR instead of the POSIX-mandated EPERM.
57819 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
57821         stdio: simplify by moving files to printf-posix, sigpipe
57822         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
57823         since this symbol is needed only if printf is replaced.
57824         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
57825         Require gl_ASM_SYMBOL_PREFIX.
57826         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
57827         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
57828         (Depends-on): Add 'raise'.
57829         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
57830         * modules/stdio (Files): Remove lib/stdio-write.c,
57831         m4/asm-underscore.m4.
57832         (Depends-on): Remove 'raise'.
57834         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
57835         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
57836         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
57837         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
57839 2011-02-28  Bruno Haible  <bruno@clisp.org>
57841         localcharset: Assume ANSI C behaviour of free().
57842         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
57843         calling free().
57844         Suggested by Simon Josefsson <simon@josefsson.org>.
57846 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
57847             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
57848             Bruno Haible  <bruno@clisp.org>  (tiny change)
57850         On Cygwin, use /proc file system instead of win32 API.
57851         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
57852         Win32 file names.
57853         (DllMain): Simplify by removing Cygwin specific code.
57854         (find_shared_library_fullname): Use Linux specific implementation also
57855         for Cygwin.
57856         (get_shared_library_fullname): Update accordingly.
57857         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
57858         Win32 file names.
57859         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
57860         Cygwin specific code.
57862 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
57863             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
57865         Fix OpenMP flag detection for various Fortran compilers.
57866         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
57867         OpenMP-conditional compilation construct, to force compile
57868         failure with missing OpenMP flag.
57869         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
57871 2011-02-25  Eric Blake  <eblake@redhat.com>
57873         strstr: expand test coverage
57874         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
57875         compilation.
57876         * tests/test-memmem.c (main): Duplicate tests.
57877         * tests/test-strcasestr.c (main): Likewise.
57878         * tests/test-c-strcasestr.c (main): Likewise.
57880 2011-02-25  Jim Meyering  <meyering@redhat.com>
57882         maint.mk: detect missing-NL-at-EOF, too
57883         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
57884         it also detects when a file lacks a newline at EOF.
57885         (require_exactly_one_NL_at_EOF_): Renamed from
57886         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
57887         since people may well have .x-sc_... file names tied to the
57888         existing name.  Suggested by Eric Blake.
57890 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57892         dirname: move m4/dos.m4 functionality into lib/dosname.h
57894         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
57895         extracts symbols from it, puts them into config.h; but it's much
57896         easier to use the symbols directly.  filename.h already does this,
57897         but it disagrees with dos.m4 in some respects.  This patch
57898         introduces a different include file dosname.h that packages up
57899         dos.m4, and then later we can work on merging filename.h and
57900         dosname.h.  Applications that need only the easy-to-configure
57901         symbols should consider including dosname.h rather than dirname.h.
57902         * NEWS: Mention incompatible changes.
57903         * m4/dos.m4: Remove.
57904         * lib/dosname.h, modules/dosname: New files.
57905         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
57906         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
57907         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
57908         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
57909         Include dosname.h, not dirname.h.
57910         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
57911         Include dosname.h, for definitions of symbols like ISSLASH
57912         that used to be in config.h.
57913         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
57914         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
57915         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57916         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57917         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
57918         * modules/rmdir (Files): Likewise.
57919         * modules/stat (Files): Likewise.
57920         * modules/unlink (Files): Likewise.
57921         * modules/dirname-lgpl (Depends-on): Add dosname.
57922         * modules/lstat (Depends-on): Likewise.
57923         * modules/openat (Depends-on): Likewise.
57924         * modules/rmdir (Depends-on): Likewise.
57925         * modules/savewd (Depends-on): Likewise.
57926         * modules/stat (Depends-on): Likewise.
57927         * modules/unlink (Depends-on): Likewise.
57928         * modules/openat (Depends-on): Remove dirname-lgpl.
57929         * modules/savewd (Depends-on): Likewise.
57930         * tests/test-dirname.c: Do not use removed symbols like
57931         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
57932         the remaining symbols, e.g., ISSLASH ('\\').
57934 2011-02-25  Eric Blake  <eblake@redhat.com>
57936         strstr: revert patches that introduced bug and pessimization
57937         * lib/str-two-way.h: Add another reference.
57938         (two_way_short_needle, two_way_long_needle): Revert changes from
57939         2011-02-24; they pessimize search speed.
57940         (critical_factorization): Partially revert changes from
57941         2010-06-22; they violate the requirement that the left half of the
57942         needle be smaller than the period of the needle.
57944 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57946         filenamecat: remove unnecessary dependency on dirname-lgpl
57947         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
57948         is no direct dependency, just an indirect one via filenamecat-lgpl.
57950         remove: remove unnecessary use of m4/dos.m4
57951         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
57952         * modules/remove (FILES): Remove m4/dos.m4.
57954         * lib/openat-proc.c: Don't include dirname.h; not needed.
57956         backupfile: remove unnecessary use of m4/dos.m4
57957         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
57958         of its symbols are used by the backupfile code.  backupfile.c does
57959         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
57960         for the rare case of programs that want all their backup file
57961         names to live within 8+3 limits, and dos.m4 doesn't address that.
57962         * modules/backupfile (Files): Remove m4/dos.m4.
57964 2011-02-24  Jim Meyering  <meyering@redhat.com>
57966         strstr: fix a bug whereby strstr would mistakenly return NULL
57967         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
57968         in period calculation.
57969         (two_way_long_needle): Likewise.
57970         The original problem was reported by Mike Stump in
57971         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
57972         Ralf Wildenhues provided the short needle and haystack.
57973         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
57974         Add a more involved test to trigger the bug in two_way_long_needle.
57976 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57978         gnulib-tool: remove use of bold display in help screen
57979         * gnulib-tool (func_usage): Do not use bold display anymore in the
57980         help screen.  That was just meant to be a temporary emphasis for a
57981         backward-incompatible change.
57983 2011-02-23  Bruno Haible  <bruno@clisp.org>
57985         Fix misindentation of preprocessor directives.
57986         * lib/argp-namefrob.h: Reindent preprocessor directives.
57987         * lib/getopt_int.h (struct _getopt_data): Likewise.
57988         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
57989         * lib/vasnprintf.c (decode_long_double): Likewise.
57990         * tests/test-argmatch.c: Insert blank lines, for clarity.
57991         * tests/test-exclude.c: Likewise.
57993 2011-02-22  Bruno Haible  <bruno@clisp.org>
57995         ioctl: Fix for MacOS X in 64-bit mode.
57996         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
57997         value.
57998         Suggested by Eric Blake.
57999         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
58001 2011-02-22  Jim Meyering  <meyering@redhat.com>
58003         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
58004         * Makefile (sc_cpp_indent_check): Don't limit the check to files
58005         in lib/.
58007 2011-02-22  Eric Blake  <eblake@redhat.com>
58009         maint: avoid any CDPATH issue
58010         * Makefile (sc_cpp_indent_check): Anchor cd argument.
58012         maint: adjust cpp indentation for my modules, as well
58013         * Makefile (sc_cpp_indent_check): Add my name.
58014         * lib/fbufmode.c: Filter through cppi.
58015         * lib/fpurge.c: Likewise.
58016         * lib/freadable.c: Likewise.
58017         * lib/freading.c: Likewise.
58018         * lib/fwritable.c: Likewise.
58019         * lib/fwriting.c: Likewise.
58020         * lib/sigaction.c: Likewise.
58022 2011-02-22  Jim Meyering  <meyering@redhat.com>
58024         maint: adjust cpp indentation to reflect nesting depth
58025         I.e., in a block of code that begins with an unnested "#if",
58026         put one space between the "#" in column 1 and following token.
58027         For example,
58028         -#include <sys/vfs.h>
58029         +# include <sys/vfs.h>
58030         Do this only in .c files that are part of a module I maintain.
58031         * lib/linkat.c: Filter through cppi.
58032         * lib/nanosleep.c: Likewise.
58033         * lib/openat.c: Likewise.
58034         * lib/openat-die.c: Likewise.
58035         * lib/dup3.c: Likewise.
58036         * lib/fchownat.c: Likewise.
58037         * lib/flock.c: Likewise.
58038         * lib/fsync.c: Likewise.
58039         * lib/fts.c: Likewise.
58040         * lib/getpass.c: Likewise.
58041         * lib/gettimeofday.c: Likewise.
58042         * lib/userspec.c: Likewise.
58043         * Makefile (sc_cpp_indent_check): New rule, to check this.
58045 2011-02-22  Bruno Haible  <bruno@clisp.org>
58047         New module 'wctomb'.
58048         * lib/stdlib.in.h (wctomb): New declaration.
58049         * lib/wctomb.c: New file.
58050         * lib/wctomb-impl.h: New file.
58051         * m4/wctomb.m4: New file.
58052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
58053         REPLACE_WCTOMB.
58054         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
58055         REPLACE_WCTOMB.
58056         * modules/wctomb: New file.
58057         * tests/test-stdlib-c++.cc: Test signature of wctomb.
58058         * doc/posix-functions/wctomb.texi: Mention the new module.
58059         * modules/wctob (Depends-on): Add wctomb.
58061 2011-02-22  Bruno Haible  <bruno@clisp.org>
58063         New module 'mbtowc'.
58064         * lib/stdlib.in.h (mbtowc): New declaration.
58065         * lib/mbtowc.c: New file.
58066         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
58067         * m4/mbtowc.m4: New file.
58068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
58069         REPLACE_MBTOWC.
58070         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
58071         REPLACE_MBTOWC.
58072         * modules/mbtowc: New file.
58073         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
58074         * doc/posix-functions/mbtowc.texi: Mention the new module.
58075         * modules/btowc (Depends-on): Add mbtowc.
58077 2011-02-22  Bruno Haible  <bruno@clisp.org>
58079         wcrtomb: Add more tests for native Windows platforms.
58080         * tests/test-wcrtomb-w32-1.sh: New file.
58081         * tests/test-wcrtomb-w32-2.sh: New file.
58082         * tests/test-wcrtomb-w32-3.sh: New file.
58083         * tests/test-wcrtomb-w32-4.sh: New file.
58084         * tests/test-wcrtomb-w32-5.sh: New file.
58085         * tests/test-wcrtomb-w32.c: New file.
58086         * modules/wcrtomb-tests (Files): Add them.
58087         (Makefile.am): Arrange to run these tests.
58088         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
58089         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
58091 2011-02-20  Bruno Haible  <bruno@clisp.org>
58093         wcrtomb: Enhance test.
58094         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
58096 2011-02-20  Bruno Haible  <bruno@clisp.org>
58098         mbrtowc: Tiny optimization.
58099         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
58101 2011-02-20  Jim Meyering  <meyering@redhat.com>
58103         test-exclude.c: remove unmatched #endif
58104         * tests/test-exclude.c: Remove stray #endif, left over from
58105         the change of a week ago.
58107 2011-02-19  Jim Meyering  <meyering@redhat.com>
58109         git-version-gen: skip "-dirty" check when appropriate
58110         * build-aux/git-version-gen: Don't run any git commands when the
58111         version string comes from .tarball-version.  Prior to this, we
58112         would run git update-index --refresh even from a just-unpacked
58113         tarball directory, and that could affect a .git/ directory in a
58114         parent of the build directory.  Reported by Mike Frysinger.
58116 2011-02-19  Bruno Haible  <bruno@clisp.org>
58118         unictype/property-byname: Reduce the size of the 'data' segment.
58119         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
58121 2011-02-19  Bruno Haible  <bruno@clisp.org>
58123         unictype/scripts: Reduce the size of the 'data' segment.
58124         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
58125         '%pic'.
58126         * lib/unictype/scripts_byname.gperf: Regenerated.
58128 2011-02-19  Bruno Haible  <bruno@clisp.org>
58130         stdint: Update documentation.
58131         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
58133 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
58135         stdint: omit redundant check for wchar.h
58136         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
58137         always tests whether wchar.h exists, so remove the now-redundant test.
58139 2011-02-18  Bruno Haible  <bruno@clisp.org>
58141         stdint: Cut dependency to module 'wchar'.
58142         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
58143         include the necessary prerequisites.
58144         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
58145         * modules/stdint (Depends-on): Remove wchar.
58146         (Makefile.am): Substitute HAVE_WCHAR_H.
58147         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
58149 2011-02-18  Eric Blake  <eblake@redhat.com>
58151         longlong: skip, rather than fail, on cross-compilation
58152         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
58153         when cross-compiling; regression from 2011-02-16.
58155 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58157         * NEWS: Mention 2011-02-08 change to stdlib.
58159 2011-02-17  Bruno Haible  <bruno@clisp.org>
58161         getloadavg: Add comments about platforms.
58162         * m4/getloadavg.m4: Add comment.
58163         * lib/getloadavg.c: Likewise.
58165 2011-02-17  Bruno Haible  <bruno@clisp.org>
58167         getloadavg: Fix link error on Solaris 2.6.
58168         * modules/getloadavg (Link): New section.
58169         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
58170         linking test-getloadavg.
58171         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
58172         getloadavg.
58174 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58176         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
58177         It was 'int', but this doesn't match the IRIX 6.5 manual.
58178         Suggested by Bruno Haible in
58179         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
58181 2011-02-17  Bruno Haible  <bruno@clisp.org>
58183         havelib: Fix comments.
58184         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
58185         change.
58187 2011-02-17  Bruno Haible  <bruno@clisp.org>
58189         havelib: Update config.rpath.
58190         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
58192 2011-02-17  Bruno Haible  <bruno@clisp.org>
58194         getloadavg test: Add some plausibility checks.
58195         * tests/test-getloadavg.c (check_avg): Print a warning when the value
58196         is improbable.
58198 2011-02-16  Eric Blake  <eblake@redhat.com>
58200         maintainer-makefile: make syntax-check a no-op from tarballs
58201         * top/maint.mk (no-vc-detected): New rule.
58202         (local-checks-available): Use it to avoid hanging if someone tries
58203         'make syntax-check' from a tarball.  Also append to any non-syntax
58204         checks already defined in cfg.mk.
58206 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
58208         longlong: tune, particularly for common case of c99
58210         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
58211         or running anything if c99, or if unsigned long long int does not
58212         work.  In either case, we know the answer without further tests.
58213         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
58214         it at most once, and use its results for both long long int and
58215         unsigned long long int.  This is more likely to be efficient in
58216         the common case where the program wants to check for both long
58217         long int and unsigned long long int.
58218         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
58219         since the answer is already known.
58221 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
58223         getloadavg: set errno
58224         * lib/getloadavg.c: Set errno when returning -1.  If no other
58225         error number looks appropriate, set it to ENOSYS if the getloadavg
58226         looks like it can't possibly ever work, ENOTSUP otherwise.
58227         Suggested by Bruno Haible in
58228         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
58230         getloadavg: trim unused parts and speed up 'configure'
58231         * NEWS: Document this.
58232         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
58233         always compiled if getloadavg is absent.
58234         Move test code to ...
58235         * tests/test-getloadavg.c: New file, containing previous
58236         contents of test from lib/getloadavg.c.  It also contains
58237         suggestions by Bruno Haible in
58238         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
58239         * modules/getloadavg-tests: New file.
58240         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
58241         Do tests in the same order as they're needed for getloadavg.c.
58242         Omit setgid-related tests that generate symbols KMEM_GROUP,
58243         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
58244         Do only the tests that are needed to see whether the system has
58245         getloadavg, moving the other tests into ...
58246         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
58247         NLIST_NAME_UNION; nobody should be using it.  Do not define
58248         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
58249         relevant, as the user of this module shouldn't care how getloadavg
58250         is implemented.
58252         getloadavg: omit unused var
58253         * lib/getloadavg.c (getloadavg): Omit unused local variable.
58255 2011-02-15  Jim Meyering  <meyering@redhat.com>
58257         doc: update users.txt
58258         * users.txt: Update iwhd's URL.
58260 2011-02-13  Bruno Haible  <bruno@clisp.org>
58262         Consistent macro naming for macros that use GCC __attribute__.
58263         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
58264         _ATTRIBUTE_NONNULL_.
58265         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
58266         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
58267         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
58268         ATTRIBUTE_DEPRECATED.
58269         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
58270         ATTRIBUTE_NORETURN.
58271         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58272         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58273         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58274         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58275         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
58276         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
58277         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
58278         ATTRIBUTE_SENTINEL.
58279         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
58280         ATTRIBUTE_RETURN_CHECK.
58281         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
58282         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
58283         ATTRIBUTE_NORETURN.
58284         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
58285         Reported by Paul Eggert.
58287 2011-02-13  Bruno Haible  <bruno@clisp.org>
58289         Don't interfere with a program's definition of __attribute__.
58290         * lib/argp.h (__attribute__): Remove definition.
58291         (_GL_ATTRIBUTE_FORMAT): New macro.
58292         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
58293         * lib/argp-fmtstream.h (__attribute__): Remove definition.
58294         (_GL_ATTRIBUTE_FORMAT): New macro.
58295         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
58296         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
58297         GCC 3 or newer.
58298         * lib/error.h (__attribute__): Remove definition.
58299         (_GL_ATTRIBUTE_FORMAT): New macro.
58300         (error, error_at_line): Use it.
58301         * lib/hash.h (__attribute__): Remove definition.
58302         (ATTRIBUTE_WUR): Update definition. Define always.
58303         * lib/openat.h (__attribute__): Remove definition.
58304         (ATTRIBUTE_NORETURN): Update definition. Define always.
58305         * lib/sigpipe-die.h (__attribute__): Remove definition.
58306         (ATTRIBUTE_NORETURN): Update definition. Define always.
58307         * lib/vasnprintf.h (__attribute__): Remove definition.
58308         (_GL_ATTRIBUTE_FORMAT): New macro.
58309         (asnprintf, vasnprintf): Use it.
58310         * lib/xalloc.h (__attribute__): Remove definition.
58311         (ATTRIBUTE_NORETURN): Update definition. Define always.
58312         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
58313         * lib/xmemdup0.h (__attribute__): Remove definition.
58314         (ATTRIBUTE_NORETURN): Update definition. Define always.
58315         * lib/xprintf.h (__attribute__): Remove definition.
58316         (_GL_ATTRIBUTE_FORMAT): New macro.
58317         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
58318         * lib/xstrtol.h (__attribute__): Remove definition.
58319         (ATTRIBUTE_NORETURN): Update definition. Define always.
58320         * lib/xvasprintf.h (__attribute__): Remove definition.
58321         (_GL_ATTRIBUTE_FORMAT): New macro.
58322         (xasprintf, xvasprintf): Use it.
58323         * tests/test-argmatch.c (__attribute__): Remove definition.
58324         (ATTRIBUTE_NORETURN): Update definition. Define always.
58325         * tests/test-exclude.c (__attribute__): Remove definition.
58326         (ATTRIBUTE_NORETURN): Update definition. Define always.
58327         Reported by Paul Eggert.
58329 2011-02-13  Bruno Haible  <bruno@clisp.org>
58331         mbrtowc: Add more tests for native Windows platforms.
58332         * tests/test-mbrtowc-w32-1.sh: New file.
58333         * tests/test-mbrtowc-w32-2.sh: New file.
58334         * tests/test-mbrtowc-w32-3.sh: New file.
58335         * tests/test-mbrtowc-w32-4.sh: New file.
58336         * tests/test-mbrtowc-w32-5.sh: New file.
58337         * tests/test-mbrtowc-w32.c: New file.
58338         * modules/mbrtowc-tests (Files): Add them.
58339         (Makefile.am): Arrange to run these tests.
58340         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
58341         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
58343 2011-02-13  Bruno Haible  <bruno@clisp.org>
58345         mbrtowc: Work around native Windows bug.
58346         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
58347         guess when no suitable locale for testing was found.
58348         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
58350 2011-02-13  Bruno Haible  <bruno@clisp.org>
58352         mbsinit: Work around mingw bug.
58353         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
58354         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
58355         Windows.
58356         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
58358 2011-02-13  Bruno Haible  <bruno@clisp.org>
58360         mbsinit: Don't crash for a NULL argument.
58361         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
58362         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
58364 2011-02-13  Bruno Haible  <bruno@clisp.org>
58366         Don't interfere with a program's definition of __attribute__.
58367         * lib/stdio.in.h (__attribute__): Remove definition.
58368         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
58369         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
58370         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
58371         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
58372         * lib/string.in.h (__attribute__): Remove definition.
58373         Reported by Paul Eggert.
58375 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58377         stdlib: don't get in the way of non-GCC __attribute__
58378         See thread starting at
58379         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
58380         Revert previous stdlib change, installing the following instead:
58381         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
58382         to get in the way of a non-GCC compiler that supports __attribute__.
58383         (_GL_ATTRIBUTE_RETURN): New macro.
58384         (_Exit): Use it instead of __attribute__.
58386 2011-02-12  Bruno Haible  <bruno@clisp.org>
58388         quotearg test: Avoid test failure on mingw.
58389         * tests/test-quotearg.sh: Convert the locale identifier from native
58390         Windows syntax to Unix syntax.
58392 2011-02-12  Bruno Haible  <bruno@clisp.org>
58394         setlocale: Prefer gnulib's override over libintl's override.
58395         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
58396         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
58397         GNULIB_defined_setlocale is set.
58399 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58401         stdlib: support non-GCC __attribute__
58403         Fix a serious and tricky problem encountered when attempting to
58404         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
58405         5.5, but it crashed due to memory corruption on Solaris 10 with
58406         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
58407         bits that are otherwise zero.  This tagging is optional inside
58408         Emacs but is preferred and is used when __attribute__ ((__aligned
58409         (8))) works, as it does with both recent-enough GCC and with Sun C
58410         5.11.  However, Sun C 5.11 is not GCC and does not #define
58411         __GNUC__ and __GNUC_MINOR__.
58413         When I added the getloadavg module to Emacs, it brought in
58414         stdlib.in.h, which contained this fragment:
58416            #ifndef __attribute__
58417            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
58418            #  define __attribute__(Spec)   /* empty */
58419            # endif
58420            #endif
58422         When files that include <stdlib.h> were compiled with Sun C 5.11,
58423         the above code disabled __attribute__ ((__aligned (8))), which
58424         caused variables to not be properly aligned, which eventually led
58425         to the pointer corruption mentioned above.  (This was a bit hard
58426         to diagnose, unfortunately.)
58428         Several "#define __attribute__(X) /* empty */" code snippets need
58429         to be eradicated from Gnulib to work with non-GCC compilers that
58430         support __attribute__.  The Autoconf way to do this is to test for
58431         each kind of attribute that we want support for, and selectively
58432         enable that in source code.
58434         Fix this problem just for stdlib.h, by adding a test for the
58435         __noreturn__ attribute, and change stdlib.in.h to use that test
58436         when needed.  This technique can be easily generalized to the
58437         other *.in.h files and attributes, and a similar technique can be
58438         used for *.h and *.c files.  This patch is enough to solve the
58439         problem for Emacs + getloadavg, and I thought I'd publish it for
58440         feedback before undertaking further, similar fixes in other
58441         modules.
58443         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
58444         because it's not needed for stdlib.h.  It merely substitutes the
58445         value directly into stdlib.h.  We may well need to #define it, or
58446         similar symbols, for other modules, but it's nice to also have an
58447         option to not #define it for applications like Emacs that do not
58448         need it.
58450         * lib/stdlib.in.h (__attribute__): Do not #define.
58451         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
58452         be defined only if the _Exit module is also used.
58453         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
58454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
58455         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
58456         platforms.
58457         * modules/_Exit (Files): Add m4/attribute.m4.
58458         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
58459         * m4/attribute.m4: New file.
58461 2011-02-12  Bruno Haible  <bruno@clisp.org>
58463         wcsrtombs: Work around bug on native Windows.
58464         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
58465         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
58466         instead of len.
58467         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
58469 2011-02-12  Bruno Haible  <bruno@clisp.org>
58471         mbsrtowcs: Work around bug on native Windows.
58472         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
58473         against mingw bug.
58474         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
58476 2011-02-12  Bruno Haible  <bruno@clisp.org>
58478         Avoid setlocale bugs in tests.
58479         * modules/btowc (Dependencies): Add setlocale.
58480         * modules/c-strcase (Dependencies): Likewise.
58481         * modules/mbmemcasecmp (Dependencies): Likewise.
58482         * modules/mbmemcasecoll (Dependencies): Likewise.
58483         * modules/mbrtowc (Dependencies): Likewise.
58484         * modules/mbscasecmp (Dependencies): Likewise.
58485         * modules/mbscasestr (Dependencies): Likewise.
58486         * modules/mbschr (Dependencies): Likewise.
58487         * modules/mbscspn (Dependencies): Likewise.
58488         * modules/mbsinit (Dependencies): Likewise.
58489         * modules/mbsncasecmp (Dependencies): Likewise.
58490         * modules/mbsnrtowcs (Dependencies): Likewise.
58491         * modules/mbspbrk (Dependencies): Likewise.
58492         * modules/mbspcasecmp (Dependencies): Likewise.
58493         * modules/mbsrchr (Dependencies): Likewise.
58494         * modules/mbsrtowcs (Dependencies): Likewise.
58495         * modules/mbsspn (Dependencies): Likewise.
58496         * modules/mbsstr (Dependencies): Likewise.
58497         * modules/nl_langinfo (Dependencies): Likewise.
58498         * modules/quotearg (Dependencies): Likewise.
58499         * modules/unicase/locale-language (Dependencies): Likewise.
58500         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
58501         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
58502         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
58503         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
58504         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
58505         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
58506         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
58507         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
58508         * modules/vasnprintf-posix (Dependencies): Likewise.
58509         * modules/wcrtomb (Dependencies): Likewise.
58510         * modules/wcsnrtombs (Dependencies): Likewise.
58511         * modules/wcsrtombs (Dependencies): Likewise.
58513 2011-02-12  Bruno Haible  <bruno@clisp.org>
58515         setlocale: Workaround native Windows bug.
58516         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
58517         succeeds but sets LC_CTYPE to "C", report a failure.
58518         * tests/test-setlocale2.sh: New file.
58519         * tests/test-setlocale2.c: New file.
58520         * modules/setlocale-tests (Files): Add the new files.
58521         (Makefile.am): Enable test-setlocale2.sh test.
58522         * doc/posix-functions/setlocale.texi: Mention workaround.
58524 2011-02-11  Bruno Haible  <bruno@clisp.org>
58526         Tests for module 'setlocale'.
58527         * modules/setlocale-tests: New file.
58528         * tests/test-setlocale1.sh: New file.
58529         * tests/test-setlocale1.c: New file.
58531         New module 'setlocale'.
58532         * lib/locale.in.h (setlocale): New declaration.
58533         * lib/setlocale.c: New file, based on
58534         gettext/gettext-runtime/intl/setlocale.c.
58535         * m4/setlocale.m4: New file.
58536         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
58537         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
58538         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
58539         REPLACE_SETLOCALE.
58540         * modules/setlocale: New file.
58541         * tests/test-locale-c++.cc: Test the declaration of setlocale.
58542         * doc/posix-functions/setlocale.texi: Mention the new module.
58544 2011-02-11  Bruno Haible  <bruno@clisp.org>
58546         Prepare for locale dependent tests on mingw.
58547         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
58548         because it has the wrong locale encoding.
58549         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
58550         French_France.1252 instead of "fr".
58551         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
58552         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
58553         because it has the wrong locale encoding.
58554         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
58555         native Windows, try Turkish_Turkey.65001.
58556         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
58557         Chinese_China.54936.
58559         Prepare for locale dependent tests on mingw.
58560         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
58561         differently.
58562         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
58563         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
58564         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58565         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58567 2011-02-11  Eric Blake  <eblake@redhat.com>
58569         strptime: avoid compiler warnings
58570         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
58571         compiler warnings about dead code.
58572         Reported by Daniel P. Berrange.
58574 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
58576         doc: update users.txt
58577         * users.txt: Add rcs.
58579 2011-02-10  John W. Eaton  <jwe@gnu.org>
58581         doc: update users.txt
58582         * users.txt: Add octave.
58584 2011-02-10  Jim Meyering  <meyering@redhat.com>
58586         doc: update users.txt
58587         * users.txt: Add iwhd.
58589 2011-02-09  Bruno Haible  <bruno@clisp.org>
58591         gnulib-tool: Make copyright notice adjustment more robust.
58592         * gnulib-tool (func_import): In sed_transform_main_lib_file,
58593         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
58594         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
58595         License".
58596         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
58598 2011-02-06  Bruno Haible  <bruno@clisp.org>
58600         New module 'towctrans'.
58601         * modules/towctrans: New file.
58602         * lib/wctype.in.h (towctrans): New declaration.
58603         * lib/towctrans.c: New file.
58604         * lib/towctrans-impl.h: New file.
58605         * m4/towctrans.m4: New file.
58606         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
58607         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
58608         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
58609         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
58610         * doc/posix-functions/towctrans.texi: Mention the new module.
58612 2011-02-06  Bruno Haible  <bruno@clisp.org>
58614         New module 'wctrans'.
58615         * modules/wctrans: New file.
58616         * lib/wctype.in.h (wctrans): New declaration.
58617         * lib/wctrans.c: New file.
58618         * lib/wctrans-impl.h: New file.
58619         * m4/wctrans.m4: New file.
58620         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
58621         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
58622         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
58623         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
58624         * doc/posix-functions/wctrans.texi: Mention the new module.
58626 2011-02-06  Bruno Haible  <bruno@clisp.org>
58628         New module 'iswctype'.
58629         * modules/iswctype: New file.
58630         * lib/wctype.in.h (iswctype): New declaration.
58631         * lib/iswctype.c: New file.
58632         * lib/iswctype-impl.h: New file.
58633         * m4/iswctype.m4: New file.
58634         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
58635         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
58636         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
58637         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
58638         * doc/posix-functions/iswctype.texi: Mention the new module and the
58639         HP-UX 11.00 problem.
58641 2011-02-06  Bruno Haible  <bruno@clisp.org>
58643         New module 'wctype'.
58644         * modules/wctype: Change to represent the wctype() substitute.
58645         * lib/wctype.in.h (wctype): New declaration.
58646         * lib/wctype.c: New file.
58647         * lib/wctype-impl.h: New file.
58648         * m4/wctype.m4: New file.
58649         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
58650         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
58651         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
58652         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
58653         * doc/posix-functions/wctype.texi: Mention the new module and the
58654         HP-UX 11.00 problem.
58656 2011-02-06  Bruno Haible  <bruno@clisp.org>
58658         wctype-h: Ensure wctype_t and wctrans_t are defined.
58659         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
58660         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58661         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58662         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
58663         HAVE_WCTRANS_T.
58664         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
58666 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
58668         flock: fix license typo
58670         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
58671         omitted.
58673 2011-02-08  Bruno Haible  <bruno@clisp.org>
58675         Split large sed scripts, for HP-UX sed.
58676         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
58677         to avoid HP-UX limit of 99 commands, in the near future.
58678         * modules/stdlib (Makefile.am): Likewise.
58679         * modules/unistd (Makefile.am): Likewise.
58680         * modules/wchar (Makefile.am): Likewise.
58681         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58682         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
58683         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
58685 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58686             Bruno Haible  <bruno@clisp.org>
58688         stdlib: improve random_r modularization
58689         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
58690         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
58691         you also need the random_r module to get this material right.
58692         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
58693         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
58694         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
58696 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58698         stdlib: don't depend on stdint
58699         * lib/stdlib.in.h: Don't include <stdint.h> merely because
58700         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
58701         be independent of whether stdint.h is needed.
58702         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
58703         here, instead of ...
58704         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
58705         struct random_data should be using the random_r module, not just
58706         the stdlib module (which wouldn't make sense: what package needs
58707         just struct random_data without also needing random_r?).
58708         * modules/stdlib (Depends-on): Remove stdint.
58710         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
58711         See the thread rooted at
58712         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
58713         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
58714         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
58715         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
58716         __VMS)); previously it was always included (via fcntl--.h).
58717         (getloadavg): Do not use c_strtod.  Instead, approximate it by
58718         hand; this is good enough for load averages.  Also, do not use
58719         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
58720         flags directly if available and don't bother otherwise.  (Packages
58721         that need the extra reliability should use the modules that define
58722         these flags on older platforms that lack them.)
58723         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
58724         fcntl-safer.
58726 2011-02-08  Jim Meyering  <meyering@redhat.com>
58728         di-set.h, ino-map.h: add multiple-inclusion guard
58729         Technically, the guard is required only for ino-map.h, due to its
58730         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
58731         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
58732         * lib/ino-map.h: Likewise.
58734 2011-02-06  Bruno Haible  <bruno@clisp.org>
58736         iswblank: Ensure declaration on glibc systems.
58737         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
58738         * modules/iswblank (Dependencies): Add 'extensions'.
58739         * doc/posix-functions/iswblank.texi: Document the glibc problem.
58741 2011-02-06  Bruno Haible  <bruno@clisp.org>
58743         New module 'iswblank'.
58744         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
58745         * modules/iswblank: New file.
58746         * modules/wctype-h (Files): Remove lib/iswblank.c.
58747         (Makefile.am): Substitute GNULIB_ISWBLANK.
58748         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
58749         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
58750         (gl_WCTYPE_H_DEFAULTS): New macro.
58751         (gl_WCTYPE_H): Require it. Remove iswblank related code.
58752         * modules/iswblank-tests: New file.
58753         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
58754         * tests/test-wctype-h.c (main): Remove iswblank tests.
58755         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
58756         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
58757         of 'wctype-h'.
58758         * NEWS: Mention the change.
58759         * modules/mbchar (Depends-on): Add iswblank.
58761 2011-02-08  Bruno Haible  <bruno@clisp.org>
58763         di-set tests: Refactor.
58764         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
58765         unnecessary includes.
58766         (ASSERT): Remove macro.
58767         (main): Make C90 compliant by avoiding variable declaration after
58768         statement.
58769         * modules/di-set-tests (Files): Add tests/macros.h.
58771 2011-02-08  Bruno Haible  <bruno@clisp.org>
58773         ino-map tests: Refactor.
58774         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
58775         unnecessary includes.
58776         (ASSERT): Remove macro.
58777         (main): Make C90 compliant by avoiding variable declaration after
58778         statement.
58779         * modules/ino-map-tests (Files): Add tests/macros.h.
58781 2011-02-08  Jim Meyering  <meyering@redhat.com>
58783         di-set: add "const" to a cast
58784         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
58785         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
58787 2011-02-06  Bruno Haible  <bruno@clisp.org>
58789         Rename module 'wctype' to 'wctype-h'.
58790         * modules/wctype-h: Renamed from modules/wctype.
58791         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
58792         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
58793         (Files, Depends-on, Makefile.am): Update.
58794         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
58795         (Files, Makefile.am): Update.
58796         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
58797         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
58798         * doc/posix-headers/wctype.texi: Update.
58799         * doc/posix-functions/iswalnum.texi: Update.
58800         * doc/posix-functions/iswalpha.texi: Update.
58801         * doc/posix-functions/iswblank.texi: Update.
58802         * doc/posix-functions/iswcntrl.texi: Update.
58803         * doc/posix-functions/iswdigit.texi: Update.
58804         * doc/posix-functions/iswgraph.texi: Update.
58805         * doc/posix-functions/iswlower.texi: Update.
58806         * doc/posix-functions/iswprint.texi: Update.
58807         * doc/posix-functions/iswpunct.texi: Update.
58808         * doc/posix-functions/iswspace.texi: Update.
58809         * doc/posix-functions/iswupper.texi: Update.
58810         * doc/posix-functions/iswxdigit.texi: Update.
58811         * doc/posix-functions/towlower.texi: Update.
58812         * doc/posix-functions/towupper.texi: Update.
58813         * NEWS: Mention the change.
58814         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
58815         * modules/mbchar (Dependencies): Likewise.
58816         * modules/mbswidth (Dependencies): Likewise.
58817         * modules/quotearg (Dependencies): Likewise.
58818         * modules/regex (Dependencies): Likewise.
58819         * modules/wcscasecmp (Dependencies): Likewise.
58820         * modules/wcsncasecmp (Dependencies): Likewise.
58821         * modules/wcwidth (Dependencies): Likewise.
58823 2011-02-06  Bruno Haible  <bruno@clisp.org>
58825         New module 'wcswidth'.
58826         * modules/wcswidth: New file.
58827         * lib/wchar.in.h (wcswidth): New declaration.
58828         * lib/wcswidth.c: New file.
58829         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
58830         * m4/wcswidth.m4: New file.
58831         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
58832         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
58833         REPLACE_WCSWIDTH.
58834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
58835         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
58836         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
58837         * doc/posix-functions/wcswidth.texi: Mention the new module.
58839 2011-02-06  Bruno Haible  <bruno@clisp.org>
58841         New module 'wcstok'.
58842         * modules/wcstok: New file.
58843         * lib/wchar.in.h (wcstok): New declaration.
58844         * lib/wcstok.c: New file.
58845         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
58846         * m4/wcstok.m4: New file.
58847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
58848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
58849         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
58850         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
58851         * doc/posix-functions/wcstok.texi: Mention the new module.
58853 2011-02-06  Bruno Haible  <bruno@clisp.org>
58855         New module 'wcsstr'.
58856         * modules/wcsstr: New file.
58857         * lib/wchar.in.h (wcsstr): New declaration.
58858         * lib/wcsstr.c: New file.
58859         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
58860         * m4/wcsstr.m4: New file.
58861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
58862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
58863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
58864         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
58865         * doc/posix-functions/wcsstr.texi: Mention the new module.
58867 2011-02-06  Bruno Haible  <bruno@clisp.org>
58869         New module 'wcspbrk'.
58870         * modules/wcspbrk: New file.
58871         * lib/wchar.in.h (wcspbrk): New declaration.
58872         * lib/wcspbrk.c: New file.
58873         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
58874         * m4/wcspbrk.m4: New file.
58875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
58876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
58877         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
58878         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
58879         * doc/posix-functions/wcspbrk.texi: Mention the new module.
58881 2011-02-06  Bruno Haible  <bruno@clisp.org>
58883         New module 'wcsspn'.
58884         * modules/wcsspn: New file.
58885         * lib/wchar.in.h (wcsspn): New declaration.
58886         * lib/wcsspn.c: New file.
58887         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
58888         * m4/wcsspn.m4: New file.
58889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
58890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
58891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
58892         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
58893         * doc/posix-functions/wcsspn.texi: Mention the new module.
58895 2011-02-06  Bruno Haible  <bruno@clisp.org>
58897         New module 'wcscspn'.
58898         * modules/wcscspn: New file.
58899         * lib/wchar.in.h (wcscspn): New declaration.
58900         * lib/wcscspn.c: New file.
58901         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
58902         * m4/wcscspn.m4: New file.
58903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
58904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
58905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
58906         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
58907         * doc/posix-functions/wcscspn.texi: Mention the new module.
58909 2011-02-06  Bruno Haible  <bruno@clisp.org>
58911         New module 'wcsrchr'.
58912         * modules/wcsrchr: New file.
58913         * lib/wchar.in.h (wcsrchr): New declaration.
58914         * lib/wcsrchr.c: New file.
58915         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
58916         * m4/wcsrchr.m4: New file.
58917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
58918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
58919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
58920         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
58921         * doc/posix-functions/wcsrchr.texi: Mention the new module.
58923 2011-02-06  Bruno Haible  <bruno@clisp.org>
58925         New module 'wcschr'.
58926         * modules/wcschr: New file.
58927         * lib/wchar.in.h (wcschr): New declaration.
58928         * lib/wcschr.c: New file.
58929         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
58930         * m4/wcschr.m4: New file.
58931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
58932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
58933         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
58934         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
58935         * doc/posix-functions/wcschr.texi: Mention the new module.
58937 2011-02-06  Bruno Haible  <bruno@clisp.org>
58939         New module 'wcsdup'.
58940         * modules/wcsdup: New file.
58941         * lib/wchar.in.h (wcsdup): New declaration.
58942         * lib/wcsdup.c: New file.
58943         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
58944         * m4/wcsdup.m4: New file.
58945         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
58946         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
58947         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
58948         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
58949         * doc/posix-functions/wcsdup.texi: Mention the new module.
58951 2011-02-06  Bruno Haible  <bruno@clisp.org>
58953         New module 'wcsxfrm'.
58954         * modules/wcsxfrm: New file.
58955         * lib/wchar.in.h (wcsxfrm): New declaration.
58956         * lib/wcsxfrm.c: New file.
58957         * lib/wcsxfrm-impl.h: New file.
58958         * m4/wcsxfrm.m4: New file.
58959         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
58960         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
58961         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
58962         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
58963         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
58965 2011-02-06  Bruno Haible  <bruno@clisp.org>
58967         New module 'wcscoll'.
58968         * modules/wcscoll: New file.
58969         * lib/wchar.in.h (wcscoll): New declaration.
58970         * lib/wcscoll.c: New file.
58971         * lib/wcscoll-impl.h: New file.
58972         * m4/wcscoll.m4: New file.
58973         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
58974         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
58975         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
58976         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
58977         * doc/posix-functions/wcscoll.texi: Mention the new module.
58979 2011-02-06  Bruno Haible  <bruno@clisp.org>
58981         New module 'wcsncasecmp'.
58982         * modules/wcsncasecmp: New file.
58983         * lib/wchar.in.h (wcsncasecmp): New declaration.
58984         * lib/wcsncasecmp.c: New file.
58985         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
58986         * m4/wcsncasecmp.m4: New file.
58987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
58988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
58989         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
58990         HAVE_WCSNCASECMP.
58991         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
58992         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
58994 2011-02-06  Bruno Haible  <bruno@clisp.org>
58996         New module 'wcscasecmp'.
58997         * modules/wcscasecmp: New file.
58998         * lib/wchar.in.h (wcscasecmp): New declaration.
58999         * lib/wcscasecmp.c: New file.
59000         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
59001         * m4/wcscasecmp.m4: New file.
59002         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
59003         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
59004         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
59005         HAVE_WCSCASECMP.
59006         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
59007         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
59009 2011-02-05  Bruno Haible  <bruno@clisp.org>
59011         New module 'wcsncmp'.
59012         * modules/wcsncmp: New file.
59013         * lib/wchar.in.h (wcsncmp): New declaration.
59014         * lib/wcsncmp.c: New file.
59015         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
59016         * m4/wcsncmp.m4: New file.
59017         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
59018         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
59019         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
59020         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
59021         * doc/posix-functions/wcsncmp.texi: Mention the new module.
59023 2011-02-05  Bruno Haible  <bruno@clisp.org>
59025         New module 'wcscmp'.
59026         * modules/wcscmp: New file.
59027         * lib/wchar.in.h (wcscmp): New declaration.
59028         * lib/wcscmp.c: New file.
59029         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
59030         * m4/wcscmp.m4: New file.
59031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
59032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
59033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
59034         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
59035         * doc/posix-functions/wcscmp.texi: Mention the new module.
59037 2011-02-05  Bruno Haible  <bruno@clisp.org>
59039         New module 'wcsncat'.
59040         * modules/wcsncat: New file.
59041         * lib/wchar.in.h (wcsncat): New declaration.
59042         * lib/wcsncat.c: New file.
59043         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
59044         * m4/wcsncat.m4: New file.
59045         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
59046         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
59047         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
59048         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
59049         * doc/posix-functions/wcsncat.texi: Mention the new module.
59051 2011-02-05  Bruno Haible  <bruno@clisp.org>
59053         New module 'wcscat'.
59054         * modules/wcscat: New file.
59055         * lib/wchar.in.h (wcscat): New declaration.
59056         * lib/wcscat.c: New file.
59057         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
59058         * m4/wcscat.m4: New file.
59059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
59060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
59061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
59062         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
59063         * doc/posix-functions/wcscat.texi: Mention the new module.
59065 2011-02-05  Bruno Haible  <bruno@clisp.org>
59067         New module 'wcpncpy'.
59068         * modules/wcpncpy: New file.
59069         * lib/wchar.in.h (wcpncpy): New declaration.
59070         * lib/wcpncpy.c: New file.
59071         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
59072         * m4/wcpncpy.m4: New file.
59073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
59074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
59075         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
59076         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
59077         * doc/posix-functions/wcpncpy.texi: Mention the new module.
59079 2011-02-05  Bruno Haible  <bruno@clisp.org>
59081         New module 'wcsncpy'.
59082         * modules/wcsncpy: New file.
59083         * lib/wchar.in.h (wcsncpy): New declaration.
59084         * lib/wcsncpy.c: New file.
59085         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
59086         * m4/wcsncpy.m4: New file.
59087         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
59088         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
59089         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
59090         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
59091         * doc/posix-functions/wcsncpy.texi: Mention the new module.
59093 2011-02-05  Bruno Haible  <bruno@clisp.org>
59095         New module 'wcpcpy'.
59096         * modules/wcpcpy: New file.
59097         * lib/wchar.in.h (wcpcpy): New declaration.
59098         * lib/wcpcpy.c: New file.
59099         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
59100         * m4/wcpcpy.m4: New file.
59101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
59102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
59103         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
59104         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
59105         * doc/posix-functions/wcpcpy.texi: Mention the new module.
59107 2011-02-05  Bruno Haible  <bruno@clisp.org>
59109         New module 'wcscpy'.
59110         * modules/wcscpy: New file.
59111         * lib/wchar.in.h (wcscpy): New declaration.
59112         * lib/wcscpy.c: New file.
59113         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
59114         * m4/wcscpy.m4: New file.
59115         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
59116         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
59117         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
59118         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
59119         * doc/posix-functions/wcscpy.texi: Mention the new module.
59121 2011-02-05  Bruno Haible  <bruno@clisp.org>
59123         New module 'wcsnlen'.
59124         * modules/wcsnlen: New file.
59125         * lib/wchar.in.h (wcsnlen): New declaration.
59126         * lib/wcsnlen.c: New file.
59127         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
59128         * m4/wcsnlen.m4: New file.
59129         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
59130         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
59131         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
59132         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
59133         * doc/posix-functions/wcsnlen.texi: Mention the new module.
59135 2011-02-05  Bruno Haible  <bruno@clisp.org>
59137         New module 'wcslen'.
59138         * modules/wcslen: New file.
59139         * lib/wchar.in.h (wcslen): New declaration.
59140         * lib/wcslen.c: New file.
59141         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
59142         * m4/wcslen.m4: New file.
59143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
59144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
59145         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
59146         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
59147         * doc/posix-functions/wcslen.texi: Mention the new module.
59149 2011-02-05  Bruno Haible  <bruno@clisp.org>
59151         New module 'wmemset'.
59152         * modules/wmemset: New file.
59153         * lib/wchar.in.h (wmemset): New declaration.
59154         * lib/wmemset.c: New file.
59155         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
59156         * m4/wmemset.m4: New file.
59157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
59158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
59159         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
59160         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
59161         * doc/posix-functions/wmemset.texi: Mention the new module.
59163 2011-02-05  Bruno Haible  <bruno@clisp.org>
59165         New module 'wmemmove'.
59166         * modules/wmemmove: New file.
59167         * lib/wchar.in.h (wmemmove): New declaration.
59168         * lib/wmemmove.c: New file.
59169         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
59170         * m4/wmemmove.m4: New file.
59171         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
59172         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
59173         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
59174         HAVE_WMEMMOVE.
59175         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
59176         * doc/posix-functions/wmemmove.texi: Mention the new module.
59178 2011-02-05  Bruno Haible  <bruno@clisp.org>
59180         New module 'wmemcpy'.
59181         * modules/wmemcpy: New file.
59182         * lib/wchar.in.h (wmemcpy): New declaration.
59183         * lib/wmemcpy.c: New file.
59184         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
59185         * m4/wmemcpy.m4: New file.
59186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
59187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
59188         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
59189         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
59190         * doc/posix-functions/wmemcpy.texi: Mention the new module.
59192 2011-02-05  Bruno Haible  <bruno@clisp.org>
59194         New module 'wmemcmp'.
59195         * modules/wmemcmp: New file.
59196         * lib/wchar.in.h (wmemcmp): New declaration.
59197         * lib/wmemcmp.c: New file.
59198         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
59199         * m4/wmemcmp.m4: New file.
59200         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
59201         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
59202         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
59203         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
59204         * doc/posix-functions/wmemcmp.texi: Mention the new module.
59206 2011-02-07  Jim Meyering  <meyering@redhat.com>
59208         di-set, ino-map: new modules, from coreutils
59209         * lib/di-set.c: New file.
59210         * lib/di-set.h: Likewise.
59211         * lib/ino-map.c: Likewise.
59212         * lib/ino-map.h: Likewise.
59213         * modules/di-set: Likewise.
59214         * modules/di-set-tests: Likewise.
59215         * modules/ino-map: Likewise.
59216         * modules/ino-map-tests: Likewise.
59217         * tests/test-di-set.c: Likewise.
59218         * tests/test-ino-map.c: Likewise.
59220 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
59222         getloadavg: merge minor changes from Emacs
59224         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
59225         (getloadavg): Use memset, not bzero.
59227         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
59228         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
59229         clash (bug#86).
59231 2010-11-14  Bruno Haible  <bruno@clisp.org>
59233         Allow multiple gnulib generated replacements to coexist.
59234         * lib/getopt.in.h (struct option): Avoid identical redefinition.
59235         * lib/inttypes.in.h (imaxdiv_t): Likewise.
59236         * lib/langinfo.in.h (nl_item): Likewise.
59237         * lib/math.in.h (_NaN, NAN): Likewise.
59238         * lib/netdb.in.h (struct addrinfo): Likewise.
59239         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
59240         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
59241         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
59242         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
59243         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
59244         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
59245         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
59246         pthread_mutexattr_init, pthread_mutexattr_settype,
59247         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
59248         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
59249         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
59250         pthread_spin_trylock, pthread_spin_unlock): Likewise.
59251         * lib/sched.in.h (struct sched_param): Likewise.
59252         * lib/se-selinux.in.h (security_class_t, security_context_t,
59253         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
59254         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
59255         lsetfilecon, fsetfilecon, security_check_context,
59256         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
59257         Likewise.
59258         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
59259         Likewise.
59260         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
59261         _gl_function_taking_int_returning_void_t, union sigval,
59262         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
59263         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
59264         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
59265         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
59266         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
59267         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
59268         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
59269         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
59270         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
59271         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
59272         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
59273         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
59274         socklen_t, rpl_fd_isset): Likewise.
59275         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
59276         * lib/sys_time.in.h (struct timeval): Likewise.
59277         * lib/sys_times.in.h (struct tms): Likewise.
59278         * lib/sys_utsname.in.h (struct utsname):
59279         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
59280         * lib/unistd.in.h (getpagesize): Likewise.
59281         * lib/wchar.in.h (mbstate_t): Likewise.
59282         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59283         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
59284         towlower, towupper): Likewise.
59285         Reported by Sam Steingold <sds@gnu.org>.
59287 2011-02-05  Eric Blake  <eblake@redhat.com>
59289         unsetenv: work around Haiku issues
59290         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
59291         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
59293 2010-12-30  Bruce Korb  <bkorb@gnu.org>
59295         libposix: avoid calling error() within libposix
59296         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
59297         is defined.
59299 2011-02-05  Eric Blake  <eblake@redhat.com>
59301         strerror_r-posix: port to cygwin
59302         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
59303         implementation.
59304         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
59305         * tests/test-strerror_r.c (main): Fix test.
59306         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
59307         issue.
59309 2011-02-05  Bruno Haible  <bruno@clisp.org>
59311         New module 'wmemchr'.
59312         * modules/wmemchr: New file.
59313         * lib/wchar.in.h (wmemchr): New declaration.
59314         * lib/wmemchr.c: New file.
59315         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
59316         * m4/wmemchr.m4: New file.
59317         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
59318         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
59319         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
59320         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
59321         * doc/posix-functions/wmemchr.texi: Mention the new module.
59323 2011-02-04  Eric Blake  <eblake@redhat.com>
59325         fdopendir: detect FreeBSD bug
59326         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
59327         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
59329 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59331         stdbool: do not define HAVE_STDBOOL_H
59332         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
59333         AC_HEADER_STDBOOL.  All uses changed.  Do not define
59334         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
59335         imported from the latest Autoconf git.  It was motivated by Emacs,
59336         which uses gnulib but does not need HAVE_STDBOOL_H.
59338 2011-02-04  Bruno Haible  <bruno@clisp.org>
59340         wcsnrtombs: Prepare for new module wwcsnrtombs.
59341         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
59342         * lib/wcsnrtombs.c: Include it.
59343         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
59345         wcsrtombs: Prepare for new module wwcsrtombs.
59346         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
59347         * lib/wcsrtombs.c: Include it.
59348         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
59350         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
59351         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
59352         * lib/mbsnrtowcs.c: Include it.
59353         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
59355         mbsrtowcs: Prepare for new module mbsrtowwcs.
59356         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
59357         * lib/mbsrtowcs.c: Include it.
59358         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
59360 2011-02-04  Bruno Haible  <bruno@clisp.org>
59362         vasnprintf: Reduce use of malloc for small format strings.
59363         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
59364         (arguments): Add room for the first 7 arguments.
59365         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
59366         (char_directives, u8_directives, u16_directives, u32_directives): Add
59367         room for the first 7 directives.
59368         * lib/printf-parse.c: Include <string.h>.
59369         (PRINTF_PARSE): Change memory handling code so that it uses the first
59370         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
59371         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
59372         Reported by Pádraig Brady <P@draigbrady.com>.
59374 2011-01-31  Eric Blake  <eblake@redhat.com>
59376         dup2: work around Haiku bug
59377         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
59378         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
59379         * doc/posix-functions/dup2.texi (dup2): Document the bug.
59380         * tests/test-dup2.c (main): Enhance test.
59382 2011-01-31  Simon Josefsson  <simon@josefsson.org>
59384         doc: off_t is not available in eglibc 2.11.2 stdio.h.
59385         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
59386         declared by eglibc 2.11.2.
59387         * lib/stdio.in.h: Likewise.
59389 2011-01-31  Eric Blake  <eblake@redhat.com>
59391         ignore-value: add missing test dependency
59392         * tests/test-ignore-value.c: Revert previous change; stdio.h
59393         provides off_t.
59394         * modules/ignore-value-tests (Depends-on): Add missing dependency.
59396 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
59398         mktime: clarify long_int width checking
59399         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
59400         the top level, to make it clearer that the assumption about
59401         long_int width is being checked.  See
59402         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
59404 2011-01-30  Simon Josefsson  <simon@josefsson.org>
59406         ignore-value: Fix self-test.
59407         * tests/test-ignore-value.c: Include sys/types.h for off_t.
59409 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59411         TYPE_MAXIMUM: avoid theoretically undefined behavior
59412         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
59413         negative number, which the C Standard says has undefined behavior.
59414         In practice this is not a problem, but might as well do it by the book.
59415         Reported by Rich Felker and Eric Blake; see
59416         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
59417         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
59418         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59420         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
59421         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59422         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
59424         mktime: #undef mktime before #defining it
59425         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
59427         mktime: systematically normalize tm_isdst comparisons
59428         * lib/mktime.c (isdst_differ): New function.
59429         (__mktime_internal): Use it systematically for all isdst comparisons.
59430         This completes the fix for libc BZ #6723, and removes the need for
59431         normalizing tm_isdst.  See
59432         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
59433         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
59435         mktime: fix some integer overflow issues and sidestep the rest
59437         This was prompted by a bug report by Benjamin Lindner for MinGW
59438         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
59439         His bug is due to signed integer overflow (0 - INT_MIN), and I
59440         I scanned through mktime.c looking for other integer overflow
59441         problems, fixing all the bugs I found.
59443         Although the C Standard says the resulting code is still not safe
59444         in the presence of integer overflow, in practice it should be good
59445         enough for all real-world two's-complement implementations, except
59446         for debugging environments that deliberately trap on integer
59447         overflow (e.g., gcc -ftrapv).
59449         * lib/mktime.c (WRAPV): New macro.
59450         (SHR): Also check that long_int and time_t shift right in the
59451         usual way, before using the fast-but-unportable method.
59452         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
59453         used.  The code already assumed two's complement, so there's
59454         no need to test for alternatives.  All uses removed.
59455         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
59456         the C standard.  Problem reported by Rich Felker in
59457         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
59458         (twos_complement_arithmetic): Also check long_int and time_t.
59459         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
59460         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
59461         (__mktime_internal): Avoid integer overflow with unary subtraction
59462         in two instances where -1 - X is an adequate replacement for -X,
59463         since the calculations are approximate.
59465 2011-01-29  Eric Blake  <eblake@redhat.com>
59467         mktime: avoid infinite loop
59468         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
59469         type; behavior is still undefined but portable to all known targets.
59470         Reported by Rich Felker.
59472 2011-01-29  Simon Josefsson  <simon@josefsson.org>
59474         rename, unlink, same-inode: Relicense.
59475         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
59476         * modules/unlink (License): Likewise.
59477         * modules/same-inode (License): Likewise.
59479 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59481         mktime: avoid problems on NetBSD 5 / i386
59482         * lib/mktime.c (long_int): New type.  This works around a problem
59483         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
59484         but time_t is 64 bits, and where I expect the existing code is
59485         wrong in some cases.
59486         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
59487         (ydhms_diff): Bring back the compile-time check for wide-enough
59488         year and yday.
59490         mktime: fix misspelling in comment
59491         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
59492         This merges all recent glibc changes of importance.
59494 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59496         move-if-change: cope with concurrent mv of identical file.
59497         * build-aux/move-if-change (CMPPROG): Accept environment
59498         variable as an override for `cmp'.
59499         (usage): Document CMPPROG.
59500         Adjust comparison to drop stdout.  Cope with failure of mv if
59501         the target file exists and is identical to the source, for
59502         parallel builds.
59503         Report from H.J. Lu against binutils in PR binutils/12283.
59505 2011-01-28  Bruce Korb  <bkorb@gnu.org>
59507         * users.txt: Mention sharutils.
59509 2011-01-28  Simon Josefsson  <simon@josefsson.org>
59511         * users.txt: Mention OATH Toolkit.
59513 2011-01-27  Bruno Haible  <bruno@clisp.org>
59515         Prepare for supporting FreeBSD 10.
59516         * build-aux/config.libpath: Remove handling of freebsd1*.
59518 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
59520         Prepare for supporting FreeBSD 10.
59521         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
59522         match FreeBSD 10.0.
59524 2011-01-27  Bruno Haible  <bruno@clisp.org>
59526         vma-iter, get-rusage-as: Add OpenBSD support.
59527         * modules/vma-iter (configure.ac): Test for mquery.
59528         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
59529         * lib/vma-iter.c: Include <sys/mman.h>.
59530         (vma_iterate): Add an implementation based on mquery().
59531         * lib/resource-ext.h (get_rusage_as): Update comments.
59532         * lib/get-rusage-as.c: Likewise.
59533         * lib/get-rusage-data.c: Likewise.
59535 2011-01-26  Karl Berry  <karl@gnu.org>
59537         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
59538         variables to make it easier to override the makeinfo program used.
59540 2011-01-26  Eric Blake  <eblake@redhat.com>
59542         fcntl: work around Haiku F_DUPFD bugs
59543         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
59544         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
59545         cloexec bit on duplication.
59546         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
59548 2011-01-26  Bruno Haible  <bruno@clisp.org>
59550         Enable memory leak tests on AIX.
59551         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
59552         * tests/test-fprintf-posix3.c (main): Likewise.
59554 2011-01-26  Bruno Haible  <bruno@clisp.org>
59556         Tests for module 'get-rusage-data'.
59557         * modules/get-rusage-data-tests: New file.
59558         * tests/test-get-rusage-data.c: New file.
59560         New module 'get-rusage-data'.
59561         * lib/resource-ext.h (get_rusage_data): New declaration.
59562         * lib/get-rusage-data.c: New file.
59563         * modules/get-rusage-data: New file.
59565 2011-01-25  Bruno Haible  <bruno@clisp.org>
59567         get-rusage-as: Allow for easier testing.
59568         * lib/resource-ext.h (get_rusage_as): Add comment.
59569         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
59570         (main): New function for interactive testing.
59572 2011-01-25  Bruno Haible  <bruno@clisp.org>
59574         vma-iter: Treat Haiku like BeOS.
59575         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
59576         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
59578 2011-01-25  Eric Blake  <eblake@redhat.com>
59580         c-stack: fix regression on cygwin when libsigsegv is present
59581         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
59583 2011-01-24  Bruno Haible  <bruno@clisp.org>
59585         vma-iter: Avoid empty intervals.
59586         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
59587         on an empty interval.
59589 2011-01-24  Jim Meyering  <meyering@redhat.com>
59591         u64: remove unnecessary #include
59592         * lib/u64.h: Don't include <stddef.h>.  It was not used.
59594 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59596         Allow the user to avoid the HAVE_RAW_DECL_* macros.
59597         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
59599 2011-01-23  Bruno Haible  <bruno@clisp.org>
59601         New module 'vma-iter'.
59602         * lib/vma-iter.h: New file.
59603         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
59604         * modules/vma-iter: New file.
59605         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
59606         for get_rusage_as_via_iterator.
59607         (vma_iterate_callback): New function.
59608         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
59609         * modules/get-rusage-as (Depends-on): Add vma-iter.
59611 2011-01-23  Bruno Haible  <bruno@clisp.org>
59613         uninorm: Tweak includes.
59614         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
59615         Reported by Jim Meyering.
59617 2011-01-23  Bruno Haible  <bruno@clisp.org>
59619         get-rusage-as: Improve on NetBSD.
59620         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
59621         /proc, like on FreeBSD.
59623 2011-01-23  Jim Meyering  <meyering@redhat.com>
59625         xreadlink.h: remove unnecessary #include
59626         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
59628         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
59629         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
59631 2011-01-23  Bruno Haible  <bruno@clisp.org>
59633         get-rusage-as: Fix bug.
59634         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
59635         original limit when aborting the first loop.
59637 2011-01-23  Bruno Haible  <bruno@clisp.org>
59639         wctype: Ensure valid C syntax.
59640         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
59641         unconditionally, instead of gl_NEXT_HEADERS conditionally.
59643 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59645         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
59646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
59647         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
59648         as they are needed only for configure's test case.
59649         This removes two unnecessary symbols from config.h.
59651         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
59652         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
59653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
59654         AC_CHECK_HEADERS_ONCE on a header that we also invoke
59655         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
59656         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
59657         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
59658         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
59659         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59660         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59661         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
59662         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59663         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59664         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
59665         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
59666         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59667         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59668         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59670 2011-01-21  Eric Blake  <eblake@redhat.com>
59672         maintainer-makefile: work with older git for submodule check
59673         * top/maint.mk (public-submodule-commit): Rewrite to avoid
59674         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
59675         Reported by Matthias Bolte.
59677         bootstrap: minor portability fixes
59678         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
59679         (usage): Omit leading capital and trailing . on help phrases, per
59680         GNU Coding Standards.
59681         (check_versions, top level): Prefix messages with script name.
59683 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
59685         bootstrap: support --no-git option
59686         * build-aux/bootstrap: Add --no-git option, to be used when
59687         --gnulib-srcdir points to the exact desired checkout.
59689 2011-01-21  Eric Blake  <eblake@redhat.com>
59691         strerror_r-posix: work with glibc 2.13
59692         * lib/strerror_r.c (strerror_r): Fix return type.
59694 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59695             Bruno Haible  <bruno@clisp.org>
59697         uN_strstr: New unit tests.
59698         * modules/unistr/u8-strstr-tests: New file.
59699         * modules/unistr/u16-strstr-tests: New file.
59700         * modules/unistr/u32-strstr-tests: New file.
59701         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
59702         * tests/unistr/test-u8-strstr.c: New file.
59703         * tests/unistr/test-u16-strstr.c: New file.
59704         * tests/unistr/test-u32-strstr.c: New file.
59706 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59707             Bruno Haible  <bruno@clisp.org>
59709         Make uN_strstr functions O(n) worst-case.
59710         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
59711         16-bit and 32-bit unit cases, use the unibyte algorithm from
59712         lib/mbsstr.c.
59713         * lib/unistr/u8-strstr.c: Include <string.h>.
59714         (UNIT_IS_UINT8_T): New macro.
59715         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
59716         (U_STRLEN, U_STRNLEN): New macros.
59717         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
59718         (U_STRLEN, U_STRNLEN): New macros.
59719         * modules/unistr/u8-strstr (Depends-on): Add strstr.
59720         (configure.ac): Update required libunistring version.
59721         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
59722         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
59723         malloca.
59724         (configure.ac): Update required libunistring version.
59725         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
59726         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
59727         malloca.
59728         (configure.ac): Update required libunistring version.
59730 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59731             Bruno Haible  <bruno@clisp.org>
59733         Prepare for faster uN_strstr functions.
59734         * lib/str-kmp.h: Support definable UNITs.
59735         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
59736         needle_len argument.
59737         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
59738         * lib/mbscasestr.c (mbscasestr): Likewise.
59740 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59742         malloca-tests: make faster by unsetting MALLOC_PERTURB_
59743         * tests/test-malloca.c (main): Unset the environment variable
59744         to greatly speed up the test.
59745         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
59746         * modules/malloca-tests: Depend on unsetenv.
59748 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59750         ignore-value: remove stdint dependency
59751         * lib/ignore-value.h: Remove <stdint.h>
59752         * modules/ignore-value: Remove stdint dependency.
59754 2011-01-21  Jim Meyering  <meyering@redhat.com>
59756         maint.mk: adjust variable name to be consistent with other gl_ vars
59757         * top/maint.mk (gl_public_submodule_commit): Rename the variable
59758         to be lower case.
59760 2011-01-20  Jim Meyering  <meyering@redhat.com>
59762         maint.mk: make "check" depend on public-submodule-commit by default
59763         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
59765 2011-01-20  Bruno Haible  <bruno@clisp.org>
59767         mbfile, mbiter: Complete change from 2008-12-21.
59768         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
59769         * m4/mbiter.m4 (gl_MBITER): Likewise.
59771 2011-01-20  Jim Meyering  <meyering@redhat.com>
59773         init.sh: insert space between each function name and "()"
59774         * tests/init.sh: Make it a little easier to see that a function's
59775         name is "warn_", and not "warn" when looking at the first part of
59776         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
59778 2011-01-20  Jim Meyering  <meyering@redhat.com>
59780         mountlist: clean up code formatting
59781         * lib/mountlist.c (read_file_system_list): Split a long line,
59782         correct bracing style, use NULL in place of "(struct statfs *)0",
59783         don't parenthesize return value, add spaces around "=" and after
59784         ";-in-for-stmt".
59786 2011-01-14  Markus Duft  <mduft@gentoo.org>
59788         mountlist: add support for Interix
59789         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
59790         Apply statvfs to all entries of /dev/fs.
59791         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
59792         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
59794 2011-01-20  Jim Meyering  <meyering@redhat.com>
59796         maint.mk: improve the public-submodule-commit rule
59797         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
59798         to suppress printing of its commands... unless V=1.
59799         Add git submodule's --quiet option to suppress printing of e.g.,
59800         "Entering gnulib" output.
59801         "cd" into $(srcdir) before running git submodule.
59803 2011-01-20  Bruno Haible  <bruno@clisp.org>
59805         include_next: Fix bug introduced on 2011-01-18.
59806         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
59807         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
59808         ac_cv_header_... variable if the second argument is not 'check'.
59809         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
59810         gl_NEXT_HEADERS_INTERNAL.
59812 2011-01-20  Bruno Haible  <bruno@clisp.org>
59814         Allow the user to avoid the GNULIB_TEST_* macros.
59815         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
59816         Suggested by Paul Eggert.
59818 2011-01-14  Jim Meyering  <meyering@redhat.com>
59820         bootstrap: avoid failure when there is no .gitmodules file
59821         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
59822         has been assigned to, even when its value is the empty string.
59823         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
59824         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
59825         Reported by John W. Eaton <jwe@gnu.org>.
59827 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59829         assume <ctype.h>, ..., <time.h> exist
59830         For years gnulib has been assuming the existence of the headers
59831         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
59832         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
59833         them, since they don't appear to be needed.
59834         * README (Portability guidelines): Document this.
59835         * lib/flock.c: Assume <fcntl.h> exists.
59836         * lib/regex_internal.h: Assume <locale.h> exists.
59837         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
59838         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
59839         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
59840         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
59841         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
59842         * m4/regex.m4 (gl_REGEX): Likewise.
59843         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
59844         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
59845         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
59846         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
59847         * tests/test-argp.c: Likewise.
59848         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
59850         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
59851         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
59852         AA_APPLE_UNIVERSAL_BUILD.  See
59853         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
59854         * NEWS: Document this.
59856 2011-01-19  Eric Blake  <eblake@redhat.com>
59858         c-stack: assume stack overflow if SA_SIGINFO unsupported
59859         * lib/c-stack.c (SIGACTION_WORKS): Rename...
59860         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
59861         sigaction will work.
59862         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
59863         behavior match Linux.
59864         * tests/test-c-stack.c (main): Prefer NULL for pointers.
59866         stdbool-tests: accommodate Haiku
59867         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
59869         binary-io: fix O_TEXT on Haiku
59870         * modules/binary-io (Depends-on): Add fcntl-h.
59871         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
59872         than blindly undefining O_TEXT.
59873         Reported by Scott McCreary.
59875 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59877         include_next: do not check for standard headers like stddef.h
59879         I found this problem when modifying Emacs to use gnulib.
59880         I noticed that it added HAVE_STDDEF_H to config.h, even though
59881         gnulib always assumes <stddef.h> exists as per README and this
59882         symbol is unnecessary.
59883         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
59884         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
59885         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
59886         faster for headers like stddef.h that are known to exist.
59887         (gl_CHECK_NEXT_HEADERS): Use it.
59888         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
59889         rather than gl_CHECK_NEXT_HEADERS.
59890         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
59891         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
59893 2011-01-18  Eric Blake  <eblake@redhat.com>
59895         ansi-c++-opt: skip C++ dependency style if C++ is unused
59896         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
59897         tests when we know C++ compilation is not desired.
59898         Reported by Scott McCreary.
59900 2011-01-18  Bruno Haible  <bruno@clisp.org>
59902         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
59903         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
59904         (main): Perform test also when getrlimit and setrlimit don't exist or
59905         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
59906         limiting the address space size using setrlimit, compare the address
59907         space size before and after the test.
59908         * tests/test-dprintf-posix2.c: Likewise.
59909         * tests/test-fprintf-posix3.sh: Update skip messages.
59910         * tests/test-dprintf-posix2.sh: Likewise.
59911         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
59912         * modules/dprintf-posix-tests (Depends-on): Likewise.
59913         Reported by Bruce Korb <bkorb@gnu.org> and
59914         Gary V. Vaughan <gary@gnu.org>.
59916 2011-01-18  Bruno Haible  <bruno@clisp.org>
59918         get-rusage-as: Improvement for Cygwin.
59919         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
59920         areas that are merely reserved.
59922 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59924         strftime: remove dependencies on multibyte modules
59926         strftime depended on mbrlen, mbsinit, and wchar, but these modules
59927         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
59928         only if __osf__ is defined, and I suspect OSF doesn't need these
59929         other modules.  If my guess is wrong, we'll need to come up with a
59930         variant of strftime that doesn't need the multibyte modules.
59932         I discovered this problem when attempting modify Emacs to use the
59933         strftime module.  With the previous gnulib, this caused Emacs to
59934         need 31 new files, ranging from lib/config.charset to
59935         m4/wint_t.m4.  This was overkill and I expect would be offputting
59936         to the Emacs maintainers.  After this change, only 6 new files are
59937         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
59938         stdbool.m4, and tm_gmtoff.m4.
59940         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
59941         Suggested by Bruno Haible in
59942         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
59943         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
59944         and do not check for wchar.h.
59945         * modules/strftime (Files): Remove m4/mbstate_t.m4.
59946         (Depends-on): Remove mbrlen, mbsinit, wchar.
59948 2011-01-18  Bruno Haible  <bruno@clisp.org>
59950         Tests for module 'get-rusage-as'.
59951         * modules/get-rusage-as-tests: New file.
59952         * tests/test-get-rusage-as.c: New file.
59954         New module 'get-rusage-as'.
59955         * modules/get-rusage-as: New file.
59956         * lib/resource-ext.h: New file.
59957         * lib/get-rusage-as.c: New file.
59959 2011-01-17  Eric Blake  <eblake@redhat.com>
59961         sigaction: relax license from LGPLv3+ to LGPLv2+
59962         * modules/sigaction (License): Relax to LGPLv2+.
59964 2011-01-14  Bruno Haible  <bruno@clisp.org>
59966         filemode: Make function declarations usable in C++ mode.
59967         * lib/filemode.h: Enclose function declarations in extern "C" block.
59968         Reported by John W. Eaton <jwe@gnu.org>.
59970 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
59972         save-cwd: no longer include "xgetcwd.h"
59973         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
59974         This avoids a compilation failure in projects that use save-cwd
59975         without also using the xgetcwd module.
59977 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59979         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
59980         This is so that a program like Emacs, which needs only dtoastr,
59981         does not have to bother with distributing and compiling ftoastr
59982         and ldtoastr.
59983         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
59984         * modules/dtoastr, modules/ldtoastr: New files.
59985         * modules/ftoastr: Now works just for 'float'.
59986         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
59987         (Makefile.am): Remove ftoastr.h (not needed and no effect),
59988         dtoastr.c, ldtoastr.c.
59990 2011-01-11  Jim Meyering  <meyering@redhat.com>
59992         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
59993         There is no need to work around the lack of the fchdir function,
59994         since gnulib can now provide a replacement when required.
59995         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
59996         * modules/save-cwd (Depends-on): Add fchdir.
59998 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60000         openat, save-cwd: avoid xmalloc
60002         This removes a direct (but undocumented) dependency of openat on
60003         xalloc, along with an indirect dependency via save-cwd.  It also
60004         removes a dependency of save-cwd on xgetcwd, and thereby
60005         indirectly on xalloc.  This change causes the openat substitute
60006         to fall back on save_cwd when memory is tight, and for save_cwd to
60007         fail instead of dying when memory is tight, but that's good enough.
60008         Problem and initial idea for fix reported by Bastien Roucaries in
60009         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
60011         * lib/openat-proc.c: Include stdlib.h (for malloc), not
60012         xalloc.h (for xmalloc).
60013         (openat_proc_name): Use malloc, not xmalloc.
60014         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
60015         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
60017         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
60018         This avoids heap allocation for file names whose lengths are in
60019         the range 512..1023, with the upper bound increasing to at most
60020         4031 depending on the platform's PATH_MAX.  (We do not want
60021         pathmax.h here as it might supply a non-constant PATH_MAX.)
60022         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
60023         Perhaps they should be moved to malloca.h?
60024         (OPENAT_BUFFER_SIZE): Use them.
60026 2011-01-10  Bruno Haible  <bruno@clisp.org>
60028         doc: Update users.txt.
60029         * users.txt: Add recutils.
60031 2011-01-09  Karl Berry  <karl@gnu.org>
60033         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
60035         * doc/configmake.texi: New file.
60036         * doc/gnulib.texi: Include it.
60037         * modules/configmake: Move documentation from here.
60039 2011-01-09  Bruno Haible  <bruno@clisp.org>
60041         Update to Unicode 6.0.0.
60042         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
60043         (get_lbp): Update for Unicode 6.0.0.
60044         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
60045         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
60046         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
60047         U+11001, U+11038..U+11046. Remove U+06DE.
60048         (uc_width): Fix bounds of planes.
60049         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60050         lib/uniwidth/width.c.
60051         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
60052         trailing whitespace removed.
60053         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
60054         without comments, but with the original copyright notice.
60055         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
60056         * lib/unicase/ignorable.h: Likewise.
60057         * lib/unicase/tocasefold.h: Likewise.
60058         * lib/unicase/tolower.h: Likewise.
60059         * lib/unicase/totitle.h: Likewise.
60060         * lib/unicase/toupper.h: Likewise.
60061         * lib/unictype/bidi_of.h: Likewise.
60062         * lib/unictype/blocks.h: Likewise.
60063         * lib/unictype/categ_C.h: Likewise.
60064         * lib/unictype/categ_Cn.h: Likewise.
60065         * lib/unictype/categ_L.h: Likewise.
60066         * lib/unictype/categ_Ll.h: Likewise.
60067         * lib/unictype/categ_Lm.h: Likewise.
60068         * lib/unictype/categ_Lo.h: Likewise.
60069         * lib/unictype/categ_Lu.h: Likewise.
60070         * lib/unictype/categ_M.h: Likewise.
60071         * lib/unictype/categ_Mc.h: Likewise.
60072         * lib/unictype/categ_Me.h: Likewise.
60073         * lib/unictype/categ_Mn.h: Likewise.
60074         * lib/unictype/categ_N.h: Likewise.
60075         * lib/unictype/categ_Nd.h: Likewise.
60076         * lib/unictype/categ_No.h: Likewise.
60077         * lib/unictype/categ_P.h: Likewise.
60078         * lib/unictype/categ_Po.h: Likewise.
60079         * lib/unictype/categ_S.h: Likewise.
60080         * lib/unictype/categ_Sc.h: Likewise.
60081         * lib/unictype/categ_Sk.h: Likewise.
60082         * lib/unictype/categ_Sm.h: Likewise.
60083         * lib/unictype/categ_So.h: Likewise.
60084         * lib/unictype/categ_of.h: Likewise.
60085         * lib/unictype/combining.h: Likewise.
60086         * lib/unictype/ctype_alnum.h: Likewise.
60087         * lib/unictype/ctype_alpha.h: Likewise.
60088         * lib/unictype/ctype_graph.h: Likewise.
60089         * lib/unictype/ctype_lower.h: Likewise.
60090         * lib/unictype/ctype_print.h: Likewise.
60091         * lib/unictype/ctype_punct.h: Likewise.
60092         * lib/unictype/ctype_upper.h: Likewise.
60093         * lib/unictype/decdigit.h: Likewise.
60094         * lib/unictype/digit.h: Likewise.
60095         * lib/unictype/numeric.h: Likewise.
60096         * lib/unictype/pr_alphabetic.h: Likewise.
60097         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60098         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60099         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60100         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60101         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60102         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60103         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60104         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60105         * lib/unictype/pr_case_ignorable.h: Likewise.
60106         * lib/unictype/pr_cased.h: Likewise.
60107         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
60108         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
60109         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
60110         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
60111         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
60112         * lib/unictype/pr_combining.h: Likewise.
60113         * lib/unictype/pr_composite.h: Likewise.
60114         * lib/unictype/pr_currency_symbol.h: Likewise.
60115         * lib/unictype/pr_decimal_digit.h: Likewise.
60116         * lib/unictype/pr_deprecated.h: Likewise.
60117         * lib/unictype/pr_format_control.h: Likewise.
60118         * lib/unictype/pr_grapheme_base.h: Likewise.
60119         * lib/unictype/pr_grapheme_extend.h: Likewise.
60120         * lib/unictype/pr_grapheme_link.h: Likewise.
60121         * lib/unictype/pr_id_continue.h: Likewise.
60122         * lib/unictype/pr_id_start.h: Likewise.
60123         * lib/unictype/pr_ideographic.h: Likewise.
60124         * lib/unictype/pr_lowercase.h: Likewise.
60125         * lib/unictype/pr_math.h: Likewise.
60126         * lib/unictype/pr_numeric.h: Likewise.
60127         * lib/unictype/pr_other_alphabetic.h: Likewise.
60128         * lib/unictype/pr_other_id_continue.h: Likewise.
60129         * lib/unictype/pr_other_math.h: Likewise.
60130         * lib/unictype/pr_punctuation.h: Likewise.
60131         * lib/unictype/pr_sentence_terminal.h: Likewise.
60132         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60133         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60134         * lib/unictype/pr_unified_ideograph.h: Likewise.
60135         * lib/unictype/pr_uppercase.h: Likewise.
60136         * lib/unictype/pr_xid_continue.h: Likewise.
60137         * lib/unictype/pr_xid_start.h: Likewise.
60138         * lib/unictype/scripts.h: Likewise.
60139         * lib/unictype/scripts_byname.gperf: Likewise.
60140         * lib/unictype/sy_java_ident.h: Likewise.
60141         * lib/unigbrk/gbrkprop.h: Likewise.
60142         * lib/unilbrk/lbrkprop1.h: Likewise.
60143         * lib/unilbrk/lbrkprop2.h: Likewise.
60144         * lib/uninorm/decomposition-table2.h: Likewise.
60145         * lib/uniwbrk/wbrkprop.h: Likewise.
60146         * tests/unicase/test-cased.c: Likewise.
60147         * tests/unicase/test-ignorable.c: Likewise.
60148         * tests/unicase/test-uc_tolower.c: Likewise.
60149         * tests/unicase/test-uc_totitle.c: Likewise.
60150         * tests/unicase/test-uc_toupper.c: Likewise.
60151         * tests/unictype/test-categ_C.c: Likewise.
60152         * tests/unictype/test-categ_Cn.c: Likewise.
60153         * tests/unictype/test-categ_L.c: Likewise.
60154         * tests/unictype/test-categ_Ll.c: Likewise.
60155         * tests/unictype/test-categ_Lm.c: Likewise.
60156         * tests/unictype/test-categ_Lo.c: Likewise.
60157         * tests/unictype/test-categ_Lu.c: Likewise.
60158         * tests/unictype/test-categ_M.c: Likewise.
60159         * tests/unictype/test-categ_Mc.c: Likewise.
60160         * tests/unictype/test-categ_Me.c: Likewise.
60161         * tests/unictype/test-categ_Mn.c: Likewise.
60162         * tests/unictype/test-categ_N.c: Likewise.
60163         * tests/unictype/test-categ_Nd.c: Likewise.
60164         * tests/unictype/test-categ_No.c: Likewise.
60165         * tests/unictype/test-categ_P.c: Likewise.
60166         * tests/unictype/test-categ_Po.c: Likewise.
60167         * tests/unictype/test-categ_S.c: Likewise.
60168         * tests/unictype/test-categ_Sc.c: Likewise.
60169         * tests/unictype/test-categ_Sk.c: Likewise.
60170         * tests/unictype/test-categ_Sm.c: Likewise.
60171         * tests/unictype/test-categ_So.c: Likewise.
60172         * tests/unictype/test-ctype_alnum.c: Likewise.
60173         * tests/unictype/test-ctype_alpha.c: Likewise.
60174         * tests/unictype/test-ctype_graph.c: Likewise.
60175         * tests/unictype/test-ctype_lower.c: Likewise.
60176         * tests/unictype/test-ctype_print.c: Likewise.
60177         * tests/unictype/test-ctype_punct.c: Likewise.
60178         * tests/unictype/test-ctype_upper.c: Likewise.
60179         * tests/unictype/test-decdigit.h: Likewise.
60180         * tests/unictype/test-digit.h: Likewise.
60181         * tests/unictype/test-numeric.h: Likewise.
60182         * tests/unictype/test-pr_alphabetic.c: Likewise.
60183         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60184         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60185         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60186         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60187         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60188         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60189         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60190         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60191         * tests/unictype/test-pr_case_ignorable.c: Likewise.
60192         * tests/unictype/test-pr_cased.c: Likewise.
60193         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
60194         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
60195         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
60196         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
60197         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
60198         * tests/unictype/test-pr_combining.c: Likewise.
60199         * tests/unictype/test-pr_composite.c: Likewise.
60200         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60201         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60202         * tests/unictype/test-pr_deprecated.c: Likewise.
60203         * tests/unictype/test-pr_format_control.c: Likewise.
60204         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60205         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60206         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60207         * tests/unictype/test-pr_id_continue.c: Likewise.
60208         * tests/unictype/test-pr_id_start.c: Likewise.
60209         * tests/unictype/test-pr_ideographic.c: Likewise.
60210         * tests/unictype/test-pr_lowercase.c: Likewise.
60211         * tests/unictype/test-pr_math.c: Likewise.
60212         * tests/unictype/test-pr_numeric.c: Likewise.
60213         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60214         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60215         * tests/unictype/test-pr_other_math.c: Likewise.
60216         * tests/unictype/test-pr_punctuation.c: Likewise.
60217         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60218         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60219         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60220         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60221         * tests/unictype/test-pr_uppercase.c: Likewise.
60222         * tests/unictype/test-pr_xid_continue.c: Likewise.
60223         * tests/unictype/test-pr_xid_start.c: Likewise.
60224         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60225         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60226         changes.
60227         * lib/unictype/categ_Cc.h: Likewise.
60228         * lib/unictype/categ_Cf.h: Likewise.
60229         * lib/unictype/categ_Co.h: Likewise.
60230         * lib/unictype/categ_Cs.h: Likewise.
60231         * lib/unictype/categ_Lt.h: Likewise.
60232         * lib/unictype/categ_Nl.h: Likewise.
60233         * lib/unictype/categ_Pc.h: Likewise.
60234         * lib/unictype/categ_Pd.h: Likewise.
60235         * lib/unictype/categ_Pe.h: Likewise.
60236         * lib/unictype/categ_Pf.h: Likewise.
60237         * lib/unictype/categ_Pi.h: Likewise.
60238         * lib/unictype/categ_Ps.h: Likewise.
60239         * lib/unictype/categ_Z.h: Likewise.
60240         * lib/unictype/categ_Zl.h: Likewise.
60241         * lib/unictype/categ_Zp.h: Likewise.
60242         * lib/unictype/categ_Zs.h: Likewise.
60243         * lib/unictype/ctype_blank.h: Likewise.
60244         * lib/unictype/ctype_cntrl.h: Likewise.
60245         * lib/unictype/ctype_digit.h: Likewise.
60246         * lib/unictype/ctype_space.h: Likewise.
60247         * lib/unictype/ctype_xdigit.h: Likewise.
60248         * lib/unictype/mirror.h: Likewise.
60249         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60250         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60251         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60252         * lib/unictype/pr_bidi_control.h: Likewise.
60253         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60254         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60255         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60256         * lib/unictype/pr_bidi_pdf.h: Likewise.
60257         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60258         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60259         * lib/unictype/pr_dash.h: Likewise.
60260         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60261         * lib/unictype/pr_diacritic.h: Likewise.
60262         * lib/unictype/pr_extender.h: Likewise.
60263         * lib/unictype/pr_hex_digit.h: Likewise.
60264         * lib/unictype/pr_hyphen.h: Likewise.
60265         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60266         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60267         * lib/unictype/pr_ignorable_control.h: Likewise.
60268         * lib/unictype/pr_iso_control.h: Likewise.
60269         * lib/unictype/pr_join_control.h: Likewise.
60270         * lib/unictype/pr_left_of_pair.h: Likewise.
60271         * lib/unictype/pr_line_separator.h: Likewise.
60272         * lib/unictype/pr_logical_order_exception.h: Likewise.
60273         * lib/unictype/pr_non_break.h: Likewise.
60274         * lib/unictype/pr_not_a_character.h: Likewise.
60275         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60276         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60277         * lib/unictype/pr_other_id_start.h: Likewise.
60278         * lib/unictype/pr_other_lowercase.h: Likewise.
60279         * lib/unictype/pr_other_uppercase.h: Likewise.
60280         * lib/unictype/pr_paired_punctuation.h: Likewise.
60281         * lib/unictype/pr_paragraph_separator.h: Likewise.
60282         * lib/unictype/pr_pattern_syntax.h: Likewise.
60283         * lib/unictype/pr_pattern_white_space.h: Likewise.
60284         * lib/unictype/pr_private_use.h: Likewise.
60285         * lib/unictype/pr_quotation_mark.h: Likewise.
60286         * lib/unictype/pr_radical.h: Likewise.
60287         * lib/unictype/pr_soft_dotted.h: Likewise.
60288         * lib/unictype/pr_space.h: Likewise.
60289         * lib/unictype/pr_titlecase.h: Likewise.
60290         * lib/unictype/pr_variation_selector.h: Likewise.
60291         * lib/unictype/pr_white_space.h: Likewise.
60292         * lib/unictype/pr_zero_width.h: Likewise.
60293         * lib/unictype/sy_c_ident.h: Likewise.
60294         * lib/unictype/sy_c_whitespace.h: Likewise.
60295         * lib/unictype/sy_java_whitespace.h: Likewise.
60296         * lib/uninorm/composition-table.gperf: Likewise.
60297         * lib/uninorm/decomposition-table1.h: Likewise.
60298         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
60299         LB8.
60300         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60301         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60302         * modules/unictype/*: Bump version number of expected libunistring
60303         version.
60305 2011-01-09  Bruno Haible  <bruno@clisp.org>
60307         Update to Unicode 5.2.0.
60308         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
60309         trailing whitespace removed.
60311 2011-01-09  Bruno Haible  <bruno@clisp.org>
60313         New Unicode character properties, from Unicode 5.2.0.
60314         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
60315         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
60316         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
60317         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
60318         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
60319         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
60320         uc_is_property_cased, uc_is_property_case_ignorable,
60321         uc_is_property_changes_when_lowercased,
60322         uc_is_property_changes_when_uppercased,
60323         uc_is_property_changes_when_titlecased,
60324         uc_is_property_changes_when_casefolded,
60325         uc_is_property_changes_when_casemapped): New declarations.
60326         * lib/unictype/pr_byname.gperf: Add the new properties.
60327         * modules/unictype/property-byname (Depends-on): Depend on the new
60328         properties modules.
60329         * modules/unictype/property-all (Depends-on): Likewise.
60330         * MODULES.html.sh (Unicode string functions): Add
60331         unictype/property-case-ignorable, unictype/property-cased,
60332         unictype/property-changes-when-casefolded,
60333         unictype/property-changes-when-casemapped,
60334         unictype/property-changes-when-lowercased,
60335         unictype/property-changes-when-titlecased,
60336         unictype/property-changes-when-uppercased.
60338         New module 'unictype/property-changes-when-casemapped'.
60339         * modules/unictype/property-changes-when-casemapped: New file.
60340         * lib/unictype/pr_changes_when_casemapped.c: New file.
60341         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
60342         generated by gen-uni-tables.
60343         * modules/unictype/property-changes-when-casemapped-tests: New file.
60344         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
60345         automatically generated by gen-uni-tables.
60347         New module 'unictype/property-changes-when-casefolded'.
60348         * modules/unictype/property-changes-when-casefolded: New file.
60349         * lib/unictype/pr_changes_when_casefolded.c: New file.
60350         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
60351         generated by gen-uni-tables.
60352         * modules/unictype/property-changes-when-casefolded-tests: New file.
60353         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
60354         automatically generated by gen-uni-tables.
60356         New module 'unictype/property-changes-when-titlecased'.
60357         * modules/unictype/property-changes-when-titlecased: New file.
60358         * lib/unictype/pr_changes_when_titlecased.c: New file.
60359         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
60360         generated by gen-uni-tables.
60361         * modules/unictype/property-changes-when-titlecased-tests: New file.
60362         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
60363         automatically generated by gen-uni-tables.
60365         New module 'unictype/property-changes-when-uppercased'.
60366         * modules/unictype/property-changes-when-uppercased: New file.
60367         * lib/unictype/pr_changes_when_uppercased.c: New file.
60368         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
60369         generated by gen-uni-tables.
60370         * modules/unictype/property-changes-when-uppercased-tests: New file.
60371         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
60372         automatically generated by gen-uni-tables.
60374         New module 'unictype/property-changes-when-lowercased'.
60375         * modules/unictype/property-changes-when-lowercased: New file.
60376         * lib/unictype/pr_changes_when_lowercased.c: New file.
60377         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
60378         generated by gen-uni-tables.
60379         * modules/unictype/property-changes-when-lowercased-tests: New file.
60380         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
60381         automatically generated by gen-uni-tables.
60383         New module 'unictype/property-case-ignorable'.
60384         * modules/unictype/property-case-ignorable: New file.
60385         * lib/unictype/pr_case_ignorable.c: New file.
60386         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
60387         by gen-uni-tables.
60388         * modules/unictype/property-case-ignorable-tests: New file.
60389         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
60390         generated by gen-uni-tables.
60392         New module 'unictype/property-cased'.
60393         * modules/unictype/property-cased: New file.
60394         * lib/unictype/pr_cased.c: New file.
60395         * lib/unictype/pr_cased.h: New file, automatically generated by
60396         gen-uni-tables.
60397         * modules/unictype/property-cased-tests: New file.
60398         * tests/unictype/test-pr_cased.c: New file, automatically generated by
60399         gen-uni-tables.
60401 2011-01-09  Bruno Haible  <bruno@clisp.org>
60403         Update to Unicode 5.2.0.
60404         * lib/gen-uni-tables.c (output_predicate, output_category,
60405         output_combclass, output_bidi_category, output_decimal_digit_test,
60406         output_decimal_digit, output_digit_test, output_digit,
60407         output_numeric_test, output_numeric, output_mirror, output_scripts,
60408         output_scripts_byname, output_blocks, output_ident_category): Fix
60409         comment header.
60410         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
60411         get_wbp.
60412         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
60413         items.
60414         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
60415         Changes_When_Lowercased, Changes_When_Uppercased,
60416         Changes_When_Titlecased, Changes_When_Casefolded,
60417         Changes_When_Casemapped.
60418         (is_property_alphabetic, is_property_default_ignorable_code_point):
60419         Update for Unicode 5.2.0.
60420         (is_property_cased, is_property_case_ignorable,
60421         is_property_changes_when_lowercased,
60422         is_property_changes_when_uppercased,
60423         is_property_changes_when_titlecased,
60424         is_property_changes_when_casefolded,
60425         is_property_changes_when_casemapped): New functions.
60426         (output_properties): Output also the properties cased, case_ignorable,
60427         changes_when_lowercased, changes_when_uppercased,
60428         changes_when_titlecased, changes_when_casefolded,
60429         changes_when_casemapped.
60430         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
60431         Unicode TR#11 revision 17 -> 19.
60432         (LBP_CP): New enumeration value.
60433         (LBP_*): Adjust values accordingly.
60434         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60435         TR#14 revision 22 -> 24.
60436         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
60437         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
60438         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60439         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
60440         is_WBP_MIDLETTER.
60441         (output_composition_tables): Allow for 24 bits instead of 16 bits in
60442         the code1 and code2 of each composition rule.
60443         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
60444         * lib/unicase/ignorable.h: Likewise.
60445         * lib/unicase/tocasefold.h: Likewise.
60446         * lib/unicase/tolower.h: Likewise.
60447         * lib/unicase/totitle.h: Likewise.
60448         * lib/unicase/toupper.h: Likewise.
60449         * lib/unictype/bidi_of.h: Likewise.
60450         * lib/unictype/blocks.h: Likewise.
60451         * lib/unictype/categ_C.h: Likewise.
60452         * lib/unictype/categ_Cf.h: Likewise.
60453         * lib/unictype/categ_Cn.h: Likewise.
60454         * lib/unictype/categ_L.h: Likewise.
60455         * lib/unictype/categ_Ll.h: Likewise.
60456         * lib/unictype/categ_Lm.h: Likewise.
60457         * lib/unictype/categ_Lo.h: Likewise.
60458         * lib/unictype/categ_Lu.h: Likewise.
60459         * lib/unictype/categ_M.h: Likewise.
60460         * lib/unictype/categ_Mc.h: Likewise.
60461         * lib/unictype/categ_Mn.h: Likewise.
60462         * lib/unictype/categ_N.h: Likewise.
60463         * lib/unictype/categ_Nd.h: Likewise.
60464         * lib/unictype/categ_Nl.h: Likewise.
60465         * lib/unictype/categ_No.h: Likewise.
60466         * lib/unictype/categ_P.h: Likewise.
60467         * lib/unictype/categ_Pd.h: Likewise.
60468         * lib/unictype/categ_Po.h: Likewise.
60469         * lib/unictype/categ_S.h: Likewise.
60470         * lib/unictype/categ_Sc.h: Likewise.
60471         * lib/unictype/categ_So.h: Likewise.
60472         * lib/unictype/categ_of.h: Likewise.
60473         * lib/unictype/combining.h: Likewise.
60474         * lib/unictype/ctype_alnum.h: Likewise.
60475         * lib/unictype/ctype_alpha.h: Likewise.
60476         * lib/unictype/ctype_graph.h: Likewise.
60477         * lib/unictype/ctype_lower.h: Likewise.
60478         * lib/unictype/ctype_print.h: Likewise.
60479         * lib/unictype/ctype_punct.h: Likewise.
60480         * lib/unictype/ctype_upper.h: Likewise.
60481         * lib/unictype/decdigit.h: Likewise.
60482         * lib/unictype/digit.h: Likewise.
60483         * lib/unictype/numeric.h: Likewise.
60484         * lib/unictype/pr_alphabetic.h: Likewise.
60485         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60486         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60487         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60488         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60489         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60490         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60491         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60492         * lib/unictype/pr_combining.h: Likewise.
60493         * lib/unictype/pr_composite.h: Likewise.
60494         * lib/unictype/pr_currency_symbol.h: Likewise.
60495         * lib/unictype/pr_dash.h: Likewise.
60496         * lib/unictype/pr_decimal_digit.h: Likewise.
60497         * lib/unictype/pr_deprecated.h: Likewise.
60498         * lib/unictype/pr_diacritic.h: Likewise.
60499         * lib/unictype/pr_extender.h: Likewise.
60500         * lib/unictype/pr_grapheme_base.h: Likewise.
60501         * lib/unictype/pr_grapheme_extend.h: Likewise.
60502         * lib/unictype/pr_grapheme_link.h: Likewise.
60503         * lib/unictype/pr_id_continue.h: Likewise.
60504         * lib/unictype/pr_id_start.h: Likewise.
60505         * lib/unictype/pr_ideographic.h: Likewise.
60506         * lib/unictype/pr_ignorable_control.h: Likewise.
60507         * lib/unictype/pr_logical_order_exception.h: Likewise.
60508         * lib/unictype/pr_lowercase.h: Likewise.
60509         * lib/unictype/pr_numeric.h: Likewise.
60510         * lib/unictype/pr_other_alphabetic.h: Likewise.
60511         * lib/unictype/pr_punctuation.h: Likewise.
60512         * lib/unictype/pr_sentence_terminal.h: Likewise.
60513         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60514         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60515         * lib/unictype/pr_unified_ideograph.h: Likewise.
60516         * lib/unictype/pr_uppercase.h: Likewise.
60517         * lib/unictype/pr_xid_continue.h: Likewise.
60518         * lib/unictype/pr_xid_start.h: Likewise.
60519         * lib/unictype/pr_zero_width.h: Likewise.
60520         * lib/unictype/scripts.h: Likewise.
60521         * lib/unictype/scripts_byname.gperf: Likewise.
60522         * lib/unictype/sy_java_ident.h: Likewise.
60523         * lib/unigbrk/gbrkprop.h: Likewise.
60524         * lib/unilbrk/lbrkprop1.h: Likewise.
60525         * lib/unilbrk/lbrkprop2.h: Likewise.
60526         * lib/unilbrk/lbrktables.h: Likewise.
60527         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
60528         LBP_CP. Implement rule LB30.
60529         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
60530         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
60531         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
60532         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
60533         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
60534         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
60535         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
60536         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
60537         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
60538         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
60539         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
60540         bits instead of 16 bits in the code1 and code2 of each composition
60541         rule.
60542         (uc_composition): Update for Unicode 5.2.0.
60543         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
60544         * lib/uninorm/decomposition-table2.h: Likewise.
60545         * lib/uniwbrk/wbrkprop.h: Likewise.
60546         * tests/unicase/test-cased.c: Likewise.
60547         * tests/unicase/test-ignorable.c: Likewise.
60548         * tests/unicase/test-uc_tolower.c: Likewise.
60549         * tests/unicase/test-uc_totitle.c: Likewise.
60550         * tests/unicase/test-uc_toupper.c: Likewise.
60551         * tests/unictype/test-categ_C.c: Likewise.
60552         * tests/unictype/test-categ_Cf.c: Likewise.
60553         * tests/unictype/test-categ_Cn.c: Likewise.
60554         * tests/unictype/test-categ_L.c: Likewise.
60555         * tests/unictype/test-categ_Ll.c: Likewise.
60556         * tests/unictype/test-categ_Lm.c: Likewise.
60557         * tests/unictype/test-categ_Lo.c: Likewise.
60558         * tests/unictype/test-categ_Lu.c: Likewise.
60559         * tests/unictype/test-categ_M.c: Likewise.
60560         * tests/unictype/test-categ_Mc.c: Likewise.
60561         * tests/unictype/test-categ_Mn.c: Likewise.
60562         * tests/unictype/test-categ_N.c: Likewise.
60563         * tests/unictype/test-categ_Nd.c: Likewise.
60564         * tests/unictype/test-categ_Nl.c: Likewise.
60565         * tests/unictype/test-categ_No.c: Likewise.
60566         * tests/unictype/test-categ_P.c: Likewise.
60567         * tests/unictype/test-categ_Pd.c: Likewise.
60568         * tests/unictype/test-categ_Po.c: Likewise.
60569         * tests/unictype/test-categ_S.c: Likewise.
60570         * tests/unictype/test-categ_Sc.c: Likewise.
60571         * tests/unictype/test-categ_So.c: Likewise.
60572         * tests/unictype/test-ctype_alnum.c: Likewise.
60573         * tests/unictype/test-ctype_alpha.c: Likewise.
60574         * tests/unictype/test-ctype_graph.c: Likewise.
60575         * tests/unictype/test-ctype_lower.c: Likewise.
60576         * tests/unictype/test-ctype_print.c: Likewise.
60577         * tests/unictype/test-ctype_punct.c: Likewise.
60578         * tests/unictype/test-ctype_upper.c: Likewise.
60579         * tests/unictype/test-decdigit.h: Likewise.
60580         * tests/unictype/test-digit.h: Likewise.
60581         * tests/unictype/test-numeric.h: Likewise.
60582         * tests/unictype/test-pr_alphabetic.c: Likewise.
60583         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60584         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60585         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60586         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60587         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60588         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60589         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60590         * tests/unictype/test-pr_combining.c: Likewise.
60591         * tests/unictype/test-pr_composite.c: Likewise.
60592         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60593         * tests/unictype/test-pr_dash.c: Likewise.
60594         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60595         * tests/unictype/test-pr_deprecated.c: Likewise.
60596         * tests/unictype/test-pr_diacritic.c: Likewise.
60597         * tests/unictype/test-pr_extender.c: Likewise.
60598         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60599         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60600         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60601         * tests/unictype/test-pr_id_continue.c: Likewise.
60602         * tests/unictype/test-pr_id_start.c: Likewise.
60603         * tests/unictype/test-pr_ideographic.c: Likewise.
60604         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60605         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60606         * tests/unictype/test-pr_lowercase.c: Likewise.
60607         * tests/unictype/test-pr_numeric.c: Likewise.
60608         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60609         * tests/unictype/test-pr_punctuation.c: Likewise.
60610         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60611         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60612         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60613         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60614         * tests/unictype/test-pr_uppercase.c: Likewise.
60615         * tests/unictype/test-pr_xid_continue.c: Likewise.
60616         * tests/unictype/test-pr_xid_start.c: Likewise.
60617         * tests/unictype/test-pr_zero_width.c: Likewise.
60618         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60619         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
60620         changed behaviour: line breaking is now disallowed between a letter
60621         or '=' and '('.
60622         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60623         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60624         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60625         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
60626         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60627         lib/uniwidth/width.c.
60628         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
60629         without comments, but with the original copyright notice.
60630         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60631         changes.
60632         * lib/unictype/categ_Cc.h: Likewise.
60633         * lib/unictype/categ_Co.h: Likewise.
60634         * lib/unictype/categ_Cs.h: Likewise.
60635         * lib/unictype/categ_Lt.h: Likewise.
60636         * lib/unictype/categ_Me.h: Likewise.
60637         * lib/unictype/categ_Pc.h: Likewise.
60638         * lib/unictype/categ_Pe.h: Likewise.
60639         * lib/unictype/categ_Pf.h: Likewise.
60640         * lib/unictype/categ_Pi.h: Likewise.
60641         * lib/unictype/categ_Ps.h: Likewise.
60642         * lib/unictype/categ_Sk.h: Likewise.
60643         * lib/unictype/categ_Sm.h: Likewise.
60644         * lib/unictype/categ_Z.h: Likewise.
60645         * lib/unictype/categ_Zl.h: Likewise.
60646         * lib/unictype/categ_Zp.h: Likewise.
60647         * lib/unictype/categ_Zs.h: Likewise.
60648         * lib/unictype/ctype_blank.h: Likewise.
60649         * lib/unictype/ctype_cntrl.h: Likewise.
60650         * lib/unictype/ctype_digit.h: Likewise.
60651         * lib/unictype/ctype_space.h: Likewise.
60652         * lib/unictype/ctype_xdigit.h: Likewise.
60653         * lib/unictype/mirror.h: Likewise.
60654         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60655         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60656         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60657         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60658         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60659         * lib/unictype/pr_bidi_control.h: Likewise.
60660         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60661         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60662         * lib/unictype/pr_bidi_pdf.h: Likewise.
60663         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60664         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60665         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60666         * lib/unictype/pr_format_control.h: Likewise.
60667         * lib/unictype/pr_hex_digit.h: Likewise.
60668         * lib/unictype/pr_hyphen.h: Likewise.
60669         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60670         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60671         * lib/unictype/pr_iso_control.h: Likewise.
60672         * lib/unictype/pr_join_control.h: Likewise.
60673         * lib/unictype/pr_left_of_pair.h: Likewise.
60674         * lib/unictype/pr_line_separator.h: Likewise.
60675         * lib/unictype/pr_math.h: Likewise.
60676         * lib/unictype/pr_non_break.h: Likewise.
60677         * lib/unictype/pr_not_a_character.h: Likewise.
60678         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60679         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60680         * lib/unictype/pr_other_id_continue.h: Likewise.
60681         * lib/unictype/pr_other_id_start.h: Likewise.
60682         * lib/unictype/pr_other_lowercase.h: Likewise.
60683         * lib/unictype/pr_other_math.h: Likewise.
60684         * lib/unictype/pr_other_uppercase.h: Likewise.
60685         * lib/unictype/pr_paired_punctuation.h: Likewise.
60686         * lib/unictype/pr_paragraph_separator.h: Likewise.
60687         * lib/unictype/pr_pattern_syntax.h: Likewise.
60688         * lib/unictype/pr_pattern_white_space.h: Likewise.
60689         * lib/unictype/pr_private_use.h: Likewise.
60690         * lib/unictype/pr_quotation_mark.h: Likewise.
60691         * lib/unictype/pr_radical.h: Likewise.
60692         * lib/unictype/pr_soft_dotted.h: Likewise.
60693         * lib/unictype/pr_space.h: Likewise.
60694         * lib/unictype/pr_titlecase.h: Likewise.
60695         * lib/unictype/pr_variation_selector.h: Likewise.
60696         * lib/unictype/pr_white_space.h: Likewise.
60697         * lib/unictype/sy_c_ident.h: Likewise.
60698         * lib/unictype/sy_c_whitespace.h: Likewise.
60699         * lib/unictype/sy_java_whitespace.h: Likewise.
60700         * modules/uni*/*: Bump version number of expected libunistring version.
60701         Reported by Simon Josefsson.
60703 2011-01-09  Karl Heuer  <kwzh@gnu.org>
60705         useless-if-before-free: fix typo in --help and make the internal,
60706         automatic version date update process work once again.
60707         --help output contained a NUL character instead of the
60708         backslash-zero that was intended.  Also, the "must lie within
60709         the first 8 lines" line is on line 9, and hence not getting
60710         automatically updated.
60711         * build-aux/useless-if-before-free: Fix the former by adding a
60712         backslash, and the latter by condensing the three lines of what-it-does
60713         to a single line, leaving one line of slack for the future.
60715 2011-01-09  Bruno Haible  <bruno@clisp.org>
60717         uniwidth/width: Fix width of U+1D173..U+1D17A.
60718         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
60719         symbolic_width, output_width_property_test): New functions.
60720         (main): Invoke output_nonspacing_property, output_width_property_test.
60721         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
60722         U+1D173..U+1D17A.
60723         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
60724         1.
60725         * modules/uniwidth/*: Bump version number of expected libunistring
60726         version.
60727         * modules/unilbrk/*: Likewise.
60729 2011-01-08  Bruno Haible  <bruno@clisp.org>
60731         uninorm tests: Preserve copyright of Unicode data file.
60732         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
60733         Mention modifications.
60735 2011-01-08  Bruno Haible  <bruno@clisp.org>
60737         gen-uni-tables: Prepare for Unicode 5.2.0.
60738         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
60739         (debug_output_lbp, output_lbp): Update.
60741 2011-01-08  Bruno Haible  <bruno@clisp.org>
60743         unilbrk: Clarify gen-uni-tables.c code.
60744         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
60745         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
60746         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
60748 2011-01-07  Bruno Haible  <bruno@clisp.org>
60750         strtod: Restore errno when successfully parsing Infinity or NaN.
60751         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
60752         restore the original errno.
60754 2011-01-07  Bruno Haible  <bruno@clisp.org>
60756         remove test: Avoid failure on HP-UX 11.
60757         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
60759 2011-01-07  Bruno Haible  <bruno@clisp.org>
60761         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
60762         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
60763         error code.
60765 2011-01-07  Pádraig Brady  <P@draigBrady.com>
60767         ignore-value: fixup comments, and add Eric Blake
60768         as an author since he rewrote the macros.
60769         * lib/ignore-value.h (ignore_value):  State that
60770         we now support aggregates.  Also specify exactly
60771         when the GCC warn_unused_result feature was added.
60773 2011-01-06  Eric Blake  <eblake@redhat.com>
60775         ignore-value: support aggregate types
60776         * lib/ignore-value.h (ignore_value): Provide separate gcc
60777         definition.
60778         * modules/ignore-value-tests: New test module.
60779         * tests/test-ignore-value.c: New test.
60781         maint.mk: improve sc_prohibit_strcmp regex
60782         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
60783         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
60784         definition of STRNEQ.
60786         signal: work around Haiku issue with SIGBUS
60787         * lib/siglist.h: Add comment.
60788         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
60789         strsignal's favoring of SIGSEGV.
60790         * tests/test-signal.c (main): Avoid test failure.
60791         * doc/posix-headers/signal.texi (signal.h): Document the issue.
60792         Reported by Scott McCreary.
60794         maint.mk: add pre-release check to ensure submodule commits are public
60795         * top/maint.mk (public-submodule-commit): New rule.
60796         (submodule-checks): New variable.
60797         (alpha beta stable): Depend on the variable.
60799 2011-01-05  Pádraig Brady  <P@draigBrady.com>
60800         and Jim Meyering  <meyering@redhat.com>
60802         ignore-value: make ignore_value more generic; deprecate ignore_ptr
60803         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
60804         (ATTRIBUTE_DEPRECATED): Define.
60805         (_ignore_case): New function.
60806         (ignore_value): New macro, to replace the old function.
60807         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
60808         * modules/ignore-value (Depends-on): Add stdint.
60810 2011-01-04  Eric Blake  <eblake@redhat.com>
60812         doc: regenerate INSTALL
60813         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
60814         @firstparagraphindent support, now that autoconf dropped it.
60815         (INSTALL_PRELUDE): Reinstate old macro.
60816         * doc/install.texi: Resync from autoconf.
60817         * doc/INSTALL: Reflect recent autoconf update.
60818         * doc/INSTALL.ISO: Likewise.
60819         * doc/INSTALL.UTF-8: Likewise.
60820         Reported by Karl Berry.
60822 2011-01-04  Bruce Korb  <address@hidden>
60824         git-version-gen: avoid a sub-shell
60825         * build-aux/git-version-gen: Redirect stderr in `...` via
60826         "exec 2>...", rather than via an added sub-shell.
60828 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
60830         git-version-gen: use (...) rather than sh -c '...'
60831         * build-aux/git-version-gen: Rather than hard-coding a shell's name
60832         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
60834 2011-01-03  Jim Meyering  <meyering@redhat.com>
60836         git-version-gen: convert leading TABs to spaces
60837         * build-aux/git-version-gen: Expand leading TABs.
60839         git-version-gen: handle failed "git rev-list"
60840         * build-aux/git-version-gen: Rather than leaking a "fatal" error
60841         from git and proceeding as if it had succeeded but printed no SHA1
60842         checksums, suppress the diagnostic and handle the failure.
60843         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
60845         git-version-gen: include command name in one more diagnostic
60846         * build-aux/git-version-gen: When the required .tarball-version file
60847         was missing or unreadable, you might see the diagnostic from "cat",
60848         but no trace of the name of the invoking script.  Now, you still see
60849         the diagnostic from cat, but also get one from "git-version-gen: ".
60850         Inspired by a patch from Bruce Korb.
60852         update-copyright: adjust test to match changed code
60853         * tests/test-update-copyright.sh: Change test's expected output
60854         to match new actual output.
60856 2011-01-02  Bruno Haible  <bruno@clisp.org>
60858         getlogin_r: Avoid test failure on HP-UX 11.
60859         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
60860         ERANGE when the second argument is zero.
60861         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
60862         portability problem.
60864 2011-01-02  Bruce Korb  <bkorb@gnu.org>
60866         * build-aux/update-copyright: doc Simon's changes
60868 2011-01-02  Simon Josefsson  <simon@josefsson.org>
60870         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
60871         environment variable.
60873 2011-01-02  Bruno Haible  <bruno@clisp.org>
60875         unigbrk: Avoid gcc warnings.
60876         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
60877         unused variable.
60878         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
60879         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
60880         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
60881         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
60882         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
60883         Change type of first argument to 'const char *'.
60884         (main): Remove unused variable.
60885         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
60886         type of first argument to 'const char *'.
60887         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
60888         Likewise.
60889         (main): Change type of variable 's'.
60890         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
60891         to 'int'.
60893 2011-01-02  Bruno Haible  <bruno@clisp.org>
60895         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
60896         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
60897         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
60898         bug.
60899         * lib/pwrite.c: Undo 2010-12-31 patch.
60900         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
60902 2011-01-02  Bruno Haible  <bruno@clisp.org>
60904         pread: Fix test whether it works.
60905         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
60907 2011-01-02  Bruno Haible  <bruno@clisp.org>
60909         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
60910         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
60911         ends in "6". Don't require a specific month name. Try also the locale
60912         names found on HP-UX 11 and Solaris 7.
60914 2011-01-02  Bruno Haible  <bruno@clisp.org>
60916         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
60917         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
60918         C linkage.
60919         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
60921 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60923         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
60924         for consistency, since the "cluster" term is not used elsewhere.
60925         * lib/unigbrk.in.h: Update name.
60926         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
60927         * lib/unigbrk/u16-grapheme-next.c: Update name.
60928         * lib/unigbrk/u16-grapheme-prev.c: Update name.
60929         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
60930         * lib/unigbrk/u32-grapheme-next.c: Update name.
60931         * lib/unigbrk/u32-grapheme-prev.c: Update name.
60932         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
60933         * lib/unigbrk/u8-grapheme-next.c: Update name.
60934         * lib/unigbrk/u8-grapheme-prev.c: Update name.
60935         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
60936         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
60937         Suggested by Bruno Haible.
60939 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60941         Remove module 'u8-grapheme-len' as too redundant with
60942         'u8-grapheme-next'.
60943         * modules/unigbrk/u8-grapheme-len: Delete file.
60944         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
60945         * lib/unigbrk.in.h: Remove prototype for deleted function.
60946         * lib/unigbrk/u8-grapheme-len.c: Delete file.
60947         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
60949         Remove module 'u16-grapheme-len' as too redundant with
60950         'u16-grapheme-next'.
60951         * modules/unigbrk/u16-grapheme-len: Delete file.
60952         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
60953         * lib/unigbrk.in.h: Remove prototype for deleted function.
60954         * lib/unigbrk/u16-grapheme-len.c: Delete file.
60955         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
60957         Remove module 'u32-grapheme-len' as too redundant with
60958         'u32-grapheme-next'.
60959         * modules/unigbrk/u32-grapheme-len: Delete file.
60960         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
60961         * lib/unigbrk.in.h: Remove prototype for deleted function.
60962         * lib/unigbrk/u32-grapheme-len.c: Delete file.
60963         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
60965         Suggested by Bruno Haible.
60967 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60969         * unigbrk.in.h: Fix typo: "ben" => "been".
60970         Reported by Bruno Haible.
60972 2011-01-01  Jim Meyering  <meyering@redhat.com>
60974         maint: update almost all copyright ranges to include 2011
60975         Run the new "make update-copyright" rule.
60977 2011-01-01  Jim Meyering  <meyering@redhat.com>
60979         maint: update-copyright: exempt doc/INSTALL*
60980         * Makefile (update-copyright): Also exclude doc/INSTALL*,
60981         since they are generated.  Suggested by Bruno Haible.
60983 2011-01-01  Jim Meyering  <meyering@redhat.com>
60985         maint: refine the update-copyright rule
60986         * Makefile (update-copyright): Also exclude any file that includes
60987         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
60988         code that merely generates the comment.
60990 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60992         New module 'u8-grapheme-len'.
60993         * modules/unigbrk/u8-grapheme-len: New file.
60994         * modules/unigbrk/u8-grapheme-len-tests: New file.
60995         * lib/unigbrk.in.h: Add prototype for new function.
60996         * lib/unigbrk/u8-grapheme-len.c: New file.
60997         * tests/unigbrk/test-u8-grapheme-len.c: New file.
60999         New module 'u16-grapheme-len'.
61000         * modules/unigbrk/u16-grapheme-len: New file.
61001         * modules/unigbrk/u16-grapheme-len-tests: New file.
61002         * lib/unigbrk.in.h: Add prototype for new function.
61003         * lib/unigbrk/u16-grapheme-len.c: New file.
61004         * tests/unigbrk/test-u16-grapheme-len.c: New file.
61006         New module 'u32-grapheme-len'.
61007         * modules/unigbrk/u32-grapheme-len: New file.
61008         * modules/unigbrk/u32-grapheme-len-tests: New file.
61009         * lib/unigbrk.in.h: Add prototype for new function.
61010         * lib/unigbrk/u32-grapheme-len.c: New file.
61011         * tests/unigbrk/test-u32-grapheme-len.c: New file.
61013         New module 'u8-grapheme-next'.
61014         * modules/unigbrk/u8-grapheme-next: New file.
61015         * modules/unigbrk/u8-grapheme-next-tests: New file.
61016         * lib/unigbrk.in.h: Add prototype for new function.
61017         * lib/unigbrk/u8-grapheme-next.c: New file.
61018         * tests/unigbrk/test-u8-grapheme-next.c: New file.
61020         New module 'u16-grapheme-next'.
61021         * modules/unigbrk/u16-grapheme-next: New file.
61022         * modules/unigbrk/u16-grapheme-next-tests: New file.
61023         * lib/unigbrk.in.h: Add prototype for new function.
61024         * lib/unigbrk/u16-grapheme-next.c: New file.
61025         * tests/unigbrk/test-u16-grapheme-next.c: New file.
61027         New module 'u32-grapheme-next'.
61028         * modules/unigbrk/u32-grapheme-next: New file.
61029         * modules/unigbrk/u32-grapheme-next-tests: New file.
61030         * lib/unigbrk.in.h: Add prototype for new function.
61031         * lib/unigbrk/u32-grapheme-next.c: New file.
61032         * tests/unigbrk/test-u32-grapheme-next.c: New file.
61034         New module 'u8-grapheme-prev'.
61035         * modules/unigbrk/u8-grapheme-prev: New file.
61036         * modules/unigbrk/u8-grapheme-prev-tests: New file.
61037         * lib/unigbrk.in.h: Add prototype for new function.
61038         * lib/unigbrk/u8-grapheme-prev.c: New file.
61039         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
61041         New module 'u16-grapheme-prev'.
61042         * modules/unigbrk/u16-grapheme-prev: New file.
61043         * modules/unigbrk/u16-grapheme-prev-tests: New file.
61044         * lib/unigbrk.in.h: Add prototype for new function.
61045         * lib/unigbrk/u16-grapheme-prev.c: New file.
61046         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
61048         New module 'u32-grapheme-prev'.
61049         * modules/unigbrk/u32-grapheme-prev: New file.
61050         * modules/unigbrk/u32-grapheme-prev-tests: New file.
61051         * lib/unigbrk.in.h: Add prototype for new function.
61052         * lib/unigbrk/u32-grapheme-prev.c: New file.
61053         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
61055         New module 'u8-grapheme-breaks'.
61056         * modules/unigbrk/u8-grapheme-breaks: New file.
61057         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
61058         * lib/unigbrk.in.h: Add prototype for new function.
61059         * lib/unigbrk/u8-grapheme-breaks.c: New file.
61060         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
61062         New module 'u16-grapheme-breaks'.
61063         * modules/unigbrk/u16-grapheme-breaks: New file.
61064         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
61065         * lib/unigbrk.in.h: Add prototype for new function.
61066         * lib/unigbrk/u16-grapheme-breaks.c: New file.
61067         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
61069         New module 'u32-grapheme-breaks'.
61070         * modules/unigbrk/u32-grapheme-breaks: New file.
61071         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
61072         * lib/unigbrk.in.h: Add prototype for new function.
61073         * lib/unigbrk/u32-grapheme-breaks.c: New file.
61074         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
61076         New module 'ulc-grapheme-breaks'.
61077         * modules/unigbrk/ulc-grapheme-breaks: New file.
61078         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
61079         * m4/locale-ar.m4: New file.
61080         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
61081         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
61082         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
61084 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61086         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
61087         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
61088         modified how this file was generated before I initially submitted
61089         the module, but failed to regenerate it.  This meant that several
61090         of the level2 entries were wrong.
61091         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
61092         Remove the division-by-2 that is folded into the table now that
61093         gbrkprop.h has been regenerated properly.  Now -1 entries are
61094         handled correctly.
61096         New module 'unigbrk/uc-gbrk-prop-tests'.
61097         * modules/unigbrk/uc-gbrk-prop-tests: New file.
61098         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
61099         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
61100         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
61102 2011-01-01  Bruno Haible  <bruno@clisp.org>
61104         Avoid use of hexadecimal escapes.
61105         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
61106         instead of hexadecimal escapes.
61108 2011-01-01  Jim Meyering  <meyering@redhat.com>
61110         maint: new rule to update copyright year ranges
61111         * Makefile (update-copyright): New rule.
61113         maint: indent with TABs in Makefile
61114         * Makefile: Expand leading sequences of spaces to TABs
61116         version-etc: update the copyright year it reports
61117         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
61119 2010-12-31  Bruno Haible  <bruno@clisp.org>
61121         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
61122         * lib/isfinite.c (zerof, zerod, zerol): New variables.
61123         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
61124         zero.
61126 2010-12-31  Bruno Haible  <bruno@clisp.org>
61128         pwrite: Work around HP-UX 11.11 bug.
61129         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
61130         works and set REPLACE_PWRITE if not.
61131         * lib/pwrite.c (pwrite): Add an implementation that uses the system
61132         function.
61133         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
61135 2010-12-31  Bruno Haible  <bruno@clisp.org>
61137         pread: Work around HP-UX 11 bugs.
61138         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
61139         and set REPLACE_PREAD if not.
61140         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
61142 2010-12-31  Eric Blake  <eblake@redhat.com>
61144         nl_langinfo: fix YESEXPR on Irix 6.5
61145         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
61146         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
61147         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
61148         it.
61150 2010-12-31  Bruno Haible  <bruno@clisp.org>
61152         iconv: Document HP-UX 11 bug.
61153         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
61155 2010-12-31  Bruno Haible  <bruno@clisp.org>
61157         ldexpl: Fix link error on HP-UX 11.
61158         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
61159         LDEXPL_LIBM, using $ISNANL_LIBM.
61161 2010-12-31  Eric Blake  <eblake@redhat.com>
61163         ftello: avoid compilation failure with SunStudio c89
61164         * lib/ftello.c (ftello): Use lseek, not llseek.
61166         tests: avoid failing coreutils tests on cygwin
61167         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
61168         (create_exe_shims_): Return 0 when skipping.
61170 2010-12-31  Bruno Haible  <bruno@clisp.org>
61172         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
61173         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
61175 2010-12-31  Bruno Haible  <bruno@clisp.org>
61177         waitpid: Fix link error in C++ mode.
61178         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
61180 2010-12-31  Bruno Haible  <bruno@clisp.org>
61182         isnan: Use GCC built-ins when possible.
61183         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
61184         __builtin_isnan.
61185         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
61186         (isnan): Define using GCC built-ins for GCC >= 4.0.
61188 2010-12-31  Bruno Haible  <bruno@clisp.org>
61190         isnand: Fix mistake.
61191         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
61192         __builtin_isnand.
61194 2010-12-31  Bruno Haible  <bruno@clisp.org>
61196         open: Avoid C++ error on HP-UX 11.
61197         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
61199 2010-12-31  Bruno Haible  <bruno@clisp.org>
61201         time_r: Add missing declarations on HP-UX 11.
61202         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
61203         instead of HAVE_LOCALTIME_R.
61204         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
61205         HAVE_LOCALTIME_R always.
61206         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
61207         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
61208         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
61209         HAVE_LOCALTIME_R.
61210         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
61211         * doc/posix-functions/localtime_r.texi: Likewise.
61213 2010-12-29  Eric Blake  <eblake@redhat.com>
61215         mountlist: tweak previous commit
61216         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
61217         Reported by Paul Eggert.
61219         mountlist: fix local drive detection on cygwin
61220         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
61221         that works for cygwin.
61223 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61225         ftoastr, snprintf: ftoastr + snprintf module
61226         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
61227         since the snprintf module now should be good enough here.
61228         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
61229         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
61230         and gl_MODULE_INDICATOR([snprintf]), but the former enables
61231         GNULIB_SNPRINTF only for the test directory, and the latter
61232         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
61233         seems to suffice by itself.
61235 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61237         alloca: one step towards thread-safety
61238         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
61239         need for a static variable.  All callers changed.  This does not
61240         make the alloca replacement thread-safe, but it's one step.
61242         tests: minor indenting change
61243         * tests/init.sh: Sync from coreutils housekeeping patch
61244         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
61245         to keep lines within 80 columns.
61247 2010-12-28  Jim Meyering  <meyering@redhat.com>
61249         regex: don't infloop on persistent failing calloc
61250         * lib/regexec.c (build_trtable): Return failure indication upon
61251         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
61252         In glibc, this was fixed for version 2.13:
61253         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
61255 2010-12-28  Bruno Haible  <bruno@clisp.org>
61256             Paul Eggert <eggert@cs.ucla.edu>
61258         linkat: Make implementation robust against system behaviour variations.
61259         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
61260         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
61261         way, and to -2 if it needs a generic runtime test.
61262         * lib/linkat.c (solaris_optimized_link_immediate,
61263         solaris_optimized_link_follow): New functions.
61264         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
61265         (check_same_link): Use it.
61267 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
61269         New module 'unigbrk/base'.
61270         * modules/unigbrk/base: New file.
61271         * lib/unigbrk.in.h: New file.
61273         New module 'unigbrk/uc-gbrk-prop'.
61274         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
61275         * modules/unigbrk/uc-gbrk-prop: New file.
61276         * lib/unigbrk/gbrkprop.h: New file.
61277         * lib/unigbrk/uc-gbrk-prop.c: New file.
61279         New module 'unigbrk/uc-is-grapheme-break'.
61280         * modules/unigbrk/uc-is-grapheme-break: New file.
61281         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
61282         * lib/unigbrk/uc-is-grapheme-break.c: New file.
61283         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
61284         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
61285         * tests/unigbrk/GraphemeBreakTest.txt: New file.
61287         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
61289 2010-12-27  Bruno Haible  <bruno@clisp.org>
61291         linkat test: Avoid failure on Solaris 11 2010-11.
61292         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
61294 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61296         utimens: work around glibc rounding bug on more platforms
61297         * lib/utimens.c (fdutimens): Work around rounding bug even if
61298         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
61299         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
61301 2010-12-27  Bruno Haible  <bruno@clisp.org>
61303         select tests: Improve comments.
61304         * tests/test-select.c (do_select): Add comments.
61306 2010-12-27  Bruno Haible  <bruno@clisp.org>
61308         select tests: Safer way of handling timeout.
61309         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
61310         at every invocation.
61312 2010-12-27  Bruno Haible  <bruno@clisp.org>
61314         select tests: Use 'bool' where appropriate.
61315         * tests/test-select.c (connect_to_socket): Change argument type to
61316         'bool'.
61318 2010-12-27  Bruno Haible  <bruno@clisp.org>
61320         select tests: Use existing modules.
61321         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
61322         (configure.ac): Don't test for unistd.h.
61323         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
61324         declared in <unistd.h>.
61326 2010-12-27  Bruno Haible  <bruno@clisp.org>
61328         mbrtowc: Work around a Solaris 7 bug.
61329         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
61330         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
61331         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
61332         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
61333         MBRTOWC_NULL_ARG1_BUG.
61334         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
61335         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
61336         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
61337         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
61339 2010-12-27  Jim Meyering  <meyering@redhat.com>
61341         read-file.c: tweak syntax
61342         * lib/read-file.c (fread_file): Remove space after "*" in function
61343         definitions.
61345 2010-12-27  Bruno Haible  <bruno@clisp.org>
61347         times test: Avoid gcc warnings on OSF/1.
61348         * tests/test-times.c (main): Cast printf arguments from clock_t to
61349         'long int'.
61351 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61353         utimens: work around glibc rounding bug on older Linux kernels
61354         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
61355         on Linux with a glibc whose utimes might not work, then work
61356         around a longstanding glibc bug involving rounding rather than
61357         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
61358         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61360 2010-12-26  Bruno Haible  <bruno@clisp.org>
61362         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
61363         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
61364         _GL_CXXALIAS_SYS.
61365         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61367 2010-12-26  Bruno Haible  <bruno@clisp.org>
61369         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
61370         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
61371         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
61372         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
61373         looking for the declaration.
61374         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61375         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
61376         problem.
61377         * doc/posix-functions/inet_pton.texi: Likewise.
61379 2010-12-26  Bruno Haible  <bruno@clisp.org>
61381         arpa_inet: Use the common idioms with C++ support.
61382         * lib/arpa_inet.in.h: Include c++defs.h.
61383         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
61384         support.
61385         * modules/arpa_inet (Depends-on): Add c++defs.
61386         (Makefile.am): Substitute the contents of c++defs.h.
61387         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
61388         * modules/arpa_inet-c++-tests: New file.
61389         * tests/test-arpa_inet-c++.cc: New file.
61391 2010-12-25  Bruno Haible  <bruno@clisp.org>
61393         Fix more C++ link errors on Solaris 8.
61394         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
61395         $(LIB_EACCESS).
61396         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
61397         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
61398         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
61399         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
61400         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
61402 2010-12-25  Bruno Haible  <bruno@clisp.org>
61404         printf-posix: Fix link error when a non-GCC compiler is used.
61405         * lib/stdio.in.h (printf): When not using GCC, override printf
61406         correctly.
61407         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61409 2010-12-25  Bruno Haible  <bruno@clisp.org>
61411         strerror_r-posix: Update doc.
61412         * doc/posix-functions/strerror_r.texi: Update doc about the return
61413         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
61415 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61417         utimens: simplify the logic of the previous change
61418         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
61419         This should not affect whether the test succeeds or fails.
61421         utimens: configure better on hosts with NFS clock skew
61422         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
61423         uses the clock of the local host.  It might use the clock of the
61424         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
61425         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61427 2010-12-25  Bruno Haible  <bruno@clisp.org>
61429         ptsname test: Avoid failure on Solaris.
61430         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
61431         open a pseudo-terminal; don't use BSD-style ptys.
61432         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
61434 2010-12-25  Bruno Haible  <bruno@clisp.org>
61436         ptsname: Avoid ERANGE failure on some systems.
61437         * lib/ptsname.c (buffer): Increase size.
61439 2010-12-25  Bruno Haible  <bruno@clisp.org>
61441         rename, renameat: Avoid test failures at NFS mounted locations.
61442         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
61443         so that subsequent mkdir calls succeed.
61445 2010-12-25  Bruno Haible  <bruno@clisp.org>
61447         iswblank: Fix C++ link error on Solaris 8.
61448         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
61449         _GL_FUNCDECL_SYS.
61451 2010-12-25  Bruno Haible  <bruno@clisp.org>
61453         unistd: Fix C++ link error on Solaris 8.
61454         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
61456 2010-12-25  Bruno Haible  <bruno@clisp.org>
61458         readlink doc: Mention an old glibc bug.
61459         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
61461 2010-12-25  Bruno Haible  <bruno@clisp.org>
61463         fcntl-h: Fix for use of C++ on glibc systems.
61464         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
61465         also on glibc systems in C++ mode.
61466         Reported by Gary V. Vaughan <gary@gnu.org>.
61468 2010-12-25  Bruno Haible  <bruno@clisp.org>
61470         roundl-ieee: Make it work on OSF/1 5.1 with cc.
61471         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
61473 2010-12-25  Bruno Haible  <bruno@clisp.org>
61475         truncl-ieee: Make it work on OSF/1 5.1 with cc.
61476         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
61477         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
61478         test whether truncl works according to ISO C 99 with IEC 60559.
61479         * m4/truncl-ieee.m4: New file.
61480         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
61481         m4/signbit.m4.
61482         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
61484 2010-12-25  Bruno Haible  <bruno@clisp.org>
61486         ceill-ieee: Make it work on OSF/1 5.1 with cc.
61487         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
61488         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
61489         test whether ceill works according to ISO C 99 with IEC 60559.
61490         * m4/ceill-ieee.m4: New file.
61491         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
61492         m4/signbit.m4.
61493         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
61495 2010-12-25  Bruno Haible  <bruno@clisp.org>
61497         Ensure all prerequisites of <wchar.h> are included.
61498         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
61499         before <wchar.h>.
61500         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61501         gl_MBRLEN_NUL_RETVAL): Likewise.
61502         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61503         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
61504         AC_FUNC_MBRTOWC): Likewise.
61505         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61506         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61507         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61508         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
61509         Likewise.
61510         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61511         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
61512         (gl_WCHAR_H): Improve comments.
61513         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
61515 2010-12-25  Bruno Haible  <bruno@clisp.org>
61517         strtok_r: Fix C syntax error in autoconf macro.
61518         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
61519         characters in test program.
61521 2010-12-24  Bruno Haible  <bruno@clisp.org>
61523         ceil, trunc, round: Fix gcc warnings.
61524         * lib/ceil.c (MIN): Undefine before redefining.
61525         * lib/trunc.c (MIN): Likewise.
61526         * lib/round.c (MIN): Likewise.
61527         Include <math.h> first.
61529 2010-12-24  Bruno Haible  <bruno@clisp.org>
61531         select tests: Avoid failures on OSF/1 5.1.
61532         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
61533         failure of closing the last socket; it may fail with ECONNRESET.
61535 2010-12-24  Eric Blake  <eblake@redhat.com>
61537         stdint: avoid HP-UX 10.20 preprocessor bug
61538         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
61539         than #if.
61540         * tests/test-floor2.c (main): Likewise.
61541         Reported by Peter O'Gorman.
61543         pipe: make obsoletion transition easier
61544         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
61545         * modules/pipe (Files): Include revived file.
61546         (Include): Drop reference, to mirror getdate's behavior.
61548 2010-12-24  Bruno Haible  <bruno@clisp.org>
61550         sys_socket: Hide mismatch of declarations on NonStop Kernel.
61551         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
61552         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
61553         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61555 2010-12-24  Bruno Haible  <bruno@clisp.org>
61557         gethostname: Ensure declaration on NonStop Kernel.
61558         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
61559         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61561 2010-12-24  Bruno Haible  <bruno@clisp.org>
61563         sys_select: Ensure all necessary types on NonStop Kernel.
61564         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
61565         include <sys/time.h>.
61566         * doc/posix-headers/sys_select.texi: Mention that it's missing on
61567         NonStop Kernel.
61568         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61570 2010-12-24  Bruno Haible  <bruno@clisp.org>
61572         sys_select: Remove unneeded include.
61573         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
61574         have <sys/select.h>.
61576 2010-12-24  Bruno Haible  <bruno@clisp.org>
61578         gethostname: Provide a fallback for HOST_NAME_MAX.
61579         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
61580         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
61581         instead.
61582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61584 2010-12-24  Bruno Haible  <bruno@clisp.org>
61586         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
61587         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
61588         (SA_RESTART): Likewise.
61589         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61591 2010-12-24  Bruno Haible  <bruno@clisp.org>
61593         signal: Define NSIG.
61594         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
61595         * tests/test-signal.c (nsig): New variable.
61596         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61598 2010-12-24  Bruno Haible  <bruno@clisp.org>
61600         rename, renameat: Avoid test failures on OSF/1 5.1.
61601         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
61602         alternative error codes.
61603         * tests/test-renameat.c (main): Likewise.
61605 2010-12-24  Bruno Haible  <bruno@clisp.org>
61607         *printf: Detect large precisions bug on Solaris 10/SPARC.
61608         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
61609         by Paul Eggert.
61610         * tests/test-snprintf-posix.h (test_function): Add this test code here
61611         too.
61612         * tests/test-sprintf-posix.h (test_function): Likewise.
61613         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61614         * tests/test-vasprintf-posix.c (test_function): Likewise.
61615         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
61616         around by gnulib.
61617         * doc/posix-functions/printf.texi: Likewise.
61618         * doc/posix-functions/snprintf.texi: Likewise.
61619         * doc/posix-functions/sprintf.texi: Likewise.
61620         * doc/posix-functions/vfprintf.texi: Likewise.
61621         * doc/posix-functions/vprintf.texi: Likewise.
61622         * doc/posix-functions/vsnprintf.texi: Likewise.
61623         * doc/posix-functions/vsprintf.texi: Likewise.
61624         * doc/posix-functions/dprintf.texi: Undo last commit.
61625         * doc/posix-functions/vdprintf.texi: Likewise.
61627 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61629         tests: port test-fdutimensat.c to Solaris 8
61630         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
61631         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
61632         On Solaris 8, it fails with errno == ENOSYS, because there is no
61633         futimens (so it can't use the fd), and there is no lutimens (so it
61634         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
61636         vsnprintf: make more consistent with snprintf; doc fixes
61638         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
61639         the byte count return problem was promoted from the snprintf-posix
61640         to the snprintf module.
61641         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
61642         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
61643         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
61644         * tests/test-snprintf.c (main): Check the byte count returned.
61645         * tests/test-vsnprintf.c (main): Likewise.
61647 2010-12-23  Eric Blake  <eblake@redhat.com>
61649         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
61650         * modules/sigpipe (License): Relax license.
61652 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61654         doc: document Solaris printf bug with large float precisions
61655         * doc/posix-functions/dprintf.texi (dprintf):
61656         * doc/posix-functions/fprintf.texi (fprintf):
61657         * doc/posix-functions/printf.texi (printf):
61658         * doc/posix-functions/snprintf.texi (snprintf):
61659         * doc/posix-functions/sprintf.texi (sprintf):
61660         * doc/posix-functions/vdprintf.texi (vdprintf):
61661         * doc/posix-functions/vfprintf.texi (vfprintf):
61662         * doc/posix-functions/vprintf.texi (vprintf):
61663         * doc/posix-functions/vsnprintf.texi (vsnprintf):
61664         * doc/posix-functions/vsprintf.texi (vsprintf):
61665         Mention that these functions mishandle large floating point
61666         precisions on Solaris 10.  The same bug is also present in Solaris
61667         8, and I assume earlier.  This causes "cd gnulib-tests; make
61668         check" to fail on Solaris 8 (and I assume, later) when building
61669         the latest coreutils, in test-vasprintf-posix's call to
61670         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
61671         the wide flavors (e.g., wprintf) so this patch just updates the
61672         documentation for the narrow ones.
61674         test-posixtm.c: add two tests
61675         * tests/test-posixtm.c: Add two tests, to highlight the
61676         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
61677         around this bug; this is merely to document it.
61679 2010-12-22  Bruno Haible  <bruno@clisp.org>
61681         getlogin_r: Work around portability problem on OSF/1.
61682         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
61683         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
61684         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
61685         test for a truncated result.
61686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
61687         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
61688         * modules/getlogin_r (Depends-on): Add memchr.
61689         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
61691 2010-12-22  Bruno Haible  <bruno@clisp.org>
61693         ptsname: Avoid test failure on OSF/1 5.1.
61694         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
61695         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
61696         (same_slave): New function.
61697         (main): Use it to compare ptsname's result with the expected file name.
61699 2010-12-22  Bruno Haible  <bruno@clisp.org>
61701         Port extended stdio modules to HP NonStop Kernel.
61702         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
61703         macros.
61704         * lib/fbufmode.c: Update comments.
61705         * lib/fflush.c: Likewise.
61706         * lib/fpurge.c: Likewise.
61707         * lib/freadable.c: Likewise.
61708         * lib/freadahead.c: Likewise.
61709         * lib/freading.c: Likewise.
61710         * lib/freadptr.c: Likewise.
61711         * lib/freadseek.c: Likewise.
61712         * lib/fseeko.c: Likewise.
61713         * lib/fseterr.c: Likewise.
61714         * lib/fwritable.c: Likewise.
61715         * lib/fwriting.c: Likewise.
61716         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61718 2010-12-22  Bruno Haible  <bruno@clisp.org>
61720         ttyname_r: Work around bug on OSF/1 5.1.
61721         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
61722         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
61723         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
61724         present.
61725         * lib/ttyname_r.c (ttyname_r): Update comments.
61727 2010-12-22  Bruno Haible  <bruno@clisp.org>
61729         round: Implement result sign according to IEEE 754.
61730         * lib/round.c (MIN, MINUS_ZERO): New macros.
61731         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
61732         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
61733         * tests/test-round-ieee.c (main): Likewise.
61734         * tests/test-roundl-ieee.c (main): Likewise.
61736         trunc: Implement result sign according to IEEE 754.
61737         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
61738         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
61739         * tests/test-trunc2.c: Include minus-zero.h.
61740         (MINUS_ZERO): New macro.
61741         (trunc_reference): Keep in sync with lib/trunc.c.
61742         * tests/test-truncf2.c: Include minus-zero.h.
61743         (MINUS_ZERO): New macro.
61744         (truncf_reference): Keep in sync with lib/trunc.c.
61745         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
61746         * tests/test-trunc-ieee.c (main): Likewise.
61747         * tests/test-truncl-ieee.c (main): Likewise.
61749         ceil: Implement result sign according to IEEE 754.
61750         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
61751         (FUNC): Return -0.0 for -1 < x < 0.
61752         * tests/test-ceil2.c: Include minus-zero.h.
61753         (MINUS_ZERO): New macro.
61754         (ceil_reference): Keep in sync with lib/ceil.c.
61755         * tests/test-ceilf2.c: Include minus-zero.h.
61756         (MINUS_ZERO): New macro.
61757         (ceilf_reference): Keep in sync with lib/ceil.c.
61758         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
61759         * tests/test-ceil-ieee.c (main): Likewise.
61760         * tests/test-ceill-ieee.c (main): Likewise.
61762         floor: Implement result sign according to IEEE 754.
61763         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
61764         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
61765         * tests/test-floorf2.c (floorf_reference): Likewise.
61766         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
61767         * tests/test-floor-ieee.c (main): Likewise.
61768         * tests/test-floorl-ieee.c (main): Likewise.
61770 2010-12-22  Bruno Haible  <bruno@clisp.org>
61772         getaddrinfo: Update doc.
61773         * doc/posix-functions/gai_strerror.texi: Return type is also different
61774         on AIX and HP-UX.
61776 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61778         getaddrinfo, inet_ntop: Update doc for Solaris.
61779         * doc/posix-functions/gai_strerror.texi: Return type is also an
61780         issue on Solaris 9 and earlier.
61781         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
61782         on Solaris 10 and earlier.
61784 2010-12-21  Bruno Haible  <bruno@clisp.org>
61786         New module 'roundl-ieee'.
61787         * modules/roundl-ieee: New file.
61788         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
61789         test whether roundl works according to ISO C 99 with IEC 60559.
61790         * m4/roundl-ieee.m4: New file.
61791         * modules/roundl-ieee-tests: New file.
61792         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
61793         * tests/test-roundl.c (main): Remove signbit tests.
61794         * modules/roundl-tests (Depends-on): Remove signbit.
61795         * doc/posix-functions/roundl.texi: Mention the new module.
61797 2010-12-21  Bruno Haible  <bruno@clisp.org>
61799         New module 'truncl-ieee'.
61800         * modules/truncl-ieee: New file.
61801         * modules/truncl-ieee-tests: New file.
61802         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
61803         * tests/test-truncl.c (main): Remove signbit tests.
61804         * modules/truncl-tests (Depends-on): Remove signbit.
61805         * doc/posix-functions/truncl.texi: Mention the new module.
61807 2010-12-21  Bruno Haible  <bruno@clisp.org>
61809         New module 'ceill-ieee'.
61810         * modules/ceill-ieee: New file.
61811         * modules/ceill-ieee-tests: New file.
61812         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
61813         * tests/test-ceill.c (main): Remove signbit tests.
61814         * modules/ceill-tests (Depends-on): Remove signbit.
61815         * doc/posix-functions/ceill.texi: Mention the new module.
61817 2010-12-21  Bruno Haible  <bruno@clisp.org>
61819         New module 'floorl-ieee'.
61820         * modules/floorl-ieee: New file.
61821         * modules/floorl-ieee-tests: New file.
61822         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
61823         * tests/test-floorl.c (main): Remove signbit tests.
61824         * modules/floorl-tests (Depends-on): Remove signbit.
61825         * doc/posix-functions/floorl.texi: Mention the new module.
61827 2010-12-21  Bruno Haible  <bruno@clisp.org>
61829         New module 'round-ieee'.
61830         * modules/round-ieee: New file.
61831         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
61832         whether round works according to ISO C 99 with IEC 60559.
61833         * m4/round-ieee.m4: New file.
61834         * modules/round-ieee-tests: New file.
61835         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
61836         * tests/test-round1.c (main): Remove signbit tests.
61837         * modules/round-tests (Depends-on): Remove 'signbit'.
61838         * doc/posix-functions/round.texi: Mention the new module.
61840 2010-12-21  Bruno Haible  <bruno@clisp.org>
61842         New module 'trunc-ieee'.
61843         * modules/trunc-ieee: New file.
61844         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
61845         whether trunc works according to ISO C 99 with IEC 60559.
61846         * m4/trunc-ieee.m4: New file.
61847         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
61848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
61849         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
61850         * modules/trunc-ieee-tests: New file.
61851         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
61852         * tests/test-trunc1.c (main): Remove signbit tests.
61853         * modules/trunc-tests (Depends-on): Remove 'signbit'.
61854         * doc/posix-functions/trunc.texi: Mention the new module.
61856 2010-12-21  Bruno Haible  <bruno@clisp.org>
61858         New module 'ceil-ieee'.
61859         * modules/ceil-ieee: New file.
61860         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
61861         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
61862         ISO C 99 with IEC 60559.
61863         * m4/ceil-ieee.m4: New file.
61864         * modules/ceil (Files): Add lib/ceil.c.
61865         (Depends-on): Add 'float'.
61866         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61867         * lib/math.in.h (ceil): New declaration.
61868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
61869         REPLACE_CEIL.
61870         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
61871         * modules/ceil-ieee-tests: New file.
61872         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
61873         * tests/test-math-c++.cc: Check the signature of 'ceil'.
61874         * doc/posix-functions/ceil.texi: Mention the new module.
61876 2010-12-21  Bruno Haible  <bruno@clisp.org>
61878         New module 'floor-ieee'.
61879         * modules/floor-ieee: New file.
61880         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
61881         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
61882         ISO C 99 with IEC 60559.
61883         * m4/floor-ieee.m4: New file.
61884         * modules/floor (Files): Add lib/floor.c.
61885         (Depends-on): Add 'float'.
61886         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61887         * lib/math.in.h (floor): New declaration.
61888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
61889         REPLACE_FLOOR.
61890         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
61891         * modules/floor-ieee-tests: New file.
61892         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
61893         * tests/test-math-c++.cc: Check the signature of 'floor'.
61894         * doc/posix-functions/floor.texi: Mention the new module.
61896 2010-12-21  Bruno Haible  <bruno@clisp.org>
61898         New module 'roundf-ieee'.
61899         * modules/roundf-ieee: New file.
61900         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
61901         test whether roundf works according to ISO C 99 with IEC 60559.
61902         * m4/roundf-ieee.m4: New file.
61903         * modules/roundf-ieee-tests: New file.
61904         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
61905         * tests/test-roundf1.c (main): Remove signbit tests.
61906         * modules/roundf-tests (Depends-on): Remove 'signbit'.
61907         * doc/posix-functions/roundf.texi: Mention the new module.
61909 2010-12-21  Bruno Haible  <bruno@clisp.org>
61911         New module 'truncf-ieee'.
61912         * modules/truncf-ieee: New file.
61913         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
61914         test whether truncf works according to ISO C 99 with IEC 60559.
61915         * m4/truncf-ieee.m4: New file.
61916         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
61917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
61918         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
61919         * modules/truncf-ieee-tests: New file.
61920         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
61921         * tests/test-truncf1.c (main): Remove signbit tests.
61922         * modules/truncf-tests (Depends-on): Remove 'signbit'.
61923         * doc/posix-functions/truncf.texi: Mention the new module.
61925 2010-12-21  Bruno Haible  <bruno@clisp.org>
61927         New module 'ceilf-ieee'.
61928         * modules/ceilf-ieee: New file.
61929         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
61930         test whether ceilf works according to ISO C 99 with IEC 60559.
61931         * m4/ceilf-ieee.m4: New file.
61932         * modules/ceilf-ieee-tests: New file.
61933         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
61934         * tests/test-ceilf1.c (main): Remove signbit tests.
61935         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
61936         * doc/posix-functions/ceilf.texi: Mention the new module.
61938 2010-12-21  Bruno Haible  <bruno@clisp.org>
61940         New module 'floorf-ieee'.
61941         * modules/floorf-ieee: New file.
61942         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
61943         test whether floorf works according to ISO C 99 with IEC 60559.
61944         * m4/floorf-ieee.m4: New file.
61945         * modules/floorf-ieee-tests: New file.
61946         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
61947         * tests/test-floorf1.c (main): Remove signbit tests.
61948         * modules/floorf-tests (Depends-on): Remove 'signbit'.
61949         * doc/posix-functions/floorf.texi: Mention the new module.
61951 2010-12-21  Bruno Haible  <bruno@clisp.org>
61953         Support for minus zero in autoconf macros.
61954         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
61955         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
61956         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
61957         * tests/minus-zero.h: Update comments.
61959 2010-12-21  Bruno Haible  <bruno@clisp.org>
61961         Tests for module 'ceil'.
61962         * modules/ceil-tests: New file.
61963         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
61964         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
61966 2010-12-21  Bruno Haible  <bruno@clisp.org>
61968         Tests for module 'floor'.
61969         * modules/floor-tests: New file.
61970         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
61971         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
61973 2010-12-21  Bruno Haible  <bruno@clisp.org>
61975         math: Fix indentation.
61976         * lib/math.in.h (floorf): Fix indentation.
61978 2010-12-21  Bruno Haible  <bruno@clisp.org>
61980         Fix cross-compilation guesses on Solaris.
61981         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
61982         not match "solaris2.10".
61983         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61984         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
61985         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
61987 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61989         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
61990         This fixes a problem observed with the latest coreutils snapshot
61991         that caused a test to fail on Solaris 8.  src/csplit.c's call
61992         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
61993         earlier, instead of returning the number of bytes that would have
61994         been generated; this causes csplit to incorrectly report memory
61995         exhaustion.
61996         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
61997         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
61998         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
61999         comments to match.
62000         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
62001         Fix typo in matching older versions of Solaris: "solaris2.10"
62002         is matched by the shell pattern "solaris2.[0-9]*".  This matters
62003         only for guessing while cross-compiling.
62004         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
62006 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
62008         ftoastr: fix comment again
62009         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62010         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
62011         Also, simplify example a bit by using flags = 0.
62013 2010-12-20  Bruno Haible  <bruno@clisp.org>
62015         round*, trunc*: Update documentation regarding glibc.
62016         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
62017         * doc/posix-functions/round.texi: Likewise.
62018         * doc/posix-functions/roundl.texi: Likewise.
62019         * doc/posix-functions/truncf.texi: Likewise.
62020         * doc/posix-functions/trunc.texi: Likewise.
62021         * doc/posix-functions/truncl.texi: Likewise.
62023 2010-12-20  Bruno Haible  <bruno@clisp.org>
62025         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
62026         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
62027         * doc/posix-functions/round.texi: Likewise.
62028         * doc/posix-functions/roundl.texi: Likewise.
62030 2010-12-20  Bruno Haible  <bruno@clisp.org>
62032         ttyname_r: Add missing declaration on HP-UX 11.
62033         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
62034         HAVE_TTYNAME_R.
62035         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
62036         declared. Set HAVE_TTYNAME_R always.
62037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62038         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
62039         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
62040         HAVE_TTYNAME_R.
62041         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
62043 2010-12-20  Bruno Haible  <bruno@clisp.org>
62045         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
62046         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
62047         * doc/posix-functions/getlogin_r.texi: Likewise.
62048         * tests/test-getlogin.c: Include <errno.h>.
62049         (main): Avoid test failure on HP-UX 11.11.
62050         * tests/test-getlogin_r.c (main): Likewise.
62052 2010-12-20  Bruno Haible  <bruno@clisp.org>
62054         getlogin_r: Add missing declaration on HP-UX 11.
62055         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
62056         declared also when it exists as a function.
62057         * doc/posix-functions/getlogin_r.texi: Document this workaround.
62059 2010-12-20  Bruno Haible  <bruno@clisp.org>
62061         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
62062         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
62063         through wcrtomb.
62065 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62067         ftoastr: fix comment
62068         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62069         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
62071 2010-12-19  Bruno Haible  <bruno@clisp.org>
62073         isnan: Ensure it is a macro.
62074         * lib/math.in.h (isnan): Define as a macro if not already a macro.
62075         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
62076         Solaris.
62078 2010-12-19  Bruno Haible  <bruno@clisp.org>
62080         ldexpl test: Fix link error on OSF/1 5.1.
62081         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
62083 2010-12-19  Bruno Haible  <bruno@clisp.org>
62085         wctype: Make it work in C++ mode on OSF/1 5.1.
62086         * lib/wctype.in.h (iswblank): Declare but not define here.
62087         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
62088         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
62089         * modules/wctype (Files): Add lib/iswblank.c.
62091 2010-12-19  Bruno Haible  <bruno@clisp.org>
62093         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
62094         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
62095         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
62097 2010-12-19  Bruno Haible  <bruno@clisp.org>
62099         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
62100         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
62101         _POSIX_PII_SOCKET.
62102         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
62103         * doc/posix-functions/recvfrom.texi: Likewise.
62104         * doc/posix-functions/send.texi: Likewise.
62105         * doc/posix-functions/sendto.texi: Likewise.
62107 2010-12-19  Bruno Haible  <bruno@clisp.org>
62109         tcgetsid: Add missing declaration on OSF/1 5.1.
62110         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
62111         HAVE_TCGETSID.
62112         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
62113         Don't set HAVE_TCGETSID.
62114         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
62115         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
62116         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
62117         HAVE_TCGETSID.
62118         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
62120 2010-12-19  Bruno Haible  <bruno@clisp.org>
62122         stdio: Fix problem with popen() declaration on OSF/1 5.1.
62123         * lib/stdio.in.h: During the include_next statement, let recursive
62124         includes of this file include only the system header file.
62126 2010-12-19  Bruno Haible  <bruno@clisp.org>
62128         iconv_open: Fix regression from 2010-12-04.
62129         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
62130         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
62132 2010-12-19  Bruno Haible  <bruno@clisp.org>
62134         stdbool test: Avoid a gcc warning.
62135         * tests/test-stdbool.c (main): Fail if e1 is false.
62136         Reported by Jim Meyering.
62138 2010-12-19  Jim Meyering  <meyering@redhat.com>
62140         setenv: restore to working order
62141         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
62142         mistakenly removed.
62143         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
62144         HAVE_SETENV.
62145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
62146         HAVE_SETENV.
62148 2010-12-19  Bruno Haible  <bruno@clisp.org>
62150         Document some different function declarations on OSF/1 5.1.
62151         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
62152         * doc/posix-functions/inet_ntop.texi: Likewise.
62153         * doc/posix-functions/gethostname.texi: Likewise.
62154         * lib/unistd.in.h (gethostname): Update comment.
62156 2010-12-19  Bruno Haible  <bruno@clisp.org>
62158         doc: Mention vasprintf-posix module.
62159         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
62160         the 'vasprintf-posix' module.
62161         * doc/glibc-functions/vasprintf.texi: Likewise.
62163 2010-12-19  Bruno Haible  <bruno@clisp.org>
62165         unsetenv: Add missing declaration on OSF/1 5.1.
62166         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
62167         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
62168         Don't set HAVE_UNSETENV. In the test program, set _BSD.
62169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
62170         not HAVE_UNSETENV.
62171         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
62172         HAVE_UNSETENV.
62173         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
62175 2010-12-19  Bruno Haible  <bruno@clisp.org>
62177         setenv: Add missing declaration on OSF/1 5.1.
62178         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
62179         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
62180         declared. Don't set HAVE_SETENV.
62181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
62182         not HAVE_SETENV.
62183         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
62184         HAVE_SETENV.
62185         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
62187 2010-12-19  Bruno Haible  <bruno@clisp.org>
62189         nl_langinfo tests: Avoid gcc warning.
62190         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
62192 2010-12-19  Bruno Haible  <bruno@clisp.org>
62194         mknod: Avoid error in C++ mode on OSF/1 with GCC.
62195         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
62196         _GL_CXXALIAS_SYS.
62198 2010-12-19  Bruno Haible  <bruno@clisp.org>
62200         stdbool: Relax test.
62201         * tests/test-stdbool.c (e): Don't require that casts from a variable's
62202         address to 'bool' work in static initializer, for compilers other than
62203         GCC.
62205 2010-12-19  Bruno Haible  <bruno@clisp.org>
62207         ftello: Add missing declaration on OSF/1 5.1.
62208         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
62209         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
62210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
62211         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
62212         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
62214 2010-12-19  Bruno Haible  <bruno@clisp.org>
62216         fseeko: Add missing declaration on OSF/1 5.1.
62217         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
62218         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
62219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
62220         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
62221         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
62223 2010-12-19  Bruno Haible  <bruno@clisp.org>
62225         fchdir: Add missing declaration on OSF/1 5.1.
62226         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
62227         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
62228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
62229         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
62230         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
62232 2010-12-19  Bruno Haible  <bruno@clisp.org>
62234         relocatable-prog-wrapper: Separate from relocatable-prog.
62235         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
62236         uninstall-relocwrapper rule here.
62237         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
62238         Reported by Ian Beckwith <ianb@erislabs.net>.
62240 2010-12-19  Bruno Haible  <bruno@clisp.org>
62242         unistr/u8-mbsnlen: Add missing dependency.
62243         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
62244         Reported by Ian Beckwith <ianb@erislabs.net>.
62246 2010-12-19  Bruno Haible  <bruno@clisp.org>
62248         iconv: Make it possible again to use this module without 'iconv-h'.
62249         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
62250         if it is not defined.
62251         Reported by Ian Beckwith <ianb@erislabs.net>.
62253 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62255         acl: port to Solaris 8 when copying from tmpfs to ufs
62256         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
62257         error number.  Problem observed on Solaris 8 with latest
62258         coreutils, with "mv A B", where A is on a tmpfs file system and B
62259         is on a ufs file system.  This caused coreutils' mv/part-symlink
62260         test to fail.
62262         tests: set fail=0 at start
62263         * tests/init.sh (setup_): Move fail=0 initialization here ...
62264         (mktempd_): ... from here, so that tests can rely on fail being
62265         set to 0 initially.  This fixes a problem in coreutils; see:
62266         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
62268 2010-12-18  Bruno Haible  <bruno@clisp.org>
62270         memmem-simple: Stylistic changes.
62271         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
62272         Fix preprocessor directive indentation.
62274 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62276         memmem, memmem-simple: reorganize and expand empty needle check
62277         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
62278         functional checks to memmem-simple so that one has a fully functional
62279         memmem by using just this module.
62280         Restrict the performance only check to the memmem module.
62281         Also expand the empty needle check to ensure the correct
62282         pointer is returned, not just a non NULL pointer.
62283         * doc/glibc-functions/memmem.texi: Rearrange the portability
62284         documentation to correlate with the rearranged checks.
62285         Clarify exactly how the memmem and memmem-simple modules
62286         relate to each other.
62288 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62289             Bruno Haible  <bruno@clisp.org>
62291         Improve cross-compilation guesses for uClibc.
62292         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
62293         that uClibc does not have the glibc bug.
62294         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
62295         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
62297 2010-12-14  Eric Blake  <eblake@redhat.com>
62299         configmake: provide fallbacks for oldest supported autotools
62300         * m4/configmake.m4: New file.
62301         * modules/configmake (Files): Ship it.
62302         (configure.ac): Use it to guarantee fallbacks.
62304 2010-12-13  Pádraig Brady  <P@draigBrady.com>
62306         read-file: Improve handling of large files
62307         * lib/read-file.c (fread_file): Minimize realloc()s
62308         for regular files, and better manage sizes around SIZE_MAX.
62310 2010-12-13  Eric Blake  <eblake@redhat.com>
62312         cloexec, fcntl: relax license
62313         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
62314         consent from all contributors.
62315         * modules/fcntl (License): Likewise.
62317 2010-12-10  Bruno Haible  <bruno@clisp.org>
62319         Tests for module 'pipe-posix'.
62320         * modules/pipe-posix-tests: New file.
62321         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
62323 2010-12-10  Bruno Haible  <bruno@clisp.org>
62325         pipe-posix: Make it work in C++ mode.
62326         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
62327         (pipe): Use common idiom, not a macro definition.
62328         * lib/pipe.c: New file.
62329         * m4/pipe.m4: New file.
62330         * modules/pipe-posix (Description): Enhance.
62331         (Files): Add lib/pipe.c, m4/pipe.m4.
62332         (configure.ac): Invoke gl_FUNC_PIPE.
62333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
62334         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
62335         * tests/test-unistd-c++.cc: Check the signature of pipe.
62337 2010-12-10  Bruno Haible  <bruno@clisp.org>
62339         Rename module 'pipe' to 'spawn-pipe'.
62340         * modules/spawn-pipe: New file, renamed from modules/pipe.
62341         (Files, configure.ac, Makefile.am): Update.
62342         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
62343         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
62344         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
62345         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
62346         "spawn-pipe.h" instead of "pipe.h".
62347         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
62348         to gl_SPAWN_PIPE.
62349         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
62350         (Files, Makefile.am): Update.
62351         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
62352         Update.
62353         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
62354         Include "spawn-pipe.h" instead of "pipe.h".
62355         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
62356         * lib/javacomp.c: Likewise.
62357         * lib/javaversion.c: Likewise.
62358         * lib/pipe-filter-gi.c: Likewise.
62359         * lib/pipe-filter-ii.c: Likewise.
62360         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
62361         * modules/javacomp (Depends-on): Likewise.
62362         * modules/javaversion (Depends-on): Likewise.
62363         * modules/pipe-filter-gi (Depends-on): Likewise.
62364         * modules/pipe-filter-ii (Depends-on): Likewise.
62365         * MODULES.html.sh (Executing programs): Update.
62366         * NEWS: Mention the change.
62368 2010-12-10  Eric Blake  <eblake@redhat.com>
62370         pipe-posix: new module
62371         * modules/pipe-posix: New file.
62372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
62373         (gl_UNISTD_H): Check for declaration.
62374         * modules/unistd (Makefile.am): Substitute it.
62375         * lib/unistd.in.h (pipe): Provide it for mingw.
62376         * doc/posix-functions/pipe.texi (pipe): Update documentation.
62377         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
62379 2010-12-07  Bruno Haible  <bruno@clisp.org>
62381         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
62382         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
62383         u8_strcmp_gnu.
62384         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
62386 2010-12-06  Bruno Haible  <bruno@clisp.org>
62388         Update internal documentation.
62389         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
62391 2010-12-04  Bruno Haible  <bruno@clisp.org>
62393         Put more information about failed tests into the test return codes.
62394         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
62395         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
62396         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62397         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62398         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
62399         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62400         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62401         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62402         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
62403         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62404         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
62405         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62406         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
62407         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62408         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
62409         returns a bit mask.
62410         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
62411         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
62412         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
62413         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
62414         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
62415         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62416         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62418         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62419         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62420         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62421         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62422         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62423         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62424         * m4/link.m4 (gl_FUNC_LINK): Likewise.
62425         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
62426         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
62427         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
62428         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62429         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
62430         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62431         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62432         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
62433         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62434         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62435         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
62436         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
62437         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62438         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62439         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
62440         gl_PRINTF_PRECISION): Likewise.
62441         * m4/regex.m4 (gl_REGEX): Likewise.
62442         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62443         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
62444         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
62445         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
62446         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62448         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
62449         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
62450         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62451         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62452         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
62453         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
62454         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62455         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62456         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
62457         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62458         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
62459         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62461         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
62462         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
62463         enumerated value.
62464         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
62466 2010-12-04  Bruno Haible  <bruno@clisp.org>
62468         Update for Solaris 11 2010-11.
62469         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
62470         Express, released in November 2010.
62472 2010-12-04  Bruno Haible  <bruno@clisp.org>
62474         nproc: Relax license.
62475         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
62476         and Paul Eggert.
62477         Requested by Ludovic Courtès <ludo@gnu.org>.
62479 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62481         utimecmp: fine-grained src to nearby coarse-grained dest
62483         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
62484         and the source is on a file system with higher-resolution time
62485         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
62486         not work, and the time stamps are close together, the algorithm to
62487         determine the exact resolution from the read-back mtime was buggy:
62488         it had a "!=" where it should have had an "==".  This bug has been
62489         in the code ever since it was introduced to gnulib.
62490         Problem reported by Dan Jacobson in
62491         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
62493 2010-11-30  Bruno Haible  <bruno@clisp.org>
62495         strerror_r-posix: Fix autoconf test.
62496         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
62498 2010-11-28  Bruno Haible  <bruno@clisp.org>
62499             Paul Eggert  <eggert@cs.ucla.edu>
62501         Tests for module 'getdomainname'.
62502         * modules/getdomainname-tests: New file.
62503         * tests/test-getdomainname.c: New file, based on
62504         tests/test-gethostname.c.
62506 2010-11-28  Bruno Haible  <bruno@clisp.org>
62507             Paul Eggert  <eggert@cs.ucla.edu>
62509         getdomainname: Use the system function when possible.
62510         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
62511         (getdomainname): Replace if needed. Provide the declaration if it is
62512         missing. Don't use _GL_CXXALIAS_SYS_CAST.
62513         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
62514         (getdomainname): When the system has getdomainname, call the system
62515         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
62516         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
62517         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
62518         found in libnsl. Look for the declaration also in <netdb.h>. Replace
62519         the function if its second argument is of type 'int' or if it is found
62520         in libnsl.
62521         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
62522         <sys/systeminfo.h> and sysinfo().
62523         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
62524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62525         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
62526         HAVE_GETDOMAINNAME.
62527         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
62528         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
62529         * doc/glibc-functions/getdomainname.texi: Document the problems with
62530         the getdomainname declaration.
62532 2010-11-28  Bruno Haible  <bruno@clisp.org>
62534         sys_socket: Ensure ss_family field on AIX.
62535         * lib/sys_socket.in.h (ss_family): New macro definition.
62536         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
62537         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
62538         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62539         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62540         * modules/sys_socket (Makefile.am): Substitute
62541         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62542         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
62544 2010-11-27  Bruno Haible  <bruno@clisp.org>
62546         readline: Improve configure output.
62547         * m4/readline.m4 (gl_FUNC_READLINE): Make the
62548         "checking for readline..." result understandable.
62550 2010-11-27  Bruno Haible  <bruno@clisp.org>
62552         *printf-posix: Detect a bug on Solaris 10/x86.
62553         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
62554         for floating-point output.
62555         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
62556         directive.
62557         * tests/test-snprintf-posix.h (test_function): Likewise.
62558         * tests/test-sprintf-posix.h (test_function): Likewise.
62559         * tests/test-vasprintf-posix.c (test_function): Likewise.
62560         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
62561         * doc/posix-functions/printf.texi: Likewise.
62562         * doc/posix-functions/snprintf.texi: Likewise.
62563         * doc/posix-functions/sprintf.texi: Likewise.
62564         * doc/posix-functions/vfprintf.texi: Likewise.
62565         * doc/posix-functions/vprintf.texi: Likewise.
62566         * doc/posix-functions/vsnprintf.texi: Likewise.
62567         * doc/posix-functions/vsprintf.texi: Likewise.
62568         * doc/glibc-functions/obstack_printf.texi: Likewise.
62569         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
62571 2010-11-27  Bruno Haible  <bruno@clisp.org>
62573         Fix link error when module libunistring-optional is in use.
62574         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
62575         * modules/striconveha-tests (Makefile.am): Likewise.
62577 2010-11-27  Bruno Haible  <bruno@clisp.org>
62579         regex: Mention link dependencies.
62580         * modules/regex (Link): New section.
62581         * modules/rpmatch (Link): Likewise.
62582         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
62584 2010-11-27  Bruno Haible  <bruno@clisp.org>
62586         ftoastr: Fix compilation error on Solaris.
62587         * lib/ftoastr.c: Include <config.h>.
62589 2010-11-27  Bruno Haible  <bruno@clisp.org>
62591         getloadavg: Update documentation.
62592         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
62594 2010-11-27  Bruno Haible  <bruno@clisp.org>
62596         sys_socket: Fix test whether the functions are declared.
62597         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
62598         not <sys/select.h>.
62600 2010-11-27  Bruno Haible  <bruno@clisp.org>
62602         getpass: Make sure to get system declaration on some platforms.
62603         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
62604         gl_USE_SYSTEM_EXTENSIONS.
62605         * modules/getpass (Depends-on): Add extensions.
62607 2010-11-26  Bruno Haible  <bruno@clisp.org>
62609         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
62610         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
62611         'iconv' module is present.
62612         (ICONV_CONST): New macro.
62613         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
62614         ICONV_CONST.
62615         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
62616         set ICONV_CONST.
62617         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
62618         here.
62619         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
62620         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
62621         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
62622         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
62623         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
62624         present.
62626 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62628         ftoastr: comment fix
62629         * lib/ftoastr.c: "little" -> "little or no" in comment
62631 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
62633         stdint: port to GCC 4.3 + OSX + Octave
62634         On this platform, stdint.h is buggy and defines int64_t to long
62635         long int.  The replacement defined it to long int, causing
62636         problems with C++ style name mangling.  Instead, trust the system
62637         definition if INT64_MAX is defined, and likewise for the unsigned
62638         variant.   Problem reported by Jarno Rajahalme in
62639         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
62640         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
62641         and don't mess with int64_t and INT64_MAX in this case.
62642         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
62644 2010-11-24  Bruno Haible  <bruno@clisp.org>
62646         doc: Corrections regarding MacOS X 10.4 and 10.5.
62647         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
62648         MacOS X.
62649         Reported by Simon Josefsson.
62651 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
62653         Uninstall ".bin" files installed by relocwrapper.
62654         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
62655         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
62656         unless it is already there.
62658 2010-11-21  Bruno Haible  <bruno@clisp.org>
62660         Update for NetBSD 5.0.
62661         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62662         NetBSD; the test fails on NetBSD 5.0.
62663         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62664         about NetBSD.
62666 2010-11-21  Bruno Haible  <bruno@clisp.org>
62668         Update for HP-UX 11.23 and HP-UX 11.31.
62669         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
62670         HP-UX.
62672 2010-11-21  Bruno Haible  <bruno@clisp.org>
62674         Update for MacOS X 10.5.
62675         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62676         MacOS X; the test fails on MacOS X 10.5.8.
62677         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62678         about MacOS X.
62680 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
62682         bootstrap: add bootstrap_sync option.
62683         See discussion at
62684         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
62685         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
62686         * build-aux/bootstrap: Accept --bootstrap-sync to update
62687         bootstrap if it is not identical to the local gnulib's
62688         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
62689         enable this by default.  Accept --no-bootstrap-sync to disable
62690         it.
62692 2010-11-20  Bruno Haible  <bruno@clisp.org>
62694         Ensure that <features.h> is included before __GLIBC__ is tested.
62695         * lib/printf-parse.h: Include <features.h>.
62696         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
62697         Reported by Mike Frysinger <vapier@gentoo.org>.
62699         Ensure that <features.h> is included before __GLIBC__ is tested.
62700         * lib/wchar.in.h: Include <features.h>.
62701         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
62702         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
62703         Reported by Mike Frysinger <vapier@gentoo.org>.
62705         Ensure that <features.h> is included before __GLIBC__ is tested.
62706         * lib/arpa_inet.in.h: Include <features.h>.
62707         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
62708         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
62709         Reported by Mike Frysinger <vapier@gentoo.org>.
62711         Ensure that <features.h> is included before __GLIBC__ is tested.
62712         * build-aux/link-warning.h: Include <features.h>.
62713         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
62714         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
62715         Reported by Mike Frysinger <vapier@gentoo.org>.
62717         Ensure that <features.h> is included before __GLIBC__ is tested.
62718         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
62719         Reported by Mike Frysinger <vapier@gentoo.org>.
62721 2010-11-20  Bruno Haible  <bruno@clisp.org>
62723         memmem: Fix autoconf test.
62724         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
62726 2010-11-20  Bruno Haible  <bruno@clisp.org>
62728         Port to uClibc.
62729         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
62730         * lib/fcntl.in.h: Likewise.
62731         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
62732         * lib/mbrtowc.c (mbrtowc): Likewise.
62733         * lib/relocatable.c (find_shared_library_fullname): Likewise.
62734         * lib/strerror_r.c: Likewise.
62735         * lib/unistr/u8-strnlen.c: Likewise.
62736         * lib/vasnprintf.c (decimal_point_char): Likewise.
62737         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62738         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62739         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62740         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
62741         * tests/test-sigaction.c (handler, main): Likewise.
62742         * lib/freading.h: Treat uClibc like a non-glibc platform.
62743         * lib/freading.c: Likewise.
62744         * lib/gettext.h: Likewise.
62745         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
62746         Likewise.
62747         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
62748         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62749         * lib/propername.c (proper_name_utf8): Likewise.
62750         * lib/spawn.in.h: Likewise.
62751         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
62752         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
62753         mem_cd_iconveh_internal): Likewise.
62754         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
62755         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
62756         strstr, strcasestr): Likewise.
62757         * lib/unicodeio.c (unicode_to_mb): Likewise.
62758         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
62759         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
62760         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
62761         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
62762         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
62763         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
62764         * lib/unistr/u8-stpncpy.c: Likewise.
62765         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62766         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
62767         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62768         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62769         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
62770         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
62771         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
62772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
62773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
62774         Likewise.
62775         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62776         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62777         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
62778         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62779         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62780         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62781         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62782         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
62783         * tests/test-getopt.h (OPTIND_MIN): Likewise.
62784         * tests/test-striconveha.c (main): Likewise.
62785         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62786         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
62787         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
62788         * doc/posix-functions/getline.texi: Likewise.
62789         Reported by Mike Frysinger <vapier@gentoo.org>.
62791 2010-11-20  Bruno Haible  <bruno@clisp.org>
62793         nproc: Fix condition.
62794         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
62795         HAVE_PTHREAD_AFFINITY_NP.
62797 2010-11-20  Bruno Haible  <bruno@clisp.org>
62799         Fix a comment.
62800         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
62802 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
62804         ftoastr: don't assume snprintf
62805         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
62806         Implement a subset of snprintf here, by using sprintf safely.
62807         * modules/ftoastr (Depends-on): Remove snprintf.
62809 2010-11-19  Jim Meyering  <meyering@redhat.com>
62811         test-rename.h: fix compilation failure
62812         * tests/test-rename.h (test_rename): Add omitted "}".
62814 2010-11-17  Jim Meyering  <meyering@redhat.com>
62816         maint.mk: add a URL discussing the no-@acronym policy
62817         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
62819 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
62821         ftoastr: depend on snprintf, improve comments
62822         * lib/ftoastr.c: Also mention Loitsch's draft.
62823         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
62824         needed in the current implementation, but it might simplify
62825         speeding up the code later.
62826         * modules/ftoastr: Depend on snprintf; this improves portability.
62827         Suggested by Bruno Haible in the same email.
62829         ftoastr: port to hosts lacking strtof and strtold
62830         Problem reported by Bruno Haible in
62831         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
62832         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
62833         environment and strtold (and presumably strtof) are not available.
62834         * modules/ftoastr (Files): Add m4/c-strtod.m4.
62835         (configure.ac): Require gl_C99_STRTOLD.
62837 2010-11-18  Bruno Haible  <bruno@clisp.org>
62839         c-strtold: Avoid link error on AIX 7.
62840         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
62841         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
62842         (gl_C_STRTOLD): Test whether strtold_l exists.
62843         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62845 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62847         intprops: new macro INT_BITS_STRLEN_BOUND
62848         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
62849         ftoastr.h.  This exposes an internal of intprops.h that was formerly
62850         not exposed.  Also, it uses a slightly tighter bound than before;
62851         though this makes no practical difference, we might as well be as
62852         tight as we easily can.
62854         ftoastr: new module, for lossless conversion of floats to short strings
62855         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
62856         * modules/ftoastr: New files.
62858 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62860         bootstrap: port to Solaris sed
62861         * build-aux/bootstrap (get_version): Port to Solaris sed.
62862         See Ralf Wildenhues's note in
62863         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
62865 2010-11-14  Jim Meyering  <meyering@redhat.com>
62867         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
62868         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
62869         and move definition closer to sole use.
62871 2010-11-13  Jim Meyering  <meyering@redhat.com>
62873         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
62874         Now we require at least autoconf-2.59, which means the work-around
62875         is no longer needed.
62876         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
62877         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62878         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62879         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62880         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62882 2010-11-13  Bruno Haible  <bruno@clisp.org>
62884         rename, renameat: Avoid test failures at NFS mounted locations.
62885         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
62886         functions.
62887         (test_rename): Use assert_nonexistent.
62888         * tests/test-rename.c: Include <dirent.h>.
62889         * tests/test-renameat.c: Likewise.
62890         Reported by Gary V. Vaughan <gary@gnu.org>.
62892         rename, renameat: Document Linux bug with NFS
62893         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
62894         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
62895         * doc/posix-functions/renameat.texi: Likewise.
62896         Suggested by Eric Blake.
62898 2010-11-13  Bruno Haible  <bruno@clisp.org>
62900         rename test: Add comments.
62901         * tests/test-rename.h (test_rename): Add structure and comments.
62903 2010-11-13  Eric Blake  <eblake@redhat.com>
62905         maintainer-makefile: cover a few more files
62906         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
62907         scripts generated within C files, for libvirt.
62909 2010-11-13  Bruno Haible  <bruno@clisp.org>
62911         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
62912         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
62913         character, return the number of bytes that belong together, not always
62914         1.
62915         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
62916         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
62917         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
62918         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
62919         number of bytes of an invalid character.
62920         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
62921         (main): Invoke it.
62922         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
62923         results.
62924         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
62925         malformed byte sequences.
62926         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
62927         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
62928         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
62929         Reported by Ben Pfaff and Paolo Bonzini.
62931 2010-11-13  Bruno Haible  <bruno@clisp.org>
62933         openat: Work around glibc bug with fchownat() and empty file names.
62934         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
62935         (gl_FUNC_FCHOWNAT): Invoke it.
62936         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
62937         * doc/posix-functions/fchownat.texi: Document the glibc bug.
62938         Reported by Gary V. Vaughan <gary@gnu.org>.
62940 2010-11-13  Bruno Haible  <bruno@clisp.org>
62942         openat: Ensure autoconf macro ordering.
62943         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
62944         gl_USE_SYSTEM_EXTENSIONS.
62945         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
62947 2010-11-13  Bruno Haible  <bruno@clisp.org>
62949         Update comments.
62950         * lib/unistr/u8-check.c: Update file name in comments.
62951         * lib/unistr/u8-mblen.c: Likewise.
62952         * lib/unistr/u8-prev.c: Likewise.
62953         * lib/unistr/u8-strmblen.c: Likewise.
62954         * lib/unistr/u8-strmbtouc.c: Likewise.
62956 2010-11-13  Jim Meyering  <meyering@redhat.com>
62958         tests: avoid test failure on Solaris 10 due to lack of PATH export
62959         * tests/test-update-copyright.sh: Don't forget to export PATH.
62961         init.sh: ensure that IFS is defined, just in case...
62962         * tests/init.sh (setup_): Ensure that IFS is defined,
62963         so that saving and restoring it works as expected.  This
62964         appears to be useful at least for an old version of dash
62965         from a long time ago (RH 6).  See here for details:
62966         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
62968         maint.mk: tighten "test a == b" check
62969         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
62970         test to files that contain something like #!/bin/sh.
62971         Without this, coreutils would get two false positives in
62972         the comments of C source files.
62974 2010-11-12  Eric Blake  <eblake@redhat.com>
62976         bootstrap: fix typo in previous attempt
62977         * build-aux/bootstrap (buildreq): Correct the grouping.
62978         Reported by Paul Eggert.
62980         maintainer-makefile: prohibit test x == x
62981         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
62982         Based on a report by Matthias Bolte.
62984         bootstrap: allow FreeBSD gzip
62985         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
62986         which has no '.' and goes to stderr.
62987         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
62988         Reported by Matthias Bolte.
62990         maintainer-makefile: check for i18n setup
62991         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
62992         will likely work.
62994 2010-11-12  Bruno Haible  <bruno@clisp.org>
62996         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
62997         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
62998         * lib/nanosleep.c (nanosleep): Likewise.
63000 2010-11-11  Bruno Haible  <bruno@clisp.org>
63002         fcntl-h: Fix for use of C++ on glibc systems.
63003         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
63004         also on glibc systems in C++ mode.
63005         Reported by Gary V. Vaughan <gary@gnu.org>.
63007 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63009         mknod: avoid false failure with dash
63010         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
63012 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63014         unlink: Fix "is it should" typo in diagnostic.
63015         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
63016         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
63018 2010-11-11  Bruno Haible  <bruno@clisp.org>
63020         Tests for module 'strerror_r-posix'.
63021         * modules/strerror_r-posix-tests: New file.
63022         * tests/test-strerror_r.c: New file.
63023         * tests/test-string-c++.cc: Check the signature of strerror_r.
63025         New module 'strerror_r-posix'.
63026         * lib/string.in.h (strerror_r): New declaration.
63027         * lib/strerror_r.c: New file.
63028         * m4/strerror_r.m4: New file.
63029         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
63030         of strerror_r.
63031         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
63032         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63033         * modules/strerror_r-posix: New file.
63034         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
63035         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63036         * doc/posix-functions/strerror_r.texi: Mention the new module and the
63037         portability problems.
63039 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
63041         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
63042         line is also considered for output. Quoted function name in shell
63043         command, so temporary files for functions like MyClass::operator()
63044         are removed correctly without errors.
63046 2010-11-09  Bruno Haible  <bruno@clisp.org>
63048         * doc/posix-functions/strerror.texi: List more failing platforms.
63050         * doc/posix-functions/strerror.texi: Add a comment.
63052 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63054         fdopendir: fix bug on MacOS X when low on file descriptors
63056         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
63057         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
63058         All callers changed.
63059         (fdopendir): Invoke save_cwd at the top level, not after using
63060         multiple dup() calls to use up file descriptors.  Then retry
63061         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
63062         less than the maximum number of open file descriptors, because
63063         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
63064         on Mac OS X 10.6.4 for tar 1.24
63065         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
63066         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
63067         and for tar 1.25
63068         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
63070 2010-11-07  Bruno Haible  <bruno@clisp.org>
63072         vasnprintf: Support I flag on glibc systems.
63073         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
63074         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
63075         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
63076         snprintf function.
63077         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
63078         glibc systems.
63079         * tests/test-vasnprintf-posix3.c: New file.
63080         * modules/vasnprintf-posix-tests (Files): Add it.
63081         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
63083 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63085         [html] Fix copy/paste bug: Use unique name for compiler warnings.
63086         * MODULES.html.sh: For compiler warnings, use name
63087         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
63089 2010-11-05  Eric Blake  <eblake@redhat.com>
63091         ceil, floor: avoid spurious failure with icc
63092         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
63093         [denormals-as-zero] when optimizing without -mieee-fp option.
63094         * tests/test-floorf2.c (floorf_reference): Likewise.
63095         * tests/test-ceilf1.c (dummy): New function.
63096         (main): Use it to outsmart icc's optimization.
63097         * tests/test-floorf1.c (dummy, main): Likewise.
63099         tests: require working signbit
63100         * modules/ceilf-tests (Depends-on): Add signbit.
63101         * modules/ceill-tests (Depends-on): Likewise.
63102         * modules/floorf-tests (Depends-on): Likewise.
63103         * modules/floorl-tests (Depends-on): Likewise.
63104         * modules/round-tests (Depends-on): Likewise.
63105         * modules/roundf-tests (Depends-on): Likewise.
63106         * modules/roundl-tests (Depends-on): Likewise.
63107         * modules/trunc-tests (Depends-on): Likewise.
63108         * modules/truncf-tests (Depends-on): Likewise.
63109         * modules/truncl-tests (Depends-on): Likewise.
63111         strtod: work around icc bug
63112         * lib/strtod.c (minus_zero): Define to working value.
63113         (strtod): Use it to avoid icc bug.
63115         copysign: enhance tests
63116         * modules/copysign-tests (Files): Add minus-zero.h.
63117         * tests/test-copysign.c (main): Also test zeros.
63119 2010-11-04  Eric Blake  <eblake@redhat.com>
63121         ceil, floor, round, trunc: enhance tests of -0
63122         * tests/test-ceilf1.c (main): Ensure correct sign of result.
63123         * tests/test-ceill.c (main): Likewise.
63124         * tests/test-floorf1.c (main): Likewise.
63125         * tests/test-floorl.c (main): Likewise.
63126         * tests/test-round1.c (main): Likewise.
63127         * tests/test-roundf1.c (main): Likewise.
63128         * tests/test-roundl.c (main): Likewise.
63129         * tests/test-trunc1.c (main): Likewise.
63130         * tests/test-truncf1.c (main): Likewise.
63131         * tests/test-truncl.c (main): Likewise.
63133 2010-11-04  Eric Blake  <eblake@redhat.com>
63135         frexp, tests: work around ICC bug with -zero
63136         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
63137         works with more compilers.
63138         * tests/minus-zero.h: New file.
63139         * modules/ceilf-tests (Files): Include it.
63140         * modules/ceill-tests (Files): Likewise.
63141         * modules/floorf-tests (Files): Likewise.
63142         * modules/floorl-tests (Files): Likewise.
63143         * modules/frexp-nolibm-tests (Files): Likewise.
63144         * modules/frexp-tests (Files): Likewise.
63145         * modules/frexpl-nolibm-tests (Files): Likewise.
63146         * modules/frexpl-tests (Files): Likewise.
63147         * modules/isnan-tests (Files): Likewise.
63148         * modules/isnand-nolibm-tests (Files): Likewise.
63149         * modules/isnand-tests (Files): Likewise.
63150         * modules/isnanf-nolibm-tests (Files): Likewise.
63151         * modules/isnanf-tests (Files): Likewise.
63152         * modules/isnanl-nolibm-tests (Files): Likewise.
63153         * modules/isnanl-tests (Files): Likewise.
63154         * modules/round-tests (Files): Likewise.
63155         * modules/roundf-tests (Files): Likewise.
63156         * modules/roundl-tests (Files): Likewise.
63157         * modules/ldexpl-tests (Files): Likewise.
63158         * modules/signbit-tests (Files): Likewise.
63159         * modules/snprintf-posix-tests (Files): Likewise.
63160         * modules/sprintf-posix-tests (Files): Likewise.
63161         * modules/strtod-tests (Files): Likewise.
63162         * modules/trunc-tests (Files): Likewise.
63163         * modules/truncf-tests (Files): Likewise.
63164         * modules/truncl-tests (Files): Likewise.
63165         * modules/vsnprintf-posix-tests (Files): Likewise.
63166         * modules/vsprintf-posix-tests (Files): Likewise.
63167         * modules/vasnprintf-posix-tests (Files): Likewise.
63168         * modules/vasprintf-posix-tests (Files): Likewise.
63169         * tests/test-ceilf1.c (main): Use it.
63170         * tests/test-ceill.c (main): Likewise.
63171         * tests/test-floorf1.c (main): Likewise.
63172         * tests/test-floorl.c (main): Likewise.
63173         * tests/test-frexp.c (main): Likewise.
63174         * tests/test-frexpl.c (main): Likewise.
63175         * tests/test-isnan.c (main): Likewise.
63176         * tests/test-isnand.h (main): Likewise.
63177         * tests/test-isnanf.h (main): Likewise.
63178         * tests/test-isnanl.h (main): Likewise.
63179         * tests/test-ldexpl.c (main): Likewise.
63180         * tests/test-round.c (main): Likewise.
63181         * tests/test-roundf.c (main): Likewise.
63182         * tests/test-roundl.c (main): Likewise.
63183         * tests/test-signbit.c (test_signbitf, test_signbitd)
63184         (test_signbitl): Likewise.
63185         * tests/test-snprintf-posix.h (test_function): Likewise.
63186         * tests/test-sprintf-posix.h (test_function): Likewise.
63187         * tests/test-strtod.c (main): Likewise.
63188         * tests/test-trunc1.c (main): Likewise.
63189         * tests/test-truncf1.c (main): Likewise.
63190         * tests/test-truncl.c (main): Likewise.
63192         isnanl: work around icc bug
63193         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
63195 2010-11-03  Eric Blake  <eblake@redhat.com>
63197         tests: fix compiler warnings
63198         * tests/test-getopt.h (test_getopt): Fix condition.
63199         * tests/test-getopt_long.h (test_getopt_long): Likewise.
63200         * tests/test-pipe2.c (main): Likewise.
63201         * tests/test-quotearg-simple.c (main): Avoid icc warning.
63203         utimens: fix broken m4 test
63204         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
63206 2010-10-28  Bruno Haible  <bruno@clisp.org>
63208         posix_spawn*, getdtablesize: Relax license.
63209         * modules/posix_spawn (License): Change to LGPLv2+.
63210         * modules/posix_spawnp (License): Likewise.
63211         * modules/posix_spawn-internal (License): Likewise.
63212         * modules/posix_spawnattr_init (License): Likewise.
63213         * modules/posix_spawnattr_getflags (License): Likewise.
63214         * modules/posix_spawnattr_setflags (License): Likewise.
63215         * modules/posix_spawnattr_getpgroup (License): Likewise.
63216         * modules/posix_spawnattr_setpgroup (License): Likewise.
63217         * modules/posix_spawnattr_getschedparam (License): Likewise.
63218         * modules/posix_spawnattr_setschedparam (License): Likewise.
63219         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
63220         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
63221         * modules/posix_spawnattr_getsigdefault (License): Likewise.
63222         * modules/posix_spawnattr_setsigdefault (License): Likewise.
63223         * modules/posix_spawnattr_getsigmask (License): Likewise.
63224         * modules/posix_spawnattr_setsigmask (License): Likewise.
63225         * modules/posix_spawnattr_destroy (License): Likewise.
63226         * modules/posix_spawn_file_actions_init (License): Likewise.
63227         * modules/posix_spawn_file_actions_addclose (License): Likewise.
63228         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
63229         * modules/posix_spawn_file_actions_addopen (License): Likewise.
63230         * modules/posix_spawn_file_actions_destroy (License): Likewise.
63231         * modules/getdtablesize (License): Likewise.
63232         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
63234 2010-10-26  Bruno Haible  <bruno@clisp.org>
63236         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
63237         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
63238         Cygwin and mingw.
63239         Suggested by Eric Blake.
63241 2010-10-26  Bruno Haible  <bruno@clisp.org>
63243         stdio: Work around compilation error due to renameat() on Solaris 10.
63244         * lib/stdio.in.h: Include <unistd.h> on Solaris.
63245         * lib/renameat.c: Don't include <unistd.h> here.
63246         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
63247         Reported by Paul Eggert and Eric Blake.
63249 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63251         renameat: port to Solaris 10, which declares renameat in unistd.h
63253         * lib/renameat.c: Include unistd.h before stdio.h, because
63254         Solaris 10 declares renameat in unistd.h.  Problem encountered
63255         when building GNU tar 1.24 on Solaris 10.
63257 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63259         fdopendir: fix C89 compilation
63260         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
63261         compilers.
63263 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
63265         inttostr: simplify by removing unnecessary redundancy
63266         * lib/anytostr.c: Don't include verify.h.
63267         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
63268         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
63269         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
63270         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
63271         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
63272         Likewise.
63273         * modules/inttostr (Depends-on): Remove 'verify'.
63275 2010-10-23  Bruno Haible  <bruno@clisp.org>
63277         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
63278         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
63279         Reported by Eric Blake.
63281 2010-10-23  Bruno Haible  <bruno@clisp.org>
63283         Tests: Fix LOCALE_JA on MirBSD 10.
63284         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
63285         to an UTF-8 locale.
63286         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
63287         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63288         Reported by Eric Blake.
63290 2010-10-21  Bruno Haible  <bruno@clisp.org>
63292         nl_langinfo test: Avoid test failure on NetBSD 5.
63293         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
63294         Reported by Eric Blake.
63296 2010-10-21  Eric Blake  <eblake@redhat.com>
63298         c-stack: work around libsigsegv 2.8 bug
63299         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
63300         overflow on at least PowerPC64.
63302 2010-10-17  Bruno Haible  <bruno@clisp.org>
63304         userspec: Drop redundant file.
63305         * modules/userspec (Files): Remove lib/inttostr.h.
63307 2010-10-17  Bruno Haible  <bruno@clisp.org>
63309         nl_langinfo tests: Silence some warnings.
63310         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
63311         Reported by Jim Meyering.
63313 2010-10-17  Bruno Haible  <bruno@clisp.org>
63315         Make use of GCC's attribute __alloc_size__.
63316         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
63317         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
63318         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
63319         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
63320         __alloc_size__.
63321         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
63322         Suggested by Jim Meyering.
63324 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
63326         bootstrap: anchor .gitignore entries.
63327         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
63328         with...
63329         (insert_vc_ignore): ... this new function, which prepends `/' to
63330         all .gitignore entries before passing them to
63331         insert_sorted_if_absent.
63333 2010-10-16  Bruno Haible  <bruno@clisp.org>
63335         nextafter: Fix configure check.
63336         * modules/nextafter (configure.ac): Correct expected prototype.
63338 2010-10-16  Bruno Haible  <bruno@clisp.org>
63340         termios: Update documentation.
63341         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
63343 2010-10-16  Bruno Haible  <bruno@clisp.org>
63345         tests: Make them compile with TinyCC.
63346         * tests/test-strstr.c (main): Remove parentheses around array
63347         initializer.
63349 2010-10-15  Eric Blake  <eblake@redhat.com>
63351         ignore-value: make header idempotent
63352         * lib/ignore-value.h: Add double-inclusion guards.
63353         Reported by Stefan Berger.
63355 2010-10-15  Jim Meyering  <meyering@redhat.com>
63357         GNUmakefile: handle "stable" target, not "major"
63358         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
63359         lists in maint.mk and announce-gen.  Without this, "make stable"
63360         would fail to ensure that $(VERSION) is up to date.
63362 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
63364         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
63365         & co.
63367 2010-10-14  Bruno Haible  <bruno@clisp.org>
63369         vasnprintf: Don't set errno to 0.
63370         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
63371         block that sets it to 0.
63372         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
63374 2010-10-14  Bruno Haible  <bruno@clisp.org>
63376         socketlib: Fix.
63377         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
63378         gl_PREREQ_SYS_H_WINSOCK2.
63379         Reported by Ian Beckwith <ianb@erislabs.net>.
63381 2010-10-13  Jim Meyering  <meyering@redhat.com>
63383         test-select-stdin.c: avoid warn_unused_result warnings
63384         * tests/test-select-stdin.c: Include "macros.h".
63385         ASSERT that read and fflush succeed.
63387 2010-10-13  Jim Meyering  <meyering@redhat.com>
63389         git-version-gen: do require git-VC'd files in cwd
63390         * build-aux/git-version-gen: Reject a git version string
63391         if there are no commits associated with the current directory.
63392         This avoids an unlikely false-positive (unrelated dir whose parent
63393         repository also contains a tag matching v*), as pointed out
63394         by Giuseppe Scrivano in
63395         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
63397 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63399         argv-iter: omit nonconforming declaration
63400         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
63401         enum arg_iter_err declaration, which doesn't conform to C99.
63402         Solaris 10 cc warns about this.
63404 2010-10-13  Eric Blake  <eblake@redhat.com>
63406         termios: fix compilation on mingw
63407         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
63408         (gl_TERMIOS_H): Adjust it on mingw.
63409         * modules/termios (Makefile.am): Substitute new key.
63410         * lib/termios.in.h (includes): Make include_next conditional.
63411         * doc/posix-headers/termios.texi (termios.h): Update
63412         documentation.
63413         Reported by Daniel P. Berrange.
63415 2010-10-13  Jim Meyering  <meyering@redhat.com>
63417         git-version-gen: don't require that .git/ be in the current dir
63418         * build-aux/git-version-gen: Adjust this script so that it works
63419         when run from any working directory beneath the top-level .git/-
63420         containing directory.  Inspired by a patch from Giuseppe Scrivano,
63421         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
63423         test-select: avoid warn_unused_result warnings
63424         * tests/test-select.c: Include "macros.h".
63425         ASSERT that each call to read, write, and pipe succeeds.
63426         While not technically required, also check each "close".
63427         * modules/select-tests (Files): Add tests/macros.h.
63429         test-symlinkat: remove declaration of unused local
63430         * tests/test-symlinkat.c (main): Remove unused local, "buf".
63432         test-inttostr: avoid shadowing warnings
63433         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
63434         and use malloc rather than the stack for the same reason as
63435         mentioned in the comment justifying the other allocation.
63437 2010-10-11  Bruno Haible  <bruno@clisp.org>
63439         stdlib: Allow multiple gnulib generated replacements to coexist.
63440         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
63441         Reported by Sam Steingold <sds@gnu.org>.
63443 2010-10-11  Jim Meyering  <meyering@redhat.com>
63445         fix a documentation typo
63446         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
63448 2010-10-11  Eric Blake  <eblake@redhat.com>
63450         futimens: work around Solaris 11 bug
63451         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
63452         * tests/test-futimens.h (test_futimens): Enhance, rather than
63453         weaken test.
63454         * doc/posix-functions/futimens.texi (futimens): Document the bug.
63456 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63458         Indentation.
63459         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
63460         higher-level operators more to the left.
63462 2010-10-11  Jim Meyering  <meyering@redhat.com>
63464         test-futimens: avoid unwarranted test failure on Solaris 5.11
63465         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
63466         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
63467         because it tries to dereference the NULL name argument.
63469 2010-10-11  Bruno Haible  <bruno@clisp.org>
63471         Indentation.
63472         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
63473         indentation.
63475 2010-10-11  Jim Meyering  <meyering@redhat.com>
63477         spawn.in.h: make indentation consistent with parentheses
63478         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
63479         Make indentation consistent with parentheses.
63481 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
63483         Fix mismatched parens in previous commit
63484         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
63485         parens.
63487 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63489         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
63491         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
63492         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
63493         * lib/malloca.c: Include "verify.h".
63494         (verify1): Remove, replacing with a verify call.
63495         * lib/relocwrapper.c (verify1): Likewise.
63496         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
63497         Likewise.
63498         * modules/malloca (Depends-on): Add 'verify'.
63499         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
63500         * modules/vasnprintf (Depends-on): Add 'verify'.
63501         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63502         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63503         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63504         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63505         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63506         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63507         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63509         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
63511         Formerly the style was sometimes 2*X - 1, because the C standard
63512         was wrongly thought to disallow ?: in integral constant expressions.
63513         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
63514         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
63515         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
63516         * lib/stdint.in.h (_verify_intmax_size): Likewise.
63517         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
63518         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
63519         verify that time_t cannot be floating.
63521 2010-10-08  Eric Blake  <eblake@redhat.com>
63523         time: enforce recent POSIX ruling that time_t is integral
63524         * lib/time.in.h (__time_t_must_be_integral): Detect any
63525         problematic systems, allowing the rest of gnulib to assume POSIX.
63527 2010-10-08  Jim Meyering  <meyering@redhat.com>
63529         fdopendir: fix a bug on systems lacking openat and /proc support
63530         OpenBSD 4.7 is one such system.  The most noticeable effect was
63531         failure of any application making nontrivial use of fts: rm, du,
63532         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
63533           ./rm: traversal failed: `a': Bad file descriptor
63534         Debugging that, you see that even though FD 6 was closed just
63535         prior to the opendir call in fd_clone_opendir, its resulting
63536         dir->dd_fd was 8, rather than the expected value of 6:
63538         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
63539         93                close (fd);
63540         (gdb) n
63541         94                dir = fd_clone_opendir (dupfd);
63542         (gdb) n
63543         95                saved_errno = errno;
63544         (gdb) p dir->dd_fd
63545         $11 = 8
63547         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
63548         The problem is that on OpenBSD, fd_clone_opendir has to resort
63549         to using the old-style save/restore CWD mechanism, due to its
63550         lack of openat/proc support, and *that* would steal the FD (6)
63551         that opendir was supposed to use.
63553         The fix is to squirrel away the desired FD so that save_cwd uses a
63554         different one, and then free the dest FD right before calling opendir.
63555         That guarantees opendir will use the required file descriptor.
63557         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
63559 2010-10-08  Bruno Haible  <bruno@clisp.org>
63561         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
63562         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
63564 2010-10-08  Bruno Haible  <bruno@clisp.org>
63566         nanosleep: Make replacement POSIX compliant.
63567         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
63568         is out of range.
63569         Reported by Jim Meyering.
63571 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63573         bootstrap: add hook for altering gnulib.mk, for Bison
63574         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
63575         the Bison bootstrapping process can rewrite file names and variables
63576         in this file before later parts of 'bootstrap' use the file.
63577         Bison wants to include lib/gnulib.mk from the top-level makefile,
63578         so it needs the file names in this file to be relative to the top
63579         level, not relative to lib; plus it needs variable names to be
63580         rewritten.
63581         (slurp): Use the new function.
63583         bootstrap: reformat for readability
63584         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
63586 2010-10-08  Eric Blake  <eblake@redhat.com>
63588         docs: update cygwin progress
63589         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
63590         1.7.7.
63591         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
63592         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
63593         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
63594         * doc/posix-functions/carg.texi (carg): Likewise.
63595         * doc/posix-functions/cargf.texi (cargf): Likewise.
63596         * doc/posix-functions/casin.texi (casin): Likewise.
63597         * doc/posix-functions/casinf.texi (casinf): Likewise.
63598         * doc/posix-functions/casinh.texi (casinh): Likewise.
63599         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
63600         * doc/posix-functions/catan.texi (catan): Likewise.
63601         * doc/posix-functions/catanf.texi (catanf): Likewise.
63602         * doc/posix-functions/catanh.texi (catanh): Likewise.
63603         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
63604         * doc/posix-functions/ccos.texi (ccos): Likewise.
63605         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
63606         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
63607         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
63608         * doc/posix-functions/cexp.texi (cexp): Likewise.
63609         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
63610         * doc/posix-functions/cimag.texi (cimag): Likewise.
63611         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
63612         * doc/posix-functions/clog.texi (clog): Likewise.
63613         * doc/posix-functions/clogf.texi (clogf): Likewise.
63614         * doc/posix-functions/conj.texi (conj): Likewise.
63615         * doc/posix-functions/conjf.texi (conjf): Likewise.
63616         * doc/posix-functions/cpow.texi (cpow): Likewise.
63617         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
63618         * doc/posix-functions/cproj.texi (cproj): Likewise.
63619         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
63620         * doc/posix-functions/creal.texi (creal): Likewise.
63621         * doc/posix-functions/crealf.texi (crealf): Likewise.
63622         * doc/posix-functions/csin.texi (csin): Likewise.
63623         * doc/posix-functions/csinf.texi (csinf): Likewise.
63624         * doc/posix-functions/csinh.texi (csinh): Likewise.
63625         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
63626         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
63627         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
63628         * doc/posix-functions/ctan.texi (ctan): Likewise.
63629         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
63630         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
63631         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
63632         * doc/posix-headers/complex.texi (complex.h): Likewise.
63634 2010-10-07  Jim Meyering  <meyering@redhat.com>
63636         parse-datetime: avoid compilation failure on OpenBSD 4.7
63637         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
63638         This works around a compilation failure on OpenBSD 4.7:
63639         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
63641 2010-10-07  Eric Blake  <eblake@redhat.com>
63643         docs: update cygwin progress
63644         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
63645         1.7.6.
63646         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
63647         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
63648         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
63649         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
63650         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
63651         Likewise.
63652         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
63653         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
63654         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
63655         Likewise.
63656         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
63657         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
63658         Likewise.
63659         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
63660         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
63661         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
63662         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
63663         Likewise.
63664         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
63665         Likewise.
63666         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
63668         docs: update parse-datetime history
63669         * doc/parse-datetime.texi (Authors of parse_datetime): Better
63670         documentation of this function's history and alternatives.
63672         cygwin: use more robust version check
63673         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
63674         exclude an eventual cygwin 1.9.1.
63675         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63677         (gl_FUNC_STRCASESTR): Likewise.
63678         Reported by Bruno Haible.
63680 2010-10-06  Bruno Haible  <bruno@clisp.org>
63682         string, sys_select: Avoid #including large headers unless necessary.
63683         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
63684         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
63685         OSF/1, BeOS, Haiku.
63686         Reported by Jim Meyering.
63688 2010-10-05  Eric Blake  <eblake@redhat.com>
63690         memmem, strstr, strcasestr: fix bug with long periodic needle
63691         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
63692         periodic needle having false positive.
63693         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
63694         and cygwin 1.7.7.
63695         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
63696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63697         (gl_FUNC_STRCASESTR): Likewise.
63698         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63699         * tests/test-memmem.c (main): Expose the bug.
63700         * tests/test-strcasestr.c (main): Likewise.
63701         * tests/test-strstr.c (main): Likewise.
63702         * tests/test-c-strcasestr.c (main): Likewise.
63703         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
63704         * doc/posix-functions/strstr.texi (strstr): Likewise.
63705         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63706         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
63708 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63710         parse-datetime: do some more renaming
63711         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
63712         parse_datetime, not get_date.  Mention the renaming.
63713         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
63714         in comments.
63715         * m4/bison.m4: Likewise.
63717 2010-10-05  Eric Blake  <eblake@redhat.com>
63719         parse-datetime: better name than get_date
63720         * NEWS: Reword the deprecation notice.
63721         * modules/get_date: Rename to modules/parse-datetime.
63722         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
63723         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
63724         * lib/get_date.y: Rename to lib/parse-datetime.y.
63725         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
63726         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
63727         * doc/getdate.texi: Provide fallback wrapper.
63728         * lib/getdate.h: Move guts, and wrap...
63729         * lib/parse-datetime.h: ...new file.
63730         * lib/parse-datetime.y (get_date): Rename...
63731         (parse_datetime): ...to this.
63732         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
63733         (gl_PARSE_DATETIME): ...to this.
63734         * doc/posix-functions/getdate.texi (get_date): Provide fallback
63735         documentation.
63736         * modules/getdate (Files): Provide fallback docs and header.
63737         (Notice, Depends-on): Update references.
63738         * tests/test-parse-datetime.c: Likewise.
63739         * DEPENDENCIES: Likewise.
63740         * MODULES.html.sh (Date and time <time.h>): Likewise.
63741         * doc/parse-datetime.texi (Date input formats)
63742         (Authors of parse_datetime): Likewise.
63743         * modules/parse-datetime (Files, configure.ac, Makefile.am)
63744         (Include): Likewise.
63745         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
63746         * gnulib-tool: Likewise.
63747         * m4/bison.m4 (gl_BISON): Likewise.
63748         Suggested by Bruno Haible.
63750 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63752         more ports to Solaris tr, which needs [] around ranges
63753         * gnulib-tool: Solaris tr needs [] around ranges.
63754         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63755         * tests/test-pipe-filter-gi1.c (main): Likewise.
63756         * tests/test-pipe-filter-ii1.c (main): Likewise.
63758 2010-10-05  Eric Blake  <eblake@redhat.com>
63760         bootstrap: fix Solaris regression
63761         * build-aux/bootstrap (check_versions): Solaris tr still needs []
63762         around ranges.
63763         Reported by Pádraig Brady.
63765         bootstrap: work with pkg-config
63766         * build-aux/bootstrap (check_versions): Also transliterate - in
63767         prerequisite name.
63768         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
63769         prerequisites that were already found, to avoid confusion.
63770         Reported by Justin Clift.
63772         faccessat: remove unused wrappers
63773         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
63774         presence of these wrappers dragged in -lgen on Solaris.
63775         Reported by Clemens Brogi; fix suggested by Paul Eggert.
63777 2010-10-05  Jim Meyering  <meyering@redhat.com>
63779         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
63780         * Makefile (sc_pragma_columns): New syntax-check rule.
63782 2010-10-04  Bruno Haible  <bruno@clisp.org>
63784         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
63785         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
63786         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
63787         Reported by Bruce Korb and Eric Blake.
63789 2010-10-04  Bruno Haible  <bruno@clisp.org>
63791         threadlib: Make option --with-libpth-prefix work.
63792         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
63793         use $LIBPTH, not just -lpth.
63795 2010-10-04  Bruno Haible  <bruno@clisp.org>
63797         Avoid line length limitation from HP NonStop system header files.
63798         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
63799         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
63800         * lib/ctype.in.h: Likewise.
63801         * lib/dirent.in.h: Likewise.
63802         * lib/errno.in.h: Likewise.
63803         * lib/fcntl.in.h: Likewise.
63804         * lib/float.in.h: Likewise.
63805         * lib/getopt.in.h: Likewise.
63806         * lib/iconv.in.h: Likewise.
63807         * lib/inttypes.in.h: Likewise.
63808         * lib/langinfo.in.h: Likewise.
63809         * lib/locale.in.h: Likewise.
63810         * lib/math.in.h: Likewise.
63811         * lib/netdb.in.h: Likewise.
63812         * lib/netinet_in.in.h: Likewise.
63813         * lib/poll.in.h: Likewise.
63814         * lib/pthread.in.h: Likewise.
63815         * lib/pty.in.h: Likewise.
63816         * lib/sched.in.h: Likewise.
63817         * lib/se-selinux.in.h: Likewise.
63818         * lib/search.in.h: Likewise.
63819         * lib/signal.in.h: Likewise.
63820         * lib/spawn.in.h: Likewise.
63821         * lib/stdarg.in.h: Likewise.
63822         * lib/stddef.in.h: Likewise.
63823         * lib/stdint.in.h: Likewise.
63824         * lib/stdio.in.h: Likewise.
63825         * lib/stdlib.in.h: Likewise.
63826         * lib/string.in.h: Likewise.
63827         * lib/strings.in.h: Likewise.
63828         * lib/sys_file.in.h: Likewise.
63829         * lib/sys_ioctl.in.h: Likewise.
63830         * lib/sys_select.in.h: Likewise.
63831         * lib/sys_socket.in.h: Likewise.
63832         * lib/sys_stat.in.h: Likewise.
63833         * lib/sys_time.in.h: Likewise.
63834         * lib/sys_times.in.h: Likewise.
63835         * lib/sys_utsname.in.h: Likewise.
63836         * lib/sys_wait.in.h: Likewise.
63837         * lib/sysexits.in.h: Likewise.
63838         * lib/termios.in.h: Likewise.
63839         * lib/time.in.h: Likewise.
63840         * lib/unistd.in.h: Likewise.
63841         * lib/wchar.in.h: Likewise.
63842         * lib/wctype.in.h: Likewise.
63843         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
63844         * modules/ctype (Makefile.am): Likewise.
63845         * modules/dirent (Makefile.am): Likewise.
63846         * modules/errno (Makefile.am): Likewise.
63847         * modules/fcntl-h (Makefile.am): Likewise.
63848         * modules/float (Makefile.am): Likewise.
63849         * modules/getopt-posix (Makefile.am): Likewise.
63850         * modules/iconv-h (Makefile.am): Likewise.
63851         * modules/inttypes (Makefile.am): Likewise.
63852         * modules/langinfo (Makefile.am): Likewise.
63853         * modules/locale (Makefile.am): Likewise.
63854         * modules/math (Makefile.am): Likewise.
63855         * modules/netdb (Makefile.am): Likewise.
63856         * modules/netinet_in (Makefile.am): Likewise.
63857         * modules/poll-h (Makefile.am): Likewise.
63858         * modules/pthread (Makefile.am): Likewise.
63859         * modules/pty (Makefile.am): Likewise.
63860         * modules/sched (Makefile.am): Likewise.
63861         * modules/search (Makefile.am): Likewise.
63862         * modules/selinux-h (Makefile.am): Likewise.
63863         * modules/signal (Makefile.am): Likewise.
63864         * modules/spawn (Makefile.am): Likewise.
63865         * modules/stdarg (Makefile.am): Likewise.
63866         * modules/stddef (Makefile.am): Likewise.
63867         * modules/stdint (Makefile.am): Likewise.
63868         * modules/stdio (Makefile.am): Likewise.
63869         * modules/stdlib (Makefile.am): Likewise.
63870         * modules/string (Makefile.am): Likewise.
63871         * modules/strings (Makefile.am): Likewise.
63872         * modules/sys_file (Makefile.am): Likewise.
63873         * modules/sys_ioctl (Makefile.am): Likewise.
63874         * modules/sys_select (Makefile.am): Likewise.
63875         * modules/sys_socket (Makefile.am): Likewise.
63876         * modules/sys_stat (Makefile.am): Likewise.
63877         * modules/sys_time (Makefile.am): Likewise.
63878         * modules/sys_times (Makefile.am): Likewise.
63879         * modules/sys_utsname (Makefile.am): Likewise.
63880         * modules/sys_wait (Makefile.am): Likewise.
63881         * modules/sysexits (Makefile.am): Likewise.
63882         * modules/termios (Makefile.am): Likewise.
63883         * modules/time (Makefile.am): Likewise.
63884         * modules/unistd (Makefile.am): Likewise.
63885         * modules/wchar (Makefile.am): Likewise.
63886         * modules/wctype (Makefile.am): Likewise.
63888 2010-10-04  Bruno Haible  <bruno@clisp.org>
63890         read-file tests: Avoid a test failure on NonStop Kernel.
63891         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
63892         a regular file.
63893         Reported by Joachim Schmitz <schmitz@hp.com>.
63895 2010-10-03  Bruno Haible  <bruno@clisp.org>
63897         gnulib-tool: Fixes for --create-testdir with --libtool.
63898         * gnulib-tool (func_get_automake_snippet): Don't augment
63899         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
63900         an executable.
63901         (func_create_testdir): Handle module 'alloca' like func_import.
63902         Reported by Bruce Korb <bruce.korb@gmail.com>.
63904 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63906         Avoid some lines longer than 80 characters.
63907         * lib/stdint.in.h: Break long comment lines.
63908         * lib/math.in.h: Likewise.
63909         (_GL_NUM_UINT_WORDS): New macro, for readability.
63910         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
63911         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
63912         * lib/stdlib.in.h: Likewise.
63913         * lib/spawn.in.h: Likewise.
63914         * lib/sys_socket.in.h: Update an URL.
63915         * lib/sys_stat.in.h: Break long line.
63917 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
63919         Improve pmccabe2html.
63920         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
63921         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
63922         when the sources change. Remove the line in the HTML about "Used
63923         ranges" (which implied that there might be other unused ranges),
63924         rename "Resume" to "Summary" (easier to understand for more users).
63925         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
63926         styles, and some unnecessary blank lines.
63928 2010-10-03  Bruno Haible  <bruno@clisp.org>
63929             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
63931         acl: Add support for ACLs on NonStop Kernel.
63932         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
63933         Check whether the function aclsort() exists.
63934         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
63935         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
63936         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63937         (acl_nontrivial [HAVE_ACLSORT]: New function.
63938         (file_has_acl): Implement for NonStop Kernel.
63939         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63940         (qset_acl): Implement for NonStop Kernel.
63941         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
63942         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63943         (main): Implement for NonStop Kernel.
63944         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
63945         Kernel. Handle this flavor.
63946         * tests/test-set-mode-acl.sh: Likewise.
63947         * tests/test-copy-acl.sh: Likewise.
63948         * tests/test-copy-file.sh: Likewise.
63950 2010-10-03  Bruno Haible  <bruno@clisp.org>
63952         Info about ACLs on NonStop Kernel.
63953         * doc/acl-resources.txt: Add info about NonStop Kernel.
63954         References by Joachim Schmitz <schmitz@hp.com>.
63956 2010-10-02  Bruno Haible  <bruno@clisp.org>
63958         Define missing EDQUOT on NonStop Kernel.
63959         * lib/errno.in.h (EDQUOT): Assign a value if missing.
63960         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
63961         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
63962         missing.
63963         * doc/posix-headers/errno.texi: Mention the NSK bug.
63964         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
63965         Reported by Joachim Schmitz <schmitz@hp.com>.
63967 2010-10-02  Bruno Haible  <bruno@clisp.org>
63969         Update doc for POSIX:2008.
63970         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
63971         Update URL of POSIX specification.
63973 2010-10-02  Bruno Haible  <bruno@clisp.org>
63975         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
63976         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
63977         from gnulib, not from Automake.
63979 2010-10-02  Bruno Haible  <bruno@clisp.org>
63981         New module 'system-posix'.
63982         * modules/system-posix: New file.
63983         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
63984         module is present.
63985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63986         GNULIB_SYSTEM_POSIX.
63987         * modules/stdlib (Depends-on): Remove sys_wait.
63988         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
63989         * doc/posix-functions/system.texi: Mention the new module.
63990         * doc/posix-headers/stdlib.texi: Likewise.
63991         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
63992         define test_sys_wait_macros to a no-op.
63993         Reported by Sam Steingold <sds@gnu.org>.
63995 2010-09-30  Bruno Haible  <bruno@clisp.org>
63997         More renaming from 'getdate' to 'get_date'.
63998         * doc/get_date.texi: Renamed from doc/getdate.texi.
63999         * modules/get_date (Files): Update.
64000         * MODULES.html.sh (Date and time <time.h>): Update.
64001         * DEPENDENCIES: Update.
64002         * gnulib-tool: Update comment.
64003         * m4/bison.m4 (gl_BISON): Likewise.
64004         * m4/get_date.m4 (gl_GET_DATE): Likewise.
64006 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
64008         bootstrap: support ACLOCAL_FLAGS during aclocal
64009         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
64010         can add additional -I dir for third-party .m4 files.
64012 2010-09-30  Eric Blake  <eblake@redhat.com>
64014         bootstrap: use glibtoolize on MacOS
64015         * build-aux/bootstrap (check_versions): Convert libtool into
64016         libtoolize.
64017         (tool search): Move libtool check earlier, and look for
64018         glibtoolize for MacOS.
64019         (gnulib_tool_options): Auto-add --libtool when appropriate.
64020         Reported by Justin Clift.
64022         poll: fix typo that broke test on MacOS
64023         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
64024         Reported by Justin Clift.
64026         getdate: rename to get_date
64027         Note: getdate.h is not renamed, to minimize client impact.
64028         * modules/getdate: Mark obsolete.  Move old contents...
64029         * modules/get_date: ...to new module name.
64030         * modules/getdate-tests: Move...
64031         * modules/get_date-tests: ...here.
64032         * m4/getdate.m4: Move...
64033         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
64034         * lib/getdate.y: Move...
64035         * lib/get_date.y: ...here.
64036         * tests/test-getdate.c: Move...
64037         * tests/test-get_date.c: ...here.
64038         * doc/posix-functions/getdate.texi (getdate): Update name.
64039         * NEWS: Mention the change.
64041 2010-09-29  Bruno Haible  <bruno@clisp.org>
64043         Separate the module 'waitpid' from the module 'sys_wait'.
64044         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
64045         present.
64046         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
64047         gl_MODULE_INDICATOR_FOR_TESTS.
64048         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
64049         * modules/sys_wait (Depends-on): Remove waitpid.
64050         (Makefile.am): Substitute GNULIB_WAITPID.
64051         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
64052         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
64053         signature only if the 'waitpid' module is present.
64054         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
64055         * NEWS: Mention the change.
64056         * modules/grantpt (Depends-on): Add waitpid.
64057         * modules/wait-process (Depends-on): Likewise.
64059 2010-09-29  Bruno Haible  <bruno@clisp.org>
64061         More tests for module 'sys_wait'.
64062         * modules/sys_wait-c++-tests: New file.
64063         * tests/test-sys_wait-c++.cc: New file.
64064         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
64065         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64067 2010-09-29  Bruno Haible  <bruno@clisp.org>
64069         New module 'waitpid'.
64070         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
64071         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
64072         Don't include <process.h>.
64073         (waitpid): Declare only, using modern idiom.
64074         * m4/waitpid.m4: New file.
64075         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
64076         * modules/waitpid: New file.
64077         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
64078         (Makefile.am): Update.
64079         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64081 2010-09-28  Bruno Haible  <bruno@clisp.org>
64083         poll: Assume ANSI C.
64084         * lib/poll.c (poll): Use an ANSI C declaration.
64086 2010-09-28  Bruno Haible  <bruno@clisp.org>
64088         poll-h: Create poll.h on all platforms.
64089         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
64090         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
64091         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
64092         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
64093         (gl_REPLACE_POLL_H): Don't set POLL_H.
64094         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
64095         * modules/poll-h (Depends-on): Add include_next.
64096         (Makefile.am): Create poll.h unconditionally. Substitute also
64097         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
64099 2010-09-28  Bruno Haible  <bruno@clisp.org>
64101         Tests for module 'poll-h'.
64102         * modules/poll-h-c++-tests: New file.
64103         * tests/test-poll-h-c++.cc: New file.
64105         Tests for module 'poll-h'.
64106         * modules/poll-h-tests: New file.
64107         * tests/test-poll-h.c: New file.
64109 2010-09-28  Bruno Haible  <bruno@clisp.org>
64111         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
64112         * modules/poll-h (Depends-on): Add 'extensions'.
64114 2010-09-28  Bruno Haible  <bruno@clisp.org>
64116         New module 'poll-h'.
64117         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
64118         (poll): Use modern idiom.
64119         * modules/poll-h: New file.
64120         * modules/poll (Files): Remove lib/poll.in.h.
64121         (Depends-on): Add poll-h.
64122         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
64123         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
64124         * m4/poll_h.m4: New file.
64125         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
64126         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
64127         and invoke gl_REPLACE_POLL_H.
64128         * lib/poll.c: Use common idiom.
64129         * tests/test-poll.c: Likewise.
64130         * doc/posix-headers/poll.texi: Mention the poll-h module.
64131         Suggested by Eric Blake.
64133 2010-09-26  Bruno Haible  <bruno@clisp.org>
64135         sys_wait: Implement WSTOPSIG.
64136         * lib/sys_wait.in.h (WSTOPSIG): New macro.
64137         Reported by Simon Josefsson.
64139 2010-09-26  Simon Josefsson  <simon@josefsson.org>
64141         stdlib, sys_wait: Avoid compilation error on mingw.
64142         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
64144 2010-09-26  Bruno Haible  <bruno@clisp.org>
64146         stdlib tests: Avoid code duplication.
64147         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
64148         * modules/sys_wait-tests (Files): Likewise.
64149         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
64150         * tests/test-stdlib.c: Include test-sys_wait.h.
64151         (main): Invoke test_sys_wait_macros.
64152         * tests/test-sys_wait.c: Include test-sys_wait.h.
64153         (main): Invoke test_sys_wait_macros.
64155 2010-09-25  Simon Josefsson  <simon@josefsson.org>
64157         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
64158         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
64159         sure Windows sockets are working before calling getaddrinfo.
64160         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
64161         * doc/gnulib.texi (Windows sockets): Fix typo.
64163 2010-09-25  Bruno Haible  <bruno@clisp.org>
64165         Tests for module 'regex-quote'.
64166         * modules/regex-quote-tests: New file.
64167         * tests/test-regex-quote.c: New file.
64169         New module 'regex-quote'.
64170         * lib/regex-quote.h: New file.
64171         * lib/regex-quote.c: New file.
64172         * modules/regex-quote: New file.
64173         Suggested by Reuben Thomas <rrt@sc3d.org>.
64175 2010-09-24  Bruno Haible  <bruno@clisp.org>
64177         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
64178         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
64180 2010-09-23  Bruno Haible  <bruno@clisp.org>
64182         setenv: Relax license.
64183         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
64184         Blake.
64185         Requested by Eric Blake.
64187 2010-09-22  Bruno Haible  <bruno@clisp.org>
64189         termios: Relax license.
64190         * modules/termios (License): Change to LGPLv2+.
64191         Requested by Eric Blake.
64193 2010-09-22  Bruno Haible  <bruno@clisp.org>
64195         threadlib: Allow the package to change the default to 'no'.
64196         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
64197         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
64198         Reported by Paul Eggert.
64200 2010-09-22  Pádraig Brady  <P@draigbrady.com>
64201             Bruno Haible  <bruno@clisp.org>
64203         Fix endless loop in mbmemcasecoll.
64204         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
64205         byte.
64206         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
64208 2010-09-22  Bruno Haible  <bruno@clisp.org>
64210         Tests for module 'memcoll'.
64211         * modules/memcoll-tests: New file.
64212         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
64214         memcoll, xmemcoll: Clarify size vs. length.
64215         * modules/memcoll.c (memcoll0): Clarify specification.
64216         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
64217         passed to collate_error.
64219 2010-09-22  Bruno Haible  <bruno@clisp.org>
64221         Tests for module 'memcasecmp'.
64222         * modules/memcasecmp-tests: New file.
64223         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
64225 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64227         * lib/pthread.in.h: Add split double-inclusion guard, and include
64228         system <pthread.h> if there is one.  Use @@-style as in other
64229         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
64230         pthread.h doesn't.
64231         (pthread_mutexattr_destroy, pthread_mutexattr_init):
64232         (pthread_mutexattr_settype, pthread_mutex_trylock):
64233         New static inline functions, if there's no system <pthread.h>.
64234         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
64235         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
64236         Approximate with mutexes if the system lacks spinlocks, as in
64237         MacOS.
64238         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
64239         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
64240         @@-style.  Check for spinlocks separately.
64241         (gl_PTHREAD_DEFAULTS): New macro.
64242         * modules/pthread: Redo to use a more typical style for in.h files.
64244 2010-09-21  Eric Blake  <eblake@redhat.com>
64246         net_if: enhance tests
64247         * tests/test-net_if.c (main): Move signature checks earlier.
64248         Print failures to stderr.
64249         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
64250         Document the bug that we do not yet fix.
64252 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64254         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
64255         about gnulib, not GSS.
64257 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64259         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
64260         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
64261         for Emacs.
64262         * build-aux/pmccabe2html: Make Makefile.am example code more
64263         cut-and-paste friendly.
64265 2010-09-21  Simon Josefsson  <simon@josefsson.org>
64267         * tests/test-net_if.c: New file.
64268         * modules/net_if-tests: New file.
64270 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64272         pthread: add pthread_spin_destroy
64273         * lib/pthread.in.h (pthread_spin_destroy): New function.
64275 2010-09-19  Bruno Haible  <bruno@clisp.org>
64277         gnulib-tool: Fix --help output.
64278         * gnulib-tool (func_usage): Fix help message.
64279         Reported by Reuben Thomas <rrt@sc3d.org>.
64281 2010-09-18  Jim Meyering  <meyering@redhat.com>
64283         maint.mk: avoid unexpanded \n in two diagnostics
64284         * top/maint.mk (sc_prohibit_always_true_header_tests):
64285         Don't use a literal \n in a halt=... assignment.  It would not be
64286         expanded, and the two \n bytes would appear in the diagnostic output
64287         rather than the desired newline.  Use halt=$$(printf ... instead.
64288         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
64290 2010-09-18  Bruno Haible  <bruno@clisp.org>
64292         netinet_in: Doc tweak.
64293         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
64294         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64296 2010-09-18  Jim Meyering  <meyering@redhat.com>
64298         init.sh: correct an outdated comment
64299         * tests/init.sh (create_exe_shims_):  s/function/alias/
64301         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
64302         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
64303         a file named "*.exe" is removed between the glob expansion and the
64304         processing of that oddly named file.
64306 2010-09-17  Eric Blake  <eblake@redhat.com>
64308         mirbsd: add some more support
64309         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
64310         in BSD family.
64311         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
64312         devices as OpenBSD.
64313         * m4/host-os.m4 (mirbsd): Add MirBSD.
64315         tests: fix unportable assumption on sys/wait.h
64316         * tests/test-sys_wait.c (main): Relax test.
64317         * tests/test-stdlib.c (main): Likewise.
64319         init.sh: accommodate directory with no .exes
64320         * tests/init.sh: Accomodate directory containing only scripts.
64322         tests: avoid compiler warning
64323         * tests/test-stdlib.c (main): Use the variable.
64325         fdutimens, fdutimensat: update signature, again
64326         * lib/utimens.h (gl_futimens): Delete, and move signature...
64327         (fdutimens): ...here.
64328         (fdutimensat): Rearrange signature.
64329         (lutimensat): Rename variable for clarity.
64330         * lib/fdutimensat.c (fdutimensat): Update signature.
64331         * lib/utimens.c (fdutimens): Likewise.
64332         (gl_futimens): Delete.
64333         (utimens, lutimens): Update callers.
64334         * lib/futimens.c (futimens): Likewise.
64335         * tests/test-fdutimensat.c: Likewise.
64336         * tests/test-utimens.c: Likewise.
64337         * tests/test-futimens.h: Update comment.
64338         * NEWS: Mention this.
64339         Suggested by Paul Eggert.
64341 2010-09-17  Bruno Haible  <bruno@clisp.org>
64343         Take over the maintenance of some older macros from Autoconf.
64344         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
64345         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
64346         GNU Autoconf.
64347         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
64348         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
64350 2010-09-17  Eric Blake  <eblake@redhat.com>
64352         fdutimensat: drop atflag validation
64353         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
64354         with valid fd, to close a race scenario where futimens is
64355         unsupported and FILE was replaced by a symlink.
64356         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
64357         accordingly.
64358         Suggested by Paul Eggert.
64360 2010-09-16  Bruno Haible  <bruno@clisp.org>
64362         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
64363         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
64365 2010-09-16  Bruno Haible  <bruno@clisp.org>
64367         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
64368         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
64369         login_tty exists.
64370         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64372 2010-09-16  Bruno Haible  <bruno@clisp.org>
64374         login_tty: Make the replacement code work on BSD systems.
64375         * lib/login_tty.c: Include <sys/ioctl.h>.
64376         (login_tty): Use ioctl TIOCSCTTY when available.
64377         * modules/login_tty (Depends-on): Add sys_ioctl.
64378         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64380 2010-09-16  Bruno Haible  <bruno@clisp.org>
64382         login_tty: Stricter unit test.
64383         * modules/login_tty-tests (Depends-on): Add tcgetsid.
64384         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
64385         and tcgetsid() after login_tty.
64386         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64388 2010-09-16  Bruno Haible  <bruno@clisp.org>
64390         New module 'tcgetsid'.
64391         * lib/tcgetsid.c: New file.
64392         * m4/tcgetsid.m4: New file.
64393         * modules/tcgetsid: New file.
64394         * modules/termios (Depends-on): Add c++defs, warn-on-use.
64395         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
64396         GNULIB_TCGETSID, HAVE_TCGETSID.
64397         * lib/termios.in.h: Include <sys/types.h>.
64398         (tcgetsid): New declaration.
64399         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
64400         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
64401         * doc/posix-functions/tcgetsid.texi: Mention the new module.
64402         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
64404 2010-09-16  Bruno Haible  <bruno@clisp.org>
64406         Tests for module 'termios'.
64407         * modules/termios-c++-tests: New file.
64408         * modules/termios-tests: New file.
64409         * tests/test-termios-c++.cc: New file.
64410         * tests/test-termios.c: New file.
64412         New module 'termios'.
64413         * modules/termios: New file.
64414         * lib/termios.in.h: New file.
64415         * m4/termios_h.m4: New file.
64416         * doc/posix-headers/termios.texi: Mention the new module.
64418 2010-09-16  Eric Blake  <eblake@redhat.com>
64420         fdutimensat: add an atflag parameter
64421         * lib/fdutimensat.c (fdutimensat): Add new parameter.
64422         * lib/utimens.h (fdutimensat): Update prototype.
64423         * tests/test-fdutimensat.c: Adjust test to match.
64424         * NEWS: Document the change.
64425         Suggested by Paul Eggert.
64427 2010-09-16  Bruno Haible  <bruno@clisp.org>
64429         Fix typos in comments.
64430         * lib/striconveh.h: Fix typo in comment.
64431         * lib/login_tty.c (login_tty): Likewise.
64433 2010-09-15  Bruno Haible  <bruno@clisp.org>
64435         stdlib: clarify MirBSD WEXITSTATUS bug
64436         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
64437         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64439 2010-09-15  Eric Blake  <eblake@redhat.com>
64441         stdlib: work around MirBSD WEXITSTATUS bug
64442         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
64443         * modules/stdlib (Depends-on): Add sys_wait.
64444         * tests/test-sys_wait.c (main): Enhance test.
64445         * tests/test-stdlib.c (main): Likewise.
64446         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
64448         docs: mention MacOS issue with WEXITSTATUS(constant)
64449         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
64450         issue.
64451         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64453         strnlen: add tests
64454         * modules/strnlen-tests: New file.
64455         * tests/test-strnlen.c: Likewise.
64457 2010-09-14  Bruno Haible  <bruno@clisp.org>
64459         unistr/base: Avoid link errors when module 'libunistring' is also used.
64460         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
64461         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
64462         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
64463         Declare also when HAVE_LIBUNISTRING is set.
64464         Reported by Pádraig Brady <P@draigbrady.com>.
64466 2010-09-14  Eric Blake  <eblake@redhat.com>
64468         test-rawmemchr: make more robust
64469         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
64470         (Depends-on, configure.ac): Add needed prerequisites to use it.
64471         * modules/memchr-tests (Files, Depends-on, configure.ac):
64472         Likewise, to avoid implicit reliance on memchr module prereqs.
64473         * tests/test-memchr.c (main): Ensure proper masking.
64474         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
64475         reads.
64477         memchr: detect glibc Alpha bug
64478         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
64479         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
64480         Alpha.
64481         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
64482         * tests/test-memchr.c (main): Enhance test.
64483         Reported by Nelson H. F. Beebe.
64485 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64487         fts, getcwd, glob: audit for dirfd returning -1
64488         * lib/fts.c (opendir): Remove #define; no longer used.
64489         (opendirat): New arg PDIR_FD.  All callers changed.
64490         (fts_build, _opendir2): Use new opendirat to avoid the need for
64491         dirfd, or for checking whether dirfd returns a negative value.
64492         Don't use opendir; always use openat followed by fdopendir.
64493         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
64494         it.
64495         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
64496         returns -1 here.
64497         * modules/fts (Depends-on): Remove dirfd.
64498         * modules/getcwd (Depends-on): Likewise.
64500 2010-09-13  Eric Blake  <eblake@redhat.com>
64502         float: fix broken MirBSD header
64503         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
64504         * doc/posix-headers/float.texi (float.h): Document it.
64506 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64508         fts: use O_NOFOLLOW to avoid race condition when opening a directory
64509         * lib/fts.c (opendirat): New arg extra_flags.
64510         (__opendir2): Use it to avoid following symlinks when opening
64511         a directory, if symlinks are not supposed to be followed.  See
64512         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
64514         fdopendir: preserve argument fd before returning
64515         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
64516         (fdopendir_with_dup, fd_clone_opendir): New static functions.
64517         (fdopendir): Use them, arranging for FD to be open to the same
64518         directory that it was when it started.  (It might be temporarily
64519         closed while fdopendir is running, so this not thread- or
64520         signal-safe.)  Be careful to do the right thing even when file
64521         descriptors are scarce and dup fails with errno == EMFILE.  See
64522         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
64524 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
64526         regex: Pass the system regex if its only problem is 32-bit regoff_t.
64527         * NEWS: Document change.
64528         * m4/regex.m4: Disable test for regoff_t size.
64530 2010-09-13  Jim Meyering  <meyering@redhat.com>
64532         fts: don't operate on an invalid file descriptor after failed dup
64533         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
64534         negative file descriptor.
64536 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64538         savedir: add streamsavedir, deprecate fdsavedir
64539         * NEWS: Mention deprecation of fdsavedir.
64540         * lib/savedir.c (streamsavedir): New extern function, whose name
64541         ends in "savedir" to be consistent with the others.  This differs
64542         from savedirstream in that it doesn't close its argument.  The
64543         next version of GNU tar will use this instead of fdsavedir, to
64544         avoid some race conditions and conserve file descriptors.
64545         (savedirstream): Reimplement as a wrapper around streamsavedir.
64546         (fdsavedir): Add a comment deprecating this function.  As far as
64547         I know, only GNU tar used it, and GNU tar doesn't need it any more.
64548         * lib/savedir.h (streamsavedir): New decl.
64549         (fdsavedir): Add a comment deprecating this.
64551 2010-09-10  Bruno Haible  <bruno@clisp.org>
64553         langinfo: Fix last commit.
64554         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
64555         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
64556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64558 2010-09-10  Bruno Haible  <bruno@clisp.org>
64560         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
64561         * lib/progreloc.c (O_EXEC): Define fallback.
64563 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
64565         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
64566         * NEWS: Document recent changes to fcntl-h.
64567         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
64568         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
64569         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
64570         Similarly for O_SEARCH; this last was already true, but not documented.
64571         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
64572         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
64573         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
64574         Likewise.
64575         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
64576         is zero, not whether it is defined.
64577         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
64578         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
64579         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
64581 2010-09-10  Bruno Haible  <bruno@clisp.org>
64583         langinfo, nl_langinfo: Fix for IRIX 5.3.
64584         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
64585         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
64586         HAVE_LANGINFO_YESEXPR.
64587         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
64588         HAVE_LANGINFO_YESEXPR.
64589         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
64590         HAVE_LANGINFO_T_FMT_AMPM is 0.
64591         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
64592         HAVE_LANGINFO_YESEXPR is 0.
64593         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
64594         NOEXPR.
64595         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
64596         * doc/posix-functions/nl_langinfo.texi: Likewise.
64597         Reported by Eric Blake.
64599 2010-09-10  Bruno Haible  <bruno@clisp.org>
64601         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
64602         * doc/glibc-functions/login_tty.texi: Mention the include file problem
64603         on FreeBSD 8.0 and OpenBSD 4.6.
64604         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
64605         * m4/pty_h.m4 (gl_PTY_H): Likewise.
64606         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
64607         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
64608         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
64609         ac_includes_default.
64610         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64612 2010-09-09  Eric Blake  <eblake@redhat.com>
64614         strsignal: work around NetBSD bug
64615         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
64616         * lib/string.in.h (includes): Likewise.
64617         * doc/posix-functions/strsignal.texi (strsignal): Document the
64618         bug.
64619         Reported by Nelson H. F. Beebe.
64621         gnulib-tool: work with NetBSD /bin/sh
64622         * gnulib-tool (func_cache_var, func_cache_lookup_module)
64623         (func_get_description, func_get_comment, func_get_status)
64624         (func_get_notice, func_get_applicability, func_get_filelist)
64625         (func_get_dependencies, func_get_autoconf_early_snippet)
64626         (func_get_autoconf_snippet, func_get_automake_snippet)
64627         (func_get_include_directive, func_get_link_directive)
64628         (func_get_license, func_get_maintainer, func_import): Avoid
64629         shell syntax errors from parsing syntax extensions.
64631 2010-09-09  Bruno Haible  <bruno@clisp.org>
64633         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64634         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
64635         a reliable way to determine whether the 'alias' command works.
64637 2010-09-08  Jim Meyering  <meyering@redhat.com>
64639         init.sh: penalize a set-x-impaired shell; don't disqualify it
64640         * tests/init.sh: Too many shells corrupt application stderr when
64641         you set -x, so we can't afford to disqualify them, since at least
64642         on Irix-6.5, that would disqualify all bourne shells.
64643         Instead, use a two-pass approach.
64644         On the first pass, try to find a shell that meets the stricter
64645         condition that set -x does not corrupt stderr.
64646         If no shell meets the stricter condition, retest each candidate
64647         shell, but without that extra condition.  Finally, when
64648         VERBOSE=yes is requested and set -x might cause trouble, simply
64649         issue a warning and refrain from enabling debug output.
64651 2010-09-08  Eric Blake  <eblake@redhat.com>
64653         unsetenv: fix OpenBSD bug
64654         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
64655         * doc/posix-functions/unsetenv.texi (unsetenv): Update
64656         documentation.
64657         Reported by Jim Meyering.
64659         strtod: work around IRIX 6.5 bug
64660         * lib/strtod.c (strtod): Reparse number on shorter string if
64661         exponent parse was invalid.
64662         * tests/test-strtod.c (main): Add check for "0x1p 2".
64663         Reported by Tom G. Christensen.
64665         getopt: optimize previous patch
64666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
64667         empty variable.  Speed up awk script.
64668         Reported by Paolo Bonzini.
64670 2010-09-08  Jim Meyering  <meyering@redhat.com>
64672         test.sh: disqualify shells for which set -x corrupts stderr
64673         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
64674         and OpenBSD 4.7.  They make it so with "set -x", environment settings
64675         appear in stderr output.  For example, this command:
64676             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
64677         prints "P=1" on those two systems:
64679 2010-09-08  Bruno Haible  <bruno@clisp.org>
64681         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64682         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
64683         commands, because some shells ignore redirections when there is an
64684         error in the command lookup.
64685         Reported by Eric Blake.
64687 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
64689         * lib/regex.h: Fix a mention of `regex_compile' (should be
64690         `re_compile_pattern').
64691         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
64692         (re_set_registers): Correct name of parameter in comment.
64694         * doc/regex.texi: Add documentation for missing syntax flags.
64695         Remove commented-out documentation of defunct syntax option
64696         RE_NO_EMPTY_ALTS.
64697         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
64698         Add documentation of re_set_registers.
64699         Document trick to re-use a pattern buffer by setting fastmap manually.
64700         Update documentation of struct re_pattern_buffer per public members.
64701         Uncomment documentation of equivalence class operators and
64702         collating symbol operators, since they are now implemented,
64703         Explain leftmost-longest matching in relation to alternatives.
64704         Tidy documentation of substring matching.
64705         Remove POSIX documentation, which is done better in
64706         glibc, and refer the reader there. Keep BSD API documentation, as
64707         that is not readily available elsewhere.
64709 2010-09-07  Eric Blake  <eblake@redhat.com>
64711         getopt: handle POSIXLY_CORRECT set but not exported
64712         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
64713         export state of POSIXLY_CORRECT, due to bash set -o posix.
64714         Reported by Dustin J. Mitchell.
64716 2010-09-05  Bruno Haible  <bruno@clisp.org>
64718         gnulib-tool: Highlight the changed options.
64719         * gnulib-tool (func_usage): Display the --import, --add-import,
64720         --remove-import explanations in bold font.
64722 2010-09-06  Karl Berry  <karl@gnu.org>
64724         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
64726 2010-09-05  Bruno Haible  <bruno@clisp.org>
64728         uniwidth/width: Update comment.
64729         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
64730         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
64732 2010-09-05  Bruno Haible  <bruno@clisp.org>
64734         isinf, isnan: Relax license.
64735         * modules/isinf (License): Change from GPL to LGPL, with consent from
64736         Ben Pfaff.
64737         * modules/isnan (License): Likewise.
64738         Requested by Ludovic Courtès.
64740 2010-09-04  Bruno Haible  <bruno@clisp.org>
64742         gnulib-tool: Help migration from --import to --add-import or --update.
64743         * gnulib-tool: Emit a verbose error message when --import is used
64744         without any module name.
64746 2010-09-04  Bruno Haible  <bruno@clisp.org>
64748         Update doc about gnulib-tool.
64749         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
64750         'gnulib-tool --update' in more detail.
64751         Reported by Eric Blake.
64753 2010-09-04  Bruno Haible  <bruno@clisp.org>
64755         gnulib-tool: Change --import. New options --add/remove-import.
64756         * gnulib-tool: New options --add-import, --remove-import.
64757         (func_usage): Document them.
64758         (have_associative): Define always.
64759         (func_import): In import mode, don't merge the specified settings with
64760         the cached settings. Implement remove-import mode.
64761         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
64762         Explain when to use them versus --import.
64763         (Simple update): Use --add-import instead of --import.
64764         * NEWS: Mention the change.
64766 2010-09-04  Bruno Haible  <bruno@clisp.org>
64768         * doc/gnulib-tool.texi (Initial import): Update paragraph about
64769         separate gnulib.mk.
64771 2010-09-04  Bruno Haible  <bruno@clisp.org>
64773         gnulib-tool: Don't talk about CVS any more.
64774         * gnulib-tool (func_usage, func_import): Write "version control"
64775         instead of CVS.
64777 2010-09-04  Jim Meyering  <meyering@redhat.com>
64779         maint.mk: avoid obscure sc_copyright_check failure in coreutils
64780         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
64781         false positives (whose names may be ill-chosen) when searching
64782         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
64783         would cause a false-positive.
64785         avoid coreutils "make distcheck" failure
64786         Coreutils tests with an absolute build directory name that contains
64787         a space.  Not quoting this directory name caused a failure.
64788         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
64789         * tests/test-vc-list-files-cvs.sh: Likewise.
64791 2010-09-04  Bruno Haible  <bruno@clisp.org>
64793         gnulib-tool: Avoid error when run in a package without Makefile.am.
64794         * gnulib-tool: When collecting the m4dirs in a package that does not
64795         have a Makefile.am, eliminate those directories that contain no
64796         gnulib-cache.m4. Fix expression that counts these directories.
64798 2010-09-04  Bruno Haible  <bruno@clisp.org>
64800         update-copyright test: Improve output when perl is missing or too old.
64801         * tests/test-update-copyright.sh: Move test of Perl version down after
64802         the test whether Perl exists. Provide an explanation relating Perl's
64803         error message to Automake's SKIP: message.
64805 2010-09-04  Bruno Haible  <bruno@clisp.org>
64807         Don't augment PATH in TESTS_ENVIRONMENT.
64808         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
64809         set abs_aux_dir instead of augmenting PATH.
64810         * modules/vc-list-files-tests (Makefile.am): Likewise.
64811         * tests/test-update-copyright.sh: Augment PATH here.
64812         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
64813         path_prepend_.
64814         * tests/test-vc-list-files-git.sh: Likewise.
64816 2010-09-04  Jim Meyering  <meyering@redhat.com>
64818         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
64819         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
64821 2010-09-04  Bruno Haible  <bruno@clisp.org>
64823         strdup: Fix compilation error in C++ mode.
64824         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
64825         the macro.
64827 2010-09-04  Bruno Haible  <bruno@clisp.org>
64829         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
64830         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
64831         macro into a function.
64832         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64834 2010-09-04  Bruno Haible  <bruno@clisp.org>
64836         Set PATH_SEPARATOR the same way autoconf does.
64837         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
64838         the value of PATH_SEPARATOR the same way autoconf-generated configure
64839         scripts do.
64840         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
64841         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
64843 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
64845         Set PATH_SEPARATOR the same way autoconf does.
64846         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
64847         the same way autoconf-generated configure scripts do.
64848         * posix-modules: Likewise.
64850 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64852         hash: fix safe_hasher const typo
64853         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
64854         const; otherwise, there is a type error later.
64856 2010-09-02  Jim Meyering  <meyering@redhat.com>
64858         test-update-copyright.sh: require perl 5.8.0
64859         * tests/test-update-copyright.sh: Require 5.8.0,
64860         which Tom G. Christensen has confirmed is adequate,
64861         while 5.6.1 is not.
64863 2010-09-02  Eric Blake  <eblake@redhat.com>
64865         tests: init.sh improvements for re-exec'ing with zsh
64866         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
64867         -vx through shell re-exec.
64868         Reported by Tom G. Christensen.
64870         wctype: fix typo in previous commit
64871         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
64872         Reported by Ludovic Courtès.
64874 2010-09-02  Jim Meyering  <meyering@redhat.com>
64876         test-update-copyright.sh: skip test if Perl is too old
64877         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
64878         Reported by Tom G. Christensen.
64880 2010-09-02  Bruno Haible  <bruno@clisp.org>
64882         wctype: Avoid compilation error on IRIX 6.5.30.
64883         * lib/wctype.in.h (iswblank): Declare with a replacement if
64884         REPLACE_ISWBLANK is set.
64885         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
64886         declared. Set REPLACE_ISWBLANK.
64887         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
64888         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
64889         * doc/posix-headers/wctype.texi: Likewise.
64890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64892 2010-09-01  Bruno Haible  <bruno@clisp.org>
64894         New module 'socketlib'.
64895         * modules/socketlib: New file.
64896         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
64897         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
64898         * modules/sockets (Depends-on): Add socketlib.
64899         Suggested by Sam Steingold <sds@gnu.org>.
64901 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64903         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
64905         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
64906         when one needs search access to a directory but not read access.
64907         On systems where it is available, it works in some cases where
64908         O_RDONLY does not, namely on directories that are searchable but
64909         not readable, and which need only to be searchable.  If O_SEARCH
64910         is not available, fall back to the traditional method of using
64911         O_RDONLY.
64913         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
64914         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
64915         when opening a directory that needs only to be searchable.
64916         * lib/chdir-safer.c (chdir_no_follow): Likewise.
64917         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
64918         * lib/openat-proc.c (openat_proc_name): Likewise.
64919         * lib/openat.c (openat_needs_fchdir): Likewise.
64920         * lib/save-cwd.c (save_cwd): Likewise.
64921         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
64923 2010-08-28  Bruno Haible  <bruno@clisp.org>
64925         New module 'host-cpu-c-abi'.
64926         * modules/host-cpu-c-abi: New file.
64927         * m4/host-cpu-c-abi.m4: New file, based on part of
64928         clisp/src/m4/general.m4.
64929         Requested by Sam Steingold <sds@gnu.org>.
64931 2010-08-31  Eric Blake  <eblake@redhat.com>
64932         and Jim Meyering  <meyering@redhat.com>
64934         hash: factor, and guard against misbehaving hasher function
64935         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
64936         of table->hasher's return value.  Also protect against a hash value
64937         so large that adding it to table->bucket results in a NULL pointer.
64938         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
64939         Use it in place of open-coded check-and-abort.
64941 2010-08-30  Bruno Haible  <bruno@clisp.org>
64943         hash: silence spurious clang warning
64944         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
64945         Reported by Eric Blake.
64947 2010-08-30  Eric Blake  <eblake@redhat.com>
64949         strstr, memmem, strcasestr: avoid leaked shell message
64950         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
64951         FreeBSD.
64952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64953         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64955         tests: silence clang warning
64956         * tests/test-malloca.c (do_allocation): Avoid dead store.
64958 2010-08-29  Bruno Haible  <bruno@clisp.org>
64960         gettext: Fix recent mistake.
64961         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
64963 2010-08-29  Bruno Haible  <bruno@clisp.org>
64965         selinux-h: Offer a --without-selinux option.
64966         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
64967         --without-selinux was specified, skip all tests and define
64968         HAVE_SELINUX_SELINUX_H to 0.
64969         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
64970         set LIB_SELINUX to empty.
64971         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
64972         gl_LIBSELINUX. If --without-selinux was specified, replace
64973         selinux/context.h.
64974         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
64976 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64977             Bruno Haible  <bruno@clisp.org>
64979         Make the module 'realloc-gnu' work again on AIX and OSF/1.
64980         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
64981         of HAVE_REALLOC.
64982         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
64983         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
64984         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
64985         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64987 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64988             Bruno Haible  <bruno@clisp.org>
64990         Make the module 'calloc-gnu' work again on AIX and OSF/1.
64991         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
64992         HAVE_CALLOC.
64993         * lib/xmalloc.c: Update accordingly.
64994         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
64995         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
64996         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
64998 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64999             Bruno Haible  <bruno@clisp.org>
65001         Make the module 'malloc-gnu' work again on AIX and OSF/1.
65002         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
65003         HAVE_MALLOC.
65004         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
65005         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
65006         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65008 2010-08-29  Bruno Haible  <bruno@clisp.org>
65010         Update modules list.
65011         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
65012         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
65013         (String handling <string.h>): Add astrxfrm.
65014         (File system functions): Add readlinkat.
65016 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65018         Tests for module 'realloc-gnu'.
65019         * modules/realloc-gnu-tests: New file.
65020         * tests/test-realloc-gnu.c: New file.
65022         Tests for module 'calloc-gnu'.
65023         * modules/calloc-gnu-tests: New file.
65024         * tests/test-calloc-gnu.c: New file.
65026         Tests for module 'malloc-gnu'.
65027         * modules/malloc-gnu-tests: New file.
65028         * tests/test-malloc-gnu.c: New file.
65030 2010-08-28  Bruno Haible  <bruno@clisp.org>
65032         Rename module 'realloc' -> 'realloc-gnu'.
65033         * modules/realloc-gnu: New file, copied from modules/realloc.
65034         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
65035         obsolete.
65036         * modules/mgetgroups (Depends-on): Update.
65037         * doc/posix-functions/realloc.texi: Update.
65038         * NEWS: Mention the change.
65040         Rename module 'calloc' -> 'calloc-gnu'.
65041         * modules/calloc-gnu: New file, copied from modules/calloc.
65042         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
65043         obsolete.
65044         * doc/posix-functions/calloc.texi: Update.
65045         * NEWS: Mention the change.
65047         Rename module 'malloc' -> 'malloc-gnu'.
65048         * modules/malloc-gnu: New file, copied from modules/malloc.
65049         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
65050         obsolete.
65051         * modules/argp (Depends-on): Update.
65052         * modules/regex (Depends-on): Update.
65053         * doc/posix-functions/malloc.texi: Update.
65054         * NEWS: Mention the change.
65056 2010-08-28  Eric Blake  <eblake@redhat.com>
65058         pread, pwrite: add missing dependency
65059         * modules/pread (Depends-on): Add extensions.
65060         * modules/pwrite (Depends-on): Likewise.
65062 2010-08-28  Bruno Haible  <bruno@clisp.org>
65064         unistr/u*-strchr: Fix tests dependencies.
65065         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
65066         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
65067         Reported by Ian Beckwith <ianb@erislabs.net>.
65069 2010-08-28  Bruno Haible  <bruno@clisp.org>
65071         read-file: Don't occupy too much unused memory.
65072         * lib/read-file.c (fread_file): Shrink the buffer at the end.
65074 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
65075             Eric Blake  <eblake@redhat.com>
65076             Bruno Haible  <bruno@clisp.org>
65078         read-file: Avoid memory reallocations with regular files.
65079         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
65080         (fread_file): With regular files, use the remaining length as the
65081         initial buffer size.  Check against overflow.
65082         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
65083         sys_stat.
65085 2010-08-28  Bruno Haible  <bruno@clisp.org>
65087         ftello: Relax license.
65088         * modules/ftello (License): Relax to LGPLv2+.
65089         Reported by Eric Blake.
65091 2010-08-28  Bruno Haible  <bruno@clisp.org>
65093         Avoid relocwrapper link errors due to gnulib replacement functions.
65094         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
65095         function.
65096         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65098 2010-08-28  Bruno Haible  <bruno@clisp.org>
65100         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
65101         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
65102         defined.
65103         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
65104         Suggested by Eric Blake.
65106 2010-08-28  Bruno Haible  <bruno@clisp.org>
65108         sys_socket, netdb: Ensure socklen_t gets defined.
65109         * modules/sys_socket (Depends-on): Add socklen.
65110         * modules/netdb (Depends-on): Likewise.
65111         * modules/getaddrinfo (Depends-on): Remove socklen.
65112         * modules/getsockopt (Depends-on): Likewise.
65113         * modules/setsockopt (Depends-on): Likewise.
65114         * tests/test-sys_socket.c: Check that socklen_t is defined.
65115         * tests/test-netdb.c: Likewise.
65116         * m4/socklen.m4: Update comments.
65117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65119 2010-08-27  Eric Blake  <eblake@redhat.com>
65121         login_tty: add missing dependency
65122         * modules/login_tty (Depends-on): Add pty.
65124 2010-08-26  Eric Blake  <eblake@redhat.com>
65126         lib-symbol-versions: fix m4 quoting
65127         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
65128         format for AC_LINK_IFELSE.
65130         glob: fix compile test
65131         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
65133         btowc: fix missing file
65134         * modules/btowc (Files): Also ship locale-fr.m4.
65136         lseek: fix link test
65137         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
65138         AC_LINK_IFELSE.
65140         include_next: silence autoconf 2.68 warning
65141         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
65142         AC_COMPILE_IFELSE as special.
65143         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
65144         autoconf < 2.68.
65146         acl: fix compilation test
65147         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
65148         AC_COMPILE_IFELSE.
65150 2010-08-26  Bruno Haible  <bruno@clisp.org>
65152         Modernize AC_TRY_RUN invocations.
65153         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
65154         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
65155         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
65156         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
65157         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
65158         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
65160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65161         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65162         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65163         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
65164         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
65165         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
65166         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
65167         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
65168         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
65169         gl_MBRLEN_NUL_RETVAL): Likewise.
65170         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65171         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65172         Likewise.
65173         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65174         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
65175         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
65176         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
65177         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
65178         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
65179         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
65180         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
65181         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
65182         Likewise.
65183         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
65184         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
65185         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65186         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65187         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65188         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
65189         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
65190         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
65191         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65194 2010-08-26  Bruno Haible  <bruno@clisp.org>
65196         Modernize AC_TRY_LINK invocations.
65197         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
65198         AC_TRY_LINK.
65199         * m4/argp.m4 (gl_ARGP): Likewise.
65200         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
65201         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
65202         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65203         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65204         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65205         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
65206         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
65207         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
65208         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65209         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65210         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65211         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
65212         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
65213         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65214         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65215         * m4/hostent.m4 (gl_HOSTENT): Likewise.
65216         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65217         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
65218         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
65219         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
65220         Likewise.
65221         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
65222         Likewise.
65223         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
65224         Likewise.
65225         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
65226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
65227         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
65228         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
65229         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
65230         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65231         * m4/servent.m4 (gl_SERVENT): Likewise.
65232         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
65233         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
65234         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
65235         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
65236         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65237         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
65238         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65239         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65240         * modules/tsearch-tests (configure.ac): Likewise.
65242 2010-08-26  Bruno Haible  <bruno@clisp.org>
65244         Modernize AC_TRY_COMPILE invocations.
65245         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
65246         AC_TRY_COMPILE.
65247         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
65248         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
65249         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
65250         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65251         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
65252         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65253         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65254         * m4/lock.m4 (gl_LOCK): Likewise.
65255         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
65256         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65257         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
65258         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
65259         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
65260         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
65261         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
65262         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
65263         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
65264         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
65265         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
65266         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65267         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
65268         extraneous semicolon.
65270 2010-08-26  Jim Meyering  <meyering@redhat.com>
65272         stat-time: relax license LGPL
65273         * modules/stat-time (License): Change from GPL to LGPL,
65274         with consent from all contributors, for use in libguile.
65275         Requested by Ludovic Courtès.
65277 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
65279         poll: return immediately on POLLHUP.
65280         * lib/poll.c (poll): Always set timeout before wait_timeout is
65281         computed.
65283 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65285         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
65286         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
65287         rmdir ("dir/.//"), unlinkat.
65289 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65291         stdbool: avoid spurious failure with modern xlc
65292         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65294 2010-08-24  Bruno Haible  <bruno@clisp.org>
65296         getloadavg: simplify code
65297         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
65298         gl_have_func. Update comments.
65300 2010-08-24  Eric Blake  <eblake@redhat.com>
65302         getloadavg: don't define SVR4 on cygwin
65303         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
65304         only define SVR4 when -lkvm is required.
65305         Reported by Yaakov Selkowitz.
65307 2010-08-24  Bruno Haible  <bruno@clisp.org>
65309         priv-set: fix comment
65310         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
65312 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65314         priv-set: fix comments
65315         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
65316         to match code, as suggested by David Bartley in:
65317         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
65319 2010-08-23  Eric Blake  <eblake@redhat.com>
65321         stdbool: avoid rejecting clang
65322         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65323         * tests/test-stdbool.c: Enable more tests if using the system
65324         <stdbool.h> instead of the gnulib replacement.
65325         (main): Move xlc bug test to a runtime test for all compilers.
65326         Reported by Anders Kaseorg.
65328         argz: fix shell quoting issue
65329         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
65330         Reported by Charles Wilson.
65332 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
65333             Erik Faye-Lund <kusmabite@gmail.com>
65335         poll, select: handle ERROR_BROKEN_PIPE.
65336         * lib/poll.c (win32_compute_revents): Return POLLHUP when
65337         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65338         * lib/select.c (win32_compute_revents): Do not mark a pipe
65339         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65341 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
65343         fts: allow compilation with C++
65344         * lib/fts_.h: Specify extern "C" linkage with C++.
65346 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65348         Fix gnulib-tool sed script de-commentation for AIX sed.
65349         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
65350         sed.
65352 2010-08-17  Eric Blake  <eblake@redhat.com>
65354         test-stddef: test for (some) offsetof bugs
65355         * tests/test-stddef.c: Enhance test to ensure correct type of
65356         offsetof.
65357         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
65358         that we are not fixing at this time.
65360 2010-08-15  Bruno Haible  <bruno@clisp.org>
65362         stpncpy: Allow stpncpy to be defined as a macro.
65363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
65364         if it's already correctly declared.
65365         * lib/string.in.h (stpncpy): Undefine before redefining.
65366         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
65368 2010-08-14  Bruno Haible  <bruno@clisp.org>
65370         Rename module 'memxfrm' to 'amemxfrm'.
65371         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
65372         (amemxfrm): Renamed from memxfrm.
65373         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
65374         (amemxfrm): Renamed from memxfrm.
65375         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
65376         * NEWS: Mention the change.
65377         * MODULES.html.sh (String handling <string.h>): Update.
65378         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
65379         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
65380         * lib/unicase/u16-casexfrm.c: Likewise.
65381         * lib/unicase/u32-casexfrm.c: Likewise.
65382         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
65383         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
65384         * lib/uninorm/u16-normxfrm.c: Likewise.
65385         * lib/uninorm/u32-normxfrm.c: Likewise.
65386         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
65387         memxfrm.
65388         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
65389         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
65390         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
65391         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
65392         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
65393         Suggested by Paul Eggert.
65395 2010-08-14  Bruno Haible  <bruno@clisp.org>
65397         Tests for module 'astrxfrm'.
65398         * modules/astrxfrm-tests: New file.
65399         * tests/test-astrxfrm.c: New file.
65401         New module 'astrxfrm'.
65402         * lib/astrxfrm.h: New file.
65403         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
65404         * modules/astrxfrm: New file.
65406 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
65408         regex: Tweak doc.
65409         * doc/regex.texi (Overview): Don't mention regex.c.
65410         (GNU Regular Expression Compiling): Likewise.
65411         (Match-end-of-line Operator): Mention 'not_eol'.
65413 2010-08-14  Brian Gough  <bjg@gnu.org>
65414             Bruno Haible  <bruno@clisp.org>
65416         git-merge-changelog: add doc relating to use with bzr and hg.
65417         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
65419 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
65421         pthread: fix pthread.h creation for srcdir != builddir
65422         * modules/pthread (Makefile.am): Fix the rule to work also in a
65423         non-srcdir build.
65425 2010-08-13  Karl Berry  <karl@gnu.org>
65427         * doc/regex.texi (Predefined Syntaxes): @smallexample.
65428         * doc/posix-*/*: force line break before @url of POSIX
65429         specifications.
65430         Suggested by Werner Lemberg.
65432 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65434         strtod: fix const diagnostic
65435         * lib/strtod.c (strtod): Don't assign const char * to char *,
65436         as this elicits a warning from GCC when warnings are enabled.
65438 2010-08-10  Pádraig Brady  <P@draigbrady.com>
65439         and Eric Blake  <eblake@redhat.com>
65441         copy-acl: ignore ENOTSUP on HP-UX
65442         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
65443         so that it is available for HP-UX.
65444         * lib/copy-acl.c (qcopy_acl): Use it.
65445         Reported by Patrick M. Callahan.
65447 2010-08-10  Eric Blake  <eblake@redhat.com>
65449         open, chown: relax license
65450         * modules/open (License): Change to LGPLv2+, with consent by all
65451         authors, for use in augeas.
65452         * modules/chown (License): Likewise.
65453         * modules/lchown (Likewise): Likewise.
65454         Requested by Adam Stokes.
65456 2010-08-09  Karl Berry  <karl@gnu.org>
65458         * build-aux/ar-lib: new file, import from Automake.
65459         * config/srclist.txt: autocheck for updates.
65461 2010-08-09  Eric Blake  <eblake@redhat.com>
65463         readlinkat: adjust client modules
65464         * modules/areadlinkat (Depends-on): Use readlinkat, not
65465         symlinkat.
65466         * modules/areadlinkat-with-size (Depends-on): Likewise.
65468         mknod: be more vocal about danger of running tests as root
65469         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
65470         root, since that is just asking for problems.
65471         Suggested by Bruno Haible, based on a report by Rainer Tammer.
65473         readlinkat: split into its own module
65474         * modules/symlinkat: Split readlinkat...
65475         * modules/readlinkat: ...into separate module.
65476         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
65477         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
65478         * lib/symlinkat.c (readlinkat): Move...
65479         * lib/readlinkat.c: ...into new file.
65480         * modules/symlinkat-tests: Split readlinkat test...
65481         * modules/readlinkat-tests: ...into separate module.
65482         * tests/test-symlinkat.c: Split...
65483         * tests/test-readlinkat.c: ...into new file.
65484         * NEWS: Document the split.
65485         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
65486         * lib/unistd.in.h (readlinkat): Likewise.
65487         Suggested by Bruno Haible.
65489 2010-08-08  Bruno Haible  <bruno@clisp.org>
65491         memxfrm: Speed up.
65492         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
65493         that usually only one call to strxfrm is necessary for each string
65494         part.
65495         Reported by Paul Eggert <eggert@cs.ucla.edu>.
65497 2010-08-07  Karl Berry  <karl@gnu.org>
65499         * doc/posix-headers/limits.texi,
65500         * doc/posix-functions/malloc.texi,
65501         * doc/posix-functions/strsignal.texi: missing @item.
65502         * doc/ld-version-script.texi: spurious leading i.
65503         * doc/regex.texi (Interval Operators): no commas inside @var.
65505 2010-08-01  Bruno Haible  <bruno@clisp.org>
65507         Integrate the regex documentation.
65508         * doc/gnulib.texi: Define 'cn' index.
65509         (Regular expressions): New a chapter that includes regex.texi and
65510         regexprops-generic.texi.
65511         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
65512         syntax.
65514         Whitespace cleanup.
65515         * doc/regex.texi: Remove trailing spaces.
65517         Add regex documentation.
65518         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
65519         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
65520         Written by Kathy A. Hargreaves and Karl Berry.
65522 2010-08-01  Bruno Haible  <bruno@clisp.org>
65524         link: Update documentation.
65525         * doc/posix-functions/link.texi: Update regarding Solaris.
65527 2010-07-31  Bruno Haible  <bruno@clisp.org>
65529         Update modules list.
65530         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
65531         (String handling <string.h>): Add memcmp2, memxfrm.
65532         (Container data structures): Add xlist, xsublist, xoset.
65533         (Core language properties): Add alignof, unused-parameter.
65534         (Process control, Numeric conversion functions <stdlib.h>): Renamed
65535         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
65536         (Unibyte characters <ctype.h>): New section.
65537         (String handling <string.h>): New section.
65538         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
65539         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
65540         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
65541         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
65542         tan, tanh, tanl, y0, y1, yn.
65543         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
65544         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
65545         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
65546         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
65547         unlockpt, vdprintf, vdprintf-posix.
65548         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
65549         (File system functions): Add concat-filename, sys_file, sys_ioctl,
65550         xconcat-filename.
65551         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
65552         getdtablesize, pipe2, pipe2-safer.
65553         (Security): New section.
65554         (Networking functions): Add accept4.
65555         (Signal handling): Add sigpipe.
65556         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
65557         mbmemcasecoll.
65558         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
65559         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
65560         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
65561         pipe-filter-ii.
65562         (Misc): Add argp-version-etc, login_tty, parse-duration.
65564 2010-07-31  Bruno Haible  <bruno@clisp.org>
65566         Improve doc in MODULES.html.
65567         * modules/linkat (Description): Add the word "function".
65568         * modules/mkfifo (Description): Likewise.
65569         * modules/mknod (Description): Likewise.
65570         * modules/remove (Description): Likewise.
65571         * modules/renameat (Description): Likewise.
65572         * modules/stat (Description): Likewise.
65573         * modules/symlink (Description): Likewise.
65574         * modules/unlink (Description): Likewise.
65576 2010-07-31  Bruno Haible  <bruno@clisp.org>
65578         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
65579         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
65580         option --enable/disable-c++ instead of --enable/disable-cxx.
65581         * NEWS: Mention the change.
65583 2010-07-31  Bruno Haible  <bruno@clisp.org>
65585         readlink, areadlink: Relax test a bit.
65586         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
65587         alternative to ENOTDIR.
65588         * tests/test-areadlink.h (test_areadlink): Likewise.
65589         Reported by Rainer Tammer.
65591 2010-07-31  Bruno Haible  <bruno@clisp.org>
65593         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
65594         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
65595         character, perform the search using U_STRCHR.
65596         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
65597         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
65598         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
65599         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
65600         Suggested by Paolo Bonzini.
65602 2010-07-31  Bruno Haible  <bruno@clisp.org>
65604         unistr/u*-strstr: Fix dependencies.
65605         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
65606         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
65607         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
65609 2010-07-31  Bruno Haible  <bruno@clisp.org>
65611         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
65612         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
65613         the beginning of the loop.
65614         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
65615         cases in 'switch' statement.
65617         unistr/u8-strchr: Fix several bugs.
65618         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
65619         the string. When not found, return NULL, not a pointer near the end.
65621         More tests for unistr/u8-strchr.
65622         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
65623         that the function does not read past the first occurrence of the byte
65624         being searched.
65625         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
65626         * tests/unistr/test-u16-strchr.c (main): New function.
65627         * tests/unistr/test-u32-strchr.c (main): New function.
65629 2010-07-31  Bruno Haible  <bruno@clisp.org>
65631         posix-modules: Ignore backup files of documentation files.
65632         * posix-modules: grep only through files named *.texi.
65634 2010-07-31  Bruno Haible  <bruno@clisp.org>
65636         symlinkat: Fix documentation.
65637         * doc/posix-functions/readlinkat.texi: Fix module name.
65639 2010-07-31  Bruno Haible  <bruno@clisp.org>
65641         fchownat: Replace also when chown has the trailing slash bug.
65642         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
65643         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
65644         introduced on 2010-04-10.
65645         Reported by Rainer Tammer.
65647 2010-07-31  Bruno Haible  <bruno@clisp.org>
65649         linkat: Work around AIX 7.1 bug.
65650         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
65651         whether linkat handles trailing slash correctly. If not, replace linkat
65652         and define LINKAT_TRAILING_SLASH_BUG.
65653         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
65654         check whether (fd1,file1) points to a directory if file1 or file2 ends
65655         in a slash. Code taken from lib/link.c.
65656         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
65657         Reported by Rainer Tammer.
65659 2010-07-31  Bruno Haible  <bruno@clisp.org>
65661         Correctly determine whether pow is available in libc on AIX 7 with xlc.
65662         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
65663         This disables an xlc optimization that was causing wrong test results.
65664         Reported by Rainer Tammer.
65666 2010-07-31  Bruno Haible  <bruno@clisp.org>
65668         iconv: Work around AIX 6.1..7.1 bug.
65669         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
65670         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
65671         cross-compiling, guess no on all versions of AIX.
65672         Reported by Rainer Tammer.
65674 2010-07-31  Bruno Haible  <bruno@clisp.org>
65676         readlink: Relax test a bit.
65677         * tests/test-readlink.h (test_readlink): Allow different errno value
65678         when readlink is called with a file name that ends in / and refers to
65679         a file.
65680         Suggested by Eric Blake.
65681         Reported by Rainer Tammer.
65683 2010-07-31  Bruno Haible  <bruno@clisp.org>
65685         copysign: Does not require -lm on glibc systems.
65686         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
65687         gl_COMMON_DOUBLE_MATHFUNC.
65688         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
65690 2010-07-31  Bruno Haible  <bruno@clisp.org>
65692         duplocale: Work around AIX 7.1 bug.
65693         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
65694         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
65695         * lib/duplocale.c (rpl_duplocale): Update comment.
65696         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
65697         Reported by Rainer Tammer.
65699 2010-07-30  Bruno Haible  <bruno@clisp.org>
65701         dirfd: Avoid link error on AIX 7.1.
65702         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
65703         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
65704         exist, set REPLACE_DIRFD.
65705         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
65706         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
65707         * doc/posix-functions/dirfd.texi: Update.
65708         Reported by Rainer Tammer.
65710 2010-07-30  Eric Blake  <eblake@redhat.com>
65712         strtod: next round of AIX fixes
65713         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
65714         exponent.
65715         * tests/test-strtod.c (main): Enhance tests.
65716         * doc/posix-functions/strtod.texi (strtod): Document next bug.
65717         Reported by Rainer Tammer.
65719         futimens: fix configure check
65720         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
65721         Reported by Bruno Haible.
65723 2010-07-30  Bruno Haible  <bruno@clisp.org>
65725         getline: Update regarding AIX.
65726         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
65727         Reported by Rainer Tammer.
65729 2010-07-30  Bruno Haible  <bruno@clisp.org>
65731         wcwidth: Drop replacement on AIX 7.
65732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
65733         AIX 7.
65734         Reported by Rainer Tammer.
65736 2010-07-30  Bruno Haible  <bruno@clisp.org>
65738         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
65739         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
65740         a 'char *'.
65741         Reported by Rainer Tammer.
65743 2010-07-30  Bruno Haible  <bruno@clisp.org>
65745         unlink: Update regarding AIX.
65746         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
65747         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
65748         Reported by Rainer Tammer.
65750 2010-07-30  Bruno Haible  <bruno@clisp.org>
65752         symlink: Update regarding AIX.
65753         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
65754         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
65755         Reported by Rainer Tammer.
65757 2010-07-30  Bruno Haible  <bruno@clisp.org>
65759         strndup: Update regarding AIX.
65760         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
65761         AIX 7.
65762         Reported by Rainer Tammer.
65764 2010-07-30  Bruno Haible  <bruno@clisp.org>
65766         stat: Update regarding AIX.
65767         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
65768         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
65769         Reported by Rainer Tammer.
65771 2010-07-30  Bruno Haible  <bruno@clisp.org>
65773         truncl: Fix autoconf test.
65774         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
65775         whether truncl works.
65776         Reported by Rainer Tammer.
65778 2010-07-30  Bruno Haible  <bruno@clisp.org>
65780         round: Update regarding AIX.
65781         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
65782         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
65783         Reported by Rainer Tammer.
65785 2010-07-30  Bruno Haible  <bruno@clisp.org>
65787         rename: Update regarding AIX.
65788         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
65789         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
65790         Reported by Rainer Tammer.
65792 2010-07-30  Bruno Haible  <bruno@clisp.org>
65794         printf.m4: Update regarding AIX.
65795         * m4/printf.m4: Update comments regarding AIX.
65796         Reported by Rainer Tammer.
65798 2010-07-30  Bruno Haible  <bruno@clisp.org>
65800         iconv: Update regarding AIX.
65801         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
65802         AIX 7.
65803         Reported by Rainer Tammer.
65805 2010-07-30  Bruno Haible  <bruno@clisp.org>
65807         getopt: Update regarding AIX.
65808         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
65809         no on AIX.
65810         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
65811         Reported by Rainer Tammer.
65813 2010-07-30  Bruno Haible  <bruno@clisp.org>
65815         ldexpl; Update regarding AIX.
65816         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
65817         on AIX 7.
65818         Reported by Rainer Tammer.
65820 2010-07-30  Bruno Haible  <bruno@clisp.org>
65822         frexpl: Update regarding AIX.
65823         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
65824         on AIX 7.
65825         Reported by Rainer Tammer.
65827 2010-07-30  Bruno Haible  <bruno@clisp.org>
65829         open, fopen: Update regarding AIX.
65830         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
65831         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65832         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
65833         * doc/posix-functions/fopen.texi: Likewise.
65834         Reported by Rainer Tammer.
65836 2010-07-30  Bruno Haible  <bruno@clisp.org>
65838         chown: Update doc regarding AIX.
65839         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
65840         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
65841         Reported by Rainer Tammer.
65843 2010-07-30  Eric Blake  <eblake@redhat.com>
65845         strtod: fix bug in replacement function on AIX
65846         * lib/strtod.c (strtod): Special case broken "0x" parse in
65847         underlying strtod.
65848         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
65849         * doc/posix-functions/strtod.texi (strtod): Likewise.
65850         Reported by Rainer Tammer.
65852 2010-07-30  Bruno Haible  <bruno@clisp.org>
65854         mbrlen: Fix cross-compilation guess for AIX.
65855         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
65856         guess. Leftover from 2008-12-22.
65858 2010-07-30  Bruno Haible  <bruno@clisp.org>
65860         mbrtowc: Fix cross-compilation guess for AIX.
65861         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
65862         guess. Leftover from 2008-12-21.
65864 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
65866         init.sh: work around trap limitation of some shells
65867         * tests/init.sh (setup_): Move exit trap outside of shell function.
65869 2010-07-29  Eric Blake  <eblake@redhat.com>
65871         strtod: aid debugging
65872         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
65873         understanding why strtod is rejected.
65875 2010-07-28  Bruno Haible  <bruno@clisp.org>
65877         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
65878         * lib/unistr/u8-chr.c: Include <string.h>.
65879         * tests/unistr/test-u8-chr.c: Likewise.
65880         * tests/unistr/test-u16-chr.c: Likewise.
65881         * tests/unistr/test-u32-chr.c: Likewise.
65882         * tests/unistr/test-u8-strchr.c: Likewise.
65883         * tests/unistr/test-u16-strchr.c: Likewise.
65884         * tests/unistr/test-u32-strchr.c: Likewise.
65885         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
65886         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
65887         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
65888         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
65890 2010-07-28  Bruno Haible  <bruno@clisp.org>
65892         Use spaces for indentation, not tabs.
65893         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
65895 2010-07-27  Bruno Haible  <bruno@clisp.org>
65897         mbspcasecmp: Fix function specification.
65898         * lib/string.in.h (mbspcasecmp): Fix specification comment.
65899         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
65900         Reported by Eric Blake <eblake@redhat.com>.
65902 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
65904         timespec: use cast and not conditional, as truncation isn't possible
65905         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
65906         instead of a conditional.  Comment about the situation in more detail.
65907         This undoes most of the 2009-10-29 patch.
65909 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
65911         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
65912         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
65913         * lib/unistr/u8-strchr.c: Likewise.
65914         * modules/unistr/u8-chr: Depend on memchr.
65916         unistr/u*-strchr: add tests
65917         * modules/unistr/u8-strchr-tests: New file.
65918         * modules/unistr/u16-strchr-tests: New file.
65919         * modules/unistr/u32-strchr-tests: New file.
65920         * tests/unistr/test-strchr.h: New file.
65921         * tests/unistr/test-u8-strchr.c: New file.
65922         * tests/unistr/test-u16-strchr.c: New file.
65923         * tests/unistr/test-u32-strchr.c: New file.
65925         unistr/u*-chr: test multibyte sequences more
65926         * tests/unistr/test-chr.h: Do complete testing of the characters in the
65927         test vector.
65928         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
65929         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
65930         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
65932         unistr/u*-chr: test multibyte sequences
65933         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
65935         unistr/u*-chr: prepare for multibyte tests
65936         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
65937         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
65938         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
65939         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
65940         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
65941         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
65943 2010-07-18  Bruno Haible  <bruno@clisp.org>
65945         unistr/u8-strchr: Optimize non-ASCII argument case.
65946         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
65947         because the first byte often matches anyway.
65948         Reported by Pádraig Brady <P@draigbrady.com>.
65950 2010-07-15  Karl Berry  <karl@gnu.org>
65952         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
65954 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
65956         getcwd: on Solaris, work better if ancestors are inaccessible
65957         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
65958         buffer and size, try again with a large buffer.  This works better
65959         on Solaris, since its getcwd succeeds even if the path to the root
65960         is inaccessible, and this is helpful in common cases such as .zfs
65961         hidden directories.  Problem reported by J Chapman Flack in
65962         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
65963         Use system getcwd if it's declared, not merely if it's partly
65964         working; use the partly-working test only to avoid needless effort
65965         if the system getcwd fails.
65966         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
65967         comment that was already obsolete and is now even more obsolete.
65968         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
65969         now might call strdup.
65971 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
65973         pthread: Add enough so that coreutils/src/sort.c compiles.
65974         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
65975         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
65976         gnulib. Include <sched.h> and <time.h>, as per POSIX.
65977         Include <sys/types.h>, in case it defines pthread_t.
65978         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
65979         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
65980         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
65981         (pthread_rwlockattr_t, pthread_spinlock_t):
65982         New typedefs, if HAVE_PTHREAD_T is not defined.
65983         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
65984         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
65985         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
65986         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
65987         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
65988         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
65989         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
65990         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
65991         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
65992         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
65993         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
65994         New macros.
65995         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
65996         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
65997         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
65998         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
65999         (pthread_spin_unlock): New dummy functions.
66000         (pthread_create): Return EAGAIN; don't set errno.
66001         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
66002         require AC_C_INLINE.
66003         * modules/pthread (Depends-on): Add sched, time.
66004         (pthread.h): Use AM_V_GEN.
66006 2010-07-13  Bruno Haible  <bruno@clisp.org>
66008         striconveh: Don't malloc memory if the result buffer is sufficient.
66009         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
66010         buffer if its size is sufficient.
66011         Reported by Ludovic Courtès <ludo@gnu.org>.
66013 2010-07-13  Bruno Haible  <bruno@clisp.org>
66015         strtod: Add safety check.
66016         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
66018 2010-07-12  Bruno Haible  <bruno@clisp.org>
66020         Unify tests that set gl_cv_func_ldexpl_no_libm.
66021         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
66022         gl_FUNC_LDEXPL.
66023         (gl_FUNC_LDEXPL): Invoke it.
66024         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66026 2010-07-12  Bruno Haible  <bruno@clisp.org>
66028         Unify tests that set gl_cv_func_ldexp_no_libm.
66029         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
66030         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
66031         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
66032         (configure.ac): Simply invoke gl_FUNC_LDEXP.
66033         * modules/strtod (Files): Add m4/ldexp.m4.
66035 2010-07-12  Bruno Haible  <bruno@clisp.org>
66037         Unify tests that set gl_cv_func_frexpl_no_libm.
66038         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
66039         gl_FUNC_FREXPL_NO_LIBM.
66040         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
66041         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66043 2010-07-12  Bruno Haible  <bruno@clisp.org>
66045         Unify tests that set gl_cv_func_frexp_no_libm.
66046         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
66047         gl_FUNC_FREXP_NO_LIBM.
66048         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
66049         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66051 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66053         memcoll: clarify sizes versus lengths, document better, and tweak perf
66054         * lib/memcoll.c (strcoll_loop, memcoll0):
66055         Improve quality of descriptive comments.  Name variables
66056         consistently as to whether they are lengths (which do not include
66057         terminating null) versus sizes (which do).
66058         * lib/xmemcoll.c (xmemcoll0): Likewise.
66059         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
66060         returned when s1size == 0; this is easier to compile and saves
66061         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
66063 2010-07-12  Bruno Haible  <bruno@clisp.org>
66065         Tests for module '_Exit'.
66066         * modules/_Exit-tests: New file.
66067         * tests/test-_Exit.sh: New file.
66068         * tests/test-_Exit.c: New file.
66070         New module '_Exit'.
66071         * lib/stdlib.in.h (__attribute__): New macro.
66072         (_Exit): New declaration.
66073         * lib/_Exit.c: New file.
66074         * m4/_Exit.m4: New file.
66075         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
66076         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
66077         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
66078         * modules/_Exit: New file.
66079         * tests/test-stdlib-c++.cc (_Exit): Check signature.
66080         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
66082 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66084         strtod: make it more-accurate typically, and don't require libm
66085         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
66086         Include limits.h.  Don't include string.h.
66087         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
66088         (locale_isspace): New function, so that no casts are needed to
66089         check whether *s is a space.
66090         (ldexp): Provide an unused dummy if not available.
66091         (scale_radix_exp, parse_number, underlying_strtod): New functions.
66092         (strtod): Use them.  This implementation prefers to use the
66093         underlying strtod if available, falling back on our own code
66094         only to fix known bugs.  This is more likely to produce an
66095         accurate result.  Also, it avoids the use of libm functions.
66096         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
66097         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
66098         was absent, but it caused a test failure with coreutils.
66099         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
66100         with libm.
66101         * modules/strtod (Makefile.am, Link): libm is no longer needed.
66102         * modules/strtod-tests (Makefile.am): Likewise.
66104 2010-07-11  Pádraig Brady  <P@draigBrady.com>
66105             Bruno Haible  <bruno@clisp.org>
66107         unistr/u8-strchr: Optimize ASCII argument case.
66108         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
66110 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66112         (x)memcoll: minor tweaks
66113         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
66114         is after the type that it qualifies.
66115         (memcoll0): Likewise.
66116         * lib/memcoll.h (memcoll0): Likewise.
66117         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
66118         * lib/xmemcoll.h (xmemcoll0): Likewise.
66119         * lib/memcoll.c (memcoll0): Correct the comment.  This function
66120         differs from memcoll in that the NUL byte is part of the argument.
66121         Omit the abort-checks, as performance is a real issue here.  Plus,
66122         the checks were wrong anyway (an off-by-one error).  Omit local
66123         variable 'diff', as it's a bit clearer that way.
66124         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
66125         no longer needed.
66127 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
66129         (x)memcoll: speedup when input is known to be NUL delimited
66130         * lib/memcoll.c: Include stdlib.
66131         (memcoll0): New function.
66132         (strcoll_loop): New function, refactored for use in both memcoll
66133         and memcoll0.
66134         * lib/memcoll.h (memcoll0): Add prototype.
66135         * lib/xmemcoll.c (xmemcoll0): New function.
66136         (collate_error): New function, refactored for use in both xmemcoll
66137         and xmemcoll0.
66138         * lib/xmemcoll.h (xmemcoll0): Add prototype.
66139         * m4/memcoll.m4: add inline invocation.
66141 2010-07-06  Pádraig Brady  <P@draigBrady.com>
66143         * build-aux/bootstrap: Remove any local translations
66144         from the translation project synchronization directory,
66145         so that local only translations are not distributed.
66147 2010-07-04  Bruno Haible  <bruno@clisp.org>
66149         fsusage: Clarify which code applies to which platforms.
66150         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
66151         platform.
66152         * lib/fsusage.c (get_fs_usage): Likewise.
66154 2010-07-04  Bruno Haible  <bruno@clisp.org>
66156         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
66157         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
66158         Reported by Martin Lambers <marlam@marlam.de>.
66160 2010-07-04  Jim Meyering  <meyering@redhat.com>
66162         hash: once again explicitly disallow insertion of NULL
66163         * lib/hash.c (hash_insert0): Reinstate just-removed test:
66164         inserting a NULL pointer cannot work with these functions.
66165         Add a comment with details.
66166         This reverts part of the 2010-07-01 commit, 5bef1a35
66167         "hash: extend module to deal with non-pointer keys".
66169 2010-07-01  Bruno Haible  <bruno@clisp.org>
66171         stdbool: Update doc.
66172         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
66173         Info from Christian Weisgerber <naddy@mips.inka.de>.
66175 2010-07-01  Jim Meyering  <meyering@redhat.com>
66177         hash: extend module to deal with non-pointer keys
66178         * lib/hash.c (hash_insert0): New interface, much like hash_insert
66179         but that allows insertion of non-pointer entries.
66180         Do not disallow an ENTRY value of NULL.
66181         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
66182         * lib/hash.h (hash_insert0): Declare.
66184 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
66186         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
66187         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
66188         not present (i.e. with autoconf 2.59 and when using gettextize, not
66189         gnulib), require AC_GNU_SOURCE instead.
66191 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
66193         idpriv-drop: Fix tests.
66194         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
66195         not to the test-idpriv-droptemp program.
66197 2010-06-29  Bruno Haible  <bruno@clisp.org>
66199         string: Fix syntax error with g++ 2.96.
66200         * lib/string.in.h (__pure__): Remove definition.
66201         (_GL_ATTRIBUTE_PURE): New macro.
66202         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
66203         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
66204         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66206 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
66208         unitypes: Fix bug introduced on 2010-05-18.
66209         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
66211 2010-06-22  Eric Blake  <eblake@redhat.com>
66213         memmem: slight optimization
66214         * lib/str-two-way.h (critical_factorization): Update comments.
66215         Reduce work during factorization phase.
66216         Reported by Carlos Bueno <carlos@bueno.org>.
66218 2010-06-21  Bruno Haible  <bruno@clisp.org>
66220         Fix HAVE_CALLOC_POSIX misnomer.
66221         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
66222         !HAVE_CALLOC_POSIX.
66223         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
66224         HAVE_CALLOC_POSIX.
66225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
66226         instead of HAVE_CALLOC_POSIX.
66227         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
66228         HAVE_CALLOC_POSIX.
66230         Use modern idiom for calloc() replacement.
66231         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
66232         AC_FUNC_CALLOC.
66233         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
66234         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
66235         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66236         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
66237         (gl_REPLACE_CALLOC): New macro.
66239 2010-06-21  Bruno Haible  <bruno@clisp.org>
66241         Fix HAVE_REALLOC_POSIX misnomer.
66242         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
66243         !HAVE_REALLOC_POSIX.
66244         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
66245         HAVE_REALLOC_POSIX.
66246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
66247         instead of HAVE_REALLOC_POSIX.
66248         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
66249         HAVE_REALLOC_POSIX.
66251         Use modern idiom for realloc() replacement.
66252         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
66253         AC_FUNC_REALLOC.
66254         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
66255         Autoconf's AC_FUNC_REALLOC.
66256         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66257         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
66258         (gl_REPLACE_REALLOC): New macro.
66259         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66261 2010-06-21  Bruno Haible  <bruno@clisp.org>
66263         Fix HAVE_MALLOC_POSIX misnomer.
66264         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
66265         !HAVE_MALLOC_POSIX.
66266         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
66267         HAVE_MALLOC_POSIX.
66268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
66269         instead of HAVE_MALLOC_POSIX.
66270         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
66271         HAVE_MALLOC_POSIX.
66273         Use modern idiom for malloc() replacement.
66274         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
66275         AC_FUNC_MALLOC.
66276         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
66277         Autoconf's AC_FUNC_MALLOC.
66278         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66279         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
66280         (gl_REPLACE_MALLOC): New macro.
66281         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66283 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
66285         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
66286         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
66287         This macro takes 3 arguments, not 4.
66289 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
66291         ipv6: fix detection under mingw
66292         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
66293         in6_addr.
66295 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
66297         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
66298         that strtod() works when cross-compiling to a glibc version known
66299         to work.
66301 2010-06-15  Bruno Haible  <bruno@clisp.org>
66303         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
66305 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
66307         select: Correct timeout.
66308         * lib/select.c (rpl_select): Compute wait_timeout correctly.
66310 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66312         git-version-gen: init shell var to avoid env var influence
66313         * build-aux/git-version-gen (v): Init shell var to empty.
66315 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
66317         priv-set: Don't assume that priv.h exists merely because getppriv does.
66318         See Jan Andersen's bug report about AIX 5L in
66319         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
66320         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
66321         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
66322         * lib/priv-set.h: Likewise.
66323         * tests/test-priv-set.c: Likewise.
66325 2010-06-13  Bruno Haible  <bruno@clisp.org>
66327         relocatable: Make it easier to test whether to install wrappers.
66328         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
66329         RELOCATABLE_VIA_WRAPPER.
66331 2010-06-13  Bruno Haible  <bruno@clisp.org>
66333         gnulib-tool: Display specified modules and dependencies differently.
66334         * gnulib-tool (func_show_module_list): New function.
66335         (func_import, func_create_testdir): Invoke it.
66336         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
66338 2010-06-13  Bruno Haible  <bruno@clisp.org>
66340         gnulib-tool: Align code of func_import and func_create_testdir.
66341         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
66342         specified_modules.
66344 2010-06-12  Jim Meyering  <meyering@redhat.com>
66346         test-inttostr: avoid spurious failure on Solaris 9
66347         * tests/test-inttostr.c (main): Skip the test when snprintf fails
66348         to accept "%ju".  Reported by Bruno Haible.
66350 2010-06-11  Jim Meyering  <meyering@redhat.com>
66352         test-sys_socket: mark variables as used more readably
66353         * tests/test-sys_socket.c (main): Mark otherwise unused variables
66354         as "used" explicitly via (void) statement casts.  This is more
66355         readable than using them in an artificial return expression.
66356         Suggestion from Bruno Haible.
66358 2010-06-11  Bruno Haible  <bruno@clisp.org>
66360         Avoid some more warnings from "gcc -Wwrite-strings".
66361         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
66362         to 'const char *'.
66363         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
66364         * tests/test-c-strcasestr.c (main): Likewise.
66365         * tests/test-mbscasestr1.c (main): Likewise.
66366         * tests/test-mbscasestr2.c (main): Likewise.
66367         * tests/test-memmem.c (main): Likewise.
66368         * tests/test-strstr.c (main): Likewise.
66369         * tests/test-strcasestr.c (main): Likewise.
66371 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66373         init.sh: change framework_failure_ to fail with status 99, not 1
66374         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
66375         automake's parallel-tests rule that this is an unexpected failure,
66376         even if the test is listed in XFAIL_TESTS.
66378 2010-06-11  Jim Meyering  <meyering@redhat.com>
66380         test-inttostr: avoid warnings about 4-6KB literal strings
66381         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
66382         Include "macros.h", for its definition of ASSERT.
66383         (CK): s/assert/ASSERT/
66384         * modules/inttostr-tests (Files): Add macros.h.
66386         init.sh: don't use $ME_ or skip_ before they are defined
66387         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
66388         their first uses.  Also hoist their companions: warn_, fail_,
66389         framework_failure_, $stderr_fileno.  Prompted by a patch from
66390         Stefano Lattarini.
66392         test-sys_socket: avoid set-but-not-used warnings from gcc
66393         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
66394         avoid warning about set-but-not-used variables.
66396         test-xvasprintf: avoid 'const' discard warnings
66397         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
66398         "const" when assigning from literal strings.
66399         (test_xasprintf): Add "void" in function argument list to placate
66400         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
66402         tests: avoid compilation warnings in argmatch and exclude tests...
66403         in packages that define ARGMATCH_DIE_DECL, like coreutils.
66404         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
66405         Since it always exits, declare with the "noreturn" attribute.
66406         * tests/test-argmatch.c: Likewise.
66408         tests: avoid 'const' discard warnings in mbsstr tests
66409         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
66410         * tests/test-mbsstr2.c (main): Likewise.
66412         test-verify: avoid warning from gcc's -Wmissing-declarations
66413         * tests/test-verify.c (function): Declare to be static.
66415         test-inttostr.c: include <string.h> for use of strcmp
66416         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
66418         test-linkat: avoid failed assertion on "other" architectures
66419         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
66420         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
66421         sparc: https://bugs.launchpad.net/bugs/591968
66423 2010-06-11  Jim Meyering  <meyering@redhat.com>
66425         printf.m4: avoid autoconf's "Expanded Before Required" warning
66426         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
66427         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
66428         autoconf warning.
66430 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
66432         Replacement header templates are now named with ".in", not "_".
66433         * doc/gnulib-intro.texi: Correct.
66435 2010-06-10  Jim Meyering  <meyering@redhat.com>
66437         inttostr-tests: depend on snprintf, not snprintf-posix
66438         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
66439         snprintf-posix, to avoid this aclocal failure:
66440           missing file gnulib-tests/vasnprintf.c
66441           configure.ac:45: error: expected source file, required through \
66442           AC_LIBSOURCES, not found
66444 2010-06-10  Jim Meyering  <meyering@redhat.com>
66446         inttostr: add a new function, inttostr, and tests
66447         The namesake function was not available.  The existence of the
66448         template file, inttostr.c makes its addition nontrivial.
66449         * lib/anytostr.c: Rename from inttostr.c.
66450         (anytostr): Rename from inttostr.
66451         * lib/inttostr.c: New file.
66452         * modules/inttostr (Files): Add anytostr.c.
66453         (Makefile.am): Set lib_SOURCES instead of ...
66454         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
66455         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
66456         * lib/offtostr.c: Likewise.
66457         * lib/uinttostr.c: Likewise.
66458         * lib/umaxtostr.c: Likewise.
66459         * modules/inttostr-tests: New file.
66460         * tests/test-inttostr.c: New file.  Test these functions.
66462 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
66463             Bruno Haible  <bruno@clisp.org>
66465         Add "Extending Gnulib" chapter to manual.
66466         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
66467         chapter.
66468         (Extending Gnulib): New chapter.
66469         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
66470         chapter.
66472 2010-06-09  Bruno Haible  <bruno@clisp.org>
66474         Avoid relocwrapper link errors due to gnulib replacement functions.
66475         * lib/areadlink.c: Use the system's malloc, realloc functions.
66476         (areadlink): Set errno to ENOMEM explicitly.
66477         * modules/areadlink (Depends-on): Remove malloc-posix.
66478         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66480 2010-06-09  Bruno Haible  <bruno@clisp.org>
66482         Avoid relocwrapper link errors due to gnulib replacement functions.
66483         * lib/canonicalize-lgpl.c: Use the system's malloc function.
66484         * lib/malloca.c: Likewise.
66485         * lib/relocatable.c: Likewise.
66486         * lib/progreloc.c: Use the system's malloc, sprintf functions.
66487         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
66488         * lib/setenv.c: Use the system's malloc, realloc functions.
66489         * lib/strerror.c: Use the system's sprintf function.
66490         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66492 2010-06-04  Bruno Haible  <bruno@clisp.org>
66494         Prefer documented low-level autoconf macro names.
66495         * m4/lib-link.m4: Use m4_translit instead of translit.
66496         * m4/environ.m4: Likewise.
66497         * m4/mathfunc.m4: Likewise.
66498         * m4/onceonly.m4: Likewise.
66499         * m4/stdint.m4: Likewise.
66500         Suggested by Eric Blake.
66502 2010-06-04  Martin Lambers  <marlam@marlam.de>
66503             Bruno Haible  <bruno@clisp.org>
66505         havelib: Allow library names with '+' characters.
66506         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66507         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
66509 2010-06-09  Bruno Haible  <bruno@clisp.org>
66511         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
66512         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
66513         realloc failed.
66515 2010-06-08  Peter Simons  <simons@cryp.to>
66517         maint.mk: make the news-check rule more configurable
66518         * top/maint.mk (news-check-lines-spec): New variable.
66519         (news-check): Use "sed -n 1,10p" in place of "head".
66521 2010-06-07  Jim Meyering  <meyering@redhat.com>
66523         do-release-commit-and-tag: fix typo in --help
66524         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
66526         regex: avoid new dead-code warning with gcc-4.6.0
66527         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
66528         if-block containing a while-loop.  It's been unused for at least
66529         5 years.
66531 2010-06-05  Bruno Haible  <bruno@clisp.org>
66533         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
66534         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
66536 2010-06-04  Bruno Haible  <bruno@clisp.org>
66538         Update to GNU gettext 0.18.1.
66539         * modules/gettext (configure.ac): Require gettext infrastructure from
66540         version 0.18.1.
66542 2010-06-03  Bruno Haible  <bruno@clisp.org>
66544         Don't use AC_LIBOBJ with file names in subdirectories.
66545         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
66546         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
66547         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
66548         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
66549         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
66550         gl_LIBUNISTRING_LIBSOURCE.
66551         (Makefile.am): Augment lib_SOURCES here, conditionally.
66552         * NEWS: Drop requirement for Automake option 'subdir-objects'.
66554 2010-06-03  Bruno Haible  <bruno@clisp.org>
66556         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
66557         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
66558         expansion does not end with a newline.
66559         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
66560         unnecessary newline.
66562 2010-06-03  Bruno Haible  <bruno@clisp.org>
66564         Reduce dependencies.
66565         * tests/test-quotearg.h: New file, extracted from
66566         tests/test-quotearg.c.
66567         * tests/test-quotearg-simple.c: New file, extracted from
66568         tests/test-quotearg.c.
66569         * tests/test-quotearg.c: Don't include <ctype.h>.
66570         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
66571         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
66572         use_quote_double_quotes, use_quotearg_colon): Moved to
66573         tests/test-quotearg.h.
66574         (results_g, flag_results, custom_quotes, custom_results): Moved
66575         to tests/test-quotearg-simple.c.
66576         (main): Moved the part that does not depend on gettext to
66577         tests/test-quotearg-simple.c. Return 77 if the test cannot be
66578         performed.
66579         * modules/quotearg-simple: New file.
66580         * modules/quotearg-simple-tests: New file.
66581         * modules/quotearg (Depends-on): Add quotearg-simple.
66582         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
66583         (Files): Add tests/test-quotearg.h.
66584         Reported by Paolo Bonzini.
66586 2010-06-03  Bruno Haible  <bruno@clisp.org>
66588         Reduce dependencies.
66589         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
66591 2010-06-03  Bruno Haible  <bruno@clisp.org>
66593         time: Undefine more broken macros.
66594         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
66595         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
66596         Reported by Eric Blake.
66598 2010-06-03  Bruno Haible  <bruno@clisp.org>
66600         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
66601         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
66602         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
66603         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
66604         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
66605         Reported by Ludovic Courtès <ludo@gnu.org>.
66607 2010-06-02  Eric Blake  <eblake@redhat.com>
66609         time: work with mingw + pthreads-win32 library
66610         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
66611         if timespec is defined only in pthread.h.
66612         * modules/time (Makefile.am): Substitute it.
66613         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
66614         <pthread.h>, when needed.
66615         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
66616         from the library.
66618 2010-05-31  Bruno Haible  <bruno@clisp.org>
66620         Avoid expanding two macros in the wrong order.
66621         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
66622         gl_LIBUNISTRING if it is defined.
66623         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
66624         autoconf >= 2.64.
66625         Reported by Ludovic Courtès <ludo@gnu.org>.
66627 2010-05-27  Jim Meyering  <meyering@redhat.com>
66629         maint.mk: also prohibit "#undef" of always-defined symbols
66630         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
66631         Allow more than one space before the symbol name.
66632         (sc_prohibit_always-defined_macros): Use grep's -E, now that
66633         the regexp uses alternation.
66635 2010-05-26  Eric Blake  <eblake@redhat.com>
66637         maint.mk: avoid echo -e
66638         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
66639         Convert all uses of echo -* to printf.
66640         Reported by Matthias Bolte.
66642 2010-05-25  Bruno Haible  <bruno@clisp.org>
66644         Update to GNU gettext 0.18, part 2.
66645         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
66646         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
66648 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66650         Add missing include in test-pwrite.c.
66651         * tests/test-pwrite.c: Include string.h, for strcmp.
66653 2010-05-24  Bruno Haible  <bruno@clisp.org>
66655         * NEWS: Mention requirement for Automake option 'subdir-objects'.
66657 2010-05-24  Bruno Haible  <bruno@clisp.org>
66659         Don't use conversion with transliteration in u{8,16,32}_strcoll.
66660         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
66661         iconveh_error argument.
66662         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
66663         U_STRCONV_TO_LOCALE.
66664         * lib/unistr/u16-strcoll.c: Likewise.
66665         * lib/unistr/u32-strcoll.c: Likewise.
66666         * modules/unistr/u8-strcoll (Depends-on): Add
66667         uniconv/u8-strconv-to-enc, localcharset. Remove
66668         uniconv/u8-strconv-to-locale.
66669         (configure.ac): Bump version number.
66670         * modules/unistr/u16-strcoll (Depends-on): Add
66671         uniconv/u16-strconv-to-enc, localcharset. Remove
66672         uniconv/u16-strconv-to-locale.
66673         (configure.ac): Bump version number.
66674         * modules/unistr/u32-strcoll (Depends-on): Add
66675         uniconv/u32-strconv-to-enc, localcharset. Remove
66676         uniconv/u32-strconv-to-locale.
66677         (configure.ac): Bump version number.
66679 2010-05-24  Bruno Haible  <bruno@clisp.org>
66681         Avoid a test failure on NetBSD 5.0.
66682         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
66683         an iconv() bug.
66685 2010-05-24  Bruno Haible  <bruno@clisp.org>
66687         Adjust #include directive style.
66688         * modules/regex (Includes): Recommend to write <regex.h>.
66690 2010-05-24  Bruno Haible  <bruno@clisp.org>
66692         regex: Don't require alloca.
66693         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
66694         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
66695         only inside if (0).
66697 2010-05-23  Jim Meyering  <meyering@redhat.com>
66699         test-renameat.c: include <sys/stat.h>
66700         * tests/test-renameat.c: Include <sys/stat.h>; required for
66701         definition of S_IS* macros.
66703 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
66705         Update maintainer documentation for 'relocatable-prog' module.
66706         * doc/relocatable-maint.texi: Update.
66707         Comments by Bruno Haible.
66709 2010-05-23  Bruno Haible  <bruno@clisp.org>
66711         git-merge-changelog: Enable --split-merged-entry by default.
66712         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
66713         (usage): Don't mention this option any more.
66714         Reported by Ralf Wildenhues.
66716 2010-05-23  Jim Meyering  <meyering@redhat.com>
66718         test-pwrite: do not leave behind a test file named "out"
66719         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
66720         The trivial-looking use of init.sh is really necessary.
66721         It ensures that the temporary file, "out", is created in
66722         a temporary directory, and removed upon termination.
66723         * tests/test-pwrite.sh: Re-add file.
66724         * modules/pwrite-tests: Reference it.
66726 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66728         Fix output redirection buglet in init.sh.
66729         * tests/init.sh: Fix redirection of stderr.
66731 2010-05-20  Simon Josefsson  <simon@josefsson.org>
66733         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
66735 2010-05-17  Simon Josefsson  <simon@josefsson.org>
66737         * modules/valgrind-tests: New file.
66738         * m4/valgrind-tests.m4: New file.
66739         * doc/valgrind-tests.texi: New file.
66740         * doc/gnulib.texi (Running self-tests under valgrind): New
66741         section.
66743 2010-05-19  Bruno Haible  <bruno@clisp.org>
66745         Clean up dead code in recent commit.
66746         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
66747         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
66748         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
66749         Suggested by Paolo Bonzini.
66751 2010-05-19  Bruno Haible  <bruno@clisp.org>
66753         Avoid valgrind error reports from libunistring.
66754         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
66755         * modules/libunistring (Files): Add it.
66756         * modules/libunistring-optional (Files): Likewise.
66758 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
66759             Bruno Haible  <bruno@clisp.org>
66761         New module 'libunistring-optional'.
66762         * modules/libunistring-optional: New file.
66763         * m4/libunistring-base.m4: New file.
66764         * m4/libunistring-optional.m4: New file.
66765         * lib/unicase.in.h: Renamed from lib/unicase.h.
66766         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
66767         * lib/unictype.in.h: Renamed from lib/unictype.h.
66768         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
66769         * lib/uniname.in.h: Renamed from lib/uniname.h.
66770         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
66771         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
66772         * lib/unistr.in.h: Renamed from lib/unistr.h.
66773         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
66774         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
66775         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
66776         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
66777         gl_LIBUNISTRING. If the library was found, determine the installed
66778         version and set LIBUNISTRING_VERSION.
66779         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
66780         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
66781         handle a configuration option --with-included-libunistring.
66782         * modules/libunistring (Files): Add m4/absolute-header.m4.
66783         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
66784         Add m4/libunistring-base.m4.
66785         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66786         (Makefile.am): Build unicase.h from unicase.in.h.
66787         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
66788         Add m4/libunistring-base.m4.
66789         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66790         (Makefile.am): Build uniconv.h from uniconv.in.h.
66791         * modules/unictype/base (Files): Use unictype.in.h instead of
66792         unictype.h. Add m4/libunistring-base.m4.
66793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66794         (Makefile.am): Build unictype.h from unictype.in.h.
66795         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
66796         Add m4/libunistring-base.m4.
66797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66798         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
66799         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
66800         Add m4/libunistring-base.m4.
66801         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66802         (Makefile.am): Build uniname.h from uniname.in.h.
66803         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
66804         Add m4/libunistring-base.m4.
66805         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66806         (Makefile.am): Build uninorm.h from uninorm.in.h.
66807         * modules/unistdio/base (Files): Use unistdio.in.h instead of
66808         unistdio.h. Add m4/libunistring-base.m4.
66809         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66810         (Makefile.am): Build unistdio.h from unistdio.in.h.
66811         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
66812         Add m4/libunistring-base.m4.
66813         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66814         (Makefile.am): Build unistr.h from unistr.in.h.
66815         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
66816         Add m4/libunistring-base.m4.
66817         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66818         (Makefile.am): Build unitypes.h from unitypes.in.h.
66819         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
66820         Add m4/libunistring-base.m4.
66821         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66822         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
66823         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
66824         uniwidth.h. Add m4/libunistring-base.m4.
66825         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66826         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
66827         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
66828         instead of augmenting lib_SOURCES.
66829         * modules/unicase/empty-suffix-context: Likewise.
66830         * modules/unicase/locale-language: Likewise.
66831         * modules/unicase/tolower: Likewise.
66832         * modules/unicase/totitle: Likewise.
66833         * modules/unicase/toupper: Likewise.
66834         * modules/unicase/u8-casecmp: Likewise.
66835         * modules/unicase/u8-casecoll: Likewise.
66836         * modules/unicase/u8-casefold: Likewise.
66837         * modules/unicase/u8-casexfrm: Likewise.
66838         * modules/unicase/u8-ct-casefold: Likewise.
66839         * modules/unicase/u8-ct-tolower: Likewise.
66840         * modules/unicase/u8-ct-totitle: Likewise.
66841         * modules/unicase/u8-ct-toupper: Likewise.
66842         * modules/unicase/u8-is-cased: Likewise.
66843         * modules/unicase/u8-is-casefolded: Likewise.
66844         * modules/unicase/u8-is-lowercase: Likewise.
66845         * modules/unicase/u8-is-titlecase: Likewise.
66846         * modules/unicase/u8-is-uppercase: Likewise.
66847         * modules/unicase/u8-prefix-context: Likewise.
66848         * modules/unicase/u8-suffix-context: Likewise.
66849         * modules/unicase/u8-tolower: Likewise.
66850         * modules/unicase/u8-totitle: Likewise.
66851         * modules/unicase/u8-toupper: Likewise.
66852         * modules/unicase/u16-casecmp: Likewise.
66853         * modules/unicase/u16-casecoll: Likewise.
66854         * modules/unicase/u16-casefold: Likewise.
66855         * modules/unicase/u16-casexfrm: Likewise.
66856         * modules/unicase/u16-ct-casefold: Likewise.
66857         * modules/unicase/u16-ct-tolower: Likewise.
66858         * modules/unicase/u16-ct-totitle: Likewise.
66859         * modules/unicase/u16-ct-toupper: Likewise.
66860         * modules/unicase/u16-is-cased: Likewise.
66861         * modules/unicase/u16-is-casefolded: Likewise.
66862         * modules/unicase/u16-is-lowercase: Likewise.
66863         * modules/unicase/u16-is-titlecase: Likewise.
66864         * modules/unicase/u16-is-uppercase: Likewise.
66865         * modules/unicase/u16-prefix-context: Likewise.
66866         * modules/unicase/u16-suffix-context: Likewise.
66867         * modules/unicase/u16-tolower: Likewise.
66868         * modules/unicase/u16-totitle: Likewise.
66869         * modules/unicase/u16-toupper: Likewise.
66870         * modules/unicase/u32-casecmp: Likewise.
66871         * modules/unicase/u32-casecoll: Likewise.
66872         * modules/unicase/u32-casefold: Likewise.
66873         * modules/unicase/u32-casexfrm: Likewise.
66874         * modules/unicase/u32-ct-casefold: Likewise.
66875         * modules/unicase/u32-ct-tolower: Likewise.
66876         * modules/unicase/u32-ct-totitle: Likewise.
66877         * modules/unicase/u32-ct-toupper: Likewise.
66878         * modules/unicase/u32-is-cased: Likewise.
66879         * modules/unicase/u32-is-casefolded: Likewise.
66880         * modules/unicase/u32-is-lowercase: Likewise.
66881         * modules/unicase/u32-is-titlecase: Likewise.
66882         * modules/unicase/u32-is-uppercase: Likewise.
66883         * modules/unicase/u32-prefix-context: Likewise.
66884         * modules/unicase/u32-suffix-context: Likewise.
66885         * modules/unicase/u32-tolower: Likewise.
66886         * modules/unicase/u32-totitle: Likewise.
66887         * modules/unicase/u32-toupper: Likewise.
66888         * modules/unicase/ulc-casecmp: Likewise.
66889         * modules/unicase/ulc-casecoll: Likewise.
66890         * modules/unicase/ulc-casexfrm: Likewise.
66891         * modules/uniconv/u8-conv-from-enc: Likewise.
66892         * modules/uniconv/u8-conv-to-enc: Likewise.
66893         * modules/uniconv/u8-strconv-from-enc: Likewise.
66894         * modules/uniconv/u8-strconv-from-locale: Likewise.
66895         * modules/uniconv/u8-strconv-to-enc: Likewise.
66896         * modules/uniconv/u8-strconv-to-locale: Likewise.
66897         * modules/uniconv/u16-conv-from-enc: Likewise.
66898         * modules/uniconv/u16-conv-to-enc: Likewise.
66899         * modules/uniconv/u16-strconv-from-enc: Likewise.
66900         * modules/uniconv/u16-strconv-from-locale: Likewise.
66901         * modules/uniconv/u16-strconv-to-enc: Likewise.
66902         * modules/uniconv/u16-strconv-to-locale: Likewise.
66903         * modules/uniconv/u32-conv-from-enc: Likewise.
66904         * modules/uniconv/u32-conv-to-enc: Likewise.
66905         * modules/uniconv/u32-strconv-from-enc: Likewise.
66906         * modules/uniconv/u32-strconv-from-locale: Likewise.
66907         * modules/uniconv/u32-strconv-to-enc: Likewise.
66908         * modules/uniconv/u32-strconv-to-locale: Likewise.
66909         * modules/unictype/bidicategory-byname: Likewise.
66910         * modules/unictype/bidicategory-name: Likewise.
66911         * modules/unictype/bidicategory-of: Likewise.
66912         * modules/unictype/bidicategory-test: Likewise.
66913         * modules/unictype/block-list: Likewise.
66914         * modules/unictype/block-test: Likewise.
66915         * modules/unictype/category-C: Likewise.
66916         * modules/unictype/category-Cc: Likewise.
66917         * modules/unictype/category-Cf: Likewise.
66918         * modules/unictype/category-Cn: Likewise.
66919         * modules/unictype/category-Co: Likewise.
66920         * modules/unictype/category-Cs: Likewise.
66921         * modules/unictype/category-L: Likewise.
66922         * modules/unictype/category-Ll: Likewise.
66923         * modules/unictype/category-Lm: Likewise.
66924         * modules/unictype/category-Lo: Likewise.
66925         * modules/unictype/category-Lt: Likewise.
66926         * modules/unictype/category-Lu: Likewise.
66927         * modules/unictype/category-M: Likewise.
66928         * modules/unictype/category-Mc: Likewise.
66929         * modules/unictype/category-Me: Likewise.
66930         * modules/unictype/category-Mn: Likewise.
66931         * modules/unictype/category-N: Likewise.
66932         * modules/unictype/category-Nd: Likewise.
66933         * modules/unictype/category-Nl: Likewise.
66934         * modules/unictype/category-No: Likewise.
66935         * modules/unictype/category-P: Likewise.
66936         * modules/unictype/category-Pc: Likewise.
66937         * modules/unictype/category-Pd: Likewise.
66938         * modules/unictype/category-Pe: Likewise.
66939         * modules/unictype/category-Pf: Likewise.
66940         * modules/unictype/category-Pi: Likewise.
66941         * modules/unictype/category-Po: Likewise.
66942         * modules/unictype/category-Ps: Likewise.
66943         * modules/unictype/category-S: Likewise.
66944         * modules/unictype/category-Sc: Likewise.
66945         * modules/unictype/category-Sk: Likewise.
66946         * modules/unictype/category-Sm: Likewise.
66947         * modules/unictype/category-So: Likewise.
66948         * modules/unictype/category-Z: Likewise.
66949         * modules/unictype/category-Zl: Likewise.
66950         * modules/unictype/category-Zp: Likewise.
66951         * modules/unictype/category-Zs: Likewise.
66952         * modules/unictype/category-and: Likewise.
66953         * modules/unictype/category-and-not: Likewise.
66954         * modules/unictype/category-byname: Likewise.
66955         * modules/unictype/category-name: Likewise.
66956         * modules/unictype/category-none: Likewise.
66957         * modules/unictype/category-of: Likewise.
66958         * modules/unictype/category-or: Likewise.
66959         * modules/unictype/category-test: Likewise.
66960         * modules/unictype/combining-class: Likewise.
66961         * modules/unictype/ctype-alnum: Likewise.
66962         * modules/unictype/ctype-alpha: Likewise.
66963         * modules/unictype/ctype-blank: Likewise.
66964         * modules/unictype/ctype-cntrl: Likewise.
66965         * modules/unictype/ctype-digit: Likewise.
66966         * modules/unictype/ctype-graph: Likewise.
66967         * modules/unictype/ctype-lower: Likewise.
66968         * modules/unictype/ctype-print: Likewise.
66969         * modules/unictype/ctype-punct: Likewise.
66970         * modules/unictype/ctype-space: Likewise.
66971         * modules/unictype/ctype-upper: Likewise.
66972         * modules/unictype/ctype-xdigit: Likewise.
66973         * modules/unictype/decimal-digit: Likewise.
66974         * modules/unictype/digit: Likewise.
66975         * modules/unictype/mirror: Likewise.
66976         * modules/unictype/numeric: Likewise.
66977         * modules/unictype/property-alphabetic: Likewise.
66978         * modules/unictype/property-ascii-hex-digit: Likewise.
66979         * modules/unictype/property-bidi-arabic-digit: Likewise.
66980         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
66981         * modules/unictype/property-bidi-block-separator: Likewise.
66982         * modules/unictype/property-bidi-boundary-neutral: Likewise.
66983         * modules/unictype/property-bidi-common-separator: Likewise.
66984         * modules/unictype/property-bidi-control: Likewise.
66985         * modules/unictype/property-bidi-embedding-or-override: Likewise.
66986         * modules/unictype/property-bidi-eur-num-separator: Likewise.
66987         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
66988         * modules/unictype/property-bidi-european-digit: Likewise.
66989         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
66990         * modules/unictype/property-bidi-left-to-right: Likewise.
66991         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
66992         * modules/unictype/property-bidi-other-neutral: Likewise.
66993         * modules/unictype/property-bidi-pdf: Likewise.
66994         * modules/unictype/property-bidi-segment-separator: Likewise.
66995         * modules/unictype/property-bidi-whitespace: Likewise.
66996         * modules/unictype/property-byname: Likewise.
66997         * modules/unictype/property-combining: Likewise.
66998         * modules/unictype/property-composite: Likewise.
66999         * modules/unictype/property-currency-symbol: Likewise.
67000         * modules/unictype/property-dash: Likewise.
67001         * modules/unictype/property-decimal-digit: Likewise.
67002         * modules/unictype/property-default-ignorable-code-point: Likewise.
67003         * modules/unictype/property-deprecated: Likewise.
67004         * modules/unictype/property-diacritic: Likewise.
67005         * modules/unictype/property-extender: Likewise.
67006         * modules/unictype/property-format-control: Likewise.
67007         * modules/unictype/property-grapheme-base: Likewise.
67008         * modules/unictype/property-grapheme-extend: Likewise.
67009         * modules/unictype/property-grapheme-link: Likewise.
67010         * modules/unictype/property-hex-digit: Likewise.
67011         * modules/unictype/property-hyphen: Likewise.
67012         * modules/unictype/property-id-continue: Likewise.
67013         * modules/unictype/property-id-start: Likewise.
67014         * modules/unictype/property-ideographic: Likewise.
67015         * modules/unictype/property-ids-binary-operator: Likewise.
67016         * modules/unictype/property-ids-trinary-operator: Likewise.
67017         * modules/unictype/property-ignorable-control: Likewise.
67018         * modules/unictype/property-iso-control: Likewise.
67019         * modules/unictype/property-join-control: Likewise.
67020         * modules/unictype/property-left-of-pair: Likewise.
67021         * modules/unictype/property-line-separator: Likewise.
67022         * modules/unictype/property-logical-order-exception: Likewise.
67023         * modules/unictype/property-lowercase: Likewise.
67024         * modules/unictype/property-math: Likewise.
67025         * modules/unictype/property-non-break: Likewise.
67026         * modules/unictype/property-not-a-character: Likewise.
67027         * modules/unictype/property-numeric: Likewise.
67028         * modules/unictype/property-other-alphabetic: Likewise.
67029         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
67030         * modules/unictype/property-other-grapheme-extend: Likewise.
67031         * modules/unictype/property-other-id-continue: Likewise.
67032         * modules/unictype/property-other-id-start: Likewise.
67033         * modules/unictype/property-other-lowercase: Likewise.
67034         * modules/unictype/property-other-math: Likewise.
67035         * modules/unictype/property-other-uppercase: Likewise.
67036         * modules/unictype/property-paired-punctuation: Likewise.
67037         * modules/unictype/property-paragraph-separator: Likewise.
67038         * modules/unictype/property-pattern-syntax: Likewise.
67039         * modules/unictype/property-pattern-white-space: Likewise.
67040         * modules/unictype/property-private-use: Likewise.
67041         * modules/unictype/property-punctuation: Likewise.
67042         * modules/unictype/property-quotation-mark: Likewise.
67043         * modules/unictype/property-radical: Likewise.
67044         * modules/unictype/property-sentence-terminal: Likewise.
67045         * modules/unictype/property-soft-dotted: Likewise.
67046         * modules/unictype/property-space: Likewise.
67047         * modules/unictype/property-terminal-punctuation: Likewise.
67048         * modules/unictype/property-test: Likewise.
67049         * modules/unictype/property-titlecase: Likewise.
67050         * modules/unictype/property-unassigned-code-value: Likewise.
67051         * modules/unictype/property-unified-ideograph: Likewise.
67052         * modules/unictype/property-uppercase: Likewise.
67053         * modules/unictype/property-variation-selector: Likewise.
67054         * modules/unictype/property-white-space: Likewise.
67055         * modules/unictype/property-xid-continue: Likewise.
67056         * modules/unictype/property-xid-start: Likewise.
67057         * modules/unictype/property-zero-width: Likewise.
67058         * modules/unictype/scripts: Likewise.
67059         * modules/unictype/syntax-c-ident: Likewise.
67060         * modules/unictype/syntax-c-whitespace: Likewise.
67061         * modules/unictype/syntax-java-ident: Likewise.
67062         * modules/unictype/syntax-java-whitespace: Likewise.
67063         * modules/unilbrk/u8-possible-linebreaks: Likewise.
67064         * modules/unilbrk/u8-width-linebreaks: Likewise.
67065         * modules/unilbrk/u16-possible-linebreaks: Likewise.
67066         * modules/unilbrk/u16-width-linebreaks: Likewise.
67067         * modules/unilbrk/u32-possible-linebreaks: Likewise.
67068         * modules/unilbrk/u32-width-linebreaks: Likewise.
67069         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
67070         * modules/unilbrk/ulc-width-linebreaks: Likewise.
67071         * modules/uniname/uniname: Likewise.
67072         * modules/uninorm/canonical-decomposition: Likewise.
67073         * modules/uninorm/composition: Likewise.
67074         * modules/uninorm/decomposing-form: Likewise.
67075         * modules/uninorm/decomposition: Likewise.
67076         * modules/uninorm/filter: Likewise.
67077         * modules/uninorm/nfc: Likewise.
67078         * modules/uninorm/nfd: Likewise.
67079         * modules/uninorm/nfkc: Likewise.
67080         * modules/uninorm/nfkd: Likewise.
67081         * modules/uninorm/u8-normalize: Likewise.
67082         * modules/uninorm/u8-normcmp: Likewise.
67083         * modules/uninorm/u8-normcoll: Likewise.
67084         * modules/uninorm/u8-normxfrm: Likewise.
67085         * modules/uninorm/u16-normalize: Likewise.
67086         * modules/uninorm/u16-normcmp: Likewise.
67087         * modules/uninorm/u16-normcoll: Likewise.
67088         * modules/uninorm/u16-normxfrm: Likewise.
67089         * modules/uninorm/u32-normalize: Likewise.
67090         * modules/uninorm/u32-normcmp: Likewise.
67091         * modules/uninorm/u32-normcoll: Likewise.
67092         * modules/uninorm/u32-normxfrm: Likewise.
67093         * modules/unistdio/u8-asnprintf: Likewise.
67094         * modules/unistdio/u8-asprintf: Likewise.
67095         * modules/unistdio/u8-snprintf: Likewise.
67096         * modules/unistdio/u8-sprintf: Likewise.
67097         * modules/unistdio/u8-u8-asnprintf: Likewise.
67098         * modules/unistdio/u8-u8-asprintf: Likewise.
67099         * modules/unistdio/u8-u8-snprintf: Likewise.
67100         * modules/unistdio/u8-u8-sprintf: Likewise.
67101         * modules/unistdio/u8-u8-vasnprintf: Likewise.
67102         * modules/unistdio/u8-u8-vasprintf: Likewise.
67103         * modules/unistdio/u8-u8-vsnprintf: Likewise.
67104         * modules/unistdio/u8-u8-vsprintf: Likewise.
67105         * modules/unistdio/u8-vasnprintf: Likewise.
67106         * modules/unistdio/u8-vasprintf: Likewise.
67107         * modules/unistdio/u8-vsnprintf: Likewise.
67108         * modules/unistdio/u8-vsprintf: Likewise.
67109         * modules/unistdio/u16-asnprintf: Likewise.
67110         * modules/unistdio/u16-asprintf: Likewise.
67111         * modules/unistdio/u16-snprintf: Likewise.
67112         * modules/unistdio/u16-sprintf: Likewise.
67113         * modules/unistdio/u16-u16-asnprintf: Likewise.
67114         * modules/unistdio/u16-u16-asprintf: Likewise.
67115         * modules/unistdio/u16-u16-snprintf: Likewise.
67116         * modules/unistdio/u16-u16-sprintf: Likewise.
67117         * modules/unistdio/u16-u16-vasnprintf: Likewise.
67118         * modules/unistdio/u16-u16-vasprintf: Likewise.
67119         * modules/unistdio/u16-u16-vsnprintf: Likewise.
67120         * modules/unistdio/u16-u16-vsprintf: Likewise.
67121         * modules/unistdio/u16-vasnprintf: Likewise.
67122         * modules/unistdio/u16-vasprintf: Likewise.
67123         * modules/unistdio/u16-vsnprintf: Likewise.
67124         * modules/unistdio/u16-vsprintf: Likewise.
67125         * modules/unistdio/u32-asnprintf: Likewise.
67126         * modules/unistdio/u32-asprintf: Likewise.
67127         * modules/unistdio/u32-snprintf: Likewise.
67128         * modules/unistdio/u32-sprintf: Likewise.
67129         * modules/unistdio/u32-u32-asnprintf: Likewise.
67130         * modules/unistdio/u32-u32-asprintf: Likewise.
67131         * modules/unistdio/u32-u32-snprintf: Likewise.
67132         * modules/unistdio/u32-u32-sprintf: Likewise.
67133         * modules/unistdio/u32-u32-vasnprintf: Likewise.
67134         * modules/unistdio/u32-u32-vasprintf: Likewise.
67135         * modules/unistdio/u32-u32-vsnprintf: Likewise.
67136         * modules/unistdio/u32-u32-vsprintf: Likewise.
67137         * modules/unistdio/u32-vasnprintf: Likewise.
67138         * modules/unistdio/u32-vasprintf: Likewise.
67139         * modules/unistdio/u32-vsnprintf: Likewise.
67140         * modules/unistdio/u32-vsprintf: Likewise.
67141         * modules/unistdio/ulc-asnprintf: Likewise.
67142         * modules/unistdio/ulc-asprintf: Likewise.
67143         * modules/unistdio/ulc-fprintf: Likewise.
67144         * modules/unistdio/ulc-snprintf: Likewise.
67145         * modules/unistdio/ulc-sprintf: Likewise.
67146         * modules/unistdio/ulc-vasnprintf: Likewise.
67147         * modules/unistdio/ulc-vasprintf: Likewise.
67148         * modules/unistdio/ulc-vfprintf: Likewise.
67149         * modules/unistdio/ulc-vsnprintf: Likewise.
67150         * modules/unistdio/ulc-vsprintf: Likewise.
67151         * modules/unistr/u8-check: Likewise.
67152         * modules/unistr/u8-chr: Likewise.
67153         * modules/unistr/u8-cmp: Likewise.
67154         * modules/unistr/u8-cmp2: Likewise.
67155         * modules/unistr/u8-cpy: Likewise.
67156         * modules/unistr/u8-cpy-alloc: Likewise.
67157         * modules/unistr/u8-endswith: Likewise.
67158         * modules/unistr/u8-mblen: Likewise.
67159         * modules/unistr/u8-mbsnlen: Likewise.
67160         * modules/unistr/u8-mbtouc: Likewise.
67161         * modules/unistr/u8-mbtouc-unsafe: Likewise.
67162         * modules/unistr/u8-mbtoucr: Likewise.
67163         * modules/unistr/u8-move: Likewise.
67164         * modules/unistr/u8-next: Likewise.
67165         * modules/unistr/u8-prev: Likewise.
67166         * modules/unistr/u8-set: Likewise.
67167         * modules/unistr/u8-startswith: Likewise.
67168         * modules/unistr/u8-stpcpy: Likewise.
67169         * modules/unistr/u8-stpncpy: Likewise.
67170         * modules/unistr/u8-strcat: Likewise.
67171         * modules/unistr/u8-strchr: Likewise.
67172         * modules/unistr/u8-strcmp: Likewise.
67173         * modules/unistr/u8-strcoll: Likewise.
67174         * modules/unistr/u8-strcpy: Likewise.
67175         * modules/unistr/u8-strcspn: Likewise.
67176         * modules/unistr/u8-strdup: Likewise.
67177         * modules/unistr/u8-strlen: Likewise.
67178         * modules/unistr/u8-strmblen: Likewise.
67179         * modules/unistr/u8-strmbtouc: Likewise.
67180         * modules/unistr/u8-strncat: Likewise.
67181         * modules/unistr/u8-strncmp: Likewise.
67182         * modules/unistr/u8-strncpy: Likewise.
67183         * modules/unistr/u8-strnlen: Likewise.
67184         * modules/unistr/u8-strpbrk: Likewise.
67185         * modules/unistr/u8-strrchr: Likewise.
67186         * modules/unistr/u8-strspn: Likewise.
67187         * modules/unistr/u8-strstr: Likewise.
67188         * modules/unistr/u8-strtok: Likewise.
67189         * modules/unistr/u8-to-u16: Likewise.
67190         * modules/unistr/u8-to-u32: Likewise.
67191         * modules/unistr/u8-uctomb: Likewise.
67192         * modules/unistr/u16-check: Likewise.
67193         * modules/unistr/u16-chr: Likewise.
67194         * modules/unistr/u16-cmp: Likewise.
67195         * modules/unistr/u16-cmp2: Likewise.
67196         * modules/unistr/u16-cpy: Likewise.
67197         * modules/unistr/u16-cpy-alloc: Likewise.
67198         * modules/unistr/u16-endswith: Likewise.
67199         * modules/unistr/u16-mblen: Likewise.
67200         * modules/unistr/u16-mbsnlen: Likewise.
67201         * modules/unistr/u16-mbtouc: Likewise.
67202         * modules/unistr/u16-mbtouc-unsafe: Likewise.
67203         * modules/unistr/u16-mbtoucr: Likewise.
67204         * modules/unistr/u16-move: Likewise.
67205         * modules/unistr/u16-next: Likewise.
67206         * modules/unistr/u16-prev: Likewise.
67207         * modules/unistr/u16-set: Likewise.
67208         * modules/unistr/u16-startswith: Likewise.
67209         * modules/unistr/u16-stpcpy: Likewise.
67210         * modules/unistr/u16-stpncpy: Likewise.
67211         * modules/unistr/u16-strcat: Likewise.
67212         * modules/unistr/u16-strchr: Likewise.
67213         * modules/unistr/u16-strcmp: Likewise.
67214         * modules/unistr/u16-strcoll: Likewise.
67215         * modules/unistr/u16-strcpy: Likewise.
67216         * modules/unistr/u16-strcspn: Likewise.
67217         * modules/unistr/u16-strdup: Likewise.
67218         * modules/unistr/u16-strlen: Likewise.
67219         * modules/unistr/u16-strmblen: Likewise.
67220         * modules/unistr/u16-strmbtouc: Likewise.
67221         * modules/unistr/u16-strncat: Likewise.
67222         * modules/unistr/u16-strncmp: Likewise.
67223         * modules/unistr/u16-strncpy: Likewise.
67224         * modules/unistr/u16-strnlen: Likewise.
67225         * modules/unistr/u16-strpbrk: Likewise.
67226         * modules/unistr/u16-strrchr: Likewise.
67227         * modules/unistr/u16-strspn: Likewise.
67228         * modules/unistr/u16-strstr: Likewise.
67229         * modules/unistr/u16-strtok: Likewise.
67230         * modules/unistr/u16-to-u32: Likewise.
67231         * modules/unistr/u16-to-u8: Likewise.
67232         * modules/unistr/u16-uctomb: Likewise.
67233         * modules/unistr/u32-check: Likewise.
67234         * modules/unistr/u32-chr: Likewise.
67235         * modules/unistr/u32-cmp: Likewise.
67236         * modules/unistr/u32-cmp2: Likewise.
67237         * modules/unistr/u32-cpy: Likewise.
67238         * modules/unistr/u32-cpy-alloc: Likewise.
67239         * modules/unistr/u32-endswith: Likewise.
67240         * modules/unistr/u32-mblen: Likewise.
67241         * modules/unistr/u32-mbsnlen: Likewise.
67242         * modules/unistr/u32-mbtouc: Likewise.
67243         * modules/unistr/u32-mbtouc-unsafe: Likewise.
67244         * modules/unistr/u32-mbtoucr: Likewise.
67245         * modules/unistr/u32-move: Likewise.
67246         * modules/unistr/u32-next: Likewise.
67247         * modules/unistr/u32-prev: Likewise.
67248         * modules/unistr/u32-set: Likewise.
67249         * modules/unistr/u32-startswith: Likewise.
67250         * modules/unistr/u32-stpcpy: Likewise.
67251         * modules/unistr/u32-stpncpy: Likewise.
67252         * modules/unistr/u32-strcat: Likewise.
67253         * modules/unistr/u32-strchr: Likewise.
67254         * modules/unistr/u32-strcmp: Likewise.
67255         * modules/unistr/u32-strcoll: Likewise.
67256         * modules/unistr/u32-strcpy: Likewise.
67257         * modules/unistr/u32-strcspn: Likewise.
67258         * modules/unistr/u32-strdup: Likewise.
67259         * modules/unistr/u32-strlen: Likewise.
67260         * modules/unistr/u32-strmblen: Likewise.
67261         * modules/unistr/u32-strmbtouc: Likewise.
67262         * modules/unistr/u32-strncat: Likewise.
67263         * modules/unistr/u32-strncmp: Likewise.
67264         * modules/unistr/u32-strncpy: Likewise.
67265         * modules/unistr/u32-strnlen: Likewise.
67266         * modules/unistr/u32-strpbrk: Likewise.
67267         * modules/unistr/u32-strrchr: Likewise.
67268         * modules/unistr/u32-strspn: Likewise.
67269         * modules/unistr/u32-strstr: Likewise.
67270         * modules/unistr/u32-strtok: Likewise.
67271         * modules/unistr/u32-to-u16: Likewise.
67272         * modules/unistr/u32-to-u8: Likewise.
67273         * modules/unistr/u32-uctomb: Likewise.
67274         * modules/uniwbrk/u8-wordbreaks: Likewise.
67275         * modules/uniwbrk/u16-wordbreaks: Likewise.
67276         * modules/uniwbrk/u32-wordbreaks: Likewise.
67277         * modules/uniwbrk/ulc-wordbreaks: Likewise.
67278         * modules/uniwbrk/wordbreak-property: Likewise.
67279         * modules/uniwidth/u8-strwidth: Likewise.
67280         * modules/uniwidth/u8-width: Likewise.
67281         * modules/uniwidth/u16-strwidth: Likewise.
67282         * modules/uniwidth/u16-width: Likewise.
67283         * modules/uniwidth/u32-strwidth: Likewise.
67284         * modules/uniwidth/u32-width: Likewise.
67285         * modules/uniwidth/width: Likewise.
67286         * modules/unicase/cased-tests (Makefile.am): Link all test programs
67287         with $(LIBUNISTRING).
67288         * modules/unicase/ignorable-tests: Likewise.
67289         * modules/unicase/locale-language-tests: Likewise.
67290         * modules/unicase/tolower-tests: Likewise.
67291         * modules/unicase/totitle-tests: Likewise.
67292         * modules/unicase/toupper-tests: Likewise.
67293         * modules/unicase/u8-casecmp-tests: Likewise.
67294         * modules/unicase/u8-casecoll-tests: Likewise.
67295         * modules/unicase/u8-casefold-tests: Likewise.
67296         * modules/unicase/u8-is-cased-tests: Likewise.
67297         * modules/unicase/u8-is-casefolded-tests: Likewise.
67298         * modules/unicase/u8-is-lowercase-tests: Likewise.
67299         * modules/unicase/u8-is-titlecase-tests: Likewise.
67300         * modules/unicase/u8-is-uppercase-tests: Likewise.
67301         * modules/unicase/u8-tolower-tests: Likewise.
67302         * modules/unicase/u8-totitle-tests: Likewise.
67303         * modules/unicase/u8-toupper-tests: Likewise.
67304         * modules/unicase/u16-casecmp-tests: Likewise.
67305         * modules/unicase/u16-casecoll-tests: Likewise.
67306         * modules/unicase/u16-casefold-tests: Likewise.
67307         * modules/unicase/u16-is-cased-tests: Likewise.
67308         * modules/unicase/u16-is-casefolded-tests: Likewise.
67309         * modules/unicase/u16-is-lowercase-tests: Likewise.
67310         * modules/unicase/u16-is-titlecase-tests: Likewise.
67311         * modules/unicase/u16-is-uppercase-tests: Likewise.
67312         * modules/unicase/u16-tolower-tests: Likewise.
67313         * modules/unicase/u16-totitle-tests: Likewise.
67314         * modules/unicase/u16-toupper-tests: Likewise.
67315         * modules/unicase/u32-casecmp-tests: Likewise.
67316         * modules/unicase/u32-casecoll-tests: Likewise.
67317         * modules/unicase/u32-casefold-tests: Likewise.
67318         * modules/unicase/u32-is-cased-tests: Likewise.
67319         * modules/unicase/u32-is-casefolded-tests: Likewise.
67320         * modules/unicase/u32-is-lowercase-tests: Likewise.
67321         * modules/unicase/u32-is-titlecase-tests: Likewise.
67322         * modules/unicase/u32-is-uppercase-tests: Likewise.
67323         * modules/unicase/u32-tolower-tests: Likewise.
67324         * modules/unicase/u32-totitle-tests: Likewise.
67325         * modules/unicase/u32-toupper-tests: Likewise.
67326         * modules/unicase/ulc-casecmp-tests: Likewise.
67327         * modules/unicase/ulc-casecoll-tests: Likewise.
67328         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
67329         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
67330         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
67331         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
67332         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
67333         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
67334         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
67335         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
67336         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
67337         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
67338         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
67339         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
67340         * modules/unictype/bidicategory-byname-tests: Likewise.
67341         * modules/unictype/bidicategory-name-tests: Likewise.
67342         * modules/unictype/bidicategory-of-tests: Likewise.
67343         * modules/unictype/bidicategory-test-tests: Likewise.
67344         * modules/unictype/block-list-tests: Likewise.
67345         * modules/unictype/block-of-tests: Likewise.
67346         * modules/unictype/block-test-tests: Likewise.
67347         * modules/unictype/category-C-tests: Likewise.
67348         * modules/unictype/category-Cc-tests: Likewise.
67349         * modules/unictype/category-Cf-tests: Likewise.
67350         * modules/unictype/category-Cn-tests: Likewise.
67351         * modules/unictype/category-Co-tests: Likewise.
67352         * modules/unictype/category-Cs-tests: Likewise.
67353         * modules/unictype/category-L-tests: Likewise.
67354         * modules/unictype/category-Ll-tests: Likewise.
67355         * modules/unictype/category-Lm-tests: Likewise.
67356         * modules/unictype/category-Lo-tests: Likewise.
67357         * modules/unictype/category-Lt-tests: Likewise.
67358         * modules/unictype/category-Lu-tests: Likewise.
67359         * modules/unictype/category-M-tests: Likewise.
67360         * modules/unictype/category-Mc-tests: Likewise.
67361         * modules/unictype/category-Me-tests: Likewise.
67362         * modules/unictype/category-Mn-tests: Likewise.
67363         * modules/unictype/category-N-tests: Likewise.
67364         * modules/unictype/category-Nd-tests: Likewise.
67365         * modules/unictype/category-Nl-tests: Likewise.
67366         * modules/unictype/category-No-tests: Likewise.
67367         * modules/unictype/category-P-tests: Likewise.
67368         * modules/unictype/category-Pc-tests: Likewise.
67369         * modules/unictype/category-Pd-tests: Likewise.
67370         * modules/unictype/category-Pe-tests: Likewise.
67371         * modules/unictype/category-Pf-tests: Likewise.
67372         * modules/unictype/category-Pi-tests: Likewise.
67373         * modules/unictype/category-Po-tests: Likewise.
67374         * modules/unictype/category-Ps-tests: Likewise.
67375         * modules/unictype/category-S-tests: Likewise.
67376         * modules/unictype/category-Sc-tests: Likewise.
67377         * modules/unictype/category-Sk-tests: Likewise.
67378         * modules/unictype/category-Sm-tests: Likewise.
67379         * modules/unictype/category-So-tests: Likewise.
67380         * modules/unictype/category-Z-tests: Likewise.
67381         * modules/unictype/category-Zl-tests: Likewise.
67382         * modules/unictype/category-Zp-tests: Likewise.
67383         * modules/unictype/category-Zs-tests: Likewise.
67384         * modules/unictype/category-and-not-tests: Likewise.
67385         * modules/unictype/category-and-tests: Likewise.
67386         * modules/unictype/category-byname-tests: Likewise.
67387         * modules/unictype/category-name-tests: Likewise.
67388         * modules/unictype/category-none-tests: Likewise.
67389         * modules/unictype/category-of-tests: Likewise.
67390         * modules/unictype/category-or-tests: Likewise.
67391         * modules/unictype/category-test-withtable-tests: Likewise.
67392         * modules/unictype/combining-class-tests: Likewise.
67393         * modules/unictype/ctype-alnum-tests: Likewise.
67394         * modules/unictype/ctype-alpha-tests: Likewise.
67395         * modules/unictype/ctype-blank-tests: Likewise.
67396         * modules/unictype/ctype-cntrl-tests: Likewise.
67397         * modules/unictype/ctype-digit-tests: Likewise.
67398         * modules/unictype/ctype-graph-tests: Likewise.
67399         * modules/unictype/ctype-lower-tests: Likewise.
67400         * modules/unictype/ctype-print-tests: Likewise.
67401         * modules/unictype/ctype-punct-tests: Likewise.
67402         * modules/unictype/ctype-space-tests: Likewise.
67403         * modules/unictype/ctype-upper-tests: Likewise.
67404         * modules/unictype/ctype-xdigit-tests: Likewise.
67405         * modules/unictype/decimal-digit-tests: Likewise.
67406         * modules/unictype/digit-tests: Likewise.
67407         * modules/unictype/mirror-tests: Likewise.
67408         * modules/unictype/numeric-tests: Likewise.
67409         * modules/unictype/property-alphabetic-tests: Likewise.
67410         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
67411         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
67412         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
67413         * modules/unictype/property-bidi-block-separator-tests: Likewise.
67414         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
67415         * modules/unictype/property-bidi-common-separator-tests: Likewise.
67416         * modules/unictype/property-bidi-control-tests: Likewise.
67417         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
67418         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
67419         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
67420         * modules/unictype/property-bidi-european-digit-tests: Likewise.
67421         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
67422         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
67423         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
67424         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
67425         * modules/unictype/property-bidi-pdf-tests: Likewise.
67426         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
67427         * modules/unictype/property-bidi-whitespace-tests: Likewise.
67428         * modules/unictype/property-byname-tests: Likewise.
67429         * modules/unictype/property-combining-tests: Likewise.
67430         * modules/unictype/property-composite-tests: Likewise.
67431         * modules/unictype/property-currency-symbol-tests: Likewise.
67432         * modules/unictype/property-dash-tests: Likewise.
67433         * modules/unictype/property-decimal-digit-tests: Likewise.
67434         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
67435         * modules/unictype/property-deprecated-tests: Likewise.
67436         * modules/unictype/property-diacritic-tests: Likewise.
67437         * modules/unictype/property-extender-tests: Likewise.
67438         * modules/unictype/property-format-control-tests: Likewise.
67439         * modules/unictype/property-grapheme-base-tests: Likewise.
67440         * modules/unictype/property-grapheme-extend-tests: Likewise.
67441         * modules/unictype/property-grapheme-link-tests: Likewise.
67442         * modules/unictype/property-hex-digit-tests: Likewise.
67443         * modules/unictype/property-hyphen-tests: Likewise.
67444         * modules/unictype/property-id-continue-tests: Likewise.
67445         * modules/unictype/property-id-start-tests: Likewise.
67446         * modules/unictype/property-ideographic-tests: Likewise.
67447         * modules/unictype/property-ids-binary-operator-tests: Likewise.
67448         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
67449         * modules/unictype/property-ignorable-control-tests: Likewise.
67450         * modules/unictype/property-iso-control-tests: Likewise.
67451         * modules/unictype/property-join-control-tests: Likewise.
67452         * modules/unictype/property-left-of-pair-tests: Likewise.
67453         * modules/unictype/property-line-separator-tests: Likewise.
67454         * modules/unictype/property-logical-order-exception-tests: Likewise.
67455         * modules/unictype/property-lowercase-tests: Likewise.
67456         * modules/unictype/property-math-tests: Likewise.
67457         * modules/unictype/property-non-break-tests: Likewise.
67458         * modules/unictype/property-not-a-character-tests: Likewise.
67459         * modules/unictype/property-numeric-tests: Likewise.
67460         * modules/unictype/property-other-alphabetic-tests: Likewise.
67461         * modules/unictype/property-other-default-ignorable-code-point-tests:
67462         Likewise.
67463         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
67464         * modules/unictype/property-other-id-continue-tests: Likewise.
67465         * modules/unictype/property-other-id-start-tests: Likewise.
67466         * modules/unictype/property-other-lowercase-tests: Likewise.
67467         * modules/unictype/property-other-math-tests: Likewise.
67468         * modules/unictype/property-other-uppercase-tests: Likewise.
67469         * modules/unictype/property-paired-punctuation-tests: Likewise.
67470         * modules/unictype/property-paragraph-separator-tests: Likewise.
67471         * modules/unictype/property-pattern-syntax-tests: Likewise.
67472         * modules/unictype/property-pattern-white-space-tests: Likewise.
67473         * modules/unictype/property-private-use-tests: Likewise.
67474         * modules/unictype/property-punctuation-tests: Likewise.
67475         * modules/unictype/property-quotation-mark-tests: Likewise.
67476         * modules/unictype/property-radical-tests: Likewise.
67477         * modules/unictype/property-sentence-terminal-tests: Likewise.
67478         * modules/unictype/property-soft-dotted-tests: Likewise.
67479         * modules/unictype/property-space-tests: Likewise.
67480         * modules/unictype/property-terminal-punctuation-tests: Likewise.
67481         * modules/unictype/property-test-tests: Likewise.
67482         * modules/unictype/property-titlecase-tests: Likewise.
67483         * modules/unictype/property-unassigned-code-value-tests: Likewise.
67484         * modules/unictype/property-unified-ideograph-tests: Likewise.
67485         * modules/unictype/property-uppercase-tests: Likewise.
67486         * modules/unictype/property-variation-selector-tests: Likewise.
67487         * modules/unictype/property-white-space-tests: Likewise.
67488         * modules/unictype/property-xid-continue-tests: Likewise.
67489         * modules/unictype/property-xid-start-tests: Likewise.
67490         * modules/unictype/property-zero-width-tests: Likewise.
67491         * modules/unictype/scripts-tests: Likewise.
67492         * modules/unictype/syntax-c-ident-tests: Likewise.
67493         * modules/unictype/syntax-c-whitespace-tests: Likewise.
67494         * modules/unictype/syntax-java-ident-tests: Likewise.
67495         * modules/unictype/syntax-java-whitespace-tests: Likewise.
67496         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
67497         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
67498         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
67499         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
67500         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
67501         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
67502         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
67503         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
67504         * modules/uniname/uniname-tests: Likewise.
67505         * modules/uninorm/canonical-decomposition-tests: Likewise.
67506         * modules/uninorm/compat-decomposition-tests: Likewise.
67507         * modules/uninorm/composition-tests: Likewise.
67508         * modules/uninorm/decomposing-form-tests: Likewise.
67509         * modules/uninorm/decomposition-tests: Likewise.
67510         * modules/uninorm/filter-tests: Likewise.
67511         * modules/uninorm/nfc-tests: Likewise.
67512         * modules/uninorm/nfd-tests: Likewise.
67513         * modules/uninorm/nfkc-tests: Likewise.
67514         * modules/uninorm/nfkd-tests: Likewise.
67515         * modules/uninorm/u8-normcmp-tests: Likewise.
67516         * modules/uninorm/u8-normcoll-tests: Likewise.
67517         * modules/uninorm/u16-normcmp-tests: Likewise.
67518         * modules/uninorm/u16-normcoll-tests: Likewise.
67519         * modules/uninorm/u32-normcmp-tests: Likewise.
67520         * modules/uninorm/u32-normcoll-tests: Likewise.
67521         * modules/unistdio/u8-asnprintf-tests: Likewise.
67522         * modules/unistdio/u8-vasnprintf-tests: Likewise.
67523         * modules/unistdio/u8-vasprintf-tests: Likewise.
67524         * modules/unistdio/u8-vsnprintf-tests: Likewise.
67525         * modules/unistdio/u8-vsprintf-tests: Likewise.
67526         * modules/unistdio/u16-asnprintf-tests: Likewise.
67527         * modules/unistdio/u16-vasnprintf-tests: Likewise.
67528         * modules/unistdio/u16-vasprintf-tests: Likewise.
67529         * modules/unistdio/u16-vsnprintf-tests: Likewise.
67530         * modules/unistdio/u16-vsprintf-tests: Likewise.
67531         * modules/unistdio/u32-asnprintf-tests: Likewise.
67532         * modules/unistdio/u32-vasnprintf-tests: Likewise.
67533         * modules/unistdio/u32-vasprintf-tests: Likewise.
67534         * modules/unistdio/u32-vsnprintf-tests: Likewise.
67535         * modules/unistdio/u32-vsprintf-tests: Likewise.
67536         * modules/unistdio/ulc-asnprintf-tests: Likewise.
67537         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
67538         * modules/unistdio/ulc-vasprintf-tests: Likewise.
67539         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
67540         * modules/unistdio/ulc-vsprintf-tests: Likewise.
67541         * modules/unistr/u8-check-tests: Likewise.
67542         * modules/unistr/u8-chr-tests: Likewise.
67543         * modules/unistr/u8-cmp-tests: Likewise.
67544         * modules/unistr/u8-cmp2-tests: Likewise.
67545         * modules/unistr/u8-cpy-alloc-tests: Likewise.
67546         * modules/unistr/u8-cpy-tests: Likewise.
67547         * modules/unistr/u8-mblen-tests: Likewise.
67548         * modules/unistr/u8-mbsnlen-tests: Likewise.
67549         * modules/unistr/u8-mbtouc-tests: Likewise.
67550         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
67551         * modules/unistr/u8-mbtoucr-tests: Likewise.
67552         * modules/unistr/u8-move-tests: Likewise.
67553         * modules/unistr/u8-next-tests: Likewise.
67554         * modules/unistr/u8-prev-tests: Likewise.
67555         * modules/unistr/u8-set-tests: Likewise.
67556         * modules/unistr/u8-stpcpy-tests: Likewise.
67557         * modules/unistr/u8-stpncpy-tests: Likewise.
67558         * modules/unistr/u8-strcat-tests: Likewise.
67559         * modules/unistr/u8-strcmp-tests: Likewise.
67560         * modules/unistr/u8-strcoll-tests: Likewise.
67561         * modules/unistr/u8-strcpy-tests: Likewise.
67562         * modules/unistr/u8-strdup-tests: Likewise.
67563         * modules/unistr/u8-strlen-tests: Likewise.
67564         * modules/unistr/u8-strmblen-tests: Likewise.
67565         * modules/unistr/u8-strmbtouc-tests: Likewise.
67566         * modules/unistr/u8-strncat-tests: Likewise.
67567         * modules/unistr/u8-strncmp-tests: Likewise.
67568         * modules/unistr/u8-strncpy-tests: Likewise.
67569         * modules/unistr/u8-strnlen-tests: Likewise.
67570         * modules/unistr/u8-to-u16-tests: Likewise.
67571         * modules/unistr/u8-to-u32-tests: Likewise.
67572         * modules/unistr/u8-uctomb-tests: Likewise.
67573         * modules/unistr/u16-check-tests: Likewise.
67574         * modules/unistr/u16-chr-tests: Likewise.
67575         * modules/unistr/u16-cmp-tests: Likewise.
67576         * modules/unistr/u16-cmp2-tests: Likewise.
67577         * modules/unistr/u16-cpy-alloc-tests: Likewise.
67578         * modules/unistr/u16-cpy-tests: Likewise.
67579         * modules/unistr/u16-mblen-tests: Likewise.
67580         * modules/unistr/u16-mbsnlen-tests: Likewise.
67581         * modules/unistr/u16-mbtouc-tests: Likewise.
67582         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
67583         * modules/unistr/u16-mbtoucr-tests: Likewise.
67584         * modules/unistr/u16-move-tests: Likewise.
67585         * modules/unistr/u16-next-tests: Likewise.
67586         * modules/unistr/u16-prev-tests: Likewise.
67587         * modules/unistr/u16-set-tests: Likewise.
67588         * modules/unistr/u16-stpcpy-tests: Likewise.
67589         * modules/unistr/u16-stpncpy-tests: Likewise.
67590         * modules/unistr/u16-strcat-tests: Likewise.
67591         * modules/unistr/u16-strcmp-tests: Likewise.
67592         * modules/unistr/u16-strcoll-tests: Likewise.
67593         * modules/unistr/u16-strcpy-tests: Likewise.
67594         * modules/unistr/u16-strdup-tests: Likewise.
67595         * modules/unistr/u16-strlen-tests: Likewise.
67596         * modules/unistr/u16-strmblen-tests: Likewise.
67597         * modules/unistr/u16-strmbtouc-tests: Likewise.
67598         * modules/unistr/u16-strncat-tests: Likewise.
67599         * modules/unistr/u16-strncmp-tests: Likewise.
67600         * modules/unistr/u16-strncpy-tests: Likewise.
67601         * modules/unistr/u16-strnlen-tests: Likewise.
67602         * modules/unistr/u16-to-u32-tests: Likewise.
67603         * modules/unistr/u16-to-u8-tests: Likewise.
67604         * modules/unistr/u16-uctomb-tests: Likewise.
67605         * modules/unistr/u32-check-tests: Likewise.
67606         * modules/unistr/u32-chr-tests: Likewise.
67607         * modules/unistr/u32-cmp-tests: Likewise.
67608         * modules/unistr/u32-cmp2-tests: Likewise.
67609         * modules/unistr/u32-cpy-alloc-tests: Likewise.
67610         * modules/unistr/u32-cpy-tests: Likewise.
67611         * modules/unistr/u32-mblen-tests: Likewise.
67612         * modules/unistr/u32-mbsnlen-tests: Likewise.
67613         * modules/unistr/u32-mbtouc-tests: Likewise.
67614         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
67615         * modules/unistr/u32-mbtoucr-tests: Likewise.
67616         * modules/unistr/u32-move-tests: Likewise.
67617         * modules/unistr/u32-next-tests: Likewise.
67618         * modules/unistr/u32-prev-tests: Likewise.
67619         * modules/unistr/u32-set-tests: Likewise.
67620         * modules/unistr/u32-stpcpy-tests: Likewise.
67621         * modules/unistr/u32-stpncpy-tests: Likewise.
67622         * modules/unistr/u32-strcat-tests: Likewise.
67623         * modules/unistr/u32-strcmp-tests: Likewise.
67624         * modules/unistr/u32-strcoll-tests: Likewise.
67625         * modules/unistr/u32-strcpy-tests: Likewise.
67626         * modules/unistr/u32-strdup-tests: Likewise.
67627         * modules/unistr/u32-strlen-tests: Likewise.
67628         * modules/unistr/u32-strmblen-tests: Likewise.
67629         * modules/unistr/u32-strmbtouc-tests: Likewise.
67630         * modules/unistr/u32-strncat-tests: Likewise.
67631         * modules/unistr/u32-strncmp-tests: Likewise.
67632         * modules/unistr/u32-strncpy-tests: Likewise.
67633         * modules/unistr/u32-strnlen-tests: Likewise.
67634         * modules/unistr/u32-to-u16-tests: Likewise.
67635         * modules/unistr/u32-to-u8-tests: Likewise.
67636         * modules/unistr/u32-uctomb-tests: Likewise.
67637         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
67638         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
67639         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
67640         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
67641         * modules/uniwidth/u8-strwidth-tests: Likewise.
67642         * modules/uniwidth/u8-width-tests: Likewise.
67643         * modules/uniwidth/u16-strwidth-tests: Likewise.
67644         * modules/uniwidth/u16-width-tests: Likewise.
67645         * modules/uniwidth/u32-strwidth-tests: Likewise.
67646         * modules/uniwidth/u32-width-tests: Likewise.
67647         * modules/uniwidth/width-tests: Likewise.
67649 2010-05-18  Richard Jones  <rjones@redhat.com>
67651         doc: users.txt: list hivex
67652         * users.txt: Add hivex.
67654 2010-05-18  Richard Jones  <rjones@redhat.com>
67656         doc: users.txt: list febootstrap
67657         * users.txt: Add febootstrap.
67659 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
67661         bootstrap: fix an error when gnulib is not used as a git submodule
67662         * build-aux/bootstrap (gnulib_path): If its length is zero then
67663         assign "gnulib" to it.
67664         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
67666 2010-05-16  Bruno Haible  <bruno@clisp.org>
67668         Avoid autoconf warnings about AM_ICONV.
67669         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
67670         2.64.
67672 2010-05-16  Bruno Haible  <bruno@clisp.org>
67674         absolute-header: Make the macro usable in more situations.
67675         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
67676         from gl_ABSOLUTE_HEADER.
67677         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
67679 2010-05-16  James Youngman  <jay@gnu.org>
67681         doc: update users.txt
67682         * users.txt: Add CSSC.
67684 2010-05-16  Jim Meyering  <meyering@redhat.com>
67686         init.sh: fix an error in the previous change; add more comments
67687         * tests/init.sh: Compare exit code in loop against 9, not 2.
67688         Patch by Bruno Haible.
67689         Make the two tests more similar by adding an empty "then" clause.
67690         Add comments.
67692         init.sh: avoid unnecessary shell re-exec
67693         * tests/init.sh: Improve the re-exec-required check to first test the
67694         current shell.  If it passes the test, do not search for a shell that
67695         does pass, and do not re-exec.  This test is particularly contorted to
67696         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
67697         of $(...) evokes a syntax error and causes immediate shell exit with
67698         status 2.  Bruno Haible reported that the re-exec made it impossible
67699         to single-step through any init.sh-using script.
67701 2010-05-16  Bruno Haible  <bruno@clisp.org>
67703         Fix collision between gnulib's and libintl's printf replacements.
67704         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
67705         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
67706         (printf): When using GNU C, map the __printf__ function to rpl_printf
67707         via __asm__. When not using GNU C, define rpl_printf instead of
67708         __printf__.
67709         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
67710         commit.
67711         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
67712         commit.
67713         * m4/asm-underscore.m4: New file.
67714         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
67715         * modules/stdio (Files): Add m4/asm-underscore.m4.
67716         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
67717         Reported by Ben Pfaff.
67719 2010-05-16  Bruno Haible  <bruno@clisp.org>
67721         verify: Avoid skipping the test on openSUSE 11.0.
67722         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
67724 2010-05-13  Bruno Haible  <bruno@clisp.org>
67726         Avoid useless warnings from G++.
67727         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
67728         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
67729         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67731 2010-05-11  Jim Meyering  <meyering@redhat.com>
67733         maint.mk: tweak preceding change
67734         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
67735         regexps tighter by anchoring at EOL, and make the new group "shy"
67736         for slightly decreased overhead.
67738 2010-05-11  Eric Blake  <eblake@redhat.com>
67740         maint.mk: gnulib doesn't guarantee NSIG
67741         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
67743 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67745         test-pwrite.c: Remove unused variable declaration.
67746         * tests/test-pwrite.c (main): Remove read_buf declaration.
67748         Remove useless test-pwrite.sh file.
67749         * tests/test-pwrite.sh: Delete file.
67750         * modules/pwrite-tests: Remove references.
67751         Reported by Bruno Haible.
67753 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67755         init.sh: fix a typo
67756         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
67758 2010-05-10  Jim Meyering  <meyering@redhat.com>
67760         maint.mk: avoid using a temporary file in the always-defined-macros check
67761         * top/maint.mk (.re-defmac): Remove rule.
67762         (gl_trap_): Remove definition.
67763         (sc_prohibit_always-defined_macros): Rewrite not to create and
67764         depend on a temporary file.  Instead, depend on GNU grep's ability
67765         to read a list of regular expressions from stdin when given "-f -".
67767 2010-05-09  Bruno Haible  <bruno@clisp.org>
67769         Update to GNU gettext 0.18, part 1.
67770         * m4/gettext.m4: Update to GNU gettext 0.18.
67771         * m4/intl.m4: Likewise.
67772         * m4/po.m4: Likewise.
67773         * modules/gettext (Files): Add m4/fcntl-o.m4.
67774         (configure.ac): Require gettext infrastructure from version 0.18.
67776 2010-05-09  Jim Meyering  <meyering@redhat.com>
67778         init.sh: enable MALLOC_PERTURB_
67779         * tests/init.sh: Enable glibc's malloc-perturbing option.
67781         maint.mk: improve sc_cross_check_PATH_usage_in_tests
67782         With my recent change in init.sh from the two-line form:
67783             -#   : ${srcdir=.}
67784             -#   . "$srcdir/init.sh"; path_prepend_ .
67785             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
67786         I noticed that using the one-line form would cause this test
67787         to fail with a false-positive, or to stop working altogether,
67788         depending on whether help-version changed or all the tests did.
67789         * top/maint.mk (_hv_regex): Remove this definition.
67790         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
67791         (_hv_regex_strong): Use a stronger regex to check for conformance.
67792         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
67793         Give a separate diagnostic for lack of conforming use.
67795         maint.mk: prohibit definition of symbols defined by gnulib
67796         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
67797         definition of symbols defined by gnulib.
67799 2010-05-09  Bruno Haible  <bruno@clisp.org>
67801         acl: Avoid test failure on Cygwin-hosted mingw.
67802         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
67804 2010-05-09  Bruno Haible  <bruno@clisp.org>
67806         error: Use system's fcntl function.
67807         * lib/error.c (fcntl): Undefine.
67809 2010-05-09  Jim Meyering  <meyering@redhat.com>
67811         verify: adjust formatting to be more consistent
67812         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
67813         argument-list '('s, and after one comma.
67815 2010-05-09  Bruno Haible  <bruno@clisp.org>
67817         error: More reliable output on mingw.
67818         * lib/error.c: Include <windows.h>.
67819         (is_open): New function.
67820         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
67821         defined.
67823 2010-05-09  Bruno Haible  <bruno@clisp.org>
67825         vasnprintf: Fix syntax errors in libintl build on mingw.
67826         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
67827         pad_ourselves and prec_ourselves after use.
67829 2010-05-08  Bruno Haible  <bruno@clisp.org>
67831         * lib/config.charset: Update comments for Cygwin 1.7.
67832         * lib/localcharset.c: Likewise.
67834 2010-05-07  Jim Meyering  <meyering@redhat.com>
67836         init.sh: improve comments
67837         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
67838         . "${srcdir=.}/init.sh"; path_prepend_ .
67839         Add a note about path_prepend_ and the alternative of using
67840         TESTS_ENVIRONMENT.
67842 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
67844         exclude: Unescape hashed patterns in wildcard mode.
67845         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
67846         to the hash list.
67847         * tests/test-exclude8.sh: New test case.
67848         * modules/exclude-tests: Add new test.
67850 2010-05-05  Eric Blake  <eblake@redhat.com>
67852         verify: automate tests
67853         * modules/verify-tests: New module.
67854         * tests/test-verify.sh: New file.
67855         * tests/test-verify.c: Guard each negative test with a unique id.
67856         Also avoid warning about unused left hand of comma expressions.
67858 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67860         Further improvements to verify.h, suggested by Eric Blake.
67861         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
67862         the GL_* versions, to avoid collision with OpenGL.
67863         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
67864         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
67865         than testing merely whether it's defined.
67867         Modify verify.h to pacify gcc -Wredundant_decls.
67868         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
67869         These use the prefix "GL_" since they're likely to be useful elsewhere.
67870         We may need to break them out into a different .h file.
67871         (__COUNTER__): Define to 0 if the compiler doesn't support it.
67872         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
67873         of verify_function__.
67875 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67877         Tests for module pwrite.
67878         * modules/pwrite-tests: New file.
67879         * tests/test-pwrite.sh: New file.
67880         * tests/test-pwrite.c: New file.
67882         New module pwrite.
67883         * lib/unistd.in.h (pwrite): New declaration.
67884         * lib/pwrite.c: New file, from glibc with modifications.
67885         * m4/pwrite.m4: New file.
67886         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
67887         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
67888         REPLACE_PWRITE.
67889         * modules/pwrite: New file.
67890         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
67891         REPLACE_PWRITE.
67892         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
67893         * doc/posix-functions/pwrite.texi: Mention the new module.
67895 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67897         pread: Update documentation.
67898         * doc/posix-functions/pread.texi: Mention the 'pread' module.
67900 2010-05-04  Eric Blake  <eblake@redhat.com>
67902         docs: update cygwin progress
67903         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
67904         this bug.
67905         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
67906         Added in cygwin 1.7.2.
67907         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
67908         Likewise.
67909         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
67910         Likewise.
67911         * doc/glibc-functions/dup3.texi (dup3): Likewise.
67912         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
67913         * doc/glibc-functions/accept4.texi (accept4): Likewise.
67914         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
67915         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
67916         Mention nproc module.
67917         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
67918         bug in cygwin 1.7.5 addition.
67919         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
67920         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
67921         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
67922         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
67923         1.7.5.
67924         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
67925         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
67926         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
67927         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
67928         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
67929         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
67930         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
67931         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
67932         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
67933         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
67934         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
67935         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
67936         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
67937         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
67938         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
67939         Likewise.
67940         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
67941         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
67942         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
67943         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
67944         Likewise.
67945         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
67946         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
67947         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
67948         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
67949         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
67950         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
67951         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
67952         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
67953         Likewise.
67954         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
67955         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
67956         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
67957         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
67958         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
67959         Likewise.
67960         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
67961         Likewise.
67962         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
67963         Likewise.
67964         * doc/glibc-functions/xdrrec_endofrecord.texi
67965         (xdrrec_endofrecord): Likewise.
67966         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
67967         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
67968         Likewise.
67969         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
67970         Likewise.
67972 2010-05-04  Jim Meyering  <meyering@redhat.com>
67974         gendocs.sh: make its "-s FILE" option more useful
67975         * build-aux/gendocs.sh: When honoring the -s FILE option, update
67976         $PACKAGE to reflect the probably-different basename of "FILE".
67978 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67980         bootstrap: don't ignore download_po_files failure
67981         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
67982         failure.
67984 2010-05-03  Jim Meyering  <meyering@redhat.com>
67986         maint.mk: allow to pass options to gendocs.sh
67987         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
67988         (gendocs_options_): New overridable variable.
67990         gnu-web-doc-update: don't ignore configure or build failure
67991         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
67993         announce-gen: backslash-escape '@'s in --help output
67994         * build-aux/announce-gen: Fix syntax errors.
67996         maint.mk, announce-gen: allow project-specific announcement mail headers
67997         * top/maint.mk (translation_project_): Define default.
67998         (announcement_Cc_, announcement_mail_headers_): Likewise.
67999         (announcement): Invoke announce-gen with new --mail-headers option.
68000         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
68002         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
68003         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
68004         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
68005         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
68006         line in the "err2" output file when running "make check" in verbose
68007         mode (i.e., with set -x enabled).
68009 2010-05-03  Bruno Haible  <bruno@clisp.org>
68011         wctob: Fix for weird platforms.
68012         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
68013         argument value.
68015 2010-05-03  Jim Meyering  <meyering@redhat.com>
68017         maint.mk: prohibit unwarranted use of <strings.h>
68018         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
68019         strings.h in a file that does not also use strcasecmp, strncasecmp,
68020         ffs or ffsll.
68022         maint.mk: remove obsolete comments
68023         * top/maint.mk: Remove stale, commented-out rules.
68025 2010-05-02  Bruno Haible  <bruno@clisp.org>
68027         wcwidth: Declare also when it's aliased.
68028         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
68029         macro.
68031 2010-05-02  Bruno Haible  <bruno@clisp.org>
68033         Fix regression from 2010-04-25.
68034         * gnulib-tool (func_modules_transitive_closure): Check the status of
68035         all modules, not only of the tests that are of the form foo-tests where
68036         foo is a module.
68038 2010-05-02  Bruno Haible  <bruno@clisp.org>
68040         wctob: Work around nasty Cygwin 1.7.2 bug.
68041         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
68042         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
68044 2010-05-01  Bruno Haible  <bruno@clisp.org>
68046         fpurge: Sharper test.
68047         * tests/test-fpurge.c (main): Add one more ftell check.
68048         * modules/fpurge-tests (Depends-on): Add ftell.
68049         Suggested by Eric Blake.
68051 2010-05-01  Bruno Haible  <bruno@clisp.org>
68053         ftello: Another test.
68054         * tests/test-ftello3.c: New file.
68055         * modules/ftello-tests (Files): Add it.
68056         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68057         MOSTLYCLEANFILES.
68059         ftell: Another test.
68060         * tests/test-ftell3.c: New file.
68061         * modules/ftell-tests (Files): Add it.
68062         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68063         MOSTLYCLEANFILES.
68065 2010-05-01  Bruno Haible  <bruno@clisp.org>
68067         ftell, ftello: Work around Solaris bug.
68068         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
68069         * lib/ftello.c: Include stdio-impl.h.
68070         (ftello): On Solaris, when _IOWRT is set, compute the result without
68071         looking at _IOREAD.
68072         * modules/ftello (Files): Add lib/stdio-impl.h.
68073         * doc/posix-functions/ftell.texi: Mention Solaris bug.
68074         * doc/posix-functions/ftello.texi: Likewise.
68075         Reported by Eric Blake.
68077 2010-05-01  Bruno Haible  <bruno@clisp.org>
68079         freading: Adapt to special meaning of _IOREAD flag on Solaris.
68080         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
68081         the _IOWRT flag is also set.
68083 2010-05-01  Bruno Haible  <bruno@clisp.org>
68085         Fix doc about a HP-UX stdio bug.
68086         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
68087         * doc/posix-functions/ftello.texi: Likewise.
68089 2010-05-01  Bruno Haible  <bruno@clisp.org>
68091         lseek test: Fix failure on Solaris.
68092         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
68093         output.
68095 2010-04-30  Jim Meyering  <meyering@redhat.com>
68097         bootstrap: don't ignore failure to generate po*/Makevars
68098         * build-aux/bootstrap (with_gettext): Don't ignore failure
68099         to create po/Makevars or runtime-po/Makevars.
68101 2010-04-29  Eric Blake  <eblake@redhat.com>
68103         headers: relax license to LGPLv2+
68104         * modules/fcntl-h (License): Relax license.
68105         * modules/getopt-posix (License): Likewise.
68106         * modules/locale (License): Likewise.
68107         * modules/math (License): Likewise.
68108         * modules/pty (License): Likewise.
68109         * modules/sched (License): Likewise.
68110         * modules/search (License): Likewise.
68111         * modules/spawn (License): Likewise.
68112         * modules/stdarg (License): Likewise.
68113         * modules/sysexits (License): Likewise.
68115 2010-04-29  Jim Meyering  <meyering@redhat.com>
68117         inttypes: relax license to LGPLv2+
68118         * modules/inttypes (License): Relax license.
68120 2010-04-29  Simon Josefsson  <simon@josefsson.org>
68122         * top/maint.mk (indent): Run twice to produce idempotent results.
68124 2010-04-28  Bruno Haible  <bruno@clisp.org>
68126         getdate: Generate getdate.c in the source directory.
68127         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
68128         MOSTLYCLEANFILES.
68129         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
68131 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
68133         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
68134         is not declared as a const *; avoid warnings in that case.
68136 2010-04-28  Eric Blake  <eblake@redhat.com>
68138         canonicalize-lgpl: avoid compiler warning
68139         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
68140         declaration' / 'extraneous semicolon' warning with some compilers.
68141         Reported by Andreas Gruenbacher.
68143 2010-04-28  Jim Meyering  <meyering@redhat.com>
68145         init.sh: ensure a more reliable exit status when exiting via trap
68146         * tests/init.sh (setup_): Don't rely on $? in signal handler.
68147         Inspired by patches from Dmitry V. Levin.
68148         Also trap on signal 3 (SIGQUIT).
68150 2010-04-27  Bruno Haible  <bruno@clisp.org>
68152         Update doc about utimes().
68153         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
68154         'utimens' module.
68155         Reported by Andreas Gruenbacher <agruen@suse.de>.
68157 2010-04-27  Eric Blake  <eblake@redhat.com>
68159         full-read, full-write: relax license
68160         * modules/full-read (License): Drop to LGPLv2+.
68161         * modules/full-write (License): Likewise.
68162         * modules/safe-read (License): Likewise.
68163         * modules/safe-write (License): Likewise.
68165         pthread: mention library for linking
68166         * modules/pthread (Link): Mention $(LIB_PTHREAD).
68168 2010-04-27  Jim Meyering  <meyering@redhat.com>
68170         maint.mk: fix a bug introduced in last change
68171         * top/maint.mk (gl_assured_headers_): Now that all names are on
68172         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
68173         is not anchored to end of word, it should be adequate.
68175         maint.mk: avoid side-effect in latest syntax-check
68176         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
68177         to run commands via $(shell...), and hence to incur cost only when
68178         the new rule is actually run.
68180         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
68181         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
68182         and use that to create a regexp used to detect all #if HAVE_..._H uses.
68183         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
68184         (gl_assured_headers_, az_, AZ_): Define.
68185         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
68187 2010-04-26  Jim Meyering  <jim@meyering.net>
68188             Bruno Haible  <bruno@clisp.org>
68190         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
68191         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
68192         Prompted by an exchange with Gilles Espinasse.
68194 2010-04-26  Jim Meyering  <meyering@redhat.com>
68196         git-version-gen: aesthetic tweak
68197         * build-aux/git-version-gen: Use "$nl" rather than a literal,
68198         so that the command remains on a single line.
68200 2010-04-26  Eric Blake  <eblake@redhat.com>
68202         git-version-gen: allow use on EBCDIC hosts
68203         * build-aux/git-version-gen (dirty): Use literal rather than tying
68204         ourselves to ascii.
68205         Reported by Steve Goetze.
68207 2010-04-25  Bruno Haible  <bruno@clisp.org>
68209         netdb: Add support for GNULIB_POSIXCHECK.
68210         * lib/netdb.in.h: Include warn-on-use.h.
68211         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
68212         functions are used when GNULIB_POSIXCHECK is defined and the
68213         getaddrinfo module is not in use.
68214         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
68215         freeaddrinfo, gai_strerror, getnameinfo are declared.
68216         * modules/netdb (Depends-on): Add warn-on-use.
68217         (Makefile.am): Include warn-on-use.h in netdb.h.
68219 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
68221         build: avoid "make check" failure without .git/ directory
68222         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
68223         there is no .git/ directory.
68225 2010-04-25  Bruno Haible  <bruno@clisp.org>
68227         ptsname: Fix misuse of ttyname_r.
68228         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
68229         of errno.
68231 2010-04-25  Bruno Haible  <bruno@clisp.org>
68233         ttyname_r: Make it work on Solaris 10.
68234         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
68235         if the system function has the POSIX declaration. Test whether the
68236         function fails if the buffer is less than 128 bytes large.
68237         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
68238         system's ttyname_r function. Provide a reasonably large buffer.
68239         * modules/ttyname_r (Depends-on): Add extensions.
68240         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
68242 2010-04-25  Bruno Haible  <bruno@clisp.org>
68244         Use the 'extensions' module for some more functions on Solaris.
68245         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
68246         module.
68247         * doc/posix-functions/ctime_r.texi: Likewise.
68248         * doc/posix-functions/getgrgid_r.texi: Likewise.
68249         * doc/posix-functions/getgrnam_r.texi: Likewise.
68250         * doc/posix-functions/getpwnam_r.texi: Likewise.
68251         * doc/posix-functions/getpwuid_r.texi: Likewise.
68252         * doc/posix-functions/readdir_r.texi: Likewise.
68253         * doc/posix-functions/sigwait.texi: Likewise.
68254         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
68255         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
68257 2010-04-25  Bruno Haible  <bruno@clisp.org>
68259         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
68260         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
68261         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
68262         * lib/ttyname_r.c: Include <limits.h>.
68263         (ttyname_r): Define using the system's ttyname_r function, if it exists
68264         and not on Solaris.
68265         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
68266         set.
68267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
68268         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
68269         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
68270         Reported by Simon Josefsson.
68272 2010-04-25  Bruno Haible  <bruno@clisp.org>
68274         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
68275         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
68276         * doc/posix-functions/ctime_r.texi: Likewise.
68277         * doc/posix-functions/getgrgid_r.texi: Likewise.
68278         * doc/posix-functions/getgrnam_r.texi: Likewise.
68279         * doc/posix-functions/getlogin_r.texi: Likewise.
68280         * doc/posix-functions/getpwnam_r.texi: Likewise.
68281         * doc/posix-functions/getpwuid_r.texi: Likewise.
68282         * doc/posix-functions/readdir_r.texi: Likewise.
68283         * doc/posix-functions/sigwait.texi: Likewise.
68284         * doc/posix-functions/ttyname_r.texi: Likewise.
68285         Reported by Simon Josefsson.
68287 2010-04-25  Bruno Haible  <bruno@clisp.org>
68289         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
68290         * gnulib-tool (func_usage): Document that --with-*-tests options apply
68291         also to --create-testdir.
68292         (func_acceptable): Don't consider the status of *-tests modules here.
68293         (func_modules_transitive_closure): Consider it here, before including a
68294         test module.
68295         (func_import, func_create_testdir): Set inc_all_direct_tests,
68296         inc_all_indirect_tests.
68297         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
68298         --create-testdir and --create-megatestdir.
68300 2010-04-25  Bruno Haible  <bruno@clisp.org>
68302         gnulib-tool: Add --without-*-tests options.
68303         * gnulib-tool (func_usage): Document the --without-*-tests options.
68304         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
68305         excl_unportable_tests): New variables.
68306         Fail if they are specified with --import or --update.
68307         (func_acceptable): Respect the excl_*_tests variables.
68308         (func_import): Set the excl_*_tests variables to empty.
68310 2010-04-25  Simon Josefsson  <simon@josefsson.org>
68311             Bruno Haible  <bruno@clisp.org>
68313         Work around a MacOS X 10.4 bug with openpty.
68314         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
68315         * tests/test-openpty.c (main): Close the master side explicitly.
68317 2010-04-25  Bruno Haible  <bruno@clisp.org>
68319         strnlen: Fix a C++ test error on MacOS X and Solaris.
68320         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
68321         the function is not declared.
68322         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
68323         Simon Josefsson.
68325 2010-04-24  Bruno Haible  <bruno@clisp.org>
68327         Avoid a gcc warning.
68328         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
68329         of correct type for %08lx directive.
68330         Reported by Eric Blake.
68332 2010-04-24  Bruno Haible  <bruno@clisp.org>
68334         vasnprintf: Correct errno value in case of out-of-memory.
68335         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
68336         or sprintf. Use the errno value from SNPRINTF or sprintf.
68337         Reported by Ian Beckwith <ianb@erislabs.net>.
68339 2010-04-24  Bruno Haible  <bruno@clisp.org>
68341         ansi-c++-opt: Find correct compiler when cross-compiling.
68342         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
68343         AC_CHECK_PROGS.
68344         Reported by Simon Josefsson.
68346 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
68348         vc-list-files: Add support for subversion
68349         * build-aux/vc-list-files: Use "svn list" to generate the list of
68350         files controlled by subversion.
68352 2010-04-23  Jim Meyering  <meyering@redhat.com>
68354         vc-list-files tests: convert to use init.sh
68355         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
68356         path_prepend_.
68357         Use Exit, not exit.
68358         Use skip_ rather than open coding it.
68359         Remove trap set-up and compare definitions.
68360         * tests/test-vc-list-files-git.sh: Likewise.
68361         * modules/vc-list-files-tests (Files): Add tests/init.sh.
68363 2010-04-22  Simon Josefsson  <simon@josefsson.org>
68365         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
68366         backup files.
68368 2010-04-21  Simon Josefsson  <simon@josefsson.org>
68370         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
68372 2010-04-20  Eric Blake  <eblake@redhat.com>
68374         tests: be robust to ignored SIGPIPE
68375         * tests/test-select-in.sh: Consume all output.
68376         * tests/test-lseek.sh: Check correct exit status, while avoiding
68377         EPIPE.
68379 2010-04-20  Simon Josefsson  <simon@josefsson.org>
68380             Bruno Haible  <bruno@clisp.org>
68382         visibility: Don't use -fvisibility if it leads to a warning.
68383         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
68384         yes, don't pretend that visibility works if it leads to a warning.
68385         Reported by Mike Gran <spk121@yahoo.com>.
68387 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
68389         * build-aux/bootstrap: Use "git -h" for testing for supported options
68390         instead of "git --help".  The short-form option only shows a summary,
68391         and doesn't layout the full man page.  Grep for the full option name
68392         in the summary, too.
68394 2010-04-19  Bruno Haible  <bruno@clisp.org>
68396         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
68397         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
68398         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
68399         mention of RELOCATABLE_STRIP.
68400         Reported by Sylvain Beucler <beuc@beuc.net>.
68402 2010-04-19  Bruno Haible  <bruno@clisp.org>
68404         * lib/diffseq.h: Fix typo in comment.
68405         Reported by Eric Blake.
68407 2010-04-19  Bruno Haible  <bruno@clisp.org>
68409         ioctl: Move autoconf macro to a .m4 file.
68410         * m4/ioctl.m4: New file, extracted from modules/ioctl.
68411         * modules/ioctl (Files): Add it.
68412         (configure.ac): Simply invoke gl_FUNC_IOCTL.
68413         Reported by Ian Beckwith <ianb@erislabs.net>.
68415 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
68416             Bruno Haible  <bruno@clisp.org>
68418         diffseq: Accommodate use-case with abstract arrays.
68419         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
68420         is not defined.
68421         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
68422         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
68424 2010-04-18  Bruno Haible  <bruno@clisp.org>
68426         * doc/posix-headers/stdbool.texi: More precise wording.
68428 2010-04-17  Jim Meyering  <meyering@redhat.com>
68430         maint.mk: use gnu-style indentation in an embedded perl script
68431         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
68432         Rename variable: s/two/last_two_bytes/
68434 2010-04-16  Eric Blake  <eblake@redhat.com>
68436         test-stdbool: skip test that fails with Solaris CC
68437         * tests/test-stdbool.c (f): Skip test that causes compilation
68438         error under buggy C++ compiler.
68439         * lib/stdbool.in.h: Document the limitation.
68440         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
68442         setenv: allow compilation with C++
68443         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
68444         register keyword.
68446         stdint: allow test to pass with C++
68447         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
68449         getopt: allow compilation with C++
68450         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
68451         struct.
68452         * lib/getopt.c (_getopt_internal_r): Use correct type.
68453         Reported by Dagobert Michelson, via Joel E. Denny.
68455 2010-04-16  Bruno Haible  <bruno@clisp.org>
68457         Override netdb.h always.
68458         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
68459         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
68460         Reported by Ludovic Courtès <ludo@gnu.org>.
68462 2010-04-15  Bruno Haible  <bruno@clisp.org>
68464         openpty: Fix mistake from 2010-03-21.
68465         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
68466         Reported by Simon Josefsson.
68468 2010-04-15  Eric Blake  <eblake@redhat.com>
68470         test-forkpty: fix expected signature
68471         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
68472         Reported by Simon Josefsson.
68474 2010-04-15  Jim Meyering  <meyering@redhat.com>
68476         maint.mk: texinfo_suffix_re_: correct the default regexp
68477         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
68479         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
68480         make it configurable via texinfo_suffix_re_.
68482 2010-04-14  Eric Blake  <eblake@redhat.com>
68484         strtok_r: relax license to LGPLv2+
68485         * modules/strtok_r (License): Relax license.
68486         Reported by Matthias Bolte.
68488 2010-04-14  Simon Josefsson  <simon@josefsson.org>
68490         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
68491         version 1.4.4 by default instead of requiring the libgcrypt
68492         version used during build.  This makes it possible to use the
68493         application with older but still binary compatible libgcrypt
68494         versions.
68496 2010-04-13  Eric Blake  <eblake@redhat.com>
68498         getopt-gnu: match recent glibc fixes and posix ruling
68499         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
68500         '+' handling, when requesting extensions.
68501         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
68502         'W;' handling.
68503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
68504         * doc/posix-functions/getopt.texi (getopt): Document this.
68505         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68506         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68507         Likewise.
68509         getopt: merge bug fixes from glibc
68510         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
68511         diagnostics.  Honor '+:' correctly.  Reject ';'.
68513         getopt-posix: detect MacOS bug
68514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
68515         optind when missing a required argument.
68516         * doc/posix-functions/getopt.texi (getopt): Document the bug.
68517         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68518         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68519         Likewise.
68521         getopt-posix: avoid spurious failure on Solaris
68522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
68523         an indicator that setting optind=1 is sufficient for reset.
68525         getopt-posix: avoid spurious failure on FreeBSD
68526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
68527         in POSIX mode, since the m4 test uses it.
68529         gnulib-tool: silence warning on BSD sh
68530         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
68532 2010-04-13  Jim Meyering  <meyering@redhat.com>
68534         doc: users.txt: GNU patch now uses gnulib
68535         * users.txt: Add patch.
68537 2010-04-12  Jim Meyering  <meyering@redhat.com>
68539         maint.mk: generate more concise timing data for syntax-check rules
68540         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
68541         " done" from each line that reports a syntax-check test duration.
68543 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
68545         git-version-gen: use "git update-index..." rather than "git status"
68546         * build-aux/git-version-gen: Use git update-index --refresh, not
68547         "git status".  With some versions of git, "git status" would fail
68548         to update the index and result in an unwarranted "-dirty" suffix.
68550 2010-04-11  Jim Meyering  <meyering@redhat.com>
68552         openat: correct formatting (no semantic change)
68553         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
68554         Suggested by Bruno Haible.
68556 2010-04-11  Bruno Haible  <bruno@clisp.org>
68558         Stricter declaration checking in testdirs.
68559         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68560         If for_tests is true, augment AM_CPPFLAGS to define
68561         GNULIB_STRICT_CHECKING.
68562         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
68563         GNULIB_STRICT_CHECKING is defined, verify that the function is
68564         declared.
68566 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
68567             Bruno Haible  <bruno@clisp.org>
68569         libunistring: Improve configure output.
68570         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
68571         Don't say "consider installing GNU libunistring" when checking again
68572         with libiconv.
68574 2010-04-11  Bruno Haible  <bruno@clisp.org>
68576         libunistring: Correct value of $LTLIBUNISTRING.
68577         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
68578         correct the value of $LTLIBUNISTRING.
68580 2010-04-11  Bruno Haible  <bruno@clisp.org>
68582         havelib: Add static libraries to LIBS in the right order.
68583         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
68584         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
68586 2010-04-11  Bruno Haible  <bruno@clisp.org>
68588         libunistring: Detect libunistring also when it depends on libiconv.
68589         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
68590         the second AC_LIB_HAVE_LINKFLAGS invocation.
68592 2010-04-11  James Youngman  <jay@gnu.org>
68594         close-stream: declare local scalars to be "const"
68595         * lib/close-stream.c (close_stream): Make boolean variables const
68596         to document the fact that we set but do not change them.
68598 2010-04-11  Bruno Haible  <bruno@clisp.org>
68600         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
68602 2010-04-11  Jim Meyering  <meyering@redhat.com>
68604         maint.mk: don't include dist-check.mk
68605         * top/maint.mk: Remove bogus include directive.
68607         maint.mk: improve empty-line-at-EOF check
68608         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
68609         solution, rather than tail+Perl-based one.  The latter would read
68610         a few kilobytes from the end of each file, and did not handle empty
68611         files properly.
68613         maint.mk: print the elapsed time for each syntax-check rule
68614         * top/maint.mk (sc_m_rules_): Save start time in a file.
68615         (sc_z_rules_): New rules: remove temp file and print elapsed time.
68616         (local-check): Interpose the .z rules
68618 2010-04-11  Jim Meyering  <meyering@redhat.com>
68620         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
68621         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
68622         empty file with one that ends in an empty line.
68624 2010-04-10  Bruno Haible  <bruno@clisp.org>
68626         mkdir: Make it work on mingw64.
68627         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
68628         * lib/mkdir.c: Update comment.
68629         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
68631 2010-04-10  Bruno Haible  <bruno@clisp.org>
68633         Don't override improved macro from newer autoconf.
68634         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
68635         autoconf >= 2.62.
68636         Reported by Joel E. Denny <jdenny@clemson.edu>.
68638 2010-04-10  Jim Meyering  <meyering@redhat.com>
68640         maint.mk: new syntax-check rule: prohibit empty lines at end of file
68641         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
68643         maint.mk: correct a diagnostic
68644         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
68645         in diagnostic; now use $prohibit.
68647 2010-04-10  Bruno Haible  <address@hidden>
68649         fchownat: Fix a C++ test error on Solaris 8.
68650         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
68651         the function does not exist.
68653 2010-04-10  Bruno Haible  <bruno@clisp.org>
68655         vasnprintf: Add more tests.
68656         * tests/test-vasnprintf-posix.c: Include <errno.h>.
68657         (test_function): Test converting an invalid wide string.
68659         vasnprintf: Correct handling of unconvertible wide string arguments.
68660         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
68661         VASNPRINTF.
68662         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
68663         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
68664         smaller than the expected maximum need for the directive. Set errno to
68665         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
68666         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
68667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
68668         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
68669         * modules/vasnprintf (Files): Add m4/printf.m4.
68670         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68672 2010-04-10  Bruno Haible  <bruno@clisp.org>
68674         vasnprintf: Fix crash in %ls directive.
68675         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
68676         string is passed as argument to %ls, with no precision and no width.
68677         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68679 2010-04-10  Bruno Haible  <bruno@clisp.org>
68681         vasnprintf: Fix multiple test failures on mingw.
68682         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
68683         _snprintf, or snwprintf, not _snwprintf.
68685 2010-04-10  Bruno Haible  <bruno@clisp.org>
68687         write: Fix a C++ test error on mingw.
68688         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
68690 2010-04-10  Bruno Haible  <bruno@clisp.org>
68692         vasnprintf test: Reduce code duplication.
68693         * tests/test-vasnprintf.c (test_function): New function, extracted from
68694         test_vasnprintf.
68695         (test_vasnprintf, test_asnprintf): Invoke it.
68697 2010-04-10  Bruno Haible  <bruno@clisp.org>
68699         strnlen: Fix warning in C++ mode on MacOS X.
68700         * lib/string.in.h (strnlen): Use the modern idiom.
68701         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
68702         defining strnlen as a macro already in <config.h>.
68703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68704         REPLACE_STRNLEN.
68705         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
68706         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68708 2010-04-08  James Youngman  <jay@gnu.org>
68710         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
68711         the example.
68713 2010-04-09  Jim Meyering  <meyering@redhat.com>
68715         maint.mk: print better diagnostic when there is no $(_hv_file)
68716         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
68717         announce that when $(_hv_file) (aka help-version) does not exist.
68719         init.sh: run tr in the "C" locale to avoid multibyte interpretation
68720         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
68721         not try to interpret its random input bytes.  Jarno Rajahalme reported
68722         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
68723         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
68724         (mktempd_): Likewise, just in case.
68726         ftruncate: add two years to projected module removal date: 2012
68727         * m4/ftruncate.m4: Adjust comments.
68729         ftruncate: mark module as obsolete; even MinGW provides it, now
68730         * modules/ftruncate (Status): Obsolete.
68731         (Notice): Say that.
68732         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
68733         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
68735 2010-04-08  Bruno Haible  <bruno@clisp.org>
68737         Fix side effects from tests-related modules.
68738         * modules/dprintf-posix (Comment): New section.
68739         * modules/fprintf-posix (Comment): Likewise.
68740         * modules/obstack-printf-posix (Comment): Likewise.
68741         * modules/printf-posix (Comment): Likewise.
68742         * modules/snprintf-posix (Comment): Likewise.
68743         * modules/sprintf-posix (Comment): Likewise.
68744         * modules/vasnprintf-posix (Comment): Likewise.
68745         * modules/vasprintf-posix (Comment): Likewise.
68746         * modules/vdprintf-posix (Comment): Likewise.
68747         * modules/vfprintf-posix (Comment): Likewise.
68748         * modules/vprintf-posix (Comment): Likewise.
68749         * modules/vsnprintf-posix (Comment): Likewise.
68750         * modules/vsprintf-posix (Comment): Likewise.
68751         * modules/xprintf-posix (Comment): Likewise.
68752         * modules/xvasprintf-posix (Comment): Likewise.
68753         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
68754         * modules/floorf-tests (Depends-on): Likewise.
68755         * modules/round-tests (Depends-on): Likewise.
68756         * modules/roundf-tests (Depends-on): Likewise.
68757         * modules/trunc-tests (Depends-on): Likewise.
68758         * modules/truncf-tests (Depends-on): Likewise.
68759         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
68760         'fprintf-posix' module is not present.
68761         * tests/test-floorf2.c (check): Likewise.
68762         * tests/test-trunc2.c (check): Likewise.
68763         * tests/test-truncf2.c (check): Likewise.
68764         * tests/test-round2.c (equal): Likewise.
68765         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68767 2010-04-07  Karl Berry  <karl@gnu.org>
68769         * config/srclist.txt,
68770         * config/srclistvars.sh,
68771         * config/srclist-update: doc fixes.
68773 2010-04-07  Jim Meyering  <meyering@redhat.com>
68775         maint.mk: add a PATH crosschecking syntax-check rule
68776         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
68777         Useful if you use a test like the one in help-version (coreutils,
68778         diffutils, grep, gzip) that ensures $(VERSION) matches what is
68779         printed by prog --version.
68781 2010-04-06  Bruno Haible  <bruno@clisp.org>
68783         Fix link error on mingw.
68784         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
68785         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
68787 2010-04-06  Bruno Haible  <bruno@clisp.org>
68789         Assume rmdir exists.
68790         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
68792 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
68794         doc: update users.txt
68795         * users.txt: Add gcal.
68797 2010-04-06  Jim Meyering  <meyering@redhat.com>
68799         init.sh: simply unset TMPDIR rather than risking env -i
68800         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
68801         although it probably works fine on all Unix-based systems, some
68802         systems (Cygwin?) cannot tolerate a totally cleared environment.
68803         Suggestion from Eric Blake.
68805 2010-04-06  Jim Meyering  <meyering@redhat.com>
68807         init.sh: portability fix: use env's POSIX-specified -i option not -u
68808         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
68809         than unportable env -u.  Solaris 5.11's env lacks support for -u.
68811 2010-04-05  Bruno Haible  <bruno@clisp.org>
68813         btowc: Work around Cygwin 1.7.2 bug.
68814         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
68815         does not map NUL to 0.
68816         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
68818 2010-04-05  Bruno Haible  <bruno@clisp.org>
68820         Make the multithread modules work on Cygwin 1.7.2.
68821         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
68822         imported symbols can be declared weak, so that it returns "no" on
68823         Cygwin 1.7.2.
68825 2010-04-05  Bruno Haible  <bruno@clisp.org>
68827         Use the module 'strncat'.
68828         * modules/unistr/u8-strncat (Depends-on): Add strncat.
68830         Tests for module 'strncat'.
68831         * modules/strncat-tests: New file.
68832         * tests/test-strncat.c: New file.
68834         New module 'strncat'.
68835         * lib/string.in.h (strncat): New declaration.
68836         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
68837         * m4/strncat.m4: New file, based on m4/memchr.m4.
68838         * modules/strncat: New file.
68839         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
68840         is declared.
68841         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
68842         REPLACE_STRNCAT.
68843         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
68844         REPLACE_STRNCAT.
68845         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
68846         module.
68847         * tests/test-string-c++.cc: Check signature of strncat.
68849 2010-04-05  Jim Meyering  <meyering@redhat.com>
68851         xstrtoumax-tests: convert to use init.sh
68852         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
68853         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68854         Use Exit, not exit.
68855         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68857         xstrtoimax-tests: convert to use init.sh
68858         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
68859         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68860         Use Exit, not exit.
68861         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68863 2010-04-05  Bruno Haible  <bruno@clisp.org>
68865         sys_socket: Avoid #define replacements in C++ mode.
68866         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
68867         warning to the function if possible, rather than #defining the symbol
68868         to a dysfunctional alias.
68870 2010-04-05  Bruno Haible  <bruno@clisp.org>
68872         fseeko: Fix C++ test error on mingw.
68873         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
68874         gl_FUNC_FSEEKO.
68875         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
68876         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
68877         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
68878         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
68880 2010-04-05  Bruno Haible  <bruno@clisp.org>
68882         duplocale: Improve test output.
68883         * tests/test-duplocale.c (main): Print reason for skipped test.
68885 2010-04-05  Bruno Haible  <bruno@clisp.org>
68887         Assume rmdir exists.
68888         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
68889         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
68891 2010-04-05  Bruno Haible  <bruno@clisp.org>
68893         Fix link error on Solaris 8 with cc.
68894         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
68896 2010-04-05  Bruno Haible  <bruno@clisp.org>
68898         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68899         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
68901 2010-04-05  Bruno Haible  <bruno@clisp.org>
68903         vasprintf: Update documentation.
68904         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
68906 2010-04-05  Bruno Haible  <bruno@clisp.org>
68908         ptsname: Improve test.
68909         * tests/test-ptsname.c (main): Also try the various master names of BSD
68910         systems.
68912 2010-04-05  Bruno Haible  <bruno@clisp.org>
68914         memchr: Avoid a possible C++ test error.
68915         * lib/string.in.h (memchr): Provide declaration if function is missing.
68916         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
68917         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
68918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
68919         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
68921 2010-04-05  Bruno Haible  <bruno@clisp.org>
68923         strtok_r: Improve idiom.
68924         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
68925         AC_LIBOBJ is used.
68927 2010-04-05  Bruno Haible  <bruno@clisp.org>
68929         strdup: Improve idiom.
68930         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
68931         AC_LIBOBJ is used.
68932         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
68933         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
68934         when AC_LIBOBJ is used.
68936 2010-04-05  Bruno Haible  <bruno@clisp.org>
68938         mbsinit, mbrtowc, wcrtomb: Improve idioms.
68939         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
68940         don't set REPLACE_MBSINIT to 1.
68941         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
68942         don't set REPLACE_MBRTOWC to 1.
68943         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
68944         exist, don't set REPLACE_MBSRTOWCS to 1.
68945         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
68946         exist, don't set REPLACE_MBSNRTOWCS to 1.
68947         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
68948         don't set REPLACE_WCRTOMB to 1.
68949         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
68950         exist, don't set REPLACE_WCSRTOMBS to 1.
68951         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
68952         exist, don't set REPLACE_WCSNRTOMBS to 1.
68954 2010-04-05  Bruno Haible  <bruno@clisp.org>
68956         ldexpl: Improve idiom.
68957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
68958         make sure to set HAVE_DECL_LDEXPL to 0.
68960 2010-04-05  Jim Meyering  <meyering@redhat.com>
68962         xstrtol-tests: convert to use init.sh
68963         * modules/xstrtol-tests (Files): Add tests/init.sh.
68964         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68965         Use Exit, not exit.
68966         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68968         atexit-tests: convert to use init.sh
68969         * modules/atexit-tests (Files): Add tests/init.sh.
68970         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68971         Use Exit, not exit.
68972         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68974         init.sh: fix typo
68975         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
68977         init.sh: make it easier for a test script to write to the tty, ...
68978         when using automake's parallel-tests mode.
68979         * tests/init.sh (stderr_fileno_): Define overridable variable.
68980         (warn_): New function, to use it.
68981         (fail_, skip_, framework_failure_): Use warn_.
68983 2010-04-04  Bruno Haible  <bruno@clisp.org>
68985         btowc: Avoid warning.
68986         * lib/btowc.c: Include <stdlib.h>.
68987         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
68989 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68990             Bruno Haible  <bruno@clisp.org>
68992         wchar: Port to NetBSD 1.5.
68993         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
68994         * lib/wctype.in.h (WEOF): Likewise.
68996 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68997             Bruno Haible  <bruno@clisp.org>
68999         Port extended stdio to NetBSD 1.5.
69000         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
69001         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
69002         older.
69004 2010-04-04  Bruno Haible  <bruno@clisp.org>
69006         string: Remove unused substitution.
69007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69008         HAVE_DECL_STRERROR.
69009         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
69011 2010-04-04  Bruno Haible  <bruno@clisp.org>
69013         strtod: Avoid a possible C++ test error.
69014         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
69015         set REPLACE_STRTOD.
69017 2010-04-04  Bruno Haible  <bruno@clisp.org>
69019         strerror: Update documentation.
69020         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
69022 2010-04-04  Bruno Haible  <bruno@clisp.org>
69024         stdio: Fix some C++ test errors on Solaris 8 with GCC.
69025         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
69026         _GL_CXXALIAS_SYS_CAST.
69028 2010-04-04  Bruno Haible  <bruno@clisp.org>
69030         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69031         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
69032         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
69033         REPLACE_FREXPL to 1.
69034         * doc/posix-functions/frexpl.texi: Update documentation.
69036 2010-04-04  Bruno Haible  <bruno@clisp.org>
69038         math: Fix some C++ test errors on Solaris 8 and Cygwin.
69039         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
69041 2010-04-04  Bruno Haible  <bruno@clisp.org>
69043         Implement nanosleep for native Windows.
69044         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
69046 2010-04-04  Bruno Haible  <bruno@clisp.org>
69048         math: Fix some C++ test errors on Solaris 8.
69049         * lib/math.in.h (truncf, trunc): Use simpler idiom.
69051 2010-04-04  Bruno Haible  <bruno@clisp.org>
69053         math: Fix some C++ test errors on Cygwin.
69054         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
69055         truncl): Provide declaration if the system does not have it.
69056         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
69057         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
69058         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
69059         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
69060         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
69061         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
69062         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
69063         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
69064         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
69065         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
69066         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
69067         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
69068         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
69069         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
69070         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
69071         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
69072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
69073         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69074         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69075         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
69076         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69077         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69079 2010-04-04  Bruno Haible  <bruno@clisp.org>
69081         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
69082         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
69083         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
69084         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
69085         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69086         * m4/isinf.m4 (gl_ISINF): Likewise.
69087         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
69089 2010-04-04  Bruno Haible  <bruno@clisp.org>
69091         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
69092         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
69094 2010-04-04  Bruno Haible  <bruno@clisp.org>
69096         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
69097         * modules/tmpfile (configure.ac): Update.
69099         tmpfile: Fix C++ test error on mingw.
69100         * lib/stdio.in.h (tmpfile): New declaration.
69101         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
69102         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
69103         * modules/tmpfile (Depends-on): Add stdio.
69104         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69105         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
69106         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
69107         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
69108         REPLACE_TMPFILE.
69109         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
69111 2010-04-04  Bruno Haible  <bruno@clisp.org>
69113         ioctl: Fix C++ test error on mingw.
69114         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
69115         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
69116         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
69118 2010-04-03  Bruno Haible  <bruno@clisp.org>
69120         wcwidth: Fix C++ test error on mingw.
69121         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
69122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
69123         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
69125 2010-04-03  Bruno Haible  <bruno@clisp.org>
69127         nanosleep: Fix C++ test error on mingw.
69128         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
69129         * lib/time.in.h (nanosleep): Use modern idiom.
69130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
69131         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
69132         REPLACE_NANOSLEEP to 1.
69133         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
69134         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
69136 2010-04-03  Bruno Haible  <bruno@clisp.org>
69138         strptime: Fix C++ test error on mingw.
69139         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
69140         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
69141         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
69142         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
69143         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
69144         not REPLACE_STRPTIME.
69145         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
69146         REPLACE_STRPTIME.
69148 2010-04-03  Bruno Haible  <bruno@clisp.org>
69150         timegm: Fix C++ test error on mingw.
69151         * lib/time.in.h (timegm): Use modern idiom.
69152         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
69153         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
69154         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
69155         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
69157 2010-04-03  Bruno Haible  <bruno@clisp.org>
69159         timegm: Assume declaration if function exists.
69160         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
69161         if it exists. Don't clobber ac_cv_func_timegm.
69163 2010-04-03  Bruno Haible  <bruno@clisp.org>
69165         time_r: Fix C++ test error on mingw.
69166         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
69167         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
69168         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
69169         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
69170         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
69172 2010-04-03  Bruno Haible  <bruno@clisp.org>
69174         time_r: Minor updates.
69175         * modules/time_r (Description): Mention the provided functions.
69176         * lib/time_r.c: Don't include <string.h>.
69177         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
69178         * doc/posix-functions/localtime_r.texi: Likewise.
69180 2010-04-03  Bruno Haible  <bruno@clisp.org>
69182         time: Fix regression introduced on 2010-03-08.
69183         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
69184         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
69186 2010-04-03  Jim Meyering  <meyering@redhat.com>
69188         maint.mk: don't silently disable project-specific syntax-check rules
69189         * top/maint.mk (_prohibit_regexp): Define, to help people realize
69190         that they need to convert their project-specific syntax-check rules
69191         to use the new _sc_search_regexp.
69193 2010-04-03  Bruno Haible  <bruno@clisp.org>
69195         fchdir: Fix regression introduced on 2010-03-08.
69196         * lib/unistd.in.h (fchdir): Fix declaration.
69197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
69198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
69199         REPLACE_FCHDIR.
69200         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
69201         REPLACE_FCHDIR.
69203 2010-04-03  Bruno Haible  <bruno@clisp.org>
69205         getpagesize: Fix C++ test error on mingw.
69206         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
69207         system does not declare the function.
69208         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
69209         declared.
69210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69211         HAVE_DECL_GETPAGESIZE.
69212         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
69214 2010-04-03  Bruno Haible  <bruno@clisp.org>
69216         stdio: Make C++ tests work on mingw.
69217         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
69218         does not declare the function.
69220 2010-04-03  Bruno Haible  <bruno@clisp.org>
69222         ftello: Fix C++ test error on mingw.
69223         * lib/stdio.in.h (ftello): Use modern idiom.
69224         * lib/ftello.c (ftello): Renamed from rpl_ftello.
69225         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
69226         is missing and that it needs to be replaced.
69227         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
69228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
69229         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
69231 2010-04-03  Bruno Haible  <bruno@clisp.org>
69233         fseeko: Fix C++ test error on mingw.
69234         * lib/stdio.in.h (fseeko): Use modern idiom.
69235         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
69236         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
69237         is missing and that it needs to be replaced.
69238         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
69239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
69240         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
69242 2010-04-03  Bruno Haible  <bruno@clisp.org>
69244         mkstemp: Fix C++ test error on mingw.
69245         * lib/stdlib.in.h (mkstemp): Use modern idiom.
69246         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
69247         function is missing and that it needs to be replaced.
69248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
69249         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
69251 2010-04-03  Bruno Haible  <bruno@clisp.org>
69253         stpncpy: Fix C++ test error on mingw.
69254         * lib/string.in.h (stpncpy): Use modern idiom.
69255         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
69256         function is missing and that it needs to be replaced.
69257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69258         REPLACE_STPNCPY.
69259         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
69261 2010-04-03  Bruno Haible  <bruno@clisp.org>
69263         sys_stat: Fix C++ test error on mingw.
69264         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
69265         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
69267 2010-04-03  Bruno Haible  <bruno@clisp.org>
69269         pty: Update doc.
69270         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
69272 2010-04-03  Bruno Haible  <bruno@clisp.org>
69274         unistd: Fix C++ test error on mingw.
69275         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
69277 2010-04-03  Bruno Haible  <bruno@clisp.org>
69279         Update doc regarding mingw.
69280         * doc/glibc-functions/openpty.texi: Update regarding mingw.
69281         * doc/glibc-functions/login_tty.texi: Likewise.
69282         * doc/glibc-functions/forkpty.texi: Likewise.
69284 2010-04-03  Bruno Haible  <bruno@clisp.org>
69286         stdlib: Avoid compilation failure of c-strtold on mingw.
69287         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
69289 2010-04-03  Bruno Haible  <bruno@clisp.org>
69291         locale: Make C++ tests work on Cygwin and mingw.
69292         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
69293         cannot provide the function.
69294         Reported by Simon Josefsson.
69296 2010-04-03  Bruno Haible  <bruno@clisp.org>
69298         localename: Port to MacOS X 10.6.
69299         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
69300         memory layout of the locales in MacOS X 10.6 as well.
69301         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
69303 2010-04-02  Bruno Haible  <bruno@clisp.org>
69305         gnulib-tool: Ensure that long-running tests are executed last.
69306         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
69307         running tests after the one for the other tests.
69309 2010-04-02  Bruno Haible  <bruno@clisp.org>
69311         gnulib-tool: Ensure the tests in the main directory are executed first.
69312         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
69313         start with the current directory.
69315 2010-04-02  Bruno Haible  <bruno@clisp.org>
69317         Tests for module 'havelib', moved here from GNU gettext.
69318         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
69319         modifications.
69320         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
69321         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
69322         with modifications.
69323         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
69324         modifications.
69325         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
69326         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
69327         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
69328         with modifications.
69329         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
69330         with modifications.
69331         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
69332         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
69333         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
69334         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
69335         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
69336         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
69337         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
69338         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
69339         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
69340         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
69341         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
69342         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
69343         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
69344         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
69345         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
69346         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
69347         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
69348         with modifications.
69349         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
69350         with modifications.
69351         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
69352         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
69353         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
69354         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
69355         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
69356         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
69357         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
69358         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
69359         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
69360         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
69361         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
69362         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
69363         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
69364         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
69365         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
69366         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
69367         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
69368         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
69369         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
69370         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
69371         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
69372         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
69373         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
69374         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
69375         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
69376         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
69377         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
69378         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
69379         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
69380         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
69381         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
69382         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
69383         * tests/havelib/rpathx/rpathx.c: New file, from
69384         gettext/autoconf-lib-link.
69385         * tests/havelib/rpathx/Makefile.am: New file, from
69386         gettext/autoconf-lib-link.
69387         * tests/havelib/rpathx/configure.ac: New file, from
69388         gettext/autoconf-lib-link with modifications.
69389         * tests/havelib/rpathy/rpathy.c: New file, from
69390         gettext/autoconf-lib-link.
69391         * tests/havelib/rpathy/Makefile.am: New file, from
69392         gettext/autoconf-lib-link.
69393         * tests/havelib/rpathy/configure.ac: New file, from
69394         gettext/autoconf-lib-link with modifications.
69395         * tests/havelib/rpathz/rpathz.c: New file, from
69396         gettext/autoconf-lib-link.
69397         * tests/havelib/rpathz/Makefile.am: New file, from
69398         gettext/autoconf-lib-link.
69399         * tests/havelib/rpathz/configure.ac: New file, from
69400         gettext/autoconf-lib-link with modifications.
69401         * tests/havelib/rpathlx/usex.c: New file, from
69402         gettext/autoconf-lib-link.
69403         * tests/havelib/rpathlx/Makefile.am: New file, from
69404         gettext/autoconf-lib-link.
69405         * tests/havelib/rpathlx/configure.ac: New file, from
69406         gettext/autoconf-lib-link with modifications.
69407         * tests/havelib/rpathly/usey.c: New file, from
69408         gettext/autoconf-lib-link.
69409         * tests/havelib/rpathly/Makefile.am: New file, from
69410         gettext/autoconf-lib-link.
69411         * tests/havelib/rpathly/configure.ac: New file, from
69412         gettext/autoconf-lib-link with modifications.
69413         * tests/havelib/rpathlz/usez.c: New file, from
69414         gettext/autoconf-lib-link.
69415         * tests/havelib/rpathlz/Makefile.am: New file, from
69416         gettext/autoconf-lib-link.
69417         * tests/havelib/rpathlz/configure.ac: New file, from
69418         gettext/autoconf-lib-link with modifications.
69419         * tests/havelib/rpathlyx/usey.c: New file, from
69420         gettext/autoconf-lib-link.
69421         * tests/havelib/rpathlyx/Makefile.am: New file, from
69422         gettext/autoconf-lib-link.
69423         * tests/havelib/rpathlyx/configure.ac: New file, from
69424         gettext/autoconf-lib-link with modifications.
69425         * tests/havelib/rpathlzyx/usez.c: New file, from
69426         gettext/autoconf-lib-link.
69427         * tests/havelib/rpathlzyx/Makefile.am: New file, from
69428         gettext/autoconf-lib-link.
69429         * tests/havelib/rpathlzyx/configure.ac: New file, from
69430         gettext/autoconf-lib-link with modifications.
69431         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
69432         with modifications.
69434 2010-04-02  Bruno Haible  <bruno@clisp.org>
69436         gnulib-tool: Create distributed built sources also for the tests.
69437         * gnulib-tool (func_create_testdir): Also generate distributed built
69438         sources in the tests directory.
69440 2010-04-02  Bruno Haible  <bruno@clisp.org>
69442         gnulib-tool: Obey user's environment variables.
69443         * gnulib-tool (func_create_testdir): When creating built sources,
69444         respect the environment variables for autoconf, automake, etc. given by
69445         the user.
69447 2010-04-02  Bruno Haible  <bruno@clisp.org>
69449         gnulib-tool: Provide the value of --m4-base to modules.
69450         * gnulib-tool (func_import, func_create_testdir): Emit a definition
69451         of gl_m4_base.
69453 2010-04-02  Eric Blake  <eblake@redhat.com>
69455         maint.mk: fix some fallout
69456         * NEWS: Document the incompatible change, and its effect on cfg.mk.
69457         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
69459 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69461         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
69462         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
69463         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
69464         (sc_cast_of_x_alloc_return_value): Likewise.
69465         (sc_cast_of_alloca_return_value): Likewise.
69466         (sc_space_tab): Likewise.
69467         (sc_prohibit_atoi_atof): Likewise.
69468         (sc_prohibit_magic_number_exit): Likewise.
69469         (sc_error_exit_success): Likewise.
69470         (sc_file_system): Likewise.
69471         (sc_prohibit_have_config_h): Likewise.
69472         (sc_require_config_h): Likewise.
69473         (sc_prohibit_HAVE_MBRTOWC): Likewise.
69474         (sc_obsolete_symbols): Likewise.
69475         (sc_changelog): Likewise.
69476         (sc_program_name): Likewise.
69477         (sc_the_the): Likewise.
69478         (sc_trailing_blank): Likewise.
69479         (sc_two_space_separator_in_usage): Likewise.
69480         (sc_useless_cpp_parens): Likewise.
69481         (sc_GPL_version): Likewise.
69482         (sc_GFDL_version): Likewise.
69483         (sc_texinfo_acronym): Likewise.
69484         (sc_prohibit_cvs_keyword): Likewise.
69485         (sc_prohibit_stat_st_blocks): Likewise.
69486         (sc_prohibit_S_IS_definition): Likewise.
69487         (sc_redundant_const): Likewise.
69488         (sc_makefile_TAB_only_indentation): Likewise.
69489         (sc_m4_quote_check): Likewise.
69490         (sc_makefile_path_separator_check): Likewise.
69491         (sc_copyright_check): Likewise.
69492         (sc_Wundef_boolean): Likewise.
69493         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
69495         maint.mk: match 0 or more whitespace-before-function-call '('
69496         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
69497         that have zero or two-and-more spaces between the function name
69498         and the open parenthesis.
69499         (sc_error_message_warn_fatal): Likewise.
69500         (sc_error_message_uppercase): Likewise.
69501         (sc_error_message_period): Likewise.
69503 2010-03-31  Eric Blake  <eblake@redhat.com>
69505         maint.mk: check for [ as well as test
69506         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
69507         Based on a libvirt report by Matthias Bolte.
69509         gnumakefile: don't squelch _version output
69510         * top/GNUmakefile (_version): Create one-shot dependency rather
69511         than using $(shell) when version must be regenerated.
69512         (_autoreconf): Run verbosely, by default.
69514         sys_time: avoid compiler warnings
69515         * lib/sys_time.in.h (includes): Ensure gcc pragma is
69516         unconditional, fixing regression from 2010-03-29.
69517         Reported by Simon Josefsson.
69519 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69521         maint.mk: s/_header_without_use/_sc_header_without_use/
69522         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
69523         (sc_prohibit_assert_without_use): Use the new name.
69524         (sc_prohibit_close_stream_without_use): Likewise.
69525         (sc_prohibit_getopt_without_use): Likewise.
69526         (sc_prohibit_quotearg_without_use): Likewise.
69527         (sc_prohibit_quote_without_use): Likewise.
69528         (sc_prohibit_long_options_without_use): Likewise.
69529         (sc_prohibit_inttostr_without_use): Likewise.
69530         (sc_prohibit_ignore_value_without_use): Likewise.
69531         (sc_prohibit_error_without_use): Likewise.
69532         (sc_prohibit_xalloc_without_use): Likewise.
69533         (sc_prohibit_hash_without_use): Likewise.
69534         (sc_prohibit_hash_pjw_without_use): Likewise.
69535         (sc_prohibit_safe_read_without_use): Likewise.
69536         (sc_prohibit_argmatch_without_use): Likewise.
69537         (sc_prohibit_canonicalize_without_use): Likewise.
69538         (sc_prohibit_root_dev_ino_without_use): Likewise.
69539         (sc_prohibit_openat_without_use): Likewise.
69540         (sc_prohibit_c_ctype_without_use): Likewise.
69541         (sc_prohibit_signal_without_use): Likewise.
69542         (sc_prohibit_intprops_without_use): Likewise.
69544 2010-03-30  Eric Blake  <eblake@redhat.com>
69546         maint: improve module indicators
69547         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
69548         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
69549         columns, and avoid extra macro expansion.
69551         fdopendir: work around FreeBSD bug
69552         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
69553         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
69554         * modules/dirent (Makefile.am): Substitute it.
69555         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
69556         declaration.
69557         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
69558         fix.
69559         Reported by Christian Weisgerber <naddy@mips.inka.de>.
69561 2010-03-29  Bruno Haible  <bruno@clisp.org>
69563         Emit #pragma system_header after the inclusion guard, not before.
69564         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
69565         guard that spans the entire file, not before. This enables an
69566         optimization in GCC's preprocessor.
69567         * lib/ctype.in.h: Likewise.
69568         * lib/dirent.in.h: Likewise.
69569         * lib/errno.in.h: Likewise.
69570         * lib/float.in.h: Likewise.
69571         * lib/getopt.in.h: Likewise.
69572         * lib/iconv.in.h: Likewise.
69573         * lib/langinfo.in.h: Likewise.
69574         * lib/locale.in.h: Likewise.
69575         * lib/math.in.h: Likewise.
69576         * lib/netdb.in.h: Likewise.
69577         * lib/netinet_in.in.h: Likewise.
69578         * lib/pty.in.h: Likewise.
69579         * lib/sched.in.h: Likewise.
69580         * lib/se-selinux.in.h: Likewise.
69581         * lib/search.in.h: Likewise.
69582         * lib/spawn.in.h: Likewise.
69583         * lib/stdarg.in.h: Likewise.
69584         * lib/stdint.in.h: Likewise.
69585         * lib/string.in.h: Likewise.
69586         * lib/strings.in.h: Likewise.
69587         * lib/sys_file.in.h: Likewise.
69588         * lib/sys_ioctl.in.h: Likewise.
69589         * lib/sys_time.in.h: Likewise.
69590         * lib/sys_times.in.h: Likewise.
69591         * lib/sys_utsname.in.h: Likewise.
69592         * lib/sys_wait.in.h: Likewise.
69593         * lib/sysexits.in.h: Likewise.
69594         * lib/wctype.in.h: Likewise.
69596 2010-03-28  James Youngman  <jay@gnu.org>
69598         save-cwd: don't leak a file descriptor when the caller execs.
69599         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
69600         saved file descriptor.
69601         * modules/save-cwd (Depends-on): Depend on cloexec.
69603 2010-03-29  Bruno Haible  <bruno@clisp.org>
69605         Remove vestiges of fts-lgpl module.
69606         * lib/fts_.h: Assume GNULIB_FTS is 1.
69607         * lib/fts.c: Likewise.
69608         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69610 2010-03-28  Bruno Haible  <bruno@clisp.org>
69612         Fix definition of tests witness macro.
69613         * gnulib-tool (func_import): Fix definition of witness macro.
69615 2010-03-28  Bruno Haible  <bruno@clisp.org>
69617         Fix ioctl's protoype on glibc systems.
69618         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
69619         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
69620         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
69621         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
69622         signature. If not, arrange to replace the ioctl function.
69623         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
69624         REPLACE_IOCTL.
69625         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
69626         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
69627         Reported by Ludovic Courtès <ludo@gnu.org>.
69629 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
69631         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
69632         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
69633         made it so grep -r --include=GLOB* ... did not work.
69635 2010-03-26  Jim Meyering  <meyering@redhat.com>
69636             Eric Blake  <eblake@redhat.com>
69638         maint.mk: prohibit use of test's -o and -a operators
69639         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
69641 2010-03-28  Bruno Haible  <bruno@clisp.org>
69643         Remove unused GNULIB_XYZ macro definitions.
69644         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
69645         invocation.
69647 2010-03-28  Bruno Haible  <bruno@clisp.org>
69649         Mark privileged tests modules.
69650         * modules/idpriv-drop-tests (Status): New section.
69651         * modules/idpriv-droptemp-tests (Status): New section.
69653 2010-03-28  Bruno Haible  <bruno@clisp.org>
69655         Split C++ tests into separate tests modules.
69656         * modules/dirent-c++-tests: New file, extracted from
69657         modules/dirent-tests.
69658         * modules/dirent-tests: Depend on it.
69659         * modules/fcntl-h-c++-tests: New file, extracted from
69660         modules/fcntl-h-tests.
69661         * modules/fcntl-h-tests: Depend on it.
69662         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
69663         * modules/glob-tests: Depend on it.
69664         * modules/iconv-h-c++-tests: New file, extracted from
69665         modules/iconv-h-tests.
69666         * modules/iconv-h-tests: Depend on it.
69667         * modules/langinfo-c++-tests: New file, extracted from
69668         modules/langinfo-tests.
69669         * modules/langinfo-tests: Depend on it.
69670         * modules/locale-c++-tests: New file, extracted from
69671         modules/locale-tests.
69672         * modules/locale-tests: Depend on it.
69673         * modules/math-c++-tests: New file, extracted from modules/math-tests.
69674         * modules/math-tests: Depend on it.
69675         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
69676         * modules/pty-tests: Depend on it.
69677         * modules/search-c++-tests: New file, extracted from
69678         modules/search-tests.
69679         * modules/search-tests: Depend on it.
69680         * modules/signal-c++-tests: New file, extracted from
69681         modules/signal-tests.
69682         * modules/signal-tests: Depend on it.
69683         * modules/spawn-c++-tests: New file, extracted from
69684         modules/spawn-tests.
69685         * modules/spawn-tests: Depend on it.
69686         * modules/stdio-c++-tests: New file, extracted from
69687         modules/stdio-tests.
69688         * modules/stdio-tests: Depend on it.
69689         * modules/stdlib-c++-tests: New file, extracted from
69690         modules/stdlib-tests.
69691         * modules/stdlib-tests: Depend on it.
69692         * modules/string-c++-tests: New file, extracted from
69693         modules/string-tests.
69694         * modules/string-tests: Depend on it.
69695         * modules/sys_ioctl-c++-tests: New file, extracted from
69696         modules/sys_ioctl-tests.
69697         * modules/sys_ioctl-tests: Depend on it.
69698         * modules/sys_select-c++-tests: New file, extracted from
69699         modules/sys_select-tests.
69700         * modules/sys_select-tests: Depend on it.
69701         * modules/sys_socket-c++-tests: New file, extracted from
69702         modules/sys_socket-tests.
69703         * modules/sys_socket-tests: Depend on it.
69704         * modules/sys_stat-c++-tests: New file, extracted from
69705         modules/sys_stat-tests.
69706         * modules/sys_stat-tests: Depend on it.
69707         * modules/sys_time-c++-tests: New file, extracted from
69708         modules/sys_time-tests.
69709         * modules/sys_time-tests: Depend on it.
69710         * modules/time-c++-tests: New file, extracted from modules/time-tests.
69711         * modules/time-tests: Depend on it.
69712         * modules/unistd-c++-tests: New file, extracted from
69713         modules/unistd-tests.
69714         * modules/unistd-tests: Depend on it.
69715         * modules/wchar-c++-tests: New file, extracted from
69716         modules/wchar-tests.
69717         * modules/wchar-tests: Depend on it.
69718         * modules/wctype-c++-tests: New file, extracted from
69719         modules/wctype-tests.
69720         * modules/wctype-tests: Depend on it.
69721         Reported by Simon Josefsson.
69723 2010-03-28  Bruno Haible  <bruno@clisp.org>
69725         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
69726         * gnulib-tool (func_exists_module): New function, extracted from
69727         func_verify_module.
69728         (func_verify_module): Use it.
69729         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
69730         'foo' only if 'foo' exists.
69731         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
69732         module.
69734 2010-03-28  Bruno Haible  <bruno@clisp.org>
69736         gnulib-tool: Add support for special categories of tests.
69737         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
69738         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
69739         (func_usage): Document them.
69740         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
69741         inc_unportable_tests, inc_all_tests): New variables.
69742         (func_acceptable): Consider these variables.
69743         (func_modules_transitive_closure): Make it work when the 'Status' field
69744         consists of multiple words.
69745         (func_import): Store and restore the values of inc_cxx_tests,
69746         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
69747         inc_all_tests in gnulib-comp.m4.
69748         (func_create_testdir): Set inc_all_tests to true.
69749         * doc/gnulib.texi (Extra tests modules): New section.
69750         Suggested by Jim Meyering.
69752 2010-03-28  Bruno Haible  <bruno@clisp.org>
69754         ansi-c++-opt: Allow turning off the C++ build by default.
69755         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
69756         gl_CXX_CHOICE_DEFAULT_NO is defined.
69757         Requested by Eric Blake.
69759 2010-03-28  Bruno Haible  <bruno@clisp.org>
69761         unistd: Avoid #define replacements in C++ mode.
69762         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
69763         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
69764         setsockopt, shutdown, select): In C++, attach a warning to the function
69765         if possible, rather than #defining the symbol to a dysfunctional alias.
69766         Reported by John W. Eaton <jwe@gnu.org>.
69768 2010-03-28  Bruno Haible  <bruno@clisp.org>
69770         Fix link errors on mingw.
69771         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
69772         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
69773         $(LIBSOCKET).
69774         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
69775         $(LIBSOCKET).
69777 2010-03-28  Bruno Haible  <bruno@clisp.org>
69778             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69780         lib-ignore: Determine different options for different compilers.
69781         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
69782         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
69783         Add comments.
69784         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
69785         * NEWS: Mention the change.
69787 2010-03-27  Bruno Haible  <bruno@clisp.org>
69789         Remove unused GNULIB_XYZ macro definitions.
69790         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69791         * modules/fseek (configure.ac): Likewise.
69792         * modules/ioctl (configure.ac): Likewise.
69793         * modules/open (configure.ac): Likewise.
69794         * modules/stdlib-safer (configure.ac): Likewise.
69796 2010-03-27  Bruno Haible  <bruno@clisp.org>
69798         Add a remark about certain modules.
69799         * modules/malloc (Comment): New section.
69800         * modules/realloc (Comment): Likewise.
69801         * modules/sigpipe (Comment): Likewise.
69803 2010-03-27  Bruno Haible  <bruno@clisp.org>
69805         Resolve conflict between the two kinds of module indicators.
69806         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
69807         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
69808         * modules/canonicalize (configure.ac): Invoke
69809         gl_MODULE_INDICATOR_FOR_TESTS.
69810         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
69811         GNULIB_XYZ.
69812         * tests/test-dirent-c++.cc: Likewise.
69813         * tests/test-dirent-safer.c: Likewise.
69814         * tests/test-dup2.c: Likewise.
69815         * tests/test-fchdir.c: Likewise.
69816         * tests/test-fcntl-h-c++.cc: Likewise.
69817         * tests/test-getopt.c: Likewise.
69818         * tests/test-getopt.h: Likewise.
69819         * tests/test-langinfo-c++.cc: Likewise.
69820         * tests/test-locale-c++.cc: Likewise.
69821         * tests/test-math-c++.cc: Likewise.
69822         * tests/test-pty-c++.cc: Likewise.
69823         * tests/test-search-c++.cc: Likewise.
69824         * tests/test-signal-c++.cc: Likewise.
69825         * tests/test-spawn-c++.cc: Likewise.
69826         * tests/test-stdio-c++.cc: Likewise.
69827         * tests/test-stdlib-c++.cc: Likewise.
69828         * tests/test-string-c++.cc: Likewise.
69829         * tests/test-sys_ioctl-c++.cc: Likewise.
69830         * tests/test-sys_select-c++.cc: Likewise.
69831         * tests/test-sys_socket-c++.cc: Likewise.
69832         * tests/test-sys_stat-c++.cc: Likewise.
69833         * tests/test-sys_time-c++.cc: Likewise.
69834         * tests/test-time-c++.cc: Likewise.
69835         * tests/test-unistd-c++.cc: Likewise.
69836         * tests/test-wchar-c++.cc: Likewise.
69837         * tests/uninorm/test-u8-nfc.c: Likewise.
69838         * tests/uninorm/test-u8-nfd.c: Likewise.
69839         * tests/uninorm/test-u8-nfkc.c: Likewise.
69840         * tests/uninorm/test-u8-nfkd.c: Likewise.
69841         * tests/uninorm/test-u16-nfc.c: Likewise.
69842         * tests/uninorm/test-u16-nfd.c: Likewise.
69843         * tests/uninorm/test-u16-nfkc.c: Likewise.
69844         * tests/uninorm/test-u16-nfkd.c: Likewise.
69845         * tests/uninorm/test-u32-nfc.c: Likewise.
69846         * tests/uninorm/test-u32-nfc-big.c: Likewise.
69847         * tests/uninorm/test-u32-nfd.c: Likewise.
69848         * tests/uninorm/test-u32-nfd-big.c: Likewise.
69849         * tests/uninorm/test-u32-nfkc.c: Likewise.
69850         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
69851         * tests/uninorm/test-u32-nfkd.c: Likewise.
69852         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
69853         * tests/uninorm/test-u32-normalize-big.c: Likewise.
69855 2010-03-27  Bruno Haible  <bruno@clisp.org>
69857         Distinguish two kinds of module indicators.
69858         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
69859         gl_MODULE_INDICATOR.
69860         (gl_MODULE_INDICATOR): New macro.
69861         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
69862         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
69863         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69864         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69865         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69866         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69867         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69868         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69869         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69870         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69871         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69872         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69873         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69874         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69875         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69876         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69877         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69878         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69879         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69880         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69881         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69882         * modules/cloexec (configure.ac): Likewise.
69883         * modules/getopt-gnu (configure.ac): Likewise.
69884         * modules/uninorm/u8-normalize (configure.ac): Likewise.
69885         * modules/uninorm/u16-normalize (configure.ac): Likewise.
69886         * modules/uninorm/u32-normalize (configure.ac): Likewise.
69887         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
69889 2010-03-27  Bruno Haible  <bruno@clisp.org>
69891         New module description field 'Comment'.
69892         * gnulib-tool: New option --extract-comment.
69893         (func_usage): Document it.
69894         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
69895         (func_get_comment): New function.
69896         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
69898 2010-03-27  Bruno Haible  <bruno@clisp.org>
69900         Addendum to 2010-02-07 commit.
69901         * gnulib-tool (func_usage): Document --extract-applicability option.
69903 2010-03-27  Bruno Haible  <bruno@clisp.org>
69905         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
69906         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
69907         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
69908         rather than link errors.
69910 2010-03-27  Bruno Haible  <bruno@clisp.org>
69912         Avoid side effects from tests-related modules on the compilation of lib.
69913         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
69914         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
69915         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
69916         parameter. Emit into AM_CPPFLAGS a definition of the designated C
69917         macro.
69918         (func_import): Define a witness macro. Assign it a value that depends
69919         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
69920         tests-related modules.
69921         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
69922         Reported by Jim Meyering.
69924 2010-03-27  Bruno Haible  <bruno@clisp.org>
69926         Factorize common .m4 code.
69927         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
69928         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
69929         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
69930         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
69931         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69932         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
69933         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
69934         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69935         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69936         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69937         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
69938         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69939         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69940         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69941         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69942         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
69943         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69944         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69945         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69946         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
69947         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
69948         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69949         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69950         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69951         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69952         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69953         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
69954         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
69955         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
69956         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69957         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69958         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69960 2010-03-27  Bruno Haible  <bruno@clisp.org>
69962         Fix a compilation error on Cygwin with g++ >= 4.3.
69963         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
69964         if it is undefined or if we alias it to chmod.
69965         (lstat): Don't warn about the use of this function if it is undefined
69966         or if we alias it to stat.
69967         Reported by Simon Josefsson.
69969 2010-03-27  Bruno Haible  <bruno@clisp.org>
69971         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
69972         * modules/getlogin (configure.ac): Update.
69974         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
69975         * modules/getlogin_r (configure.ac): Update.
69977         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
69978         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
69979         * modules/inet_ntop (configure.ac): Update.
69981         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
69982         * modules/inet_pton (configure.ac): Update.
69984         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
69985         * modules/mbslen (configure.ac): Update.
69987         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
69988         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
69989         * modules/forkpty (configure.ac): Update.
69990         * modules/openpty (configure.ac): Update.
69992 2010-03-26  Simon Josefsson  <simon@josefsson.org>
69994         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
69995         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
69997 2010-03-25  Eric Blake  <eblake@redhat.com>
69999         maint: use pragma consistently across replacement headers
70000         * lib/ctype.in.h (system_header): Hoist for consistent placement.
70001         * lib/dirent.in.h (system_header): Likewise.
70002         * lib/errno.in.h (system_header): Likewise.
70003         * lib/float.in.h (system_header): Likewise.
70004         * lib/getopt.in.h (system_header): Likewise.
70005         * lib/iconv.in.h (system_header): Likewise.
70006         * lib/inttypes.in.h (system_header): Likewise.
70007         * lib/langinfo.in.h (system_header): Likewise.
70008         * lib/locale.in.h (system_header): Likewise.
70009         * lib/math.in.h (system_header): Likewise.
70010         * lib/netdb.in.h (system_header): Likewise.
70011         * lib/netinet_in.in.h (system_header): Likewise.
70012         * lib/pty.in.h (system_header): Likewise.
70013         * lib/sched.in.h (system_header): Likewise.
70014         * lib/se-selinux.in.h (system_header): Likewise.
70015         * lib/search.in.h (system_header): Likewise.
70016         * lib/spawn.in.h (system_header): Likewise.
70017         * lib/stdarg.in.h (system_header): Likewise.
70018         * lib/stdint.in.h (system_header): Likewise.
70019         * lib/string.in.h (system_header): Likewise.
70020         * lib/strings.in.h (system_header): Likewise.
70021         * lib/sys_file.in.h (system_header): Likewise.
70022         * lib/sys_ioctl.in.h (system_header): Likewise.
70023         * lib/sys_socket.in.h (system_header): Likewise.
70024         * lib/sys_times.in.h (system_header): Likewise.
70025         * lib/sys_utsname.in.h (system_header): Likewise.
70026         * lib/sys_wait.in.h (system_header): Likewise.
70027         * lib/sysexits.in.h (system_header): Likewise.
70028         * lib/unistd.in.h (system_header): Likewise.
70029         * lib/wctype.in.h (system_header): Likewise.
70031         arpa/inet: fix mingw compilation warning
70032         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
70033         Reported by Matthew Bolte.
70035 2010-03-25  Bruno Haible  <bruno@clisp.org>
70037         Avoid collision between gnulib wrapper and libintl wrapper.
70038         * lib/printf.c (printf): Don't define if a printf wrapper is already
70039         defined in intl/printf.c.
70040         Reported by Michel Boaventura <michel@michelboaventura.com>.
70042 2010-03-25  Bruno Haible  <bruno@clisp.org>
70044         Use ANSI C.
70045         * lib/readutmp.h (getutent): Provide ANSI C prototype.
70047 2010-03-25  Bruno Haible  <bruno@clisp.org>
70049         Minor formatting changes.
70050         * lib/acosl.c: Insert space before function argument list.
70051         * lib/argz.c: Likewise.
70052         * lib/asinl.c: Likewise.
70053         * lib/expl.c: Likewise.
70054         * lib/gen-uni-tables.c: Likewise.
70055         * lib/gettext.h: Likewise.
70056         * lib/glthread/lock.h: Likewise.
70057         * lib/tanl.c: Likewise.
70058         * lib/uniname/uniname.c: Likewise.
70059         * tests/test-idpriv-drop.c: Likewise.
70060         * tests/test-idpriv-droptemp.c: Likewise.
70061         * tests/test-lock.c: Likewise.
70062         * tests/test-tls.c: Likewise.
70063         * lib/argp-help.c: Insert space before function-like macro argument
70064         list.
70065         * lib/memcmp.c: Likewise.
70066         * tests/test-base64.c: Likewise.
70067         * lib/localename.c: Insert space before sizeof's argument list.
70068         * lib/safe-alloc.h: Likewise.
70069         * lib/file-set.h: Insert space before macro argument list.
70070         * tests/test-argp.c: Likewise.
70071         * lib/argp-namefrob.h: Insert space before function parameter list.
70072         * lib/getaddrinfo.c: Likewise.
70073         * lib/netdb.in.h: Likewise.
70074         * lib/parse-duration.h: Likewise.
70075         * lib/parse-duration.c: Likewise.
70076         * lib/poll.c: Likewise.
70077         * lib/select.c: Likewise.
70078         * lib/trim.h: Likewise.
70079         * tests/test-usleep.c: Likewise.
70080         * lib/ldexpl.c: Insert space before function parameter list and before
70081         function argument list.
70082         * lib/logl.c: Likewise.
70083         * lib/sqrtl.c: Likewise.
70084         * lib/trim.c: Likewise.
70085         * lib/cosl.c: Use GNU style indentation. Insert space before function
70086         argument list.
70087         * lib/sinl.c: Likewise.
70088         * lib/tsearch.c: Insert space after 'for'.
70089         Reported by Jim Meyering.
70091 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
70093         * maint.mk (sc_Wundef_boolean): Check for the presence of the
70094         config header before grepping, as it's not present before
70095         autoreconf/configure are run.  Reported by Simon Josefsson.
70097 2010-03-23  Bruno Haible  <bruno@clisp.org>
70099         pt_chown: Make it work with automake < 1.11.
70100         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
70101         Reported by Simon Josefsson.
70103 2010-03-23  Bruno Haible  <bruno@clisp.org>
70105         pt_chown: Don't depend on GPLed modules.
70106         * lib/pt_chown.c: Don't include idpriv.h.
70107         (main): Don't drop privileges.
70108         * modules/pt_chown (Depends-on): Remove idpriv-drop.
70109         Reported by Simon Josefsson.
70111 2010-03-24  Simon Josefsson  <simon@josefsson.org>
70113         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
70114         suggestions from karl@freefriends.org (Karl Berry).
70116 2010-03-22  Eric Blake  <eblake@redhat.com>
70118         gethostname: further tweaks
70119         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
70120         are overriding gethostname.
70121         Suggested by Bruno Haible.
70123 2010-03-21  Bruno Haible  <bruno@clisp.org>
70125         Fix comments.
70126         * lib/forkpty.c (rpl_forkpty): Fix comment.
70127         * lib/openpty.c (rpl_openpty): Likewise.
70128         Reported by Eric Blake.
70130 2010-03-22  Eric Blake  <eblake@redhat.com>
70132         gethostname: fix build on mingw
70133         * lib/unistd.in.h (includes): Work around fact that mingw
70134         <winsock2.h> re-includes <unistd.h>, by avoiding any
70135         redeclarations if we are being included by <winsock2.h>.
70136         Reported by Matthias Bolte.
70138 2010-03-21  Bruno Haible  <bruno@clisp.org>
70140         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70141         * lib/forkpty.c (forkpty): New replacement function, from glibc with
70142         modifications.
70143         * lib/pty.in.h (forkpty): Update declaration. Add comments.
70144         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
70145         provide the replacement.
70146         * modules/forkpty (Depends-on): Add openpty, login_tty.
70147         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
70148         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
70149         * doc/glibc-functions/forkpty.texi: More supported platforms.
70150         * config/srclist.txt: Add forkpty.c (commented).
70152 2010-03-21  Bruno Haible  <bruno@clisp.org>
70154         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
70155         (Makefile.am): Verify that PTY_LIB is defined.
70157         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
70159 2010-03-21  Bruno Haible  <bruno@clisp.org>
70161         Tests for module 'login_tty'.
70162         * modules/login_tty-tests: New file.
70163         * tests/test-login_tty.c: New file.
70165         New module 'login_tty'.
70166         * lib/login_tty.c: New file.
70167         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
70168         * modules/login_tty: New file.
70169         * doc/glibc-functions/login_tty.texi: Mention the new module.
70171 2010-03-21  Bruno Haible  <bruno@clisp.org>
70173         login_tty: Documentation.
70174         * doc/glibc-functions/login_tty.texi: New file.
70175         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
70177 2010-03-21  Bruno Haible  <bruno@clisp.org>
70179         pty: Consistent macro naming.
70180         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
70181         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
70182         * modules/pty (configure.ac): Update.
70184 2010-03-21  Bruno Haible  <bruno@clisp.org>
70186         Tests for openpty: Make stricter.
70187         * tests/test-openpty.c (main): Add test of canonical processing and
70188         erase.
70189         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
70191         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70192         * lib/openpty.c (openpty): New replacement function.
70193         * lib/pty.in.h: Include <termios.h>.
70194         (openpty): Update declaration. Add comments.
70195         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
70196         is not declared, arrange to provide the replacement. Check for _getpty
70197         and posix_openpt.
70198         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
70199         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
70200         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
70201         * modules/pty-tests (test_pty_c___LDADD): New variable.
70202         * doc/glibc-functions/openpty.texi: More supported platforms.
70204 2010-03-21  Bruno Haible  <bruno@clisp.org>
70206         setenv: Tweaks.
70207         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
70208         the test program.
70209         * doc/posix-functions/setenv.texi: Update platforms list.
70211 2010-03-21  Bruno Haible  <bruno@clisp.org>
70213         New module 'unlockpt'.
70214         * lib/unlockpt.c: New file, from glibc with modifications.
70215         * m4/unlockpt.m4: New file.
70216         * modules/unlockpt: New file.
70217         * lib/stdlib.in.h (unlockpt): New declaration.
70218         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
70219         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
70220         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
70221         HAVE_UNLOCKPT.
70222         * doc/posix-functions/unlockpt.texi: Mention the new module.
70223         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
70224         * config/srclist.txt: Add unlockpt.c (commented).
70226 2010-03-21  Jim Meyering  <meyering@redhat.com>
70228         maint.mk: prohibit inclusion of "intprops.h" without use
70229         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
70231 2010-03-21  Bruno Haible  <bruno@clisp.org>
70233         New module 'grantpt'.
70234         * lib/grantpt.c: New file, from glibc with modifications.
70235         * m4/grantpt.m4: New file.
70236         * modules/grantpt: New file.
70237         * lib/stdlib.in.h (grantpt): New declaration.
70238         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
70239         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
70240         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
70241         HAVE_GRANTPT.
70242         * doc/posix-functions/grantpt.texi: Mention the new module.
70243         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
70244         * config/srclist.txt: Add grantpt.c (commented).
70246 2010-03-21  Bruno Haible  <bruno@clisp.org>
70248         New module 'pt_chown'.
70249         * lib/pt_chown.c: New file, from glibc with modifications.
70250         * lib/pty-private.h: New file, from glibc with modifications.
70251         * modules/pt_chown: New file.
70252         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
70254 2010-03-21  Bruno Haible  <bruno@clisp.org>
70256         Tests for module 'ptsname'.
70257         * modules/ptsname-tests: New file.
70258         * tests/test-ptsname.c: New file.
70260         New module 'ptsname'.
70261         * lib/ptsname.c: New file, from glibc with modifications.
70262         * m4/ptsname.m4: New file.
70263         * modules/ptsname: New file.
70264         * lib/stdlib.in.h (ptsname): New declaration.
70265         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
70266         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
70267         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
70268         HAVE_PTSNAME.
70269         * doc/posix-functions/ptsname.texi: Mention the new module.
70270         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
70271         * config/srclist.txt: Add ptsname.c (commented).
70273 2010-03-21  Bruno Haible  <bruno@clisp.org>
70275         Tests for module 'ttyname_r'.
70276         * modules/ttyname_r-tests: New file.
70277         * tests/test-ttyname_r.c: New file.
70279         New module 'ttyname_r'.
70280         * lib/ttyname_r.c: New file.
70281         * m4/ttyname_r.m4: New file.
70282         * modules/ttyname_r: New file.
70283         * lib/unistd.in.h (ttyname_r): New declaration.
70284         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
70285         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
70286         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
70287         HAVE_TTYNAME_R.
70288         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
70289         * doc/posix-functions/ttyname_r.texi: Mention the new module.
70291 2010-03-20  Bruno Haible  <bruno@clisp.org>
70293         signal: Undefine macro definitions in C++ mode.
70294         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
70295         sigfillset): Undefine macro definitions from the system header in C++
70296         mode.
70297         Reported by John W. Eaton <jwe@gnu.org>.
70299 2010-03-20  Bruno Haible  <bruno@clisp.org>
70301         Ensure no #include statements inside extern "C" { ... }.
70302         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
70303         contain #include statements.
70304         * lib/time.in.h: Likewise.
70306 2010-03-20  Bruno Haible  <bruno@clisp.org>
70308         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
70309         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
70310         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
70311         Reported by John W. Eaton <jwe@gnu.org>.
70313 2010-03-20  Bruno Haible  <bruno@clisp.org>
70315         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
70316         Reported by Jim Meyering.
70318 2010-03-20  Bruno Haible  <bruno@clisp.org>
70320         pipe: Set errno upon failure.
70321         * lib/pipe.h: Specify that when -1 is returned, errno is set.
70322         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
70323         errno value in error message.
70325 2010-03-20  Bruno Haible  <bruno@clisp.org>
70326             Jim Meyering  <meyering@redhat.com>
70328         lchown: Avoid "unused variable" warning.
70329         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
70331 2010-03-20  Bruno Haible  <bruno@clisp.org>
70333         Work around unlink() bug on MacOS X 10.5.6.
70334         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
70335         attempting to unlink a parent directory.
70336         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
70337         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
70338         activate for the replacement function.
70339         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
70341 2010-03-20  Bruno Haible  <bruno@clisp.org>
70343         Fix link errors on Solaris 8.
70344         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
70345         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
70347 2010-03-19  Jim Meyering  <meyering@redhat.com>
70349         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
70350         The _LIBC implementation of build_range_exp correctly honors the
70351         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
70352         However, the non-_LIBC implementation would ignore that syntax-bit
70353         flag and return REG_ERANGE unconditionally.
70354         This change makes it honor that flag.
70355         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
70356         Make two pointer parameters "const".
70357         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
70358         (parse_bracket_exp): Update caller.
70360         regex.m4: correct the reversed range endpoint ([b-a]) test
70361         * m4/regex.m4: When requiring that [b-a] evoke failure,
70362         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
70363         test pass once again for x86-based systems.
70365 2010-03-19  Bruno Haible  <bruno@clisp.org>
70367         scandir: Fix link error on Solaris 8.
70368         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
70369         macros.
70371 2010-03-19  Bruno Haible  <bruno@clisp.org>
70373         getusershell: Fix documentation.
70374         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
70375         module.
70376         * doc/glibc-functions/setusershell.texi: Likewise.
70378         getusershell: Provide declaration, missing on Solaris 9.
70379         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
70380         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
70381         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
70382         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
70383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70384         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
70385         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
70386         HAVE_GETUSERSHELL.
70387         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
70389 2010-03-19  Bruno Haible  <bruno@clisp.org>
70391         wctype: Provide iswblank function.
70392         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
70393         exists and is fine.
70394         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
70395         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
70396         * tests/test-wctype.c (main): Re-enable the iswblank tests.
70397         * doc/posix-functions/iswblank.texi: Update.
70399 2010-03-19  Bruno Haible  <bruno@clisp.org>
70401         Tests of module 'pty' in C++ mode.
70402         * modules/pty-tests: New file.
70403         * tests/test-pty-c++.cc: New file.
70404         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70406 2010-03-19  Eric Blake  <eblake@redhat.com>
70408         logb: fix documentation
70409         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
70410         1.5 declaration bug.
70412         forkpty, openpty: prefer glibc's const-safe prototype
70413         * lib/forkpty.c (rpl_forkpty): New file.
70414         * lib/openpty.c (rpl_openpty): Likewise.
70415         * modules/forkpty (Files): Distribute it.
70416         * modules/openpty (Files): Likewise.
70417         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
70418         check...
70419         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
70420         replacement for non-const BSD signature.
70421         * modules/pty (Makefile.am): Substitute witnesses.
70422         * lib/pty.in.h (forkpty, openpty): Declare replacements.
70423         * tests/test-forkpty.c: Update signature check.
70424         * tests/test-openpty.c: Likewise.
70425         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
70426         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70428         forkpty, openpty: split functions into new modules
70429         * modules/pty (Makefile.am): Substitute new witnesses.
70430         (Libraries): Move library detection...
70431         * modules/forkpty: ...into new module.
70432         * modules/openpty: Another new module.
70433         * modules/pty-tests: Rename and split...
70434         * modules/forkpty-tests: ...to this...
70435         * modules/openpty-tests: ...and this.
70436         * tests/test-pty.c: Rename and split...
70437         * tests/test-forkpty.c: ...to this...
70438         * tests/test-openpty.c: ...and this.
70439         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
70440         (gl_PTY): Split library searching...
70441         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
70442         (gl_FORKPTY, gl_OPENPTY): New macros.
70443         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
70444         * NEWS: Mention the split.
70445         * MODULES.html.sh (Misc): Document the modules.
70446         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
70447         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70449         pty: improve replacement header
70450         * lib/pty.in.h: New file.
70451         * modules/pty (Files): Ship it.
70452         (Makefile.am): Always build replacement.
70453         * m4/pty.m4: Rename...
70454         * m4/pty_h.m4: ...to this.
70455         (gl_PTY): Modernize setting of witness macros; update check of
70456         forkpty to take proper advantage of cache.
70457         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
70459         getopt: avoid compiler warning
70460         * lib/getopt.c (attribute_hidden): Remove unused macro.
70462 2010-03-18  Bruno Haible  <bruno@clisp.org>
70464         Fix link errors on Solaris 8.
70465         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
70466         * modules/search-tests (test_search_c___LDADD): Likewise.
70467         * modules/signal-tests (test_signal_c___LDADD): Likewise.
70468         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
70469         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
70470         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
70471         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
70472         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
70473         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
70475 2010-03-18  Bruno Haible  <bruno@clisp.org>
70477         Fix bug introduced on 2010-03-14.
70478         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
70479         (gl_SPAWN_H): Require it.
70480         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
70481         Reported by Simon Josefsson.
70483 2010-03-18  Bruno Haible  <bruno@clisp.org>
70485         Fix typo introduced on 2009-12-31.
70486         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
70487         posix_spawn_file_actions_adddup2.
70489 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
70490         and Eric Blake  <eblake@redhat.com>
70492         test-vc-list-files-git: make more robust
70493         * tests/test-vc-list-files-git.sh: Unset problematic environment
70494         variables.  Chain commands together.
70496 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
70498         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
70499         `AC_CHECK_DECL' invocation.
70501 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
70503         * lib/inttostr.c (inttostr): Make sure the invocation of verify
70504         appears before executable statements. Suggested by Petr Sumbera
70505         <Petr.Sumbera@Sun.COM>.
70507 2010-03-14  Bruno Haible  <bruno@clisp.org>
70509         * tests/test-flock.c (test_exclusive): Comment out a test that causes
70510         portability problems. Instead use a simpler test.
70511         (main): Check that invalid arguments are rejected only on Linux.
70513 2010-03-14  Bruno Haible  <bruno@clisp.org>
70515         Fix bug introduced on 2009-12-31.
70516         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70517         gl_PREREQ_SYS_H_WINSOCK2 always.
70518         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
70519         SYS_SOCKET_H variable.
70520         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
70521         Update comments.
70522         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
70523         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70524         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70525         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
70526         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
70528 2010-03-14  Bruno Haible  <bruno@clisp.org>
70530         Fix values returned by sinl, cosl.
70531         * lib/trigl.h: Add specification comments.
70532         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
70533         that combines the values from the precomputed table with the values of
70534         the Chebyshev polynomials.
70536 2010-03-14  Bruno Haible  <bruno@clisp.org>
70538         Fix compilation error when modules 'posix_spawn[p]' are not used.
70539         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
70540         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
70542 2010-03-14  Bruno Haible  <bruno@clisp.org>
70544         Fix compilation error on mingw when module 'time_r' is not used.
70545         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
70546         is 1.
70547         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
70548         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70549         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
70550         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
70552 2010-03-14  Bruno Haible  <bruno@clisp.org>
70554         Fix compilation error with Sun C.
70555         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
70556         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
70557         instead of GCC specific ULONG_LONG_MAX.
70558         * lib/xstrtoll.c: Likewise.
70559         * lib/xstrtoull.c: Likewise.
70561 2010-03-13  Bruno Haible  <bruno@clisp.org>
70563         Allow the user to disable C++ code and tests.
70564         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
70565         (gl_PROG_ANSI_CXX): Require it.
70567 2010-03-13  Bruno Haible  <bruno@clisp.org>
70569         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
70570         cases.
70572 2010-03-13  Bruno Haible  <bruno@clisp.org>
70574         Test that gnulib does not break the standard C++ headers.
70575         * tests/test-locale-c++2.cc: New file.
70576         * modules/locale-tests (Files): Add it.
70577         (Makefile.am): Compile it for test-locale-c++.
70578         * tests/test-math-c++2.cc: New file.
70579         * modules/math-tests (Files): Add it.
70580         (Makefile.am): Compile it for test-math-c++.
70581         * tests/test-signal-c++2.cc: New file.
70582         * modules/signal-tests (Files): Add it.
70583         (Makefile.am): Compile it for test-signal-c++.
70584         * tests/test-stdio-c++2.cc: New file.
70585         * modules/stdio-tests (Files): Add it.
70586         (Makefile.am): Compile it for test-stdio-c++.
70587         * tests/test-stdlib-c++2.cc: New file.
70588         * modules/stdlib-tests (Files): Add it.
70589         (Makefile.am): Compile it for test-stdlib-c++.
70590         * tests/test-string-c++2.cc: New file.
70591         * modules/string-tests (Files): Add it.
70592         (Makefile.am): Compile it for test-string-c++.
70593         * tests/test-time-c++2.cc: New file.
70594         * modules/time-tests (Files): Add it.
70595         (Makefile.am): Compile it for test-time-c++.
70596         Reported by John W. Eaton <jwe@gnu.org>.
70598 2010-03-13  Bruno Haible  <bruno@clisp.org>
70600         * gnulib-tool (func_usage): Clarify which options are available for
70601         --create-testdir and --create-megatestdir.
70603 2010-03-13  Bruno Haible  <bruno@clisp.org>
70605         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
70606         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
70607         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
70608         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
70609         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
70610         when appropriate.
70611         Reported by Jim Meyering.
70613 2010-03-12  Simon Josefsson  <simon@josefsson.org>
70615         * gnulib-tool (func_import): Explain origin of code.
70617 2010-03-12  Bruno Haible  <bruno@clisp.org>
70619         Fix problem with automake's definition of CXXLINK.
70620         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
70621         Reported by Simon Josefsson and Ludovic Courtès.
70623 2010-03-12  Bruno Haible  <bruno@clisp.org>
70625         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
70626         stable releases.
70628 2010-03-11  Bruno Haible  <bruno@clisp.org>
70630         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
70631         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
70632         whether the system provides one variant or multiple variants of the
70633         function.
70634         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
70635         C++ compilers.
70636         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
70637         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
70638         Reported by Jim Meyering.
70640 2010-03-09  Simon Josefsson  <simon@josefsson.org>
70642         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
70644 2010-03-08  Bruno Haible  <bruno@clisp.org>
70646         gnulib-tool: Add support for --libtool in --create-testdir.
70647         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
70648         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
70650 2010-03-08  Eric Blake  <eblake@redhat.com>
70652         gnulib-tool.texi: mention possibility of git submodule
70653         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
70654         submodules.
70655         * doc/.gitignore: Ignore another generated file.
70657 2010-03-08  Karl Berry  <karl@gnu.org>
70659         * doc/gnulib-tool.texi (VCS Issues): Mention third option
70660         of committing gnulib files while skipping others.
70662 2010-03-07  Bruno Haible  <bruno@clisp.org>
70664         Tests of module 'wctype' in C++ mode.
70665         * tests/test-wctype-c++.cc: New file.
70666         * modules/wctype-tests (Files): Add it and tests/signature.h.
70667         (Depends-on): Add ansi-c++-opt.
70668         (Makefile.am): Arrange to compile and run test-wctype-c++.
70670         Tests of module 'wchar' in C++ mode.
70671         * tests/test-wchar-c++.cc: New file.
70672         * modules/wchar-tests (Files): Add it and tests/signature.h.
70673         (Depends-on): Add ansi-c++-opt.
70674         (Makefile.am): Arrange to compile and run test-wchar-c++.
70675         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
70676         gl_MODULE_INDICATOR.
70678         Tests of module 'unistd' in C++ mode.
70679         * tests/test-unistd-c++.cc: New file.
70680         * modules/unistd-tests (Files): Add it and tests/signature.h.
70681         (Depends-on): Add ansi-c++-opt.
70682         (Makefile.am): Arrange to compile and run test-unistd-c++.
70683         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
70684         gl_MODULE_INDICATOR.
70686         Tests of module 'time' in C++ mode.
70687         * tests/test-time-c++.cc: New file.
70688         * modules/time-tests (Files): Add it and tests/signature.h.
70689         (Depends-on): Add ansi-c++-opt.
70690         (Makefile.am): Arrange to compile and run test-time-c++.
70691         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70693         Tests of module 'sys_time' in C++ mode.
70694         * tests/test-sys_time-c++.cc: New file.
70695         * modules/sys_time-tests (Files): Add it and tests/signature.h.
70696         (Depends-on): Add ansi-c++-opt.
70697         (Makefile.am): Arrange to compile and run test-sys_time-c++.
70698         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
70699         gl_MODULE_INDICATOR.
70701         Tests of module 'sys_stat' in C++ mode.
70702         * tests/test-sys_stat-c++.cc: New file.
70703         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
70704         (Depends-on): Add ansi-c++-opt.
70705         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
70706         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
70707         gl_MODULE_INDICATOR.
70709         Tests of module 'sys_socket' in C++ mode.
70710         * tests/test-sys_socket-c++.cc: New file.
70711         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
70712         (Depends-on): Add ansi-c++-opt.
70713         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
70714         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
70715         gl_MODULE_INDICATOR.
70717         Tests of module 'sys_select' in C++ mode.
70718         * tests/test-sys_select-c++.cc: New file.
70719         * modules/sys_select-tests (Files): Add it and tests/signature.h.
70720         (Depends-on): Add ansi-c++-opt.
70721         (Makefile.am): Arrange to compile and run test-sys_select-c++.
70722         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
70723         gl_MODULE_INDICATOR.
70725         Tests of module 'sys_ioctl' in C++ mode.
70726         * tests/test-sys_ioctl-c++.cc: New file.
70727         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
70728         (Depends-on): Add ansi-c++-opt.
70729         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
70730         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
70731         gl_MODULE_INDICATOR.
70733         Tests of module 'string' in C++ mode.
70734         * tests/test-string-c++.cc: New file.
70735         * modules/string-tests (Files): Add it and tests/signature.h.
70736         (Depends-on): Add ansi-c++-opt.
70737         (Makefile.am): Arrange to compile and run test-string-c++.
70738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
70739         gl_MODULE_INDICATOR.
70741         Tests of module 'stdlib' in C++ mode.
70742         * tests/test-stdlib-c++.cc: New file.
70743         * modules/stdlib-tests (Files): Add it and tests/signature.h.
70744         (Depends-on): Add ansi-c++-opt.
70745         (Makefile.am): Arrange to compile and run test-stdlib-c++.
70746         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
70747         gl_MODULE_INDICATOR.
70749         Tests of module 'stdio' in C++ mode.
70750         * tests/test-stdio-c++.cc: New file.
70751         * modules/stdio-tests (Files): Add it and tests/signature.h.
70752         (Depends-on): Add ansi-c++-opt.
70753         (Makefile.am): Arrange to compile and run test-stdio-c++.
70754         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
70755         gl_MODULE_INDICATOR.
70757         Tests of module 'spawn' in C++ mode.
70758         * tests/test-spawn-c++.cc: New file.
70759         * modules/spawn-tests (Files): Add it and tests/signature.h.
70760         (Depends-on): Add ansi-c++-opt.
70761         (Makefile.am): Arrange to compile and run test-spawn-c++.
70762         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
70763         gl_MODULE_INDICATOR.
70765         Tests of module 'signal' in C++ mode.
70766         * tests/test-signal-c++.cc: New file.
70767         * modules/signal-tests (Files): Add it and tests/signature.h.
70768         (Depends-on): Add ansi-c++-opt.
70769         (Makefile.am): Arrange to compile and run test-signal-c++.
70770         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
70771         gl_MODULE_INDICATOR.
70773         Tests of module 'search' in C++ mode.
70774         * tests/test-search-c++.cc: New file.
70775         * modules/search-tests (Files): Add it and tests/signature.h.
70776         (Depends-on): Add ansi-c++-opt.
70777         (Makefile.am): Arrange to compile and run test-search-c++.
70778         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
70779         gl_MODULE_INDICATOR.
70781         Tests of module 'math' in C++ mode.
70782         * tests/test-math-c++.cc: New file.
70783         * modules/math-tests (Files): Add it and tests/signature.h.
70784         (Depends-on): Add ansi-c++-opt.
70785         (Makefile.am): Arrange to compile and run test-math-c++.
70786         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70788         Tests of module 'locale' in C++ mode.
70789         * tests/test-locale-c++.cc: New file.
70790         * modules/locale-tests (Files): Add it and tests/signature.h.
70791         (Depends-on): Add ansi-c++-opt.
70792         (Makefile.am): Arrange to compile and run test-locale-c++.
70793         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
70794         gl_MODULE_INDICATOR.
70796         Tests of module 'langinfo' in C++ mode.
70797         * tests/test-langinfo-c++.cc: New file.
70798         * modules/langinfo-tests (Files): Add it and tests/signature.h.
70799         (Depends-on): Add ansi-c++-opt.
70800         (Makefile.am): Arrange to compile and run test-langinfo-c++.
70801         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
70802         gl_MODULE_INDICATOR.
70804         Tests of module 'iconv-h' in C++ mode.
70805         * tests/test-iconv-h-c++.cc: New file.
70806         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
70807         (Depends-on): Add ansi-c++-opt.
70808         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
70810         Tests of module 'glob' in C++ mode.
70811         * tests/test-glob-c++.cc: New file.
70812         * modules/glob-tests (Files): Add it.
70813         (Depends-on): Add ansi-c++-opt.
70814         (Makefile.am): Arrange to compile and run test-glob-c++.
70816         Tests of module 'fcntl-h' in C++ mode.
70817         * tests/test-fcntl-h-c++.cc: New file.
70818         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
70819         (Depends-on): Add ansi-c++-opt.
70820         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
70821         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
70822         gl_MODULE_INDICATOR.
70824         Tests of module 'dirent' in C++ mode.
70825         * tests/test-dirent-c++.cc: New file.
70826         * modules/dirent-tests (Files): Add it and tests/signature.h.
70827         (Depends-on): Add ansi-c++-opt.
70828         (Makefile.am): Arrange to compile and run test-dirent-c++.
70829         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70830         gl_MODULE_INDICATOR.
70832         New module 'ansi-c++-opt'.
70833         * modules/ansi-c++-opt: New file.
70834         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
70836         Document C++ namespace mode.
70837         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
70839         wctype: Avoid #define replacements in C++ mode.
70840         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
70841         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
70842         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
70843         In C++, define a namespaced alias symbol.
70844         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
70845         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
70846         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
70847         rule.
70849         wchar: Avoid #define replacements in C++ mode.
70850         * lib/wchar.in.h: Include c++defs.h.
70851         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
70852         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
70853         symbol.
70854         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
70855         * modules/wchar (Depends-on): Add c++defs.
70856         (Makefile.am): Update wchar.h rule.
70858         unistd: Avoid #define replacements in C++ mode.
70859         * lib/unistd.in.h: Include c++defs.h.
70860         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
70861         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
70862         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
70863         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
70864         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
70865         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
70866         symbol.
70867         (environ): Update.
70868         * modules/unistd (Depends-on): Add c++defs.
70869         (Makefile.am): Update unistd.h rule.
70871         time: Avoid #define replacements in C++ mode.
70872         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
70873         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
70874         define a namespaced alias symbol.
70875         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
70876         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
70877         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
70878         * modules/time (Depends-on): Add c++defs, warn-on-use.
70879         (Makefile.am): Update time.h rule.
70880         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70881         * modules/nanosleep (configure.ac): Likewise.
70882         * modules/strptime (configure.ac): Likewise.
70883         * modules/timegm (configure.ac): Likewise.
70885         sys_time: Avoid #define replacements in C++ mode.
70886         * lib/sys_time.in.h: Include c++defs.h.
70887         (gettimeofday): In C++, define a namespaced alias symbol.
70888         * modules/sys_time (Depends-on): Add c++defs.
70889         (Makefile.am): Update sys/time.h rule.
70891         sys_stat: Avoid #define replacements in C++ mode.
70892         * lib/sys_stat.in.h: Include c++defs.h.
70893         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
70894         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
70895         namespaced alias symbol.
70896         In C++, define a namespaced alias symbol.
70897         * modules/sys_stat (Depends-on): Add c++defs.
70898         (Makefile.am): Update sys/stat.h rule.
70900         sys_socket: Avoid #define replacements in C++ mode.
70901         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
70902         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
70903         definitions also when the system has a <sys/socket.h>.
70904         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70905         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
70906         In C++, define a namespaced alias symbol.
70907         * modules/sys_socket (Depends-on): Add c++defs.
70908         (Makefile.am): Update sys/socket.h rule.
70910         sys_select: Avoid #define replacements in C++ mode.
70911         * lib/sys_select.in.h: Include c++defs.h. Enable the function
70912         definitions also when the system has a <sys/select.h>.
70913         (select): In C++, define a namespaced alias symbol.
70914         * modules/sys_select (Depends-on): Add c++defs.
70915         (Makefile.am): Update sys/select.h rule.
70917         sys_ioctl: Avoid #define replacements in C++ mode.
70918         * lib/sys_ioctl.in.h: Include c++defs.h.
70919         (ioctl): In C++, define a namespaced alias symbol.
70920         * modules/sys_ioctl (Depends-on): Add c++defs.
70921         (Makefile.am): Update sys/ioctl.h rule.
70923         string: Avoid #define replacements in C++ mode.
70924         * lib/string.in.h: Include c++defs.h.
70925         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
70926         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
70927         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
70928         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
70929         strsignal, strverscmp): In C++, define a namespaced alias symbol.
70930         * modules/string (Depends-on): Add c++defs.
70931         (Makefile.am): Update string.h rule.
70933         stdlib: Avoid #define replacements in C++ mode.
70934         * lib/stdlib.in.h: Include c++defs.h.
70935         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
70936         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
70937         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
70938         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
70939         symbol.
70940         * modules/stdlib (Depends-on): Add c++defs.
70941         (Makefile.am): Update stdlib.h rule.
70943         stdio: Avoid #define replacements in C++ mode.
70944         * lib/stdio.in.h: Include c++defs.h.
70945         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
70946         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
70947         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
70948         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
70949         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
70950         namespaced alias symbol.
70951         * modules/stdio (Depends-on): Add c++defs.
70952         (Makefile.am): Update stdio.h rule.
70954         spawn: Avoid #define replacements in C++ mode.
70955         * lib/spawn.in.h: Include c++defs.h.
70956         (posix_spawn, posix_spawnp, posix_spawnattr_init,
70957         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
70958         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
70959         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
70960         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
70961         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
70962         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
70963         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
70964         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
70965         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
70966         In C++, define a namespaced alias symbol.
70967         * modules/spawn (Depends-on): Add c++defs.
70968         (Makefile.am): Update spawn.h rule.
70970         signal: Avoid #define replacements in C++ mode.
70971         * lib/signal.in.h: Include c++defs.h.
70972         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
70973         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
70974         namespaced alias symbol.
70975         * modules/signal (Depends-on): Add c++defs.
70976         (Makefile.am): Update signal.h rule.
70978         search: Avoid #define replacements in C++ mode.
70979         * lib/search.in.h: Include c++defs.h.
70980         (_gl_search_compar_fn, _gl_search_action_fn): New types.
70981         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
70982         symbol.
70983         * modules/search (Depends-on): Add c++defs.
70984         (Makefile.am): Update search.h rule.
70986         math: Avoid #define replacements in C++ mode.
70987         * lib/math.in.h: Include c++defs.h.
70988         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
70989         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
70990         trunc, truncl): In C++, define a namespaced alias symbol.
70991         * modules/math (Depends-on): Add c++defs.
70992         (Makefile.am): Update math.h rule.
70994         locale: Avoid #define replacements in C++ mode.
70995         * lib/locale.in.h: Include c++defs.h.
70996         (duplocale): In C++, define a namespaced alias symbol.
70997         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
70998         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
70999         * modules/locale (Depends-on): Add c++defs.
71000         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
71002         langinfo: Avoid #define replacements in C++ mode.
71003         * lib/langinfo.in.h: Include c++defs.h.
71004         (nl_langinfo): In C++, define a namespaced alias symbol.
71005         * modules/langinfo (Depends-on): Add c++defs.
71006         (Makefile.am): Update langinfo.h rule.
71008         iconv-h: Avoid #define replacements in C++ mode.
71009         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
71010         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
71011         symbol.
71012         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
71013         whenever iconv is present.
71014         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
71015         (Makefile.am): Update iconv.h rule.
71017         glob: Avoid #define replacements in C++ mode.
71018         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
71019         (_gl_glob_errfunc_fn): New type.
71020         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
71021         symbol.
71022         * modules/glob (Depends-on): Add c++defs, warn-on-use.
71023         (Makefile.am): Update glob.h rule.
71025         fcntl-h: Avoid #define replacements in C++ mode.
71026         * lib/fcntl.in.h: Include c++defs.h.
71027         (fcntl, open, openat): In C++, define a namespaced alias symbol.
71028         * modules/fcntl-h (Depends-on): Add c++defs.
71029         (Makefile.am): Update fcntl.h rule.
71031         dirent: Avoid #define replacements in C++ mode.
71032         * lib/dirent.in.h: Include c++defs.h.
71033         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
71034         namespaced alias symbol.
71035         (dirfd): Update declaration.
71036         * modules/dirent (Depends-on): Add c++defs.
71037         (Makefile.am): Update dirent.h rule.
71039         ctype: Make it usable in C++ code.
71040         * lib/ctype.in.h: Include c++defs.h.
71041         (isblank): Declare as extern "C".
71042         * modules/ctype (Depends-on): Add c++defs.
71043         (Makefile.am): Update ctype.h rule.
71045         New module 'c++defs'.
71046         * modules/c++defs: New file.
71047         * build-aux/c++defs.h: New file.
71048         Reported by John W. Eaton <jwe@gnu.org>.
71050 2010-03-07  Bruno Haible  <bruno@clisp.org>
71052         logb: Provide missing declaration for Cygwin.
71053         * lib/math.in.h (logb): New declaration.
71054         * m4/logb.m4: New file.
71055         * modules/logb (Files): Add m4/logb.m4.
71056         (Depends-on): Add math.
71057         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
71058         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
71059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
71060         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
71061         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
71063 2010-03-07  Bruno Haible  <bruno@clisp.org>
71065         Fix test-cond link error.
71066         * tests/test-cond.c: Include <stdio.h>.
71068 2010-03-07  Bruno Haible  <bruno@clisp.org>
71070         Fix test-dirent-safer link error.
71071         * modules/dirent-safer-tests (Makefile.am): Define
71072         test_dirent_safer_LDADD.
71074 2010-03-07  Bruno Haible  <bruno@clisp.org>
71076         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
71077         among default module list.
71079 2010-03-07  Bruno Haible  <bruno@clisp.org>
71081         Fix link error on platforms with GNU libiconv.
71082         * modules/unistr/u8-strcoll-tests (Makefile): Define
71083         test_u8_strcoll_LDADD.
71084         * modules/unistr/u16-strcoll-tests (Makefile): Define
71085         test_u16_strcoll_LDADD.
71086         * modules/unistr/u32-strcoll-tests (Makefile): Define
71087         test_u32_strcoll_LDADD.
71089 2010-03-07  Bruno Haible  <bruno@clisp.org>
71091         Use POSIX declarations for socket functions.
71092         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
71093         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
71094         rpl_sendto): Change declaration to match POSIX.
71095         * lib/connect.c (rpl_connect): Likewise.
71096         * lib/accept.c (rpl_accept): Likewise.
71097         * lib/bind.c (rpl_bind): Likewise.
71098         * lib/getpeername.c (rpl_getpeername): Likewise.
71099         * lib/getsockname.c (rpl_getsockname): Likewise.
71100         * lib/recv.c (rpl_recv): Likewise.
71101         * lib/send.c (rpl_send): Likewise.
71102         * lib/recvfrom.c (rpl_recvfrom): Likewise.
71103         * lib/sendto.c (rpl_sendto): Likewise.
71105 2010-03-06  Bruno Haible  <bruno@clisp.org>
71107         Clarify access, euidaccess, faccessat.
71108         * doc/posix-functions/faccessat.texi: Mention security problem under
71109         "Other problems", not "Portability problems".
71110         * doc/posix-functions/access.texi: Likewise. Mention a related security
71111         problem.
71112         * doc/glibc-functions/euidaccess.texi: Mention security problems.
71113         * lib/euidaccess.c: Add comments about platforms.
71114         * lib/unistd.in.h (access, euidaccess): Add warnings.
71116 2010-03-07  Bruno Haible  <bruno@clisp.org>
71118         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
71119         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
71120         (POSIX_SPAWN_SETSCHEDULER): Likewise.
71121         (POSIX_SPAWN_USEVFORK): Define in a way that works when
71122         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71123         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
71124         declare when POSIX_SPAWN_SETSCHEDULER is zero.
71125         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
71126         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
71127         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
71128         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
71129         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
71130         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
71131         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
71132         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
71133         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
71134         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
71135         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
71136         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
71137         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
71138         Likewise.
71139         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
71140         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
71141         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
71142         Likewise.
71143         * tests/test-spawn.c (main): Make it work when
71144         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71146 2010-03-07  Bruno Haible  <bruno@clisp.org>
71148         Fix incorrect Makefile.am generation in German locale.
71149         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71150         Execute sed command with character range in C locale.
71152 2010-03-06  Bruno Haible  <bruno@clisp.org>
71154         Tests for module 'iconv-h'.
71155         * modules/iconv-h-tests: New file.
71156         * tests/test-iconv-h.c: New file.
71158         New module 'iconv-h'.
71159         * modules/iconv-h: New file.
71160         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
71161         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
71162         (configure.ac): Remove gl_ICONV_H.
71163         (Makefile.am): Remove rule for iconv.h.
71165 2010-03-06  Bruno Haible  <bruno@clisp.org>
71167         More consistent naming of *.m4 files.
71168         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
71169         * modules/wctype (Files): Update.
71171         More consistent naming of *.m4 files.
71172         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
71173         * modules/wchar (Files): Update.
71175 2010-03-06  Jim Meyering  <meyering@redhat.com>
71177         euidaccess: relax license to LGPLv2+
71178         * modules/euidaccess (License): Relax to LGPLv2+.
71180 2010-03-06  Bruno Haible  <bruno@clisp.org>
71182         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
71183         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
71184         (Makefile.am): Augment lib_SOURCES instead.
71186 2010-03-04  Jim Meyering  <meyering@redhat.com>
71188         utime: remove obsolete module
71189         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
71190         unnecessary for years, and has been marked as obsolete for 10 months.
71191         * modules/utime: Remove file.
71192         * lib/utime.c: Remove file.
71193         * m4/utime.m4: Remove file.
71194         * m4/utimes-null.m4: Remove file.
71195         * doc/posix-functions/utime.texi (utime): Remove reference to
71196         the module.  Move the sole "fixed by gnulib" item into the
71197         "problems not fixed by Gnulib" list.
71198         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
71200 2010-03-05  Simon Josefsson  <simon@josefsson.org>
71202         * modules/exit (License): Relax license to LGPLv2+.
71203         (Status): Mark as obsolete.
71204         * NEWS: Mention deprecated 'exit' module.
71205         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
71206         of now obsolete 'exit'.
71208 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71210         fts-lgpl: remove unused module
71211         * modules/fts-lgpl: Remove.
71212         * MODULES.html.sh (func_all_modules): Adjust.
71213         * check-module (find_included_lib_files): Adjust.
71214         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
71216 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
71218         copy-acl: enhance Solaris ACL error handling
71219         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
71220         * lib/set-mode-acl.c (qset_acl): Likewise.
71222 2010-03-02  Bruno Haible  <bruno@clisp.org>
71224         spawn: Don't override the system defined values on FreeBSD 8.
71225         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
71226         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
71227         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
71228         if HAVE_POSIX_SPAWN is 1.
71229         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
71231 2010-03-01  Bruno Haible  <bruno@clisp.org>
71233         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
71234         regarding Automake.
71236 2010-02-25  Bruno Haible  <bruno@clisp.org>
71238         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
71239         * gnulib-tool: Define 'echo' as a function only before the ksh alias
71240         setting, not afterwards.
71241         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
71243 2010-02-24  Eric Blake  <eblake@redhat.com>
71245         bootstrap, git-version-gen: use timestamp
71246         * build-aux/git-version-gen (scriptversion): Force UTC.
71247         * build-aux/bootstrap (scriptversion): New variable.
71249         bootstrap: allow older git
71250         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
71251         older than 1.6.4.  Requested by the libvirt project.
71253 2010-02-23  Eric Blake  <eblake@redhat.com>
71255         warn-on-use: work with old autoconf
71256         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
71257         AS_VAR semantics of autoconf 2.60.
71258         Reported by Bruno Haible.
71260         bootstrap: improve some comments
71261         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
71262         clarification comments.
71264         gettimeofday: provide correct function
71265         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
71266         when replacement is declared, otherwise provide gettimeofday.
71267         Reported by Michael Goffioul.
71269 2010-02-23  Jim Meyering  <meyering@redhat.com>
71271         lib-ignore: relax license to "unlimited", not LGPLv2+
71272         * modules/lib-ignore (License): Relax to "unlimited".
71274 2010-02-23  Jim Meyering  <meyering@redhat.com>
71276         lib-ignore: relax license to LGPLv2+
71277         * modules/lib-ignore (License): Relax to LGPLv2+.
71279 2010-02-22  Eric Blake  <eblake@redhat.com>
71281         lseek: avoid bash 3.2 broken pipe bug
71282         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
71283         warning from bash 3.2.
71284         Reported by Ben Pfaff, with analysis from Bruno Haible.
71286         bootstrap: support non-FSF copyright holder
71287         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
71288         bootstrap.conf override of COPYRIGHT_HOLDER.
71289         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
71291         bootstrap: interoperate with gettext 0.14.1
71292         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
71294         bootstrap: allow for alternate submodule location
71295         * build-aux/bootstrap (gnulib_path): New variable; use instead of
71296         hardcoding submodule location.
71297         (gnulib_mk): Allow direct use of Makefile.am.
71299         bootstrap: use GNULIB_SRCDIR to reduce disk usage
71300         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
71301         rather than reconfiguring where the submodule points.
71303         gettimeofday: restore support for platforms that lack function
71304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
71305         replacement if function is missing.
71306         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
71307         * modules/sys_time (Makefile.am): Substitute it.
71308         * lib/sys_time.in.h (gettimeofday): Check it.
71309         Reported by Michael Goffioul.
71311 2010-02-21  Bruno Haible  <bruno@clisp.org>
71313         * lib/stdio.in.h (obstack_printf): Fix typo.
71315 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
71317         vc-list-files: use bzr ls's -R option
71318         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
71319         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
71321 2010-02-21  Jim Meyering  <meyering@redhat.com>
71323         init.sh: fix EXEEXT shims to work also for names like test-prog
71324         * tests/init.sh: Re-exec a better shell, when needed.
71325         If the current shell lacks support for posix $(...), an init.sh-using
71326         test will now try to find a shell that supports that.  If EXEEXT is
71327         nonempty, we also require support for hyphen-in-alias-name and shell
71328         substitutions like ${var#glob}.  Failure to find such a shell results
71329         in a skipped test.
71331 2010-02-21  Bruno Haible  <bruno@clisp.org>
71333         Really work around "broken pipe" error message from bash 3.2.
71334         * gnulib-tool (func_reset_sigpipe): Remove function.
71335         (echo): In bash 3.2, define to a function that uses printf.
71336         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
71338 2010-02-20  Bruno Haible  <bruno@clisp.org>
71340         Restore support for automake 1.9.6 with autoconf 2.61.
71341         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
71342         Reported by James Youngman <jay@gnu.org>.
71344 2010-02-20  Bruno Haible  <bruno@clisp.org>
71346         Improve *printf warning condition.
71347         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
71348         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
71349         and the function is overridden due to SIGPIPE emulation.
71351 2010-02-20  Bruno Haible  <bruno@clisp.org>
71353         * lib/stdio.in.h: Tweak comments.
71355 2010-02-19  Bruno Haible  <bruno@clisp.org>
71357         Make it easier to find modules. New gnulib-tool option '--find'.
71358         * gnulib-tool: New option --find.
71359         (func_usage): Document it.
71360         (func_sanitize_modulelist): New function, extracted from
71361         func_all_modules.
71362         (func_all_modules): Invoke it.
71363         * doc/gnulib-tool.texi (Which modules?): New node.
71365 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
71367         * lib/sys_select.in.h: Provide select replacement even if
71368         sys/select.h exists on a system, for Interix.
71370 2010-02-18  Jim Meyering  <meyering@redhat.com>
71372         init.sh: don't use $(...) just yet
71373         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
71374         to accommodate e.g., Solaris' /bin/sh.
71376 2010-02-17  Bruno Haible  <bruno@clisp.org>
71378         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
71379         Reported by Ludovic Courtès <ludo@gnu.org>.
71381 2010-02-16  Simon Josefsson  <simon@josefsson.org>
71383         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
71384         linking with -lintl.
71386 2010-02-17  Simon Josefsson  <simon@josefsson.org>
71388         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
71389         if not provided by the system's netdb.h.  Reported by
71390         ludo@gnu.org (Ludovic Courtès).
71392 2010-02-15  Jim Meyering  <meyering@redhat.com>
71394         init.sh: improve portability and efficiency
71395         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
71396         "dummy" in a for loop.
71397         Use '!', not '^' to select the complement of a character set used
71398         in a "case" statement.
71399         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
71400         Suggestions from Eric Blake.
71402         init.sh: automatically accommodate programs with the .exe suffix
71403         Automatically arrange for an invocation of "prog" to execute the
71404         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
71405         may use the simpler "prog", yet still work when built on a system
71406         that requires specifying the added suffix.
71407         Do this by constructing a function named "prog" that invokes
71408         "prog.exe" for each .exe file in selected directories.
71409         * tests/init.sh (find_exe_basenames_): New function.
71410         (create_exe_shim_functions_): New function.
71411         (path_prepend_): Use it.
71413         maint.mk: mark syntax-check sc_*.m rules as .PHONY
71414         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
71415         "make -t syntax-check" doesn't create a ton of sc_*.m files.
71417 2010-02-14  Jim Meyering  <meyering@redhat.com>
71419         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
71420         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
71421         (sc_prohibit_hash_pjw_without_use): New rule.
71423         maint.mk: allow the default upload destination dir to be overridden
71424         * top/maint.mk (upload_dest_dir_): Define with a default that
71425         preserves the status quo.
71426         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
71427         Reported by Peter Simons.
71429         maint.mk: prohibit inclusion of "hash.h" without_use
71430         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
71432 2010-02-10  Jim Meyering  <meyering@redhat.com>
71434         maint.mk: prohibit inclusion of "ignore-value.h" without_use
71435         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
71437 2010-02-09  Eric Blake  <ebb9@byu.net>
71438         and Bruno Haible  <bruno@clisp.org>
71440         obstack-printf-posix: ensure declaration
71441         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
71442         extracted from gl_FUNC_OBSTACK_PRINTF.
71443         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
71444         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
71445         Likewise.
71446         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
71447         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
71448         0.
71450 2010-02-08  Bruno Haible  <bruno@clisp.org>
71452         gnulib-tool: Fix typo in 2010-02-07 commit.
71453         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
71454         Reported by Eric Blake.
71456 2010-02-07  Bruno Haible  <bruno@clisp.org>
71458         gnulib-tool: Fix up caching patches.
71459         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
71460         option --no-cache. Use associative arrays when supported by the shell.
71461         (sed_comments): New variable.
71462         (modcache): Renamed from do_cache.
71463         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
71464         abbreviate unnecessarily.
71465         (have_associative): New variable.
71466         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
71467         way also for ksh and zsh.
71468         (func_init_sed_convert_to_cache_statements): New function, extracted
71469         from func_cache_lookup_module. Add support for associative arrays.
71470         Don't set the c_MODULE_cached variable here. Ignore all lines before
71471         the first field header. Remove only the final newline, not all trailing
71472         newlines. Support empty fields correctly. Limit the use of 'eval' to
71473         assignments.
71474         (func_get_description, func_get_status, func_get_notice,
71475         func_get_applicability, func_get_filelist, func_get_dependencies,
71476         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
71477         func_get_automake_snippet, func_get_include_directive,
71478         func_get_link_directive, func_get_license, func_get_maintainer):
71479         Update documentation. List the unoptimized code first. Add support for
71480         associative arrays. Limit the use of 'eval' to assignments.
71481         (func_get_applicability): Undo stylistic pessimisations.
71482         (func_get_automake_snippet, func_get_include_directive): Reduce code
71483         duplication.
71484         (func_modules_transitive_closure, func_modules_add_dummy,
71485         func_modules_notice, func_modules_to_filelist, func_add_file,
71486         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
71487         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
71488         func_create_testdir, func_create_megatestdir): Update documentation.
71490 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71492         * gnulib-tool (func_cache_lookup_module): Store the module name
71493         belonging to the cache variable; error out if two different
71494         module names map to the same cache variable name.
71496 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71498         gnulib-tool: Make caching optional.
71499         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
71500         Update matching short versions of --no-changelog.
71501         (func_usage): Update.
71502         (sed_extract_cache_prog): Renamed from ...
71503         (sed_extract_prog): ... this; revert to old extraction script.
71504         (func_get_description, func_get_status)
71505         (func_get_notice, func_get_applicability, func_get_filelist)
71506         (func_get_dependencies, func_get_autoconf_early_snippet)
71507         (func_get_autoconf_snippet, func_get_automake_snippet)
71508         (func_get_include_directive, func_get_link_directive)
71509         (func_get_license, func_get_maintainer): If $do_cache is false,
71510         use old, non-caching extraction scripts.
71511         Suggestion by Bruno Haible.
71513 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71515         gnulib-tool: cache module metainformation.
71516         * gnulib-tool (sed_extract_prog): Match newline before each
71517         header, and rewrite header to a shell variable suffix.
71518         (func_cache_var, func_cache_lookup_module): New functions,
71519         to turn a module name into a cache variable prefix, and to
71520         look up and cache module metainformation.
71521         (func_get_description, func_get_status)
71522         (func_get_notice, func_get_applicability, func_get_filelist)
71523         (func_get_dependencies, func_get_autoconf_early_snippet)
71524         (func_get_autoconf_snippet, func_get_automake_snippet)
71525         (func_get_include_directive, func_get_link_directive)
71526         (func_get_license, func_get_maintainer): Use
71527         func_cache_lookup_module.
71529 2010-02-07  Bruno Haible  <bruno@clisp.org>
71531         fnctl: Fix missing dependency.
71532         * modules/fcntl (Depends-on): Add getdtablesize.
71533         Reported by John W. Eaton <jwe@gnu.org>.
71535 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71537         Argp: fix recognition of short alias options.
71539         * lib/argp-parse.c (convert_options): Fix improper use of
71540         `|' between character values.
71541         * tests/test-argp.c (group1_option): New alias option
71542         --read (-r).
71543         (group1_parser): Special handling for 'r'.
71544         (test15): New test case.
71545         (test_fun): Add test15.
71546         * tests/test-argp-2.sh: Update expected --help and --usage
71547         outputs.
71549 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71551         * tests/test-argp.c: Fix indentation.
71553 2010-02-04  Eric Blake  <ebb9@byu.net>
71555         gettimeofday: expose type of second argument
71556         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
71557         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
71558         * tests/test-gettimeofday.c: Use it to silence warning.
71559         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
71560         the issue.
71562 2010-02-03  Jim Meyering  <meyering@redhat.com>
71564         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
71565         * lib/regcomp.c (TYPE_SIGNED): Define.
71566         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
71568         regcomp.c: avoid a new -Wshadow warning
71569         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
71571 2010-02-01  Jim Meyering  <meyering@redhat.com>
71573         removing useless parentheses in cpp #define directives
71574         For motivation, see commit c0221df4, "define STREQ(a,b)
71575         consistently, removing useless parentheses"
71576         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
71577         * lib/mountlist.c (MNT_IGNORE): Likewise.
71578         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
71580 2010-02-01  Eric Blake  <ebb9@byu.net>
71582         sys_time: use link-warning
71583         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
71584         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
71585         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
71586         * modules/sys_time (Depends-on): Add warn-on-use.
71587         (Makefile.am): Always build replacement.
71588         (configure.ac): Update substitutions.
71589         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
71590         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
71591         bother with SYS_TIME_H.
71592         * modules/gettimeofday (configure.ac): Declare indicator.
71593         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
71594         in use.
71596         closein-tests: silence compiler warning
71597         * tests/test-closein.c (main): Ignore fread result.
71598         * modules/closein-tests (Depends-on): Add ignore-value.
71600         tests: silence warning about system return
71601         * tests/test-areadlink-with-size.c (main): Ignore system result.
71602         * tests/test-areadlink.c (main): Likewise.
71603         * tests/test-areadlinkat-with-size.c (main): Likewise.
71604         * tests/test-areadlinkat.c (main): Likewise.
71605         * tests/test-canonicalize-lgpl.c (main): Likewise.
71606         * tests/test-canonicalize.c (main): Likewise.
71607         * tests/test-chown.c (main): Likewise.
71608         * tests/test-fchownat.c (main): Likewise.
71609         * tests/test-fdutimensat.c (main): Likewise.
71610         * tests/test-fstatat.c (main): Likewise.
71611         * tests/test-futimens.c (main): Likewise.
71612         * tests/test-lchown.c (main): Likewise.
71613         * tests/test-link.c (main): Likewise.
71614         * tests/test-linkat.c (main): Likewise.
71615         * tests/test-lstat.c (main): Likewise.
71616         * tests/test-mkdir.c (main): Likewise.
71617         * tests/test-mkdirat.c (main): Likewise.
71618         * tests/test-mkfifo.c (main): Likewise.
71619         * tests/test-mkfifoat.c (main): Likewise.
71620         * tests/test-mknod.c (main): Likewise.
71621         * tests/test-readlink.c (main): Likewise.
71622         * tests/test-remove.c (main): Likewise.
71623         * tests/test-rename.c (main): Likewise.
71624         * tests/test-renameat.c (main): Likewise.
71625         * tests/test-rmdir.c (main): Likewise.
71626         * tests/test-symlink.c (main): Likewise.
71627         * tests/test-symlinkat.c (main): Likewise.
71628         * tests/test-unlink.c (main): Likewise.
71629         * tests/test-unlinkat.c (main): Likewise.
71630         * tests/test-utimens.c (main): Likewise.
71631         * tests/test-utimensat.c (main): Likewise.
71632         * modules/areadlink-tests (Depends-on): Add ignore-value.
71633         * modules/areadlink-with-size-tests (Depends-on): Likewise.
71634         * modules/areadlinkat-tests (Depends-on): Likewise.
71635         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
71636         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71637         * modules/canonicalize-tests (Depends-on): Likewise.
71638         * modules/chown-tests (Depends-on): Likewise.
71639         * modules/fdutimensat-tests (Depends-on): Likewise.
71640         * modules/futimens-tests (Depends-on): Likewise.
71641         * modules/lchown-tests (Depends-on): Likewise.
71642         * modules/link-tests (Depends-on): Likewise.
71643         * modules/linkat-tests (Depends-on): Likewise.
71644         * modules/lstat-tests (Depends-on): Likewise.
71645         * modules/mkdir-tests (Depends-on): Likewise.
71646         * modules/mkfifo-tests (Depends-on): Likewise.
71647         * modules/mkfifoat-tests (Depends-on): Likewise.
71648         * modules/mknod-tests (Depends-on): Likewise.
71649         * modules/openat-tests (Depends-on): Likewise.
71650         * modules/readlink-tests (Depends-on): Likewise.
71651         * modules/remove-tests (Depends-on): Likewise.
71652         * modules/rename-tests (Depends-on): Likewise.
71653         * modules/renameat-tests (Depends-on): Likewise.
71654         * modules/rmdir-tests (Depends-on): Likewise.
71655         * modules/symlink-tests (Depends-on): Likewise.
71656         * modules/symlinkat-tests (Depends-on): Likewise.
71657         * modules/unlink-tests (Depends-on): Likewise.
71658         * modules/utimens-tests (Depends-on): Likewise.
71659         * modules/utimensat-tests (Depends-on): Likewise.
71661 2010-01-31  Bruno Haible  <bruno@clisp.org>
71663         Perform the same test for many <math.h> functions.
71664         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
71665         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
71666         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
71667         of gl_MATHFUNC.
71668         * modules/acos (configure.ac): Likewise.
71669         * modules/asin (configure.ac): Likewise.
71670         * modules/atan (configure.ac): Likewise.
71671         * modules/atan2 (configure.ac): Likewise.
71672         * modules/cbrt (configure.ac): Likewise.
71673         * modules/copysign (configure.ac): Likewise.
71674         * modules/cos (configure.ac): Likewise.
71675         * modules/cosh (configure.ac): Likewise.
71676         * modules/erf (configure.ac): Likewise.
71677         * modules/erfc (configure.ac): Likewise.
71678         * modules/exp (configure.ac): Likewise.
71679         * modules/fmod (configure.ac): Likewise.
71680         * modules/hypot (configure.ac): Likewise.
71681         * modules/j0 (configure.ac): Likewise.
71682         * modules/j1 (configure.ac): Likewise.
71683         * modules/jn (configure.ac): Likewise.
71684         * modules/lgamma (configure.ac): Likewise.
71685         * modules/log (configure.ac): Likewise.
71686         * modules/log10 (configure.ac): Likewise.
71687         * modules/log1p (configure.ac): Likewise.
71688         * modules/pow (configure.ac): Likewise.
71689         * modules/remainder (configure.ac): Likewise.
71690         * modules/sin (configure.ac): Likewise.
71691         * modules/sinh (configure.ac): Likewise.
71692         * modules/tan (configure.ac): Likewise.
71693         * modules/tanh (configure.ac): Likewise.
71694         * modules/y0 (configure.ac): Likewise.
71695         * modules/y1 (configure.ac): Likewise.
71696         * modules/yn (configure.ac): Likewise.
71697         Suggested by Paolo Bonzini.
71699 2010-01-31  Bruno Haible  <bruno@clisp.org>
71701         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
71703 2010-01-31  Bruno Haible  <bruno@clisp.org>
71705         Work around getdelim() bug on FreeBSD 8.0.
71706         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
71707         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
71708         not work.
71709         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
71710         is 1.
71711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
71712         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
71713         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
71714         a non-zero size.
71715         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
71717 2010-01-31  Bruno Haible  <bruno@clisp.org>
71719         Work around getline() bug on FreeBSD 8.0.
71720         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
71721         and a non-zero size.
71722         * tests/test-getline.c (main): Likewise.
71723         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
71724         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
71726 2010-01-28  Eric Blake  <ebb9@byu.net>
71728         regex: fix build failure
71729         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
71730         platforms.
71732 2010-01-28  Jim Meyering  <meyering@redhat.com>
71734         regex: do not ignore memory allocation failure
71735         * lib/regex_internal.c (create_cd_newstate): Detect
71736         re_node_set_init_copy failure.   Extracted from glibc commit
71737         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71739         regex: sync more white-space changes from libc
71740         * lib/regex_internal.c: White-space only changes.
71741         * lib/regexec.c: Likewise.
71743         regex: add many uses of __attribute_warn_unused_result__
71744         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
71745         * lib/regexec.c: Likewise.
71746         Extracted from a messy glibc commit.
71748         regcomp.c: spelling and merge-artifact from glibc
71749         * lib/regcomp.c: Merge remainder of glibc's
71750         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71752         regcomp.c: sync white-space changes from glibc
71753         * lib/regcomp.c: Merge to accommodate white space
71754         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71756         regcomp.c: do not ignore internal return values
71757         * lib/regcomp.c: Do not ignore internal return values.
71758         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
71759         but without its white-space changes and spelling fixes.
71761         regex_internal.h: define __attribute_warn_unused_result__
71762         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
71764         maint: add a syntax-check rule to check for vulnerable Makefile.in
71765         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
71767 2010-01-27  Jim Meyering  <meyering@redhat.com>
71769         ncftpput-ftp: clean up spaces
71770         * build-aux/ncftpput-ftp: Make Copyright line consistent.
71771         Remove trailing blanks.
71773 2010-01-27  Simon Josefsson  <simon@josefsson.org>
71775         * build-aux/git-version-gen: Fix copyright statement.
71776         * build-aux/gnupload: Likewise.
71777         * tests/test-arcfour.c: Likewise.
71778         * tests/test-arctwo.c: Likewise.
71779         * tests/test-count-one-bits.c: Likewise.
71780         * tests/test-crc.c: Likewise.
71781         * tests/test-des.c: Likewise.
71782         * tests/test-gc-arcfour.c: Likewise.
71783         * tests/test-gc-arctwo.c: Likewise.
71784         * tests/test-gc-des.c: Likewise.
71785         * tests/test-gc-hmac-md5.c: Likewise.
71786         * tests/test-gc-hmac-sha1.c: Likewise.
71787         * tests/test-gc-md2.c: Likewise.
71788         * tests/test-gc-md4.c: Likewise.
71789         * tests/test-gc-md5.c: Likewise.
71790         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71791         * tests/test-gc-rijndael.c: Likewise.
71792         * tests/test-gc-sha1.c: Likewise.
71793         * tests/test-gc.c: Likewise.
71794         * tests/test-gethostname.c: Likewise.
71795         * tests/test-gettimeofday.c: Likewise.
71796         * tests/test-hash.c: Likewise.
71797         * tests/test-hmac-md5.c: Likewise.
71798         * tests/test-hmac-sha1.c: Likewise.
71799         * tests/test-md2.c: Likewise.
71800         * tests/test-md4.c: Likewise.
71801         * tests/test-md5.c: Likewise.
71802         * tests/test-memchr.c: Likewise.
71803         * tests/test-memchr2.c: Likewise.
71804         * tests/test-memcmp.c: Likewise.
71805         * tests/test-memmem.c: Likewise.
71806         * tests/test-memrchr.c: Likewise.
71807         * tests/test-rawmemchr.c: Likewise.
71808         * tests/test-read-file.c: Likewise.
71809         * tests/test-rijndael.c: Likewise.
71810         * tests/test-sockets.c: Likewise.
71811         * tests/test-strchrnul.c: Likewise.
71812         * tests/test-strstr.c: Likewise.
71813         * tests/test-strtod.c: Likewise.
71814         * build-aux/ncftpput-ftp: Likewise.
71816 2010-01-26  Eric Blake  <ebb9@byu.net>
71818         ignore-value: update recommended header name
71819         * modules/ignore-value (Include): Only use <> for headers that
71820         exist in glibc.
71822 2010-01-26  Jim Meyering  <meyering@redhat.com>
71824         test-userspec.c: avoid compiler warnings
71825         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
71826         and "initialization discards qualifiers..." warnings.
71827         Put the first "uid" in its own scope, and make char* members "const".
71829 2010-01-25  Bruno Haible  <bruno@clisp.org>
71831         gnulib-tool: Make warning diagnostics consistent.
71832         * gnulib-tool (func_warning): New function.
71833         Use it everywhere where gnulib-tool produces output to stderr and it is
71834         not a fatal error.
71836 2010-01-25  Bruno Haible  <bruno@clisp.org>
71838         Fix test dependencies.
71839         * modules/xstrtol-tests (Depends-on): Add inttypes.
71840         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
71842 2010-01-25  Pádraig Brady  <P@draigBrady.com>
71844         syntax-check: detect incorrect boolean macro values in config.h
71845         * modules/maintainer-makefile (configure.ac): Parameterize the location
71846         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
71847         The logic is from Eric Blake and the location indicated by Jim Meyering.
71848         Note the more natural CONFIG_HEADER name is prohibited by automake
71849         for backwards compatibility reasons.
71850         * top/maint.mk (sc_Wundef_boolean): New rule.
71852 2010-01-25  Jim Meyering  <meyering@redhat.com>
71854         bootstrap: detect MacOS 10.6's shasum, too
71855         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
71856         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
71858 2010-01-23  Jim Meyering  <meyering@redhat.com>
71860         xstrtoll: new module
71861         * modules/xstrtoll: New file.
71862         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
71863         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
71864         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
71865         ./configure fails if you use this module and lack "long long".
71866         * modules/xstrtoll-tests: New module.
71867         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
71868         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
71869         new init.sh-based test framework.
71871 2010-01-24  Bruno Haible  <bruno@clisp.org>
71873         Tests for module 'yn'.
71874         * modules/yn-tests: New file.
71875         * tests/test-yn.c: New file.
71877         Tests for module 'y1'.
71878         * modules/y1-tests: New file.
71879         * tests/test-y1.c: New file.
71881         Tests for module 'y0'.
71882         * modules/y0-tests: New file.
71883         * tests/test-y0.c: New file.
71885         Tests for module 'tanh'.
71886         * modules/tanh-tests: New file.
71887         * tests/test-tanh.c: New file.
71889         Tests for module 'tan'.
71890         * modules/tan-tests: New file.
71891         * tests/test-tan.c: New file.
71893         Tests for module 'sqrt'.
71894         * modules/sqrt-tests: New file.
71895         * tests/test-sqrt.c: New file.
71897         Tests for module 'sinh'.
71898         * modules/sinh-tests: New file.
71899         * tests/test-sinh.c: New file.
71901         Tests for module 'sin'.
71902         * modules/sin-tests: New file.
71903         * tests/test-sin.c: New file.
71905         Tests for module 'rint'.
71906         * modules/rint-tests: New file.
71907         * tests/test-rint.c: New file.
71909         Tests for module 'remainder'.
71910         * modules/remainder-tests: New file.
71911         * tests/test-remainder.c: New file.
71913         Tests for module 'pow'.
71914         * modules/pow-tests: New file.
71915         * tests/test-pow.c: New file.
71917         Tests for module 'nextafter'.
71918         * modules/nextafter-tests: New file.
71919         * tests/test-nextafter.c: New file.
71921         Tests for module 'modf'.
71922         * modules/modf-tests: New file.
71923         * tests/test-modf.c: New file.
71925         Tests for module 'logb'.
71926         * modules/logb-tests: New file.
71927         * tests/test-logb.c: New file.
71929         Tests for module 'log1p'.
71930         * modules/log1p-tests: New file.
71931         * tests/test-log1p.c: New file.
71933         Tests for module 'log10'.
71934         * modules/log10-tests: New file.
71935         * tests/test-log10.c: New file.
71937         Tests for module 'log'.
71938         * modules/log-tests: New file.
71939         * tests/test-log.c: New file.
71941         Tests for module 'lgamma'.
71942         * modules/lgamma-tests: New file.
71943         * tests/test-lgamma.c: New file.
71945         Tests for module 'ldexp'.
71946         * modules/ldexp-tests: New file.
71947         * tests/test-ldexp.c: New file.
71949         Tests for module 'jn'.
71950         * modules/jn-tests: New file.
71951         * tests/test-jn.c: New file.
71953         Tests for module 'j1'.
71954         * modules/j1-tests: New file.
71955         * tests/test-j1.c: New file.
71957         Tests for module 'j0'.
71958         * modules/j0-tests: New file.
71959         * tests/test-j0.c: New file.
71961         Tests for module 'hypot'.
71962         * modules/hypot-tests: New file.
71963         * tests/test-hypot.c: New file.
71965         Tests for module 'fmod'.
71966         * modules/fmod-tests: New file.
71967         * tests/test-fmod.c: New file.
71969         Tests for module 'fabs'.
71970         * modules/fabs-tests: New file.
71971         * tests/test-fabs.c: New file.
71973         Tests for module 'exp'.
71974         * modules/exp-tests: New file.
71975         * tests/test-exp.c: New file.
71977         Tests for module 'erfc'.
71978         * modules/erfc-tests: New file.
71979         * tests/test-erfc.c: New file.
71981         Tests for module 'erf'.
71982         * modules/erf-tests: New file.
71983         * tests/test-erf.c: New file.
71985         Tests for module 'cosh'.
71986         * modules/cosh-tests: New file.
71987         * tests/test-cosh.c: New file.
71989         Tests for module 'cos'.
71990         * modules/cos-tests: New file.
71991         * tests/test-cos.c: New file.
71993         Tests for module 'copysign'.
71994         * modules/copysign-tests: New file.
71995         * tests/test-copysign.c: New file.
71997         Tests for module 'cbrt'.
71998         * modules/cbrt-tests: New file.
71999         * tests/test-cbrt.c: New file.
72001         Tests for module 'atan2'.
72002         * modules/atan2-tests: New file.
72003         * tests/test-atan2.c: New file.
72005         Tests for module 'atan'.
72006         * modules/atan-tests: New file.
72007         * tests/test-atan.c: New file.
72009         Tests for module 'asin'.
72010         * modules/asin-tests: New file.
72011         * tests/test-asin.c: New file.
72013         Tests for module 'acos'.
72014         * modules/acos-tests: New file.
72015         * tests/test-acos.c: New file.
72017 2010-01-24  Bruno Haible  <bruno@clisp.org>
72019         Fix tests for common <math.h> functions.
72020         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
72021         code snippet that references the function pointer, rather than merely
72022         calling the function. Substitute the FUNC_LIBM variable.
72023         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
72024         * modules/acos (configure.ac): Likewise.
72025         * modules/asin (configure.ac): Likewise.
72026         * modules/atan (configure.ac): Likewise.
72027         * modules/atan2 (configure.ac): Likewise.
72028         * modules/cbrt (configure.ac): Likewise.
72029         * modules/copysign (configure.ac): Likewise.
72030         * modules/cos (configure.ac): Likewise.
72031         * modules/cosh (configure.ac): Likewise.
72032         * modules/erf (configure.ac): Likewise.
72033         * modules/erfc (configure.ac): Likewise.
72034         * modules/exp (configure.ac): Likewise.
72035         * modules/fabs (configure.ac): Likewise.
72036         * modules/fmod (configure.ac): Likewise.
72037         * modules/hypot (configure.ac): Likewise.
72038         * modules/j0 (configure.ac): Likewise.
72039         * modules/j1 (configure.ac): Likewise.
72040         * modules/jn (configure.ac): Likewise.
72041         * modules/ldexp (configure.ac): Likewise.
72042         * modules/lgamma (configure.ac): Likewise.
72043         * modules/log (configure.ac): Likewise.
72044         * modules/log10 (configure.ac): Likewise.
72045         * modules/log1p (configure.ac): Likewise.
72046         * modules/logb (configure.ac): Likewise.
72047         * modules/modf (configure.ac): Likewise.
72048         * modules/nextafter (configure.ac): Likewise.
72049         * modules/pow (configure.ac): Likewise.
72050         * modules/remainder (configure.ac): Likewise.
72051         * modules/rint (configure.ac): Likewise.
72052         * modules/sin (configure.ac): Likewise.
72053         * modules/sinh (configure.ac): Likewise.
72054         * modules/tan (configure.ac): Likewise.
72055         * modules/tanh (configure.ac): Likewise.
72056         * modules/y0 (configure.ac): Likewise.
72057         * modules/y1 (configure.ac): Likewise.
72058         * modules/yn (configure.ac): Likewise.
72060 2010-01-24  Bruno Haible  <bruno@clisp.org>
72062         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
72063         * tests/test-acosl.c (x): New variable.
72064         (main): Store argument in x and fetch it from x.
72065         * tests/test-asinl.c (x): New variable.
72066         (main): Store argument in x and fetch it from x.
72067         * tests/test-atanl.c (x): New variable.
72068         (main): Store argument in x and fetch it from x.
72069         * tests/test-cosl.c (x): New variable.
72070         (main): Store argument in x and fetch it from x.
72071         * tests/test-expl.c (x): New variable.
72072         (main): Store argument in x and fetch it from x.
72073         * tests/test-logl.c (x): New variable.
72074         (main): Store argument in x and fetch it from x.
72075         * tests/test-sinl.c (x): New variable.
72076         (main): Store argument in x and fetch it from x.
72077         * tests/test-sqrtl.c (x): New variable.
72078         (main): Store argument in x and fetch it from x.
72079         * tests/test-tanl.c (x): New variable.
72080         (main): Store argument in x and fetch it from x.
72082 2010-01-24  Bruno Haible  <bruno@clisp.org>
72084         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
72085         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
72086         assignments to the initial TESTS_ENVIRONMENT.
72087         * doc/gnulib.texi (Unit test modules): Document it.
72088         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
72089         TESTS_ENVIRONMENT.
72090         * modules/btowc-tests (Makefile.am): Likewise.
72091         * modules/c-stack-tests (Makefile.am): Likewise.
72092         * modules/c-strcase-tests (Makefile.am): Likewise.
72093         * modules/copy-file-tests (Makefile.am): Likewise.
72094         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
72095         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
72096         * modules/mbrtowc-tests (Makefile.am): Likewise.
72097         * modules/mbscasecmp-tests (Makefile.am): Likewise.
72098         * modules/mbscasestr-tests (Makefile.am): Likewise.
72099         * modules/mbschr-tests (Makefile.am): Likewise.
72100         * modules/mbscspn-tests (Makefile.am): Likewise.
72101         * modules/mbsinit-tests (Makefile.am): Likewise.
72102         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
72103         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
72104         * modules/mbspbrk-tests (Makefile.am): Likewise.
72105         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
72106         * modules/mbsrchr-tests (Makefile.am): Likewise.
72107         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
72108         * modules/mbsspn-tests (Makefile.am): Likewise.
72109         * modules/mbsstr-tests (Makefile.am): Likewise.
72110         * modules/nl_langinfo-tests (Makefile.am): Likewise.
72111         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
72112         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
72113         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
72114         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
72115         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
72116         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
72117         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
72118         * modules/wcrtomb-tests (Makefile.am): Likewise.
72119         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
72120         * modules/wcsrtombs-tests (Makefile.am): Likewise.
72121         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
72122         assignments from TESTS_ENVIRONMENT.
72123         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
72124         augmentation.
72125         * modules/argp-version-etc-tests (Makefile.am): Likewise.
72126         * modules/atexit-tests (Makefile.am): Likewise.
72127         * modules/binary-io-tests (Makefile.am): Likewise.
72128         * modules/closein-tests (Makefile.am): Likewise.
72129         * modules/dprintf-posix-tests (Makefile.am): Likewise.
72130         * modules/exclude-tests (Makefile.am): Likewise.
72131         * modules/fflush-tests (Makefile.am): Likewise.
72132         * modules/fpending-tests (Makefile.am): Likewise.
72133         * modules/fprintf-posix-tests (Makefile.am): Likewise.
72134         * modules/freadahead-tests (Makefile.am): Likewise.
72135         * modules/freadptr-tests (Makefile.am): Likewise.
72136         * modules/freadseek-tests (Makefile.am): Likewise.
72137         * modules/fseek-tests (Makefile.am): Likewise.
72138         * modules/fseeko-tests (Makefile.am): Likewise.
72139         * modules/ftell-tests (Makefile.am): Likewise.
72140         * modules/ftello-tests (Makefile.am): Likewise.
72141         * modules/idpriv-drop-tests (Makefile.am): Likewise.
72142         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
72143         * modules/lseek-tests (Makefile.am): Likewise.
72144         * modules/parse-duration-tests (Makefile.am): Likewise.
72145         * modules/perror-tests (Makefile.am): Likewise.
72146         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
72147         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
72148         * modules/pipe-tests (Makefile.am): Likewise.
72149         * modules/pread-tests (Makefile.am): Likewise.
72150         * modules/printf-posix-tests (Makefile.am): Likewise.
72151         * modules/select-tests (Makefile.am): Likewise.
72152         * modules/sigpipe-tests (Makefile.am): Likewise.
72153         * modules/tsearch-tests (Makefile.am): Likewise.
72154         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
72155         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
72156         * modules/uniname/uniname-tests (Makefile.am): Likewise.
72157         * modules/uniwidth/width-tests (Makefile.am): Likewise.
72158         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
72159         * modules/version-etc-tests (Makefile.am): Likewise.
72160         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
72161         * modules/vprintf-posix-tests (Makefile.am): Likewise.
72162         * modules/xalloc-die-tests (Makefile.am): Likewise.
72163         * modules/xprintf-posix-tests (Makefile.am): Likewise.
72164         * modules/xstrtoimax-tests (Makefile.am): Likewise.
72165         * modules/xstrtol-tests (Makefile.am): Likewise.
72166         * modules/xstrtoumax-tests (Makefile.am): Likewise.
72167         * modules/yesno-tests (Makefile.am): Likewise.
72168         Suggested by Jim Meyering.
72170 2010-01-24  Bruno Haible  <bruno@clisp.org>
72172         More documentation.
72173         * doc/gnulib.texi (Writing modules): New chapter.
72174         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
72175         the new chapter.
72177 2010-01-24  Jim Meyering  <meyering@redhat.com>
72179         maint.mk: do not prepend "./" after filtering
72180         * top/maint.mk (_prepend_srcdir_prefix): New variable
72181         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
72182         "./" when $(srcdir) is ".".
72184         define STREQ(a,b) consistently, removing useless parentheses
72185         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
72186         since the only risk is that "a" or "b" contains an unparenthesized
72187         comma, but if either did that, STREQ would have 3 or more arguments.
72188         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
72189         * lib/fts.c (STREQ): Remove unnecessary parentheses.
72190         * lib/hash-triple.c (STREQ): Likewise.
72191         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
72192         * lib/getugroups.c (STREQ): Likewise.
72194 2010-01-23  Jim Meyering  <meyering@redhat.com>
72196         maint.mk: fix syntax-check in a non-srcdir build directory
72197         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
72198         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
72200 2010-01-22  Jim Meyering  <meyering@redhat.com>
72202         userspec: add unit tests
72203         * tests/test-userspec.c: New file.
72204         * modules/userspec-tests: Likewise.
72206 2010-01-21  Jim Meyering  <meyering@redhat.com>
72208         maint.mk: handle source file names containing "." robustly
72209         * top/maint.mk (_dot_escaped_srcdir): Define.
72210         (VC_LIST): Use it in LHS of sed substitution.
72212 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
72214         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
72215         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
72216         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
72217         from a non-srcdir build.
72219 2010-01-20  Eric Blake  <ebb9@byu.net>
72221         warn-on-use: use instead of link-warning
72222         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
72223         * modules/unistd (Depends-on, Makefile.am): Likewise.
72224         * modules/arpa_inet (Depends-on): Replace link-warning with
72225         warn-on-use.
72226         (Makefile.am): Update rules accordingly.
72227         * modules/ctype (Depends-on, Makefile.am): Likewise.
72228         * modules/dirent (Depends-on, Makefile.am): Likewise.
72229         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
72230         * modules/inttypes (Depends-on, Makefile.am): Likewise.
72231         * modules/langinfo (Depends-on, Makefile.am): Likewise.
72232         * modules/locale (Depends-on, Makefile.am): Likewise.
72233         * modules/math (Depends-on, Makefile.am): Likewise.
72234         * modules/search (Depends-on, Makefile.am): Likewise.
72235         * modules/signal (Depends-on, Makefile.am): Likewise.
72236         * modules/spawn (Depends-on, Makefile.am): Likewise.
72237         * modules/stdlib (Depends-on, Makefile.am): Likewise.
72238         * modules/string (Depends-on, Makefile.am): Likewise.
72239         * modules/strings (Depends-on, Makefile.am): Likewise.
72240         * modules/sys_file (Depends-on, Makefile.am): Likewise.
72241         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
72242         * modules/sys_select (Depends-on, Makefile.am): Likewise.
72243         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
72244         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
72245         * modules/sys_times (Depends-on, Makefile.am): Likewise.
72246         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
72247         * modules/wchar (Depends-on, Makefile.am): Likewise.
72248         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
72249         should be poisoned.
72250         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
72251         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
72252         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
72253         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72254         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72255         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
72256         * m4/math_h.m4 (gl_MATH_H): Likewise.
72257         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72258         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
72259         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
72260         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
72261         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
72262         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
72263         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
72264         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
72265         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
72266         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72267         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
72268         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
72269         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72270         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
72271         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
72272         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
72273         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
72274         GL_LINK_WARNING.
72275         * lib/ctype.in.h: Likewise.
72276         * lib/dirent.in.h: Likewise.
72277         * lib/fcntl.in.h: Likewise.
72278         * lib/inttypes.in.h: Likewise.
72279         * lib/langinfo.in.h: Likewise.
72280         * lib/locale.in.h: Likewise.
72281         * lib/math.in.h: Likewise.
72282         * lib/search.in.h: Likewise.
72283         * lib/signal.in.h: Likewise.
72284         * lib/spawn.in.h: Likewise.
72285         * lib/stdio.in.h: Likewise.
72286         * lib/stdlib.in.h: Likewise.
72287         * lib/string.in.h: Likewise.
72288         * lib/strings.in.h: Likewise.
72289         * lib/sys_file.in.h: Likewise.
72290         * lib/sys_ioctl.in.h: Likewise.
72291         * lib/sys_select.in.h: Likewise.
72292         * lib/sys_socket.in.h: Likewise.
72293         * lib/sys_stat.in.h: Likewise.
72294         * lib/sys_times.in.h: Likewise.
72295         * lib/sys_utsname.in.h: Likewise.
72296         * lib/unistd.in.h: Likewise.
72297         * lib/wchar.in.h: Likewise.
72299 2010-01-20  Bruno Haible  <bruno@clisp.org>
72301         Avoid duplicate -lm.
72302         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
72303         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
72304         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
72305         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
72306         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
72307         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
72308         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
72309         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
72310         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
72311         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
72312         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
72313         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
72314         Reported by Paolo Bonzini.
72316 2010-01-19  Bruno Haible  <bruno@clisp.org>
72318         langinfo, nl_langinfo: Relicense under LGPLv2+.
72319         * modules/langinfo (License): Change to LGPLv2+.
72320         * modules/nl_langinfo (License): Likewise.
72321         Patch by David Lutterkort <lutter@redhat.com>.
72323 2010-01-19  Bruno Haible  <bruno@clisp.org>
72325         Avoid compilation error with cc on OSF/1 5.1.
72326         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
72327         statement, not before.
72328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72330 2010-01-18  Bruno Haible  <bruno@clisp.org>
72332         Avoid a link error due to the __printf__ symbol.
72333         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
72334         and 2.6.x.
72335         (__format__, __printf__): Remove definitions.
72336         * lib/argp-fmtstream.h: Likewise.
72337         * lib/argp.h: Likewise.
72338         * lib/error.h: Likewise.
72339         * lib/vasnprintf.h: Likewise.
72340         * lib/xprintf.h: Likewise.
72341         * lib/xvasprintf.h: Likewise.
72342         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72344 2010-01-18  Bruno Haible  <bruno@clisp.org>
72346         Tests for module 'tanl'.
72347         * modules/tanl-tests: New file.
72348         * tests/test-tanl.c: New file.
72350         Tests for module 'sqrtl'.
72351         * modules/sqrtl-tests: New file.
72352         * tests/test-sqrtl.c: New file.
72354         Tests for module 'sinl'.
72355         * modules/sinl-tests: New file.
72356         * tests/test-sinl.c: New file.
72358         Tests for module 'logl'.
72359         * modules/logl-tests: New file.
72360         * tests/test-logl.c: New file.
72362         Tests for module 'expl'.
72363         * modules/expl-tests: New file.
72364         * tests/test-expl.c: New file.
72366         Tests for module 'cosl'.
72367         * modules/cosl-tests: New file.
72368         * tests/test-cosl.c: New file.
72370         Tests for module 'atanl'.
72371         * modules/atanl-tests: New file.
72372         * tests/test-atanl.c: New file.
72374         Tests for module 'asinl'.
72375         * modules/asinl-tests: New file.
72376         * tests/test-asinl.c: New file.
72378         Tests for module 'acosl'.
72379         * modules/acosl-tests: New file.
72380         * tests/test-acosl.c: New file.
72382         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72383         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
72384         tanl): Use the standard gnulib idiom.
72385         * lib/cosl.c: Don't include trigl.c and sincosl.c.
72386         * lib/sinl.c: Likewise.
72387         * lib/tanl.c: Don't include trigl.c.
72388         (kernel_tanl): Make static.
72389         * lib/sincosl.c: Include trigl.h first.
72390         * lib/trigl.c: Likewise.
72391         * m4/acosl.m4: New file.
72392         * m4/asinl.m4: New file.
72393         * m4/atanl.m4: New file.
72394         * m4/cosl.m4: New file.
72395         * m4/expl.m4: New file.
72396         * m4/logl.m4: New file.
72397         * m4/sinl.m4: New file.
72398         * m4/sqrtl.m4: New file.
72399         * m4/tanl.m4: New file.
72400         * m4/mathl.m4: Remove file.
72401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
72402         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72403         Don't initialize GNULIB_MATHL.
72404         * modules/acosl: New file.
72405         * modules/asinl: New file.
72406         * modules/atanl: New file.
72407         * modules/cosl: New file.
72408         * modules/expl: New file.
72409         * modules/logl: New file.
72410         * modules/sinl: New file.
72411         * modules/sqrtl: New file.
72412         * modules/tanl: New file.
72413         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
72414         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
72415         substitute GNULIB_MATHL.
72416         * modules/mathl: Rewritten.
72417         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
72418         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
72419         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
72420         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
72421         * doc/posix-functions/expl.texi: Mention the 'expl' module.
72422         * doc/posix-functions/logl.texi: Mention the 'logl' module.
72423         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
72424         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
72425         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
72427 2010-01-18  Bruno Haible  <bruno@clisp.org>
72429         sqrt: Make gl_FUNC_SQRT requirable.
72430         * m4/sqrt.m4: New file.
72431         * modules/sqrt (Files): Add it.
72432         (configure.ac): Invoke gl_FUNC_SQRT.
72434 2010-01-18  Bruno Haible  <bruno@clisp.org>
72436         New modules for common <math.h> functions.
72437         * m4/mathfunc.m4: New file.
72438         * modules/acos: New file.
72439         * modules/asin: New file.
72440         * modules/atan: New file.
72441         * modules/atan2: New file.
72442         * modules/cbrt: New file.
72443         * modules/copysign: New file.
72444         * modules/cos: New file.
72445         * modules/cosh: New file.
72446         * modules/erf: New file.
72447         * modules/erfc: New file.
72448         * modules/exp: New file.
72449         * modules/fabs: New file.
72450         * modules/fmod: New file.
72451         * modules/hypot: New file.
72452         * modules/j0: New file.
72453         * modules/j1: New file.
72454         * modules/jn: New file.
72455         * modules/ldexp: New file.
72456         * modules/lgamma: New file.
72457         * modules/log: New file.
72458         * modules/log10: New file.
72459         * modules/log1p: New file.
72460         * modules/logb: New file.
72461         * modules/modf: New file.
72462         * modules/nextafter: New file.
72463         * modules/pow: New file.
72464         * modules/remainder: New file.
72465         * modules/rint: New file.
72466         * modules/sin: New file.
72467         * modules/sinh: New file.
72468         * modules/sqrt: New file.
72469         * modules/tan: New file.
72470         * modules/tanh: New file.
72471         * modules/y0: New file.
72472         * modules/y1: New file.
72473         * modules/yn: New file.
72474         * doc/posix-functions/acos.texi: Mention the 'acos' module.
72475         * doc/posix-functions/asin.texi: Mention the 'asin' module.
72476         * doc/posix-functions/atan.texi: Mention the 'atan' module.
72477         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
72478         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
72479         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
72480         * doc/posix-functions/cos.texi: Mention the 'cos' module.
72481         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
72482         * doc/posix-functions/erf.texi: Mention the 'erf' module.
72483         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
72484         * doc/posix-functions/exp.texi: Mention the 'exp' module.
72485         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
72486         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
72487         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
72488         * doc/posix-functions/j0.texi: Mention the 'j0' module.
72489         * doc/posix-functions/j1.texi: Mention the 'j1' module.
72490         * doc/posix-functions/jn.texi: Mention the 'jn' module.
72491         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
72492         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
72493         * doc/posix-functions/log.texi: Mention the 'log' module.
72494         * doc/posix-functions/log10.texi: Mention the 'log10' module.
72495         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
72496         * doc/posix-functions/logb.texi: Mention the 'logb' module.
72497         * doc/posix-functions/modf.texi: Mention the 'modf' module.
72498         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
72499         * doc/posix-functions/pow.texi: Mention the 'pow' module.
72500         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
72501         * doc/posix-functions/rint.texi: Mention the 'rint' module.
72502         * doc/posix-functions/sin.texi: Mention the 'sin' module.
72503         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
72504         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
72505         * doc/posix-functions/tan.texi: Mention the 'tan' module.
72506         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
72507         * doc/posix-functions/y0.texi: Mention the 'y0' module.
72508         * doc/posix-functions/y1.texi: Mention the 'y1' module.
72509         * doc/posix-functions/yn.texi: Mention the 'yn' module.
72511 2010-01-18  Jim Meyering  <meyering@redhat.com>
72513         ignore-value: relax license to LGPLv2+
72514         * modules/ignore-value (License): Relax to LGPLv2+.
72516         getdate: don't leak when TZ contains two or more '"'s
72517         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
72518         double quote in TZ after the first one.
72520         readtokens: do not leak internal token_lengths buffer
72521         * lib/readtokens.c (readtokens): Free the local, lengths,
72522         when the supplied "token_lengths" parameter is NULL.
72524 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72526         Fix a couple of missing LIBTHREAD link failures on AIX.
72527         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
72528         $(LIBTHREAD).
72529         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
72531         Link test-poll against INET_PTON_LIB.
72532         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
72533         for inet_pton on Solaris 10.
72535 2010-01-17  Bruno Haible  <bruno@clisp.org>
72537         unistdio/*-sprintf: Fix typo in module description.
72538         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
72539         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
72540         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
72541         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
72542         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
72543         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
72544         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
72545         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72547 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72549         gnulib-tool: fix filelist for AIX, HP-UX ksh.
72550         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
72551         variables in shell case patterns, for AIX and HP-UX ksh.
72553         Split large sed scripts, for HP-UX sed.
72554         * modules/stdio: Split sed scripts around 50 sed commands,
72555         to avoid HP-UX limit of 99 commands, in the near future.
72556         * modules/string: Likewise.
72557         * modules/unistd: Likewise.
72559         gnulib-tool: avoid writing in the current directory.
72560         * gnulib-tool (func_emit_lib_Makefile_am)
72561         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
72562         not in the current directory, so concurrent gnulib-tool
72563         instances do not interfere.
72565 2010-01-16  Jim Meyering  <meyering@redhat.com>
72567         doc: update users.txt
72568         * users.txt: Add grep.
72569         (diffutils, gzip): Update URLs.
72571 2010-01-12  Bruno Haible  <bruno@clisp.org>
72573         posix_spawn: Avoid test failure on Cygwin.
72574         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
72575         characters.
72576         Reported by Simon Josefsson.
72578 2010-01-12  Bruno Haible  <bruno@clisp.org>
72580         * tests/test-cond.c (main): When skipping the test, show the reason.
72582 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72584         * lib/striconv.c (str_cd_iconv): Avoid if before free.
72586 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72588         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
72589         VC_LIST_ALWAYS_EXCLUDE_REGEX.
72591 2010-01-12  Eric Blake  <ebb9@byu.net>
72593         build: guarantee AS_VAR_IF
72594         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
72595         (gl_AS_VAR_IF): Move...
72596         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
72597         Reported by Simon Josefsson.
72599 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72601         * lib/stdio.in.h: Fix typo.
72603 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72605         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
72606         libgpg-error.
72608 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72610         * tests/test-xalloc-die.sh: Use $EXEEXT.
72612 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72613             Bruno Haible  <bruno@clisp.org>
72615         getlogin, getlogin_r: Avoid test failure.
72616         * tests/test-getlogin.c: Include <stdio.h>.
72617         (main): Skip the test when the function fails because stdin is not a
72618         tty.
72619         * tests/test-getlogin_r.c: Include <stdio.h>.
72620         (main): Skip the test when the function fails because stdin is not a
72621         tty.
72623 2010-01-11  Eric Blake  <ebb9@byu.net>
72625         tests: avoid more large file warnings
72626         * tests/test-fflush.c: Avoid warning about ftell use.
72627         * tests/test-fseek.c: Avoid warning about fseek use.
72629 2010-01-10  Bruno Haible  <bruno@clisp.org>
72631         nproc: Work better on Linux when /proc and /sys are not mounted.
72632         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
72633         as lower bound when, on glibc/Linux systems,
72634         sysconf (_SC_NPROCESSORS_CONF) returns 1.
72635         Suggested by Pádraig Brady <P@draigbrady.com>.
72636         Reported by Dmitry V. Levin <ldv@altlinux.org>.
72638         nproc: Refactor.
72639         * lib/nproc.c (num_processors_via_affinity_mask): New function,
72640         extracted from num_processors.
72641         (num_processors): Call it.
72643 2010-01-11  Jim Meyering  <meyering@redhat.com>
72645         utimecmp: avoid new warning from upcoming gcc-4.5.0
72646         * lib/utimecmp.c (BILLION): Define using #define rather than an
72647         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
72649 2010-01-11  Eric Blake  <ebb9@byu.net>
72651         math: add portability warnings for classification macros
72652         * modules/math (Depends-on): Add warn-on-use.
72653         (Makefile.am): Provide new substitutions.
72654         * m4/math_h.m4 (gl_MATH_H): Require inline.
72655         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
72656         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
72657         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
72658         implement warnings.
72660         unistd: warn on use of environ without module
72661         * modules/unistd (Depends-on): Add warn-on-use.
72662         (Makefile.am): Provide new substitutions.
72663         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
72664         * lib/unistd.in.h (environ): Wrap with a warning helper function.
72666         stdio: warn on suspicious uses
72667         * modules/stdio (Depends-on): Add warn-on-use.
72668         (Makefile.am): Provide new substitutions.
72669         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
72670         fseeko.
72671         * lib/stdio.in.h (gets): Always warn on use.
72672         (fseek, ftell): Adjust when warnings are issued, and honor
72673         _GL_NO_LARGE_FILES as a way to silence the warning.
72674         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
72675         any warning about large file offsets.
72676         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
72677         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
72678         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
72679         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
72680         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
72681         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
72682         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
72683         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
72685         warn-on-use: new module
72686         * modules/warn-on-use: New file.
72687         * build-aux/warn-on-use.h: Likewise.
72688         * m4/warn-on-use.m4: Likewise.
72689         * MODULES.html.sh (Support for building): Mention it.
72691 2010-01-10  Bruno Haible  <bruno@clisp.org>
72693         Tests for module 'unistr/u32-strdup'.
72694         * modules/unistr/u32-strdup-tests: New file.
72695         * tests/unistr/test-u32-strdup.c: New file.
72697         Tests for module 'unistr/u16-strdup'.
72698         * modules/unistr/u16-strdup-tests: New file.
72699         * tests/unistr/test-u16-strdup.c: New file.
72701         Tests for module 'unistr/u8-strdup'.
72702         * modules/unistr/u8-strdup-tests: New file.
72703         * tests/unistr/test-u8-strdup.c: New file.
72704         * tests/unistr/test-strdup.h: New file.
72706         Tests for module 'unistr/u32-strncmp'.
72707         * modules/unistr/u32-strncmp-tests: New file.
72708         * tests/unistr/test-u32-strncmp.c: New file.
72710         Tests for module 'unistr/u16-strncmp'.
72711         * modules/unistr/u16-strncmp-tests: New file.
72712         * tests/unistr/test-u16-strncmp.c: New file.
72714         Tests for module 'unistr/u8-strncmp'.
72715         * modules/unistr/u8-strncmp-tests: New file.
72716         * tests/unistr/test-u8-strncmp.c: New file.
72717         * tests/unistr/test-strncmp.h: New file.
72719         Tests for module 'unistr/u32-strcoll'.
72720         * modules/unistr/u32-strcoll-tests: New file.
72721         * tests/unistr/test-u32-strcoll.c: New file.
72723         Tests for module 'unistr/u16-strcoll'.
72724         * modules/unistr/u16-strcoll-tests: New file.
72725         * tests/unistr/test-u16-strcoll.c: New file.
72727         Tests for module 'unistr/u8-strcoll'.
72728         * modules/unistr/u8-strcoll-tests: New file.
72729         * tests/unistr/test-u8-strcoll.c: New file.
72731         Tests for module 'unistr/u32-strcmp'.
72732         * modules/unistr/u32-strcmp-tests: New file.
72733         * tests/unistr/test-u32-strcmp.c: New file.
72734         * tests/unistr/test-u32-strcmp.h: New file.
72736         Tests for module 'unistr/u16-strcmp'.
72737         * modules/unistr/u16-strcmp-tests: New file.
72738         * tests/unistr/test-u16-strcmp.c: New file.
72739         * tests/unistr/test-u16-strcmp.h: New file.
72741         Tests for module 'unistr/u8-strcmp'.
72742         * modules/unistr/u8-strcmp-tests: New file.
72743         * tests/unistr/test-u8-strcmp.c: New file.
72744         * tests/unistr/test-u8-strcmp.h: New file.
72745         * tests/unistr/test-strcmp.h: New file.
72747         Tests for module 'unistr/u32-strncat'.
72748         * modules/unistr/u32-strncat-tests: New file.
72749         * tests/unistr/test-u32-strncat.c: New file.
72751         Tests for module 'unistr/u16-strncat'.
72752         * modules/unistr/u16-strncat-tests: New file.
72753         * tests/unistr/test-u16-strncat.c: New file.
72755         Tests for module 'unistr/u8-strncat'.
72756         * modules/unistr/u8-strncat-tests: New file.
72757         * tests/unistr/test-u8-strncat.c: New file.
72758         * tests/unistr/test-strncat.h: New file.
72760         Tests for module 'unistr/u32-strcat'.
72761         * modules/unistr/u32-strcat-tests: New file.
72762         * tests/unistr/test-u32-strcat.c: New file.
72764         Tests for module 'unistr/u16-strcat'.
72765         * modules/unistr/u16-strcat-tests: New file.
72766         * tests/unistr/test-u16-strcat.c: New file.
72768         Tests for module 'unistr/u8-strcat'.
72769         * modules/unistr/u8-strcat-tests: New file.
72770         * tests/unistr/test-u8-strcat.c: New file.
72771         * tests/unistr/test-strcat.h: New file.
72773         Tests for module 'unistr/u32-stpncpy'.
72774         * modules/unistr/u32-stpncpy-tests: New file.
72775         * tests/unistr/test-u32-stpncpy.c: New file.
72777         Tests for module 'unistr/u16-stpncpy'.
72778         * modules/unistr/u16-stpncpy-tests: New file.
72779         * tests/unistr/test-u16-stpncpy.c: New file.
72781         Tests for module 'unistr/u8-stpncpy'.
72782         * modules/unistr/u8-stpncpy-tests: New file.
72783         * tests/unistr/test-u8-stpncpy.c: New file.
72784         * tests/unistr/test-stpncpy.h: New file.
72786         Tests for module 'unistr/u32-strncpy'.
72787         * modules/unistr/u32-strncpy-tests: New file.
72788         * tests/unistr/test-u32-strncpy.c: New file.
72790         Tests for module 'unistr/u16-strncpy'.
72791         * modules/unistr/u16-strncpy-tests: New file.
72792         * tests/unistr/test-u16-strncpy.c: New file.
72794         Tests for module 'unistr/u8-strncpy'.
72795         * modules/unistr/u8-strncpy-tests: New file.
72796         * tests/unistr/test-u8-strncpy.c: New file.
72797         * tests/unistr/test-strncpy.h: New file.
72799         Tests for module 'unistr/u32-stpcpy'.
72800         * modules/unistr/u32-stpcpy-tests: New file.
72801         * tests/unistr/test-u32-stpcpy.c: New file.
72803         Tests for module 'unistr/u16-stpcpy'.
72804         * modules/unistr/u16-stpcpy-tests: New file.
72805         * tests/unistr/test-u16-stpcpy.c: New file.
72807         Tests for module 'unistr/u8-stpcpy'.
72808         * modules/unistr/u8-stpcpy-tests: New file.
72809         * tests/unistr/test-u8-stpcpy.c: New file.
72810         * tests/unistr/test-stpcpy.h: New file.
72812         Tests for module 'unistr/u32-strcpy'.
72813         * modules/unistr/u32-strcpy-tests: New file.
72814         * tests/unistr/test-u32-strcpy.c: New file.
72816         Tests for module 'unistr/u16-strcpy'.
72817         * modules/unistr/u16-strcpy-tests: New file.
72818         * tests/unistr/test-u16-strcpy.c: New file.
72820         Tests for module 'unistr/u8-strcpy'.
72821         * modules/unistr/u8-strcpy-tests: New file.
72822         * tests/unistr/test-u8-strcpy.c: New file.
72823         * tests/unistr/test-strcpy.h: New file.
72825         Tests for module 'unistr/u32-strnlen'.
72826         * modules/unistr/u32-strnlen-tests: New file.
72827         * tests/unistr/test-u32-strnlen.c: New file.
72829         Tests for module 'unistr/u16-strnlen'.
72830         * modules/unistr/u16-strnlen-tests: New file.
72831         * tests/unistr/test-u16-strnlen.c: New file.
72833         Tests for module 'unistr/u8-strnlen'.
72834         * modules/unistr/u8-strnlen-tests: New file.
72835         * tests/unistr/test-u8-strnlen.c: New file.
72836         * tests/unistr/test-strnlen.h: New file.
72838         Tests for module 'unistr/u32-strlen'.
72839         * modules/unistr/u32-strlen-tests: New file.
72840         * tests/unistr/test-u32-strlen.c: New file.
72842         Tests for module 'unistr/u16-strlen'.
72843         * modules/unistr/u16-strlen-tests: New file.
72844         * tests/unistr/test-u16-strlen.c: New file.
72846         Tests for module 'unistr/u8-strlen'.
72847         * modules/unistr/u8-strlen-tests: New file.
72848         * tests/unistr/test-u8-strlen.c: New file.
72850         Tests for module 'unistr/u32-prev'.
72851         * modules/unistr/u32-prev-tests: New file.
72852         * tests/unistr/test-u32-prev.c: New file.
72854         Tests for module 'unistr/u16-prev'.
72855         * modules/unistr/u16-prev-tests: New file.
72856         * tests/unistr/test-u16-prev.c: New file.
72858         Tests for module 'unistr/u8-prev'.
72859         * modules/unistr/u8-prev-tests: New file.
72860         * tests/unistr/test-u8-prev.c: New file.
72862         Tests for module 'unistr/u32-next'.
72863         * modules/unistr/u32-next-tests: New file.
72864         * tests/unistr/test-u32-next.c: New file.
72866         Tests for module 'unistr/u16-next'.
72867         * modules/unistr/u16-next-tests: New file.
72868         * tests/unistr/test-u16-next.c: New file.
72870         Tests for module 'unistr/u8-next'.
72871         * modules/unistr/u8-next-tests: New file.
72872         * tests/unistr/test-u8-next.c: New file.
72874         Tests for module 'unistr/u32-strmbtouc'.
72875         * modules/unistr/u32-strmbtouc-tests: New file.
72876         * tests/unistr/test-u32-strmbtouc.c: New file.
72878         Tests for module 'unistr/u16-strmbtouc'.
72879         * modules/unistr/u16-strmbtouc-tests: New file.
72880         * tests/unistr/test-u16-strmbtouc.c: New file.
72882         Tests for module 'unistr/u8-strmbtouc'.
72883         * modules/unistr/u8-strmbtouc-tests: New file.
72884         * tests/unistr/test-u8-strmbtouc.c: New file.
72886         Tests for module 'unistr/u32-strmblen'.
72887         * modules/unistr/u32-strmblen-tests: New file.
72888         * tests/unistr/test-u32-strmblen.c: New file.
72890         Tests for module 'unistr/u16-strmblen'.
72891         * modules/unistr/u16-strmblen-tests: New file.
72892         * tests/unistr/test-u16-strmblen.c: New file.
72894         Tests for module 'unistr/u8-strmblen'.
72895         * modules/unistr/u8-strmblen-tests: New file.
72896         * tests/unistr/test-u8-strmblen.c: New file.
72898         Tests for module 'unistr/u32-cpy-alloc'.
72899         * modules/unistr/u32-cpy-alloc-tests: New file.
72900         * tests/unistr/test-u32-cpy-alloc.c: New file.
72902         Tests for module 'unistr/u16-cpy-alloc'.
72903         * modules/unistr/u16-cpy-alloc-tests: New file.
72904         * tests/unistr/test-u16-cpy-alloc.c: New file.
72906         Tests for module 'unistr/u8-cpy-alloc'.
72907         * modules/unistr/u8-cpy-alloc-tests: New file.
72908         * tests/unistr/test-u8-cpy-alloc.c: New file.
72909         * tests/unistr/test-cpy-alloc.h: New file.
72911         Tests for module 'unistr/u32-mbsnlen'.
72912         * modules/unistr/u32-mbsnlen-tests: New file.
72913         * tests/unistr/test-u32-mbsnlen.c: New file.
72915         Tests for module 'unistr/u16-mbsnlen'.
72916         * modules/unistr/u16-mbsnlen-tests: New file.
72917         * tests/unistr/test-u16-mbsnlen.c: New file.
72919         Tests for module 'unistr/u8-mbsnlen'.
72920         * modules/unistr/u8-mbsnlen-tests: New file.
72921         * tests/unistr/test-u8-mbsnlen.c: New file.
72923         Tests for module 'unistr/u32-chr'.
72924         * modules/unistr/u32-chr-tests: New file.
72925         * tests/unistr/test-u32-chr.c: New file.
72927         Tests for module 'unistr/u16-chr'.
72928         * modules/unistr/u16-chr-tests: New file.
72929         * tests/unistr/test-u16-chr.c: New file.
72931         Tests for module 'unistr/u8-chr'.
72932         * modules/unistr/u8-chr-tests: New file.
72933         * tests/unistr/test-u8-chr.c: New file.
72934         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
72936         Tests for module 'unistr/u32-cmp2'.
72937         * modules/unistr/u32-cmp2-tests: New file.
72938         * tests/unistr/test-u32-cmp2.c: New file.
72940         Tests for module 'unistr/u16-cmp2'.
72941         * modules/unistr/u16-cmp2-tests: New file.
72942         * tests/unistr/test-u16-cmp2.c: New file.
72944         Tests for module 'unistr/u8-cmp2'.
72945         * modules/unistr/u8-cmp2-tests: New file.
72946         * tests/unistr/test-u8-cmp2.c: New file.
72947         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
72949         Tests for module 'unistr/u32-cmp'.
72950         * modules/unistr/u32-cmp-tests: New file.
72951         * tests/unistr/test-u32-cmp.c: New file.
72953         Tests for module 'unistr/u16-cmp'.
72954         * modules/unistr/u16-cmp-tests: New file.
72955         * tests/unistr/test-u16-cmp.c: New file.
72957         Tests for module 'unistr/u8-cmp'.
72958         * modules/unistr/u8-cmp-tests: New file.
72959         * tests/unistr/test-u8-cmp.c: New file.
72960         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
72962         Tests for module 'unistr/u32-set'.
72963         * modules/unistr/u32-set-tests: New file.
72964         * tests/unistr/test-u32-set.c: New file.
72966         Tests for module 'unistr/u16-set'.
72967         * modules/unistr/u16-set-tests: New file.
72968         * tests/unistr/test-u16-set.c: New file.
72970         Tests for module 'unistr/u8-set'.
72971         * modules/unistr/u8-set-tests: New file.
72972         * tests/unistr/test-u8-set.c: New file.
72973         * tests/unistr/test-set.h: New file.
72975         Tests for module 'unistr/u32-move'.
72976         * modules/unistr/u32-move-tests: New file.
72977         * tests/unistr/test-u32-move.c: New file.
72979         Tests for module 'unistr/u16-move'.
72980         * modules/unistr/u16-move-tests: New file.
72981         * tests/unistr/test-u16-move.c: New file.
72983         Tests for module 'unistr/u8-move'.
72984         * modules/unistr/u8-move-tests: New file.
72985         * tests/unistr/test-u8-move.c: New file.
72986         * tests/unistr/test-move.h: New file.
72988         Tests for module 'unistr/u32-cpy'.
72989         * modules/unistr/u32-cpy-tests: New file.
72990         * tests/unistr/test-u32-cpy.c: New file.
72992         Tests for module 'unistr/u16-cpy'.
72993         * modules/unistr/u16-cpy-tests: New file.
72994         * tests/unistr/test-u16-cpy.c: New file.
72996         Tests for module 'unistr/u8-cpy'.
72997         * modules/unistr/u8-cpy-tests: New file.
72998         * tests/unistr/test-u8-cpy.c: New file.
72999         * tests/unistr/test-cpy.h: New file.
73001 2010-01-09  Bruno Haible  <bruno@clisp.org>
73003         Tests for module 'unistr/u32-uctomb'.
73004         * modules/unistr/u32-uctomb-tests: New file.
73005         * tests/unistr/test-u32-uctomb.c: New file.
73007         Tests for module 'unistr/u16-uctomb'.
73008         * modules/unistr/u16-uctomb-tests: New file.
73009         * tests/unistr/test-u16-uctomb.c: New file.
73011         Tests for module 'unistr/u8-uctomb'.
73012         * modules/unistr/u8-uctomb-tests: New file.
73013         * tests/unistr/test-u8-uctomb.c: New file.
73015         Tests for module 'unistr/u32-mbtoucr'.
73016         * modules/unistr/u32-mbtoucr-tests: New file.
73017         * tests/unistr/test-u32-mbtoucr.c: New file.
73019         Tests for module 'unistr/u16-mbtoucr'.
73020         * modules/unistr/u16-mbtoucr-tests: New file.
73021         * tests/unistr/test-u16-mbtoucr.c: New file.
73023         Tests for module 'unistr/u8-mbtoucr'.
73024         * modules/unistr/u8-mbtoucr-tests: New file.
73025         * tests/unistr/test-u8-mbtoucr.c: New file.
73027         Tests for module 'unistr/u32-mbtouc'.
73028         * modules/unistr/u32-mbtouc-tests: New file.
73029         * tests/unistr/test-u32-mbtouc.c: New file.
73031         Tests for module 'unistr/u16-mbtouc'.
73032         * modules/unistr/u16-mbtouc-tests: New file.
73033         * tests/unistr/test-u16-mbtouc.c: New file.
73035         Tests for module 'unistr/u8-mbtouc'.
73036         * modules/unistr/u8-mbtouc-tests: New file.
73037         * tests/unistr/test-u8-mbtouc.c: New file.
73039         Tests for module 'unistr/u32-mbtouc-unsafe'.
73040         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
73041         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
73042         * tests/unistr/test-u32-mbtouc.h: New file.
73044         Tests for module 'unistr/u16-mbtouc-unsafe'.
73045         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
73046         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
73047         * tests/unistr/test-u16-mbtouc.h: New file.
73049         Tests for module 'unistr/u8-mbtouc-unsafe'.
73050         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
73051         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
73052         * tests/unistr/test-u8-mbtouc.h: New file.
73054         Tests for module 'unistr/u32-mblen'.
73055         * modules/unistr/u32-mblen-tests: New file.
73056         * tests/unistr/test-u32-mblen.c: New file.
73058         Tests for module 'unistr/u16-mblen'.
73059         * modules/unistr/u16-mblen-tests: New file.
73060         * tests/unistr/test-u16-mblen.c: New file.
73062         Tests for module 'unistr/u8-mblen'.
73063         * modules/unistr/u8-mblen-tests: New file.
73064         * tests/unistr/test-u8-mblen.c: New file.
73066         Tests for module 'unistr/u32-to-u16'.
73067         * modules/unistr/u32-to-u16-tests: New file.
73068         * tests/unistr/test-u32-to-u16.c: New file.
73070         Tests for module 'unistr/u32-to-u8'.
73071         * modules/unistr/u32-to-u8-tests: New file.
73072         * tests/unistr/test-u32-to-u8.c: New file.
73074         Tests for module 'unistr/u16-to-u32'.
73075         * modules/unistr/u16-to-u32-tests: New file.
73076         * tests/unistr/test-u16-to-u32.c: New file.
73078         Tests for module 'unistr/u16-to-u8'.
73079         * modules/unistr/u16-to-u8-tests: New file.
73080         * tests/unistr/test-u16-to-u8.c: New file.
73082         Tests for module 'unistr/u8-to-u32'.
73083         * modules/unistr/u8-to-u32-tests: New file.
73084         * tests/unistr/test-u8-to-u32.c: New file.
73086         Tests for module 'unistr/u8-to-u16'.
73087         * modules/unistr/u8-to-u16-tests: New file.
73088         * tests/unistr/test-u8-to-u16.c: New file.
73090         Tests for module 'unistr/u32-check'.
73091         * modules/unistr/u32-check-tests: New file.
73092         * tests/unistr/test-u32-check.c: New file.
73094         Tests for module 'unistr/u16-check'.
73095         * modules/unistr/u16-check-tests: New file.
73096         * tests/unistr/test-u16-check.c: New file.
73098         Tests for module 'unistr/u8-check'.
73099         * modules/unistr/u8-check-tests: New file.
73100         * tests/unistr/test-u8-check.c: New file.
73102         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
73103         (category_equals): New function.
73104         (main): Add more tests.
73105         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
73107         * tests/unictype/test-bidi_byname.c (main): Add more tests.
73109 2010-01-10  Bruno Haible  <bruno@clisp.org>
73111         unistr/u*-strcoll: Try harder to distinguish different strings.
73112         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
73113         compare s1 and s2 to see if they are different.
73115 2010-01-10  Bruno Haible  <bruno@clisp.org>
73117         unistr/u*-stpncpy: Fix the return value.
73118         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
73119         description of the return value consistent with stpncpy in glibc.
73120         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
73121         written non-NUL unit.
73123 2010-01-10  Bruno Haible  <bruno@clisp.org>
73125         unistr/u*-next: Add missing dependencies.
73126         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
73127         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
73128         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
73130 2010-01-10  Bruno Haible  <bruno@clisp.org>
73132         unistr/u8-mbsnlen: Fix return value for incomplete character.
73133         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
73134         u8_mblen.
73135         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
73136         Remove unistr/u8-mblen.
73137         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
73138         u16_mblen.
73139         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
73140         Remove unistr/u16-mblen.
73142 2010-01-10  Bruno Haible  <bruno@clisp.org>
73144         wchar: Fix compilation error when <wchar.h> is used from coreutils.
73145         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
73146         Reported by Brian Gough <bjg@gnu.org> and
73147         Chris Clayton <chris2553@googlemail.com> via
73148         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
73150 2010-01-09  Bruno Haible  <bruno@clisp.org>
73152         unistr/u16-to-u32: Reject invalid input.
73153         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
73154         u16_mbtouc.
73155         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
73156         Remove unistr/u16-mbtouc.
73158         unistr/u16-to-u8: Reject invalid input.
73159         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
73160         u16_mbtouc.
73161         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
73162         Remove unistr/u16-mbtouc.
73164         unistr/u8-to-u32: Reject invalid input.
73165         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
73166         u8_mbtouc.
73167         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
73168         Remove unistr/u8-mbtouc.
73170         unistr/u8-to-u16: Reject invalid input.
73171         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
73172         u8_mbtouc.
73173         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
73174         Remove unistr/u8-mbtouc.
73176 2010-01-09  Bruno Haible  <bruno@clisp.org>
73178         Tests for module 'getlogin'.
73179         * modules/getlogin-tests: New file.
73180         * tests/test-getlogin.c: New file.
73182         New module 'getlogin'.
73183         * lib/unistd.in.h (getlogin): New declaration.
73184         * lib/getlogin.c: New file.
73185         * m4/getlogin.m4: New file.
73186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
73187         HAVE_GETLOGIN.
73188         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
73189         HAVE_GETLOGIN.
73190         * modules/getlogin: New file.
73191         * doc/posix-functions/getlogin.texi: Mention the new module.
73192         Reported by John W. Eaton <jwe@gnu.org>.
73194 2010-01-09  Bruno Haible  <bruno@clisp.org>
73196         getlogin_r: Support for native Windows.
73197         * lib/getlogin_r.c: Include <windows.h>
73198         (getlogin_r): Implement for native Windows.
73199         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
73200         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
73201         via John W. Eaton <jwe@gnu.org>.
73203 2010-01-09  Bruno Haible  <bruno@clisp.org>
73205         getlogin_r: Small fixes.
73206         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
73207         succeeds.
73208         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
73209         before testing whether getlogin_r is declared. No need to set
73210         HAVE_DECL_GETLOGIN_R to 1.
73211         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
73213 2010-01-09  Bruno Haible  <bruno@clisp.org>
73215         * lib/unistd.in.h (getlogin_r): Add comment.
73217 2010-01-09  Bruno Haible  <bruno@clisp.org>
73219         Tests for module 'getlogin_r'.
73220         * modules/getlogin_r-tests: New file.
73221         * tests/test-getlogin_r.c: New file.
73223 2010-01-09  Jim Meyering  <meyering@redhat.com>
73225         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
73226         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
73227         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
73229 2010-01-08  Simon Josefsson  <simon@josefsson.org>
73231         * lib/dup2.c (rpl_dup2): Improve comment.
73233 2010-01-08  Eric Blake  <ebb9@byu.net>
73235         maint.mk: allow packages to add makefile @@ exceptions
73236         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
73237         (sc_makefile_check): Rename...
73238         (sc_makefile_at_at_check): ...to this, and use hook.
73240         dup2: work around mingw bug
73241         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
73242         Reported by Simon Josefsson.
73244 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
73246         glob: Fix C++ compilation.
73247         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
73248         C++.
73250 2010-01-07  Bruno Haible  <bruno@clisp.org>
73252         Fix indentation of wctype.in.h, broken since 2007-01-06.
73253         * lib/wctype.in.h: Fix indentation of preprocessor directives.
73255 2010-01-07  Bruno Haible  <bruno@clisp.org>
73257         mbslen: Avoid collision with system function.
73258         * lib/string.in.h [MirBSD]: Include <wchar.h>.
73259         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
73260         * m4/mbslen.m4: New file.
73261         * modules/mbslen (Files): Add it.
73262         (configure.ac): Invoke gl_MBSLEN.
73263         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
73264         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
73265         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
73266         via Ian Beckwith <ianb@erislabs.net>.
73268 2010-01-07  Bruno Haible  <bruno@clisp.org>
73270         dirent: Document the last fix.
73271         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
73273 2010-01-07  Bruno Haible  <bruno@clisp.org>
73275         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
73276         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
73277         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
73278         va_list are defined.
73279         * doc/posix-headers/stdio.texi: Document the bug of missing types.
73280         Reported by Eric Blake.
73282 2010-01-07  Bruno Haible  <bruno@clisp.org>
73284         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
73285         * modules/xlist (Depends-on): Add 'list',
73286         * modules/xoset (Depends-on): Add 'oset'.
73287         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73289 2010-01-07  Bruno Haible  <bruno@clisp.org>
73291         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
73292         * doc/posix-functions/strncasecmp.texi: Likewise.
73294 2010-01-07  Bruno Haible  <bruno@clisp.org>
73296         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
73298 2010-01-07  John W. Eaton  <jwe@octave.org>
73300         wctype: allow C++ use
73301         * lib/wctype.in.h: Add extern "C" block for C++.
73303 2010-01-06  Eric Blake  <ebb9@byu.net>
73305         maint.mk: detect incorrect GFDL usage
73306         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
73308 2010-01-06  Jim Meyering  <meyering@redhat.com>
73309         and Eric Blake  <ebb9@byu.net>
73311         maint.mk: ignore multi-line copyright in NEWS
73312         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
73314 2010-01-06  Eric Blake  <ebb9@byu.net>
73316         select: add missing dependency
73317         * modules/select-tests (Depends-on): Move sockets dependency...
73318         * modules/select (Depends-on): ...here.
73319         Reported by Ian Beckwith.
73321         doc: regenerate INSTALL
73322         * doc/INSTALL: Reflect recent autoconf update.
73323         * doc/INSTALL.ISO: Likewise.
73324         * doc/INSTALL.UTF-8: Likewise.
73326         pread: fix compilation on glibc
73327         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
73328         Reported by Ralf Wildenhues.
73330         dirent: fix test failure
73331         * lib/dirent.in.h (includes): Guarantee ino_t.
73332         Reported by Ralf Wildenhues.
73334 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
73336         linkat, renameat: avoid bad free
73337         * lib/at-func2.c (at_func2): Fix typo.
73338         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
73340 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73342         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
73343         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
73344         to avoid failure of symlink test later.
73346 2010-01-06  Eric Blake  <ebb9@byu.net>
73348         stdio, unistd: guarantee ssize_t
73349         * lib/unistd.in.h (includes): Ensure that types required by POSIX
73350         2008 are exposed when needed.
73351         * lib/stdio.in.h (includes): Likewise.
73352         Reported by Ralf Wildenhues.
73354 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
73356         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
73357         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
73358         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
73360 2010-01-06  Jim Meyering  <meyering@redhat.com>
73362         readtokens: this module *does* require xalloc.h
73363         It uses only functions that were omitted by the old syntax-check rule.
73364         * lib/readtokens.c: Include "xalloc.h" once again.
73365         * modules/readtokens (Depends-on): Add xalloc.
73366         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
73368 2010-01-05  Eric Blake  <ebb9@byu.net>
73370         maint: support 'make announcement' from a VPATH build
73371         * top/maint.mk (announcement): Look for correct NEWS file.
73373 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
73375         utimens (fdutimens): ignore a negative FD, per contract
73376         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
73377         when we have a valid file descriptor.  Otherwise, using a brand
73378         new glibc (with just-patched futimens that now fails with EBADF)
73379         would cause this function to fail with ENOSYS.
73380         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
73381         See also http://bugzilla.redhat.com/552320.
73383 2010-01-05  Eric Blake  <ebb9@byu.net>
73385         strcase: document what it provides
73386         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
73387         gnulib module.
73388         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
73389         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
73391 2010-01-05  Jim Meyering  <meyering@redhat.com>
73393         maint: remove useless inclusions of "xalloc.h"
73394         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
73395         * lib/readtokens.c: Likewise.
73396         * lib/same.c: Likewise.
73397         * modules/getloadavg (Depends-on): Remove xalloc.
73398         * modules/readtokens: Likewise.
73399         * modules/same: Likewise.
73401         maint.mk: include 4 more function names in alloca.h-checking regexp
73402         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
73403         regexp.  Before, we would give a false-positive (saying alloca.h
73404         is included unnecessarily) when the only uses involved omitted symbols.
73406         xalloc.h: use consistent formatting
73407         * lib/xalloc.h: Move declarations to start in the first column.
73409 2010-01-05  Eric Blake  <ebb9@byu.net>
73411         mkdir: avoid xalloc
73412         * lib/mkdir.c (includes): Drop unused header.
73413         Reported by John W. Eaton.
73415 2010-01-04  Jim Meyering  <meyering@redhat.com>
73417         nl_langinfo: avoid configure-time syntax error
73418         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
73419         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
73420         the empty string.  Don't let that provoke a shell syntax error.
73422         regcomp, regexec, fnmatch: avoid array bounds read error
73423         * lib/regcomp.c (build_equiv_class): From glibc:
73424         Use only the low 24 bits of a findidx return value as an index
73425         into the weights array.  Patch by Ulrich Drepper:
73426         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
73427         * lib/regexec.c (check_node_accept_bytes): Likewise.
73428         * lib/fnmatch_loop.c (FCT): Likewise.
73430         regcomp: skip collseq lookup when there are no rules
73431         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
73432         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
73434         regcomp: recognize ill-formed { } expressions
73435         * lib/regcomp.c (parse_dup_op): From glibc:
73436         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
73438         regcomp: fix typo in comment
73439         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
73440         s/satisfy/satisfies/.
73442         regcomp: sync from glibc: remove dead store
73443         * lib/regcomp.c (duplicate_node_closure): Remove useless
73444         search_duplicated_node call and dead store.
73446         regcomp: sync from glibc; always use nl_langinfo
73447         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
73448         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
73449         * modules/regex (Depends-on): Add nl_langinfo.
73451 2010-01-04  Eric Blake  <ebb9@byu.net>
73453         fdopendir: fix configure test
73454         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
73456 2010-01-01  Bruno Haible  <bruno@clisp.org>
73458         wchar: Remove unused configure check.
73459         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
73461 2010-01-01  Eric Blake  <ebb9@byu.net>
73463         headers: make check of system header explicit
73464         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
73465         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
73466         ourselves.
73467         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73468         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73469         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
73470         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
73471         internals.
73472         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
73473         missing.
73474         Suggested by Bruno Haible.
73476 2010-01-01  Jim Meyering  <meyering@redhat.com>
73478         ChangeLog: tweak to eliminate unnecessary copyright line
73479         * ChangeLog: Remove a copyright line that was mistakenly updated
73480         by today's update-copyright run.  Reported by Eric Blake.
73482         test-update-copyright: don't let envvar setting cause test failure
73483         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73485 2010-01-01  Bruno Haible  <bruno@clisp.org>
73487         localename: Avoid gcc warning.
73488         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
73489         function if it is not used.
73491 2010-01-01  Jim Meyering  <meyering@redhat.com>
73493         update nearly all FSF copyright year lists to include 2010
73494         Use the same procedure as for 2009, outlined in
73495         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
73497         version-etc: set COPYRIGHT_YEAR to 2010
73498         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
73500 2009-12-31  Eric Blake  <ebb9@byu.net>
73502         doc: correct availability of cygwin 1.5.x getopt
73503         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
73504         variables.
73505         * doc/posix-functions/opterr.texi (opterr): Likewise.
73506         * doc/posix-functions/optind.texi (optind): Likewise.
73507         * doc/posix-functions/optopt.texi (optopt): Likewise.
73508         * doc/posix-functions/tzname.texi (tzname): Likewise.
73510         openat: update maintainer
73511         * modules/openat (Maintainer): Add myself.
73513         utimens: avoid shadowing warning
73514         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
73515         buffers into one, to avoid shadowing, as well as avoiding a
73516         redundant stat.
73517         Reported by Jim Meyering.
73519         test-dup2: avoid compiler warning
73520         * tests/test-dup2.c (is_inheritable): Only define if used.
73522 2010-01-01  Bruno Haible  <bruno@clisp.org>
73524         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
73525         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
73526         defined, use wctomb instead of wcrtomb.
73528 2010-01-01  Bruno Haible  <bruno@clisp.org>
73530         iconv: Reject native Solaris iconv.
73531         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
73532         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
73534 2009-12-31  Bruno Haible  <bruno@clisp.org>
73536         * tests/test-signal.c (main): Remove test of 'SIG'.
73538 2009-12-31  Bruno Haible  <bruno@clisp.org>
73540         spawn: Fix incomplete fix.
73541         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73542         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73543         warnings for GNULIB_POSIXCHECK again.
73544         Reported by Eric Blake.
73546 2009-12-31  Bruno Haible  <bruno@clisp.org>
73548         Avoid namespace pollution on glibc systems.
73549         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
73550         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
73551         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
73552         glibc systems.
73554 2009-12-31  Bruno Haible  <bruno@clisp.org>
73556         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
73557         (gl_REPLACE_WCHAR_H): Turn into a no-op.
73558         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
73559         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
73560         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
73561         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
73562         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
73564 2009-12-31  Bruno Haible  <bruno@clisp.org>
73566         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
73567         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
73568         afterwards.
73570 2009-12-31  Bruno Haible  <bruno@clisp.org>
73572         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
73573         SYS_UTSNAME_H.
73575 2009-12-31  Bruno Haible  <bruno@clisp.org>
73577         spawn: Fix misapplied patch.
73578         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73579         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73580         warnings for GNULIB_POSIXCHECK.
73582 2009-12-31  Bruno Haible  <bruno@clisp.org>
73584         times: Update after sys_times changed.
73585         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
73586         * modules/times (Files): Add it.
73587         (configure.ac): Invoke gl_FUNC_TIMES.
73589 2009-12-31  Bruno Haible  <bruno@clisp.org>
73591         Use AC_C_INLINE where necessary.
73592         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
73593         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73595         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
73596         * m4/mbfile.m4 (gl_MBFILE): Likewise.
73597         * m4/mbiter.m4 (gl_MBITER): Likewise.
73598         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73599         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
73600         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
73601         * modules/u64 (configure.ac): Likewise.
73603 2009-12-31  Bruno Haible  <bruno@clisp.org>
73605         Use AC_C_INLINE instead of module 'inline' where possible.
73606         * modules/inline (Description): Clarify purpose.
73607         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
73608         * modules/count-one-bits (Depends-on): Remove inline.
73609         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
73610         * modules/openat (Depends-on): Remove inline.
73611         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
73612         instead of depending on module 'inline'.
73613         * modules/filevercmp (Depends-on, configure.ac): Likewise.
73614         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
73615         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
73616         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
73617         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
73618         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
73619         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
73620         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
73621         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
73622         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
73623         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
73624         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
73625         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
73626         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
73627         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
73628         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
73629         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
73630         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
73631         Likewise.
73632         * modules/unictype/property-ascii-hex-digit (Depends-on,
73633         configure.ac): Likewise.
73634         * modules/unictype/property-bidi-arabic-digit (Depends-on,
73635         configure.ac): Likewise.
73636         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
73637         configure.ac): Likewise.
73638         * modules/unictype/property-bidi-block-separator (Depends-on,
73639         configure.ac): Likewise.
73640         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
73641         configure.ac): Likewise.
73642         * modules/unictype/property-bidi-common-separator (Depends-on,
73643         configure.ac): Likewise.
73644         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
73645         Likewise.
73646         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
73647         configure.ac): Likewise.
73648         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
73649         configure.ac): Likewise.
73650         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
73651         configure.ac): Likewise.
73652         * modules/unictype/property-bidi-european-digit (Depends-on,
73653         configure.ac): Likewise.
73654         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
73655         configure.ac): Likewise.
73656         * modules/unictype/property-bidi-left-to-right (Depends-on,
73657         configure.ac): Likewise.
73658         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
73659         configure.ac): Likewise.
73660         * modules/unictype/property-bidi-other-neutral (Depends-on,
73661         configure.ac): Likewise.
73662         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
73663         Likewise.
73664         * modules/unictype/property-bidi-segment-separator (Depends-on,
73665         configure.ac): Likewise.
73666         * modules/unictype/property-bidi-whitespace (Depends-on,
73667         configure.ac): Likewise.
73668         * modules/unictype/property-combining (Depends-on, configure.ac):
73669         Likewise.
73670         * modules/unictype/property-composite (Depends-on, configure.ac):
73671         Likewise.
73672         * modules/unictype/property-currency-symbol (Depends-on,
73673         configure.ac): Likewise.
73674         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
73675         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
73676         Likewise.
73677         * modules/unictype/property-default-ignorable-code-point (Depends-on,
73678         configure.ac): Likewise.
73679         * modules/unictype/property-deprecated (Depends-on, configure.ac):
73680         Likewise.
73681         * modules/unictype/property-diacritic (Depends-on, configure.ac):
73682         Likewise.
73683         * modules/unictype/property-extender (Depends-on, configure.ac):
73684         Likewise.
73685         * modules/unictype/property-format-control (Depends-on, configure.ac):
73686         Likewise.
73687         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
73688         Likewise.
73689         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
73690         Likewise.
73691         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
73692         Likewise.
73693         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
73694         Likewise.
73695         * modules/unictype/property-hyphen (Depends-on, configure.ac):
73696         Likewise.
73697         * modules/unictype/property-id-continue (Depends-on, configure.ac):
73698         Likewise.
73699         * modules/unictype/property-id-start (Depends-on, configure.ac):
73700         Likewise.
73701         * modules/unictype/property-ideographic (Depends-on, configure.ac):
73702         Likewise.
73703         * modules/unictype/property-ids-binary-operator (Depends-on,
73704         configure.ac): Likewise.
73705         * modules/unictype/property-ids-trinary-operator (Depends-on,
73706         configure.ac): Likewise.
73707         * modules/unictype/property-ignorable-control (Depends-on,
73708         configure.ac): Likewise.
73709         * modules/unictype/property-iso-control (Depends-on, configure.ac):
73710         Likewise.
73711         * modules/unictype/property-join-control (Depends-on, configure.ac):
73712         Likewise.
73713         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
73714         Likewise.
73715         * modules/unictype/property-line-separator (Depends-on, configure.ac):
73716         Likewise.
73717         * modules/unictype/property-logical-order-exception (Depends-on,
73718         configure.ac): Likewise.
73719         * modules/unictype/property-lowercase (Depends-on, configure.ac):
73720         Likewise.
73721         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
73722         * modules/unictype/property-non-break (Depends-on, configure.ac):
73723         Likewise.
73724         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
73725         Likewise.
73726         * modules/unictype/property-numeric (Depends-on, configure.ac):
73727         Likewise.
73728         * modules/unictype/property-other-alphabetic (Depends-on,
73729         configure.ac): Likewise.
73730         * modules/unictype/property-other-default-ignorable-code-point
73731         (Depends-on, configure.ac): Likewise.
73732         * modules/unictype/property-other-grapheme-extend (Depends-on,
73733         configure.ac): Likewise.
73734         * modules/unictype/property-other-id-continue (Depends-on,
73735         configure.ac): Likewise.
73736         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
73737         Likewise.
73738         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
73739         Likewise.
73740         * modules/unictype/property-other-math (Depends-on, configure.ac):
73741         Likewise.
73742         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
73743         Likewise.
73744         * modules/unictype/property-paired-punctuation (Depends-on,
73745         configure.ac): Likewise.
73746         * modules/unictype/property-paragraph-separator (Depends-on,
73747         configure.ac): Likewise.
73748         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
73749         Likewise.
73750         * modules/unictype/property-pattern-white-space (Depends-on,
73751         configure.ac): Likewise.
73752         * modules/unictype/property-private-use (Depends-on, configure.ac):
73753         Likewise.
73754         * modules/unictype/property-punctuation (Depends-on, configure.ac):
73755         Likewise.
73756         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
73757         Likewise.
73758         * modules/unictype/property-radical (Depends-on, configure.ac):
73759         Likewise.
73760         * modules/unictype/property-sentence-terminal (Depends-on,
73761         configure.ac): Likewise.
73762         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
73763         Likewise.
73764         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
73765         * modules/unictype/property-terminal-punctuation (Depends-on,
73766         configure.ac): Likewise.
73767         * modules/unictype/property-titlecase (Depends-on, configure.ac):
73768         Likewise.
73769         * modules/unictype/property-unassigned-code-value (Depends-on,
73770         configure.ac): Likewise.
73771         * modules/unictype/property-unified-ideograph (Depends-on,
73772         configure.ac): Likewise.
73773         * modules/unictype/property-uppercase (Depends-on, configure.ac):
73774         Likewise.
73775         * modules/unictype/property-variation-selector (Depends-on,
73776         configure.ac): Likewise.
73777         * modules/unictype/property-white-space (Depends-on, configure.ac):
73778         Likewise.
73779         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
73780         Likewise.
73781         * modules/unictype/property-xid-start (Depends-on, configure.ac):
73782         Likewise.
73783         * modules/unictype/property-zero-width (Depends-on, configure.ac):
73784         Likewise.
73785         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
73786         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
73787         Likewise.
73789 2009-12-31  Bruno Haible  <bruno@clisp.org>
73791         Remove unnecessary AC_C_INLINE invocation.
73792         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
73793         since 2009-08-21.
73795 2009-12-31  Jim Meyering  <meyering@redhat.com>
73797         maint.mk: don't require explicit gpg_key_ID in cfg.mk
73798         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
73799         With this change, we can all remove the gpg_key_ID = ... definition
73800         from our respective cfg.mk files.
73802         maint.mk: create announcement template in ~/, not in /tmp
73803         * top/maint.mk (emit_upload_commands): Adjust.
73804         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
73805         Remove temporary file, .ci-msg.
73807 2009-12-31  Eric Blake  <ebb9@byu.net>
73809         link-warning: always build headers with link warnings
73810         * modules/arpa_inet (Makefile.am): Always build replacement
73811         header.
73812         * modules/ctype (Makefile.am): Likewise.
73813         * modules/dirent (Makefile.am): Likewise.
73814         * modules/inttypes (Makefile.am): Likewise.
73815         * modules/langinfo (Makefile.am): Likewise.
73816         * modules/locale (Makefile.am): Likewise.
73817         * modules/spawn (Makefile.am): Likewise.
73818         * modules/sys_file (Makefile.am): Likewise.
73819         * modules/sys_ioctl (Makefile.am): Likewise.
73820         * modules/sys_select (Makefile.am): Likewise.
73821         * modules/sys_socket (Makefile.am): Likewise.
73822         * modules/sys_times (Makefile.am): Likewise.
73823         * modules/sys_utsname (Makefile.am): Likewise.
73824         * modules/sys_wait (Makefile.am): Likewise.
73825         * modules/wchar (Makefile.am): Likewise.
73826         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
73827         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
73828         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
73829         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
73830         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
73831         Likewise.
73832         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73833         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73834         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
73835         Likewise.
73836         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
73837         Likewise.
73838         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
73839         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
73840         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
73841         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73842         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73843         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73844         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73845         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
73846         (gl_WCHAR_H_DEFAULTS): Likewise.
73848 2009-12-31  Eric Blake  <ebb9@byu.net>
73850         signal, spawn: use link warnings
73851         * lib/signal.in.h (sigset_t): Make unconditional.
73852         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
73853         (sigpending, sigprocmask, sigaction): Add link warnings.
73854         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
73855         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
73856         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
73857         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
73858         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
73859         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
73860         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
73861         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
73862         (posix_spawn_file_actions_destroy)
73863         (posix_spawn_file_actions_addopen)
73864         (posix_spawn_file_actions_addclose)
73865         (posix_spawn_file_actions_adddup2): Likewise.
73866         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
73867         * tests/test-signal.c (main): Enhance test.
73869         spawn: improve wrapper support
73870         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
73871         (gl_SPAWN_H_DEFAULTS): New defaults.
73872         * modules/spawn (Makefile.am): Substitute them.
73873         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
73874         Only declare if missing or broken.
73876         sys_times, sys_utsname: use include_next
73877         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
73878         header.
73879         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
73880         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73881         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73882         * modules/sys_times (Depends-on): Add include_next.
73883         (Makefile.am): Substitute additional values.
73884         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73885         * lib/sys_times.in.h (includes): Include native header, if
73886         available.
73887         * lib/sys_utsname.in.h (includes): Likewise.
73888         * tests/test-sys_times.c (main): Enhance test.
73890         fdutimensat: revert prior patch
73891         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
73892         utimens.h.
73893         Reported by Bruno Haible.
73895 2009-12-30  Eric Blake  <ebb9@byu.net>
73897         sys_wait: drop link-warning dependency
73898         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
73899         link-warning efforts.
73900         * lib/sys_wait.in.h: Likewise.
73902         fdutimensat: remove bogus dependency
73903         * modules/fdutimensat (Depends-on): Drop inline.
73905         unistd: fix typo
73906         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
73908 2009-12-30  Bruno Haible  <bruno@clisp.org>
73910         Fix compilation error with Solaris cc.
73911         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
73912         * lib/unicase/u16-is-invariant.c: Likewise.
73913         * lib/unicase/u32-is-invariant.c: Likewise.
73914         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73916 2009-12-30  Bruno Haible  <bruno@clisp.org>
73918         Fix test crash.
73919         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
73920         locales.
73921         Reported by Simon Josefsson <simon@josefsson.org>.
73923 2009-12-30  Bruno Haible  <bruno@clisp.org>
73925         Fix compilation error on most platforms.
73926         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
73927         Reported by Simon Josefsson <simon@josefsson.org>
73928         and Nelson H. F. Beebe <beebe@math.utah.edu>.
73930 2009-12-30  Eric Blake  <ebb9@byu.net>
73932         futimens, utimensat: work around ntfs-3g bug
73933         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
73934         a ctime bug is present, and expand workaround to cover ntfs-3g.
73935         * lib/utimens.c (fdutimens, lutimens): Likewise.
73936         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
73937         (validate_timespec): Adjust return value.
73938         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
73939         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73940         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
73942 2009-12-29  Eric Blake  <ebb9@byu.net>
73944         link-warning: make usage consistent
73945         * modules/ctype (Depends-on): Add link-warning.
73946         (Makefile.am): Update rules accordingly.
73947         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73948         * modules/locale (Depends-on, Makefile.am): Likewise.
73949         * modules/sys_file (Makefile.am): Likewise.
73950         * modules/getopt-posix (Makefile.am): Delete unused link warning
73951         efforts.
73952         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
73953         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
73954         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
73955         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
73957         stdio: remove unused variables
73958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
73959         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
73960         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
73962         tests: test more substitute headers
73963         * modules/ctype-tests: New file.
73964         * modules/dirent-tests: Likewise.
73965         * modules/spawn-tests: Likewise.
73966         * modules/sys_file-tests: Likewise.
73967         * modules/sys_ioctl-tests: Likewise.
73968         * modules/sys_wait-tests: Likewise.
73969         * tests/test-ctype.c: Likewise.
73970         * tests/test-dirent.c: Likewise.
73971         * tests/test-spawn.c: Likewise.
73972         * tests/test-sys_file.c: Likewise.
73973         * tests/test-sys_ioctl.c: Likewise.
73974         * tests/test-sys_wait.c: Likewise.
73975         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
73976         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
73977         whether or not flock is in use.
73979         tests: remove License section from module
73980         * modules/arpa_inet-tests: Remove unneeded section.
73981         * modules/byteswap-tests: Likewise.
73982         * modules/ceilf-tests: Likewise.
73983         * modules/ceill-tests: Likewise.
73984         * modules/crypto/des-tests: Likewise.
73985         * modules/crypto/gc-arcfour-tests: Likewise.
73986         * modules/crypto/gc-arctwo-tests: Likewise.
73987         * modules/crypto/gc-des-tests: Likewise.
73988         * modules/crypto/gc-hmac-md5-tests: Likewise.
73989         * modules/crypto/gc-hmac-sha1-tests: Likewise.
73990         * modules/crypto/gc-md2-tests: Likewise.
73991         * modules/crypto/gc-md4-tests: Likewise.
73992         * modules/crypto/gc-md5-tests: Likewise.
73993         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
73994         * modules/crypto/gc-rijndael-tests: Likewise.
73995         * modules/crypto/gc-sha1-tests: Likewise.
73996         * modules/crypto/gc-tests: Likewise.
73997         * modules/crypto/md2-tests: Likewise.
73998         * modules/crypto/md4-tests: Likewise.
73999         * modules/fcntl-h-tests: Likewise.
74000         * modules/floorf-tests: Likewise.
74001         * modules/floorl-tests: Likewise.
74002         * modules/frexp-nolibm-tests: Likewise.
74003         * modules/frexp-tests: Likewise.
74004         * modules/frexpl-nolibm-tests: Likewise.
74005         * modules/frexpl-tests: Likewise.
74006         * modules/getaddrinfo-tests: Likewise.
74007         * modules/inttypes-tests: Likewise.
74008         * modules/isfinite-tests: Likewise.
74009         * modules/isinf-tests: Likewise.
74010         * modules/ldexpl-tests: Likewise.
74011         * modules/locale-tests: Likewise.
74012         * modules/math-tests: Likewise.
74013         * modules/netdb-tests: Likewise.
74014         * modules/netinet_in-tests: Likewise.
74015         * modules/printf-frexp-tests: Likewise.
74016         * modules/printf-frexpl-tests: Likewise.
74017         * modules/priv-set-tests: Likewise.
74018         * modules/random_r-tests: Likewise.
74019         * modules/round-tests: Likewise.
74020         * modules/roundf-tests: Likewise.
74021         * modules/roundl-tests: Likewise.
74022         * modules/search-tests: Likewise.
74023         * modules/select-tests: Likewise.
74024         * modules/signal-tests: Likewise.
74025         * modules/stdbool-tests: Likewise.
74026         * modules/stddef-tests: Likewise.
74027         * modules/stdint-tests: Likewise.
74028         * modules/stdio-tests: Likewise.
74029         * modules/stdlib-tests: Likewise.
74030         * modules/string-tests: Likewise.
74031         * modules/strings-tests: Likewise.
74032         * modules/sys_select-tests: Likewise.
74033         * modules/sys_socket-tests: Likewise.
74034         * modules/sys_stat-tests: Likewise.
74035         * modules/sys_time-tests: Likewise.
74036         * modules/sys_utsname-tests: Likewise.
74037         * modules/sysexits-tests: Likewise.
74038         * modules/time-tests: Likewise.
74039         * modules/trunc-tests: Likewise.
74040         * modules/truncf-tests: Likewise.
74041         * modules/truncl-tests: Likewise.
74042         * modules/tsearch-tests: Likewise.
74043         * modules/unistd-tests: Likewise.
74044         * modules/wchar-tests: Likewise.
74045         * modules/wctype-tests: Likewise.
74047         tests: fix license on several tests
74048         * tests/test-des.c: Update to GPLv3+.
74049         * tests/test-flock.c: Likewise.
74050         * tests/test-fsync.c: Likewise.
74051         * tests/test-futimens.h: Likewise.
74052         * tests/test-gc-arcfour.c: Likewise.
74053         * tests/test-gc-arctwo.c: Likewise.
74054         * tests/test-gc-des.c: Likewise.
74055         * tests/test-gc-hmac-md5.c: Likewise.
74056         * tests/test-gc-hmac-sha1.c: Likewise.
74057         * tests/test-gc-md2.c: Likewise.
74058         * tests/test-gc-md4.c: Likewise.
74059         * tests/test-gc-md5.c: Likewise.
74060         * tests/test-gc-pbkdf2-sha1.c: Likewise.
74061         * tests/test-gc-rijndael.c: Likewise.
74062         * tests/test-gc-sha1.c: Likewise.
74063         * tests/test-gc.c: Likewise.
74064         * tests/test-getcwd.c: Likewise.
74065         * tests/test-link.c: Likewise.
74066         * tests/test-link.h: Likewise.
74067         * tests/test-lutimens.h: Likewise.
74068         * tests/test-md2.c: Likewise.
74069         * tests/test-md4.c: Likewise.
74070         * tests/test-mkdir.h: Likewise.
74071         * tests/test-rename.c: Likewise.
74072         * tests/test-rename.h: Likewise.
74073         * tests/test-safe-alloc.c: Likewise.
74074         * tests/test-utimens-common.h: Likewise.
74075         * tests/test-utimens.h: Likewise.
74077         maint: sync license texts
74078         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
74079         * doc/gpl-3.0.texi: Revert copyright year update.
74080         * doc/lgpl-3.0.texi: Likewise.
74082 2009-12-29  Jim Meyering  <meyering@redhat.com>
74084         update nearly all FSF copyright year lists to include 2009
74085         The files named by the following are exempted:
74086             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
74087               test -f "$dst" && { echo "$dst"; continue; }
74088               test -d "$dst" || continue
74089               echo "$dst"/$(basename "$src")
74090             done > exempt
74091             git ls-files tests/unictype >> exempt
74092         In the remaining files, convert to all-interval notation if
74093         - there is already at least one year interval like 2000-2003
74094         - the file is maintained by me
74095         - the file is in lib/uni*/, where that style already prevails
74096         Otherwise, use update-copyright's default.
74098 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74099         and Eric Blake  <ebb9@byu.net>
74101         tests: don't require debug system() to pass
74102         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
74103         * tests/test-rmdir.h (test_rmdir_func): Likewise.
74104         * tests/test-unlink.h (test_unlink_func): Likewise.
74105         * tests/test-fstatat.c (main): ...into callers.
74106         * tests/test-lstat.c (main): Likewise.
74107         * tests/test-rmdir.c (main): Likewise.
74108         * tests/test-unlink.c (main): Likewise.
74109         * tests/test-unlinkat.c (main): Likewise.
74110         * tests/test-areadlink-with-size.c (main): Don't require a
74111         debug-only system call to pass, aiding cross-testing to mingw.
74112         * tests/test-areadlink.c (main): Likewise.
74113         * tests/test-areadlinkat-with-size.c (main): Likewise.
74114         * tests/test-areadlinkat.c (main): Likewise.
74115         * tests/test-canonicalize-lgpl.c (main): Likewise.
74116         * tests/test-canonicalize.c (main): Likewise.
74117         * tests/test-chown.c (main): Likewise.
74118         * tests/test-fchownat.c (main): Likewise.
74119         * tests/test-lchown.c (main): Likewise.
74120         * tests/test-fdutimensat.c (main): Likewise.
74121         * tests/test-futimens.c (main): Likewise.
74122         * tests/test-link.c (main): Likewise.
74123         * tests/test-linkat.c (main): Likewise.
74124         * tests/test-mkdir.c (main): Likewise.
74125         * tests/test-mkdirat.c (main): Likewise.
74126         * tests/test-mkfifo.c (main): Likewise.
74127         * tests/test-mkfifoat.c (main): Likewise.
74128         * tests/test-mknod.c (main): Likewise.
74129         * tests/test-readlink.c (main): Likewise.
74130         * tests/test-remove.c (main): Likewise.
74131         * tests/test-rename.c (main): Likewise.
74132         * tests/test-renameat.c (main): Likewise.
74133         * tests/test-symlink.c (main): Likewise.
74134         * tests/test-symlinkat.c (main): Likewise.
74135         * tests/test-utimens.c (main): Likewise.
74136         * tests/test-utimensat.c (main): Likewise.
74138 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74140         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
74141         on $(UNUSED_PARAMETER_H) to avoid build failure.
74143 2009-12-28  Jim Meyering  <meyering@redhat.com>
74145         update-copyright: you may specify a max. line length other than 72
74146         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74148         maint: use consistent FSF copyright line syntax
74149         * lib/posixtm.c: Add missing comma in FSF copyright line.
74150         * lib/posixtm.h: Likewise.
74151         * lib/getugroups.c: Add missing ", Inc.".
74153         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
74154         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
74155         FSF copyright line.  Remove trailing blanks.
74157 2009-12-28  Eric Blake  <ebb9@byu.net>
74159         test-dup2: reduce dependencies
74160         * modules/cloexec (Configure.ac): Set witness.
74161         * modules/dup2-tests (Depends-on): Drop cloexec.
74162         * tests/test-dup2.c (main): Skip portion of test if cloexec module
74163         not present.
74164         Suggested by Bruno Haible.
74166 2009-12-26  Bruno Haible  <bruno@clisp.org>
74168         Remove an unneeded dependency.
74169         * modules/fseterr (Depends-on): Remove dup2.
74171 2009-12-26  Eric Blake  <ebb9@byu.net>
74173         tests: use macros.h in more places
74174         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
74175         (ASSERT_STREAM): Provide default of stderr.
74176         * tests/test-dirent-safer.c: Include macros.h, using alternate
74177         stream for assertions.
74178         * tests/test-dup-safer.c: Likewise.
74179         * tests/test-freopen-safer.c: Likewise.
74180         * tests/test-getopt.c: Likewise.
74181         * tests/test-openat-safer.c: Likewise.
74182         * tests/test-pipe.c: Likewise.
74183         * tests/test-popen-safer.c: Likewise.
74184         * modules/dirent-safer-tests (Files): Include macros.h.
74185         * modules/unistd-safer-tests (Files): Likewise.
74186         * modules/freopen-safer-tests (Files): Likewise.
74187         * modules/getopt-posix-tests (Files): Likewise.
74188         * modules/openat-safer-tests (Files): Likewise.
74189         * modules/pipe-tests (Files): Likewise.
74191 2009-12-26  Bruno Haible  <bruno@clisp.org>
74193         javacomp-script: Portability fix.
74194         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
74195         that it also works on Solaris.
74197 2009-12-26  Bruno Haible  <bruno@clisp.org>
74199         localename: Fix storage allocation of gl_locale_name_thread's result.
74200         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
74201         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
74202         all platforms that have 'uselocale'.
74203         (gl_locale_name_thread_unsafe): New function, extracted from
74204         gl_locale_name_thread.
74205         (gl_locale_name_thread): Call struniq on all platforms that have
74206         'uselocale'.
74207         * tests/test-localename.c (test_locale_name_thread): Check that the
74208         resulting strings are permanently allocated.
74209         * modules/localename-tests (Depends-on): Add strdup.
74211 2009-12-26  Bruno Haible  <bruno@clisp.org>
74213         * tests/test-localename.c (categories): Fill in the strings.
74215 2009-12-26  Jim Meyering  <meyering@redhat.com>
74217         isdir: complete the removal of m4/isdir.m4
74218         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
74220         isdir: clean up, since at least grep still uses it
74221         * lib/isdir.c: Include "isdir.h".
74222         (S_ISDIR): Remove now-unneeded definition.
74223         * modules/isdir (Files): Add lib/isdir.h.
74224         * lib/isdir.h: New file, with declaration.
74225         * m4/isdir.m4: Remove file -- unneeded.
74227 2009-12-25  Bruno Haible  <bruno@clisp.org>
74229         selinux-h: Make generated .h files standalone.
74230         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
74231         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
74232         * lib/se-selinux.in.h: Likewise.
74233         * modules/selinux-h (Depends-on): Add unused-parameter.
74234         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
74235         selinux/selinux.h and selinux/context.h.
74236         Suggested by Eric Blake.
74238 2009-12-25  Bruno Haible  <bruno@clisp.org>
74240         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
74241         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
74242         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
74243         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
74244         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
74246 2009-12-24  Bruno Haible  <bruno@clisp.org>
74248         openat: Fix warning.
74249         * lib/openat-proc.c: Include <unistd.h>.
74251 2009-12-24  Bruno Haible  <bruno@clisp.org>
74253         New module 'unused-parameter'.
74254         * build-aux/unused-parameter.h: New file, extracted from earlier
74255         gnulib-common.m4.
74256         * modules/unused-parameter: New file.
74257         * lib/unistr.h: Include unused-parameter.h.
74258         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
74259         _GL_UNUSED.
74260         * modules/unistr/base (Depends-on): Add unused-parameter.
74262 2009-12-24  Bruno Haible  <bruno@clisp.org>
74264         Add missing dependencies to 'extensions' module.
74265         * m4/extensions.m4: Add comment.
74266         * modules/accept4 (Depends-on): Add extensions.
74267         * modules/dup3 (Depends-on): Likewise.
74268         * modules/fcntl (Depends-on): Likewise.
74269         * modules/futimens (Depends-on): Likewise.
74270         * modules/mknod (Depends-on): Likewise.
74271         * modules/pipe2 (Depends-on): Likewise.
74272         * modules/stat-time (Depends-on): Likewise.
74273         * modules/strcasestr-simple (Depends-on): Likewise.
74274         * modules/strsignal (Depends-on): Likewise.
74275         * modules/utimensat (Depends-on): Likewise.
74276         * modules/localcharset (Depends-on): Likewise. Needed because of
74277         gl_FCNTL_O_FLAGS.
74278         * modules/wcrtomb (Depends-on): Likewise. Needed because of
74279         AC_TYPE_MBSTATE_T.
74280         * modules/wcsnrtombs (Depends-on): Likewise.
74281         * modules/wcsrtombs (Depends-on): Likewise.
74283 2009-12-24  Bruno Haible  <bruno@clisp.org>
74285         binary-io: Avoid gcc warning due to SET_BINARY.
74286         * lib/binary-io.h (SET_BINARY): Cast the result to void.
74287         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
74289 2009-12-24  Bruno Haible  <bruno@clisp.org>
74291         Avoid future namespace pollution on glibc systems.
74292         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
74293         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
74294         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
74295         glibc systems.
74297 2009-12-24  Bruno Haible  <bruno@clisp.org>
74299         Refactor common macros used in tests.
74300         * tests/macros.h: New file.
74301         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
74302         and/or <stdlib.h>, if appropriate.
74303         (ASSERT, SIZEOF): Remove macros.
74304         * tests/test-areadlink-with-size.c: Likewise.
74305         * tests/test-areadlinkat.c: Likewise.
74306         * tests/test-areadlinkat-with-size.c: Likewise.
74307         * tests/test-argmatch.c: Likewise.
74308         * tests/test-argv-iter.c: Likewise.
74309         * tests/test-array-mergesort.c: Likewise.
74310         * tests/test-array_list.c: Likewise.
74311         * tests/test-array_oset.c: Likewise.
74312         * tests/test-avltree_list.c: Likewise.
74313         * tests/test-avltree_oset.c: Likewise.
74314         * tests/test-avltreehash_list.c: Likewise.
74315         * tests/test-base64.c: Likewise.
74316         * tests/test-binary-io.c: Likewise.
74317         * tests/test-bitrotate.c: Likewise.
74318         * tests/test-btowc.c: Likewise.
74319         * tests/test-byteswap.c: Likewise.
74320         * tests/test-c-ctype.c: Likewise.
74321         * tests/test-c-stack.c: Likewise.
74322         * tests/test-c-strcasecmp.c: Likewise.
74323         * tests/test-c-strcasestr.c: Likewise.
74324         * tests/test-c-strncasecmp.c: Likewise.
74325         * tests/test-c-strstr.c: Likewise.
74326         * tests/test-canonicalize-lgpl.c: Likewise.
74327         * tests/test-canonicalize.c: Likewise.
74328         * tests/test-carray_list.c: Likewise.
74329         * tests/test-ceilf1.c: Likewise.
74330         * tests/test-ceilf2.c: Likewise.
74331         * tests/test-ceill.c: Likewise.
74332         * tests/test-chown.c: Likewise.
74333         * tests/test-cloexec.c: Likewise.
74334         * tests/test-copy-acl.c: Likewise.
74335         * tests/test-copy-file.c: Likewise.
74336         * tests/test-count-one-bits.c: Likewise.
74337         * tests/test-dprintf-posix.c: Likewise.
74338         * tests/test-dup2.c: Likewise.
74339         * tests/test-dup3.c: Likewise.
74340         * tests/test-duplocale.c: Likewise.
74341         * tests/test-fbufmode.c: Likewise.
74342         * tests/test-fchdir.c: Likewise.
74343         * tests/test-fchownat.c: Likewise.
74344         * tests/test-fcntl-safer.c: Likewise.
74345         * tests/test-fcntl.c: Likewise.
74346         * tests/test-fdopendir.c: Likewise.
74347         * tests/test-fdutimensat.c: Likewise.
74348         * tests/test-fflush2.c: Likewise.
74349         * tests/test-file-has-acl.c: Likewise.
74350         * tests/test-filevercmp.c: Likewise.
74351         * tests/test-flock.c: Likewise.
74352         * tests/test-floorf1.c: Likewise.
74353         * tests/test-floorf2.c: Likewise.
74354         * tests/test-floorl.c: Likewise.
74355         * tests/test-fnmatch.c: Likewise.
74356         * tests/test-fopen.h: Likewise.
74357         * tests/test-fpending.c: Likewise.
74358         * tests/test-fprintf-posix.c: Likewise.
74359         * tests/test-fpurge.c: Likewise.
74360         * tests/test-freadable.c: Likewise.
74361         * tests/test-freadahead.c: Likewise.
74362         * tests/test-freading.c: Likewise.
74363         * tests/test-freadptr.c: Likewise.
74364         * tests/test-freadptr2.c: Likewise.
74365         * tests/test-freadseek.c: Likewise.
74366         * tests/test-freopen.c: Likewise.
74367         * tests/test-frexp.c: Likewise.
74368         * tests/test-frexpl.c: Likewise.
74369         * tests/test-fseek.c: Likewise.
74370         * tests/test-fseeko.c: Likewise.
74371         * tests/test-fstatat.c: Likewise.
74372         * tests/test-fstrcmp.c: Likewise.
74373         * tests/test-fsync.c: Likewise.
74374         * tests/test-ftell.c: Likewise.
74375         * tests/test-ftello.c: Likewise.
74376         * tests/test-func.c: Likewise.
74377         * tests/test-futimens.c: Likewise.
74378         * tests/test-fwritable.c: Likewise.
74379         * tests/test-fwriting.c: Likewise.
74380         * tests/test-getcwd.c: Likewise.
74381         * tests/test-getdate.c: Likewise.
74382         * tests/test-getdelim.c: Likewise.
74383         * tests/test-getdtablesize.c: Likewise.
74384         * tests/test-getgroups.c: Likewise.
74385         * tests/test-getline.c: Likewise.
74386         * tests/test-getndelim2.c: Likewise.
74387         * tests/test-glob.c: Likewise.
74388         * tests/test-hash.c: Likewise.
74389         * tests/test-i-ring.c: Likewise.
74390         * tests/test-iconv-utf.c: Likewise.
74391         * tests/test-iconv.c: Likewise.
74392         * tests/test-idpriv-drop.c: Likewise.
74393         * tests/test-idpriv-droptemp.c: Likewise.
74394         * tests/test-inet_ntop.c: Likewise.
74395         * tests/test-inet_pton.c: Likewise.
74396         * tests/test-isblank.c: Likewise.
74397         * tests/test-isfinite.c: Likewise.
74398         * tests/test-isinf.c: Likewise.
74399         * tests/test-isnan.c: Likewise.
74400         * tests/test-isnand.h: Likewise.
74401         * tests/test-isnanf.h: Likewise.
74402         * tests/test-isnanl.h: Likewise.
74403         * tests/test-lchown.c: Likewise.
74404         * tests/test-ldexpl.c: Likewise.
74405         * tests/test-link.c: Likewise.
74406         * tests/test-linkat.c: Likewise.
74407         * tests/test-linked_list.c: Likewise.
74408         * tests/test-linkedhash_list.c: Likewise.
74409         * tests/test-localename.c: Likewise.
74410         * tests/test-lseek.c: Likewise.
74411         * tests/test-lstat.c: Likewise.
74412         * tests/test-mbmemcasecmp.c: Likewise.
74413         * tests/test-mbmemcasecoll.c: Likewise.
74414         * tests/test-mbrtowc.c: Likewise.
74415         * tests/test-mbscasecmp.c: Likewise.
74416         * tests/test-mbscasestr1.c: Likewise.
74417         * tests/test-mbscasestr2.c: Likewise.
74418         * tests/test-mbscasestr3.c: Likewise.
74419         * tests/test-mbscasestr4.c: Likewise.
74420         * tests/test-mbschr.c: Likewise.
74421         * tests/test-mbscspn.c: Likewise.
74422         * tests/test-mbsinit.c: Likewise.
74423         * tests/test-mbsncasecmp.c: Likewise.
74424         * tests/test-mbsnrtowcs.c: Likewise.
74425         * tests/test-mbspbrk.c: Likewise.
74426         * tests/test-mbspcasecmp.c: Likewise.
74427         * tests/test-mbsrchr.c: Likewise.
74428         * tests/test-mbsrtowcs.c: Likewise.
74429         * tests/test-mbsspn.c: Likewise.
74430         * tests/test-mbsstr1.c: Likewise.
74431         * tests/test-mbsstr2.c: Likewise.
74432         * tests/test-mbsstr3.c: Likewise.
74433         * tests/test-memchr.c: Likewise.
74434         * tests/test-memchr2.c: Likewise.
74435         * tests/test-memcmp.c: Likewise.
74436         * tests/test-memmem.c: Likewise.
74437         * tests/test-memrchr.c: Likewise.
74438         * tests/test-mkdir.c: Likewise.
74439         * tests/test-mkdirat.c: Likewise.
74440         * tests/test-mkfifo.c: Likewise.
74441         * tests/test-mkfifoat.c: Likewise.
74442         * tests/test-mknod.c: Likewise.
74443         * tests/test-nanosleep.c: Likewise.
74444         * tests/test-nl_langinfo.c: Likewise.
74445         * tests/test-obstack-printf.c: Likewise.
74446         * tests/test-open.c: Likewise.
74447         * tests/test-openat.c: Likewise.
74448         * tests/test-pipe-filter-gi1.c: Likewise.
74449         * tests/test-pipe-filter-gi2-main.c: Likewise.
74450         * tests/test-pipe-filter-ii1.c: Likewise.
74451         * tests/test-pipe-filter-ii2-main.c: Likewise.
74452         * tests/test-pipe2.c: Likewise.
74453         * tests/test-popen.h: Likewise.
74454         * tests/test-posixtm.c: Likewise.
74455         * tests/test-pread.c: Likewise.
74456         * tests/test-printf-frexp.c: Likewise.
74457         * tests/test-printf-frexpl.c: Likewise.
74458         * tests/test-printf-posix.c: Likewise.
74459         * tests/test-priv-set.c: Likewise.
74460         * tests/test-quotearg.c: Likewise.
74461         * tests/test-random_r.c: Likewise.
74462         * tests/test-rawmemchr.c: Likewise.
74463         * tests/test-rbtree_list.c: Likewise.
74464         * tests/test-rbtree_oset.c: Likewise.
74465         * tests/test-rbtreehash_list.c: Likewise.
74466         * tests/test-readlink.c: Likewise.
74467         * tests/test-remove.c: Likewise.
74468         * tests/test-rename.c: Likewise.
74469         * tests/test-renameat.c: Likewise.
74470         * tests/test-rmdir.c: Likewise.
74471         * tests/test-round1.c: Likewise.
74472         * tests/test-roundf1.c: Likewise.
74473         * tests/test-roundl.c: Likewise.
74474         * tests/test-safe-alloc.c: Likewise.
74475         * tests/test-sameacls.c: Likewise.
74476         * tests/test-set-mode-acl.c: Likewise.
74477         * tests/test-setenv.c: Likewise.
74478         * tests/test-sigaction.c: Likewise.
74479         * tests/test-signbit.c: Likewise.
74480         * tests/test-sleep.c: Likewise.
74481         * tests/test-snprintf-posix.c: Likewise.
74482         * tests/test-snprintf.c: Likewise.
74483         * tests/test-sprintf-posix.c: Likewise.
74484         * tests/test-stat-time.c: Likewise.
74485         * tests/test-stat.c: Likewise.
74486         * tests/test-strcasestr.c: Likewise.
74487         * tests/test-strchrnul.c: Likewise.
74488         * tests/test-strerror.c: Likewise.
74489         * tests/test-striconv.c: Likewise.
74490         * tests/test-striconveh.c: Likewise.
74491         * tests/test-striconveha.c: Likewise.
74492         * tests/test-strsignal.c: Likewise.
74493         * tests/test-strstr.c: Likewise.
74494         * tests/test-strtod.c: Likewise.
74495         * tests/test-strverscmp.c: Likewise.
74496         * tests/test-symlink.c: Likewise.
74497         * tests/test-symlinkat.c: Likewise.
74498         * tests/test-trunc1.c: Likewise.
74499         * tests/test-trunc2.c: Likewise.
74500         * tests/test-truncf1.c: Likewise.
74501         * tests/test-truncf2.c: Likewise.
74502         * tests/test-truncl.c: Likewise.
74503         * tests/test-uname.c: Likewise.
74504         * tests/test-unlink.c: Likewise.
74505         * tests/test-unlinkat.c: Likewise.
74506         * tests/test-unsetenv.c: Likewise.
74507         * tests/test-usleep.c: Likewise.
74508         * tests/test-utimens.c: Likewise.
74509         * tests/test-utimensat.c: Likewise.
74510         * tests/test-vasnprintf-posix.c: Likewise.
74511         * tests/test-vasnprintf-posix2.c: Likewise.
74512         * tests/test-vasnprintf.c: Likewise.
74513         * tests/test-vasprintf-posix.c: Likewise.
74514         * tests/test-vasprintf.c: Likewise.
74515         * tests/test-vdprintf-posix.c: Likewise.
74516         * tests/test-vfprintf-posix.c: Likewise.
74517         * tests/test-vprintf-posix.c: Likewise.
74518         * tests/test-vsnprintf-posix.c: Likewise.
74519         * tests/test-vsnprintf.c: Likewise.
74520         * tests/test-vsprintf-posix.c: Likewise.
74521         * tests/test-wcrtomb.c: Likewise.
74522         * tests/test-wcsnrtombs.c: Likewise.
74523         * tests/test-wcsrtombs.c: Likewise.
74524         * tests/test-wctype.c: Likewise.
74525         * tests/test-wcwidth.c: Likewise.
74526         * tests/test-xfprintf-posix.c: Likewise.
74527         * tests/test-xmemdup0.c: Likewise.
74528         * tests/test-xprintf-posix.c: Likewise.
74529         * tests/test-xvasprintf.c: Likewise.
74530         * tests/unicase/test-locale-language.c: Likewise.
74531         * tests/unicase/test-mapping-part1.h: Likewise.
74532         * tests/unicase/test-predicate-part1.h: Likewise.
74533         * tests/unicase/test-u8-casecmp.c: Likewise.
74534         * tests/unicase/test-u8-casecoll.c: Likewise.
74535         * tests/unicase/test-u8-casefold.c: Likewise.
74536         * tests/unicase/test-u8-is-cased.c: Likewise.
74537         * tests/unicase/test-u8-is-casefolded.c: Likewise.
74538         * tests/unicase/test-u8-is-lowercase.c: Likewise.
74539         * tests/unicase/test-u8-is-titlecase.c: Likewise.
74540         * tests/unicase/test-u8-is-uppercase.c: Likewise.
74541         * tests/unicase/test-u8-tolower.c: Likewise.
74542         * tests/unicase/test-u8-totitle.c: Likewise.
74543         * tests/unicase/test-u8-toupper.c: Likewise.
74544         * tests/unicase/test-u16-casecmp.c: Likewise.
74545         * tests/unicase/test-u16-casecoll.c: Likewise.
74546         * tests/unicase/test-u16-casefold.c: Likewise.
74547         * tests/unicase/test-u16-is-cased.c: Likewise.
74548         * tests/unicase/test-u16-is-casefolded.c: Likewise.
74549         * tests/unicase/test-u16-is-lowercase.c: Likewise.
74550         * tests/unicase/test-u16-is-titlecase.c: Likewise.
74551         * tests/unicase/test-u16-is-uppercase.c: Likewise.
74552         * tests/unicase/test-u16-tolower.c: Likewise.
74553         * tests/unicase/test-u16-totitle.c: Likewise.
74554         * tests/unicase/test-u16-toupper.c: Likewise.
74555         * tests/unicase/test-u32-casecmp.c: Likewise.
74556         * tests/unicase/test-u32-casecoll.c: Likewise.
74557         * tests/unicase/test-u32-casefold.c: Likewise.
74558         * tests/unicase/test-u32-is-cased.c: Likewise.
74559         * tests/unicase/test-u32-is-casefolded.c: Likewise.
74560         * tests/unicase/test-u32-is-lowercase.c: Likewise.
74561         * tests/unicase/test-u32-is-titlecase.c: Likewise.
74562         * tests/unicase/test-u32-is-uppercase.c: Likewise.
74563         * tests/unicase/test-u32-tolower.c: Likewise.
74564         * tests/unicase/test-u32-totitle.c: Likewise.
74565         * tests/unicase/test-u32-toupper.c: Likewise.
74566         * tests/unicase/test-ulc-casecmp.c: Likewise.
74567         * tests/unicase/test-ulc-casecoll.c: Likewise.
74568         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
74569         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
74570         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
74571         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
74572         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
74573         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
74574         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
74575         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
74576         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
74577         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
74578         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
74579         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
74580         * tests/unictype/test-bidi_byname.c: Likewise.
74581         * tests/unictype/test-bidi_name.c: Likewise.
74582         * tests/unictype/test-bidi_of.c: Likewise.
74583         * tests/unictype/test-bidi_test.c: Likewise.
74584         * tests/unictype/test-block_list.c: Likewise.
74585         * tests/unictype/test-block_of.c: Likewise.
74586         * tests/unictype/test-block_test.c: Likewise.
74587         * tests/unictype/test-categ_and.c: Likewise.
74588         * tests/unictype/test-categ_and_not.c: Likewise.
74589         * tests/unictype/test-categ_byname.c: Likewise.
74590         * tests/unictype/test-categ_name.c: Likewise.
74591         * tests/unictype/test-categ_none.c: Likewise.
74592         * tests/unictype/test-categ_of.c: Likewise.
74593         * tests/unictype/test-categ_or.c: Likewise.
74594         * tests/unictype/test-categ_test_withtable.c: Likewise.
74595         * tests/unictype/test-combining.c: Likewise.
74596         * tests/unictype/test-decdigit.c: Likewise.
74597         * tests/unictype/test-digit.c: Likewise.
74598         * tests/unictype/test-mirror.c: Likewise.
74599         * tests/unictype/test-numeric.c: Likewise.
74600         * tests/unictype/test-pr_byname.c: Likewise.
74601         * tests/unictype/test-pr_test.c: Likewise.
74602         * tests/unictype/test-predicate-part1.h: Likewise.
74603         * tests/unictype/test-scripts.c: Likewise.
74604         * tests/unictype/test-sy_c_ident.c: Likewise.
74605         * tests/unictype/test-sy_java_ident.c: Likewise.
74606         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
74607         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
74608         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
74609         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
74610         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
74611         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
74612         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
74613         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
74614         * tests/uninorm/test-canonical-decomposition.c: Likewise.
74615         * tests/uninorm/test-compat-decomposition.c: Likewise.
74616         * tests/uninorm/test-composition.c: Likewise.
74617         * tests/uninorm/test-decomposing-form.c: Likewise.
74618         * tests/uninorm/test-decomposition.c: Likewise.
74619         * tests/uninorm/test-u8-nfc.c: Likewise.
74620         * tests/uninorm/test-u8-nfd.c: Likewise.
74621         * tests/uninorm/test-u8-nfkc.c: Likewise.
74622         * tests/uninorm/test-u8-nfkd.c: Likewise.
74623         * tests/uninorm/test-u8-normcmp.c: Likewise.
74624         * tests/uninorm/test-u8-normcoll.c: Likewise.
74625         * tests/uninorm/test-u16-nfc.c: Likewise.
74626         * tests/uninorm/test-u16-nfd.c: Likewise.
74627         * tests/uninorm/test-u16-nfkc.c: Likewise.
74628         * tests/uninorm/test-u16-nfkd.c: Likewise.
74629         * tests/uninorm/test-u16-normcmp.c: Likewise.
74630         * tests/uninorm/test-u16-normcoll.c: Likewise.
74631         * tests/uninorm/test-u32-nfc.c: Likewise.
74632         * tests/uninorm/test-u32-nfd.c: Likewise.
74633         * tests/uninorm/test-u32-nfkc.c: Likewise.
74634         * tests/uninorm/test-u32-nfkd.c: Likewise.
74635         * tests/uninorm/test-u32-normalize-big.c: Likewise.
74636         * tests/uninorm/test-u32-normcmp.c: Likewise.
74637         * tests/uninorm/test-u32-normcoll.c: Likewise.
74638         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
74639         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
74640         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
74641         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
74642         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
74643         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
74644         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
74645         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
74646         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
74647         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
74648         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
74649         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
74650         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
74651         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
74652         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
74653         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
74654         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
74655         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
74656         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
74657         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
74658         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
74659         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
74660         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
74661         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
74662         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
74663         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
74664         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
74665         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
74666         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
74667         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
74668         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
74669         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
74670         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
74671         * tests/uniwidth/test-u8-strwidth.c: Likewise.
74672         * tests/uniwidth/test-u8-width.c: Likewise.
74673         * tests/uniwidth/test-u16-strwidth.c: Likewise.
74674         * tests/uniwidth/test-u16-width.c: Likewise.
74675         * tests/uniwidth/test-u32-strwidth.c: Likewise.
74676         * tests/uniwidth/test-u32-width.c: Likewise.
74677         * tests/uniwidth/test-uc_width.c: Likewise.
74678         * tests/uniwidth/test-uc_width2.c: Likewise.
74679         * modules/acl-tests (Files): Add tests/macros.h.
74680         * modules/areadlink-tests (Files): Likewise.
74681         * modules/areadlink-with-size-tests (Files): Likewise.
74682         * modules/areadlinkat-tests (Files): Likewise.
74683         * modules/areadlinkat-with-size-tests (Files): Likewise.
74684         * modules/argmatch-tests (Files): Likewise.
74685         * modules/argv-iter-tests (Files): Likewise.
74686         * modules/array-list-tests (Files): Likewise.
74687         * modules/array-mergesort-tests (Files): Likewise.
74688         * modules/array-oset-tests (Files): Likewise.
74689         * modules/avltree-list-tests (Files): Likewise.
74690         * modules/avltree-oset-tests (Files): Likewise.
74691         * modules/avltreehash-list-tests (Files): Likewise.
74692         * modules/base64-tests (Files): Likewise.
74693         * modules/binary-io-tests (Files): Likewise.
74694         * modules/bitrotate-tests (Files): Likewise.
74695         * modules/btowc-tests (Files): Likewise.
74696         * modules/byteswap-tests (Files): Likewise.
74697         * modules/c-ctype-tests (Files): Likewise.
74698         * modules/c-stack-tests (Files): Likewise.
74699         * modules/c-strcase-tests (Files): Likewise.
74700         * modules/c-strcasestr-tests (Files): Likewise.
74701         * modules/c-strstr-tests (Files): Likewise.
74702         * modules/canonicalize-lgpl-tests (Files): Likewise.
74703         * modules/canonicalize-tests (Files): Likewise.
74704         * modules/carray-list-tests (Files): Likewise.
74705         * modules/ceilf-tests (Files): Likewise.
74706         * modules/ceill-tests (Files): Likewise.
74707         * modules/chown-tests (Files): Likewise.
74708         * modules/cloexec-tests (Files): Likewise.
74709         * modules/copy-file-tests (Files): Likewise.
74710         * modules/count-one-bits-tests (Files): Likewise.
74711         * modules/dprintf-posix-tests (Files): Likewise.
74712         * modules/dup2-tests (Files): Likewise.
74713         * modules/dup3-tests (Files): Likewise.
74714         * modules/duplocale-tests (Files): Likewise.
74715         * modules/fbufmode-tests (Files): Likewise.
74716         * modules/fchdir-tests (Files): Likewise.
74717         * modules/fcntl-safer-tests (Files): Likewise.
74718         * modules/fcntl-tests (Files): Likewise.
74719         * modules/fdopendir-tests (Files): Likewise.
74720         * modules/fdutimensat-tests (Files): Likewise.
74721         * modules/fflush-tests (Files): Likewise.
74722         * modules/filevercmp-tests (Files): Likewise.
74723         * modules/flock-tests (Files): Likewise.
74724         * modules/floorf-tests (Files): Likewise.
74725         * modules/floorl-tests (Files): Likewise.
74726         * modules/fnmatch-tests (Files): Likewise.
74727         * modules/fopen-safer-tests (Files): Likewise.
74728         * modules/fopen-tests (Files): Likewise.
74729         * modules/fpending-tests (Files): Likewise.
74730         * modules/fprintf-posix-tests (Files): Likewise.
74731         * modules/fpurge-tests (Files): Likewise.
74732         * modules/freadable-tests (Files): Likewise.
74733         * modules/freadahead-tests (Files): Likewise.
74734         * modules/freading-tests (Files): Likewise.
74735         * modules/freadptr-tests (Files): Likewise.
74736         * modules/freadseek-tests (Files): Likewise.
74737         * modules/freopen-tests (Files): Likewise.
74738         * modules/frexp-nolibm-tests (Files): Likewise.
74739         * modules/frexp-tests (Files): Likewise.
74740         * modules/frexpl-nolibm-tests (Files): Likewise.
74741         * modules/frexpl-tests (Files): Likewise.
74742         * modules/fseek-tests (Files): Likewise.
74743         * modules/fseeko-tests (Files): Likewise.
74744         * modules/fstrcmp-tests (Files): Likewise.
74745         * modules/fsync-tests (Files): Likewise.
74746         * modules/ftell-tests (Files): Likewise.
74747         * modules/ftello-tests (Files): Likewise.
74748         * modules/func-tests (Files): Likewise.
74749         * modules/futimens-tests (Files): Likewise.
74750         * modules/fwritable-tests (Files): Likewise.
74751         * modules/fwriting-tests (Files): Likewise.
74752         * modules/getcwd-tests (Files): Likewise.
74753         * modules/getdate-tests (Files): Likewise.
74754         * modules/getdelim-tests (Files): Likewise.
74755         * modules/getdtablesize-tests (Files): Likewise.
74756         * modules/getgroups-tests (Files): Likewise.
74757         * modules/getline-tests (Files): Likewise.
74758         * modules/getndelim2-tests (Files): Likewise.
74759         * modules/glob-tests (Files): Likewise.
74760         * modules/hash-tests (Files): Likewise.
74761         * modules/i-ring-tests (Files): Likewise.
74762         * modules/iconv-tests (Files): Likewise.
74763         * modules/iconv_open-utf-tests (Files): Likewise.
74764         * modules/idpriv-drop-tests (Files): Likewise.
74765         * modules/idpriv-droptemp-tests (Files): Likewise.
74766         * modules/inet_ntop-tests (Files): Likewise.
74767         * modules/inet_pton-tests (Files): Likewise.
74768         * modules/isblank-tests (Files): Likewise.
74769         * modules/isfinite-tests (Files): Likewise.
74770         * modules/isinf-tests (Files): Likewise.
74771         * modules/isnan-tests (Files): Likewise.
74772         * modules/isnand-nolibm-tests (Files): Likewise.
74773         * modules/isnand-tests (Files): Likewise.
74774         * modules/isnanf-nolibm-tests (Files): Likewise.
74775         * modules/isnanf-tests (Files): Likewise.
74776         * modules/isnanl-nolibm-tests (Files): Likewise.
74777         * modules/isnanl-tests (Files): Likewise.
74778         * modules/lchown-tests (Files): Likewise.
74779         * modules/ldexpl-tests (Files): Likewise.
74780         * modules/link-tests (Files): Likewise.
74781         * modules/linkat-tests (Files): Likewise.
74782         * modules/linked-list-tests (Files): Likewise.
74783         * modules/linkedhash-list-tests (Files): Likewise.
74784         * modules/localename-tests (Files): Likewise.
74785         * modules/lseek-tests (Files): Likewise.
74786         * modules/lstat-tests (Files): Likewise.
74787         * modules/mbmemcasecmp-tests (Files): Likewise.
74788         * modules/mbmemcasecoll-tests (Files): Likewise.
74789         * modules/mbrtowc-tests (Files): Likewise.
74790         * modules/mbscasecmp-tests (Files): Likewise.
74791         * modules/mbscasestr-tests (Files): Likewise.
74792         * modules/mbschr-tests (Files): Likewise.
74793         * modules/mbscspn-tests (Files): Likewise.
74794         * modules/mbsinit-tests (Files): Likewise.
74795         * modules/mbsncasecmp-tests (Files): Likewise.
74796         * modules/mbsnrtowcs-tests (Files): Likewise.
74797         * modules/mbspbrk-tests (Files): Likewise.
74798         * modules/mbspcasecmp-tests (Files): Likewise.
74799         * modules/mbsrchr-tests (Files): Likewise.
74800         * modules/mbsrtowcs-tests (Files): Likewise.
74801         * modules/mbsspn-tests (Files): Likewise.
74802         * modules/mbsstr-tests (Files): Likewise.
74803         * modules/memchr-tests (Files): Likewise.
74804         * modules/memchr2-tests (Files): Likewise.
74805         * modules/memcmp-tests (Files): Likewise.
74806         * modules/memmem-tests (Files): Likewise.
74807         * modules/memrchr-tests (Files): Likewise.
74808         * modules/mkdir-tests (Files): Likewise.
74809         * modules/mkfifo-tests (Files): Likewise.
74810         * modules/mkfifoat-tests (Files): Likewise.
74811         * modules/mknod-tests (Files): Likewise.
74812         * modules/nanosleep-tests (Files): Likewise.
74813         * modules/nl_langinfo-tests (Files): Likewise.
74814         * modules/obstack-printf-tests (Files): Likewise.
74815         * modules/open-tests (Files): Likewise.
74816         * modules/openat-tests (Files): Likewise.
74817         * modules/pipe-filter-gi-tests (Files): Likewise.
74818         * modules/pipe-filter-ii-tests (Files): Likewise.
74819         * modules/pipe2-tests (Files): Likewise.
74820         * modules/popen-safer-tests (Files): Likewise.
74821         * modules/popen-tests (Files): Likewise.
74822         * modules/posixtm-tests (Files): Likewise.
74823         * modules/pread-tests (Files): Likewise.
74824         * modules/printf-frexp-tests (Files): Likewise.
74825         * modules/printf-frexpl-tests (Files): Likewise.
74826         * modules/printf-posix-tests (Files): Likewise.
74827         * modules/priv-set-tests (Files): Likewise.
74828         * modules/quotearg-tests (Files): Likewise.
74829         * modules/random_r-tests (Files): Likewise.
74830         * modules/rawmemchr-tests (Files): Likewise.
74831         * modules/rbtree-list-tests (Files): Likewise.
74832         * modules/rbtree-oset-tests (Files): Likewise.
74833         * modules/rbtreehash-list-tests (Files): Likewise.
74834         * modules/readlink-tests (Files): Likewise.
74835         * modules/remove-tests (Files): Likewise.
74836         * modules/rename-tests (Files): Likewise.
74837         * modules/renameat-tests (Files): Likewise.
74838         * modules/rmdir-tests (Files): Likewise.
74839         * modules/round-tests (Files): Likewise.
74840         * modules/roundf-tests (Files): Likewise.
74841         * modules/roundl-tests (Files): Likewise.
74842         * modules/safe-alloc-tests (Files): Likewise.
74843         * modules/setenv-tests (Files): Likewise.
74844         * modules/sigaction-tests (Files): Likewise.
74845         * modules/signbit-tests (Files): Likewise.
74846         * modules/sleep-tests (Files): Likewise.
74847         * modules/snprintf-posix-tests (Files): Likewise.
74848         * modules/snprintf-tests (Files): Likewise.
74849         * modules/sprintf-posix-tests (Files): Likewise.
74850         * modules/stat-tests (Files): Likewise.
74851         * modules/stat-time-tests (Files): Likewise.
74852         * modules/strcasestr-tests (Files): Likewise.
74853         * modules/strchrnul-tests (Files): Likewise.
74854         * modules/strerror-tests (Files): Likewise.
74855         * modules/striconv-tests (Files): Likewise.
74856         * modules/striconveh-tests (Files): Likewise.
74857         * modules/striconveha-tests (Files): Likewise.
74858         * modules/strsignal-tests (Files): Likewise.
74859         * modules/strstr-tests (Files): Likewise.
74860         * modules/strtod-tests (Files): Likewise.
74861         * modules/strverscmp-tests (Files): Likewise.
74862         * modules/symlink-tests (Files): Likewise.
74863         * modules/symlinkat-tests (Files): Likewise.
74864         * modules/trunc-tests (Files): Likewise.
74865         * modules/truncf-tests (Files): Likewise.
74866         * modules/truncl-tests (Files): Likewise.
74867         * modules/uname-tests (Files): Likewise.
74868         * modules/unicase/cased-tests (Files): Likewise.
74869         * modules/unicase/ignorable-tests (Files): Likewise.
74870         * modules/unicase/locale-language-tests (Files): Likewise.
74871         * modules/unicase/tolower-tests (Files): Likewise.
74872         * modules/unicase/totitle-tests (Files): Likewise.
74873         * modules/unicase/toupper-tests (Files): Likewise.
74874         * modules/unicase/u8-casecmp-tests (Files): Likewise.
74875         * modules/unicase/u8-casecoll-tests (Files): Likewise.
74876         * modules/unicase/u8-casefold-tests (Files): Likewise.
74877         * modules/unicase/u8-is-cased-tests (Files): Likewise.
74878         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
74879         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
74880         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
74881         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
74882         * modules/unicase/u8-tolower-tests (Files): Likewise.
74883         * modules/unicase/u8-totitle-tests (Files): Likewise.
74884         * modules/unicase/u8-toupper-tests (Files): Likewise.
74885         * modules/unicase/u16-casecmp-tests (Files): Likewise.
74886         * modules/unicase/u16-casecoll-tests (Files): Likewise.
74887         * modules/unicase/u16-casefold-tests (Files): Likewise.
74888         * modules/unicase/u16-is-cased-tests (Files): Likewise.
74889         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
74890         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
74891         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
74892         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
74893         * modules/unicase/u16-tolower-tests (Files): Likewise.
74894         * modules/unicase/u16-totitle-tests (Files): Likewise.
74895         * modules/unicase/u16-toupper-tests (Files): Likewise.
74896         * modules/unicase/u32-casecmp-tests (Files): Likewise.
74897         * modules/unicase/u32-casecoll-tests (Files): Likewise.
74898         * modules/unicase/u32-casefold-tests (Files): Likewise.
74899         * modules/unicase/u32-is-cased-tests (Files): Likewise.
74900         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
74901         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
74902         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
74903         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
74904         * modules/unicase/u32-tolower-tests (Files): Likewise.
74905         * modules/unicase/u32-totitle-tests (Files): Likewise.
74906         * modules/unicase/u32-toupper-tests (Files): Likewise.
74907         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
74908         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
74909         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
74910         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
74911         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
74912         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
74913         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
74914         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
74915         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
74916         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
74917         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
74918         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
74919         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
74920         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
74921         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
74922         * modules/unictype/bidicategory-name-tests (Files): Likewise.
74923         * modules/unictype/bidicategory-of-tests (Files): Likewise.
74924         * modules/unictype/bidicategory-test-tests (Files): Likewise.
74925         * modules/unictype/block-list-tests (Files): Likewise.
74926         * modules/unictype/block-of-tests (Files): Likewise.
74927         * modules/unictype/block-test-tests (Files): Likewise.
74928         * modules/unictype/category-C-tests (Files): Likewise.
74929         * modules/unictype/category-Cc-tests (Files): Likewise.
74930         * modules/unictype/category-Cf-tests (Files): Likewise.
74931         * modules/unictype/category-Cn-tests (Files): Likewise.
74932         * modules/unictype/category-Co-tests (Files): Likewise.
74933         * modules/unictype/category-Cs-tests (Files): Likewise.
74934         * modules/unictype/category-L-tests (Files): Likewise.
74935         * modules/unictype/category-Ll-tests (Files): Likewise.
74936         * modules/unictype/category-Lm-tests (Files): Likewise.
74937         * modules/unictype/category-Lo-tests (Files): Likewise.
74938         * modules/unictype/category-Lt-tests (Files): Likewise.
74939         * modules/unictype/category-Lu-tests (Files): Likewise.
74940         * modules/unictype/category-M-tests (Files): Likewise.
74941         * modules/unictype/category-Mc-tests (Files): Likewise.
74942         * modules/unictype/category-Me-tests (Files): Likewise.
74943         * modules/unictype/category-Mn-tests (Files): Likewise.
74944         * modules/unictype/category-N-tests (Files): Likewise.
74945         * modules/unictype/category-Nd-tests (Files): Likewise.
74946         * modules/unictype/category-Nl-tests (Files): Likewise.
74947         * modules/unictype/category-No-tests (Files): Likewise.
74948         * modules/unictype/category-P-tests (Files): Likewise.
74949         * modules/unictype/category-Pc-tests (Files): Likewise.
74950         * modules/unictype/category-Pd-tests (Files): Likewise.
74951         * modules/unictype/category-Pe-tests (Files): Likewise.
74952         * modules/unictype/category-Pf-tests (Files): Likewise.
74953         * modules/unictype/category-Pi-tests (Files): Likewise.
74954         * modules/unictype/category-Po-tests (Files): Likewise.
74955         * modules/unictype/category-Ps-tests (Files): Likewise.
74956         * modules/unictype/category-S-tests (Files): Likewise.
74957         * modules/unictype/category-Sc-tests (Files): Likewise.
74958         * modules/unictype/category-Sk-tests (Files): Likewise.
74959         * modules/unictype/category-Sm-tests (Files): Likewise.
74960         * modules/unictype/category-So-tests (Files): Likewise.
74961         * modules/unictype/category-Z-tests (Files): Likewise.
74962         * modules/unictype/category-Zl-tests (Files): Likewise.
74963         * modules/unictype/category-Zp-tests (Files): Likewise.
74964         * modules/unictype/category-Zs-tests (Files): Likewise.
74965         * modules/unictype/category-and-not-tests (Files): Likewise.
74966         * modules/unictype/category-and-tests (Files): Likewise.
74967         * modules/unictype/category-byname-tests (Files): Likewise.
74968         * modules/unictype/category-name-tests (Files): Likewise.
74969         * modules/unictype/category-none-tests (Files): Likewise.
74970         * modules/unictype/category-of-tests (Files): Likewise.
74971         * modules/unictype/category-or-tests (Files): Likewise.
74972         * modules/unictype/category-test-withtable-tests (Files): Likewise.
74973         * modules/unictype/combining-class-tests (Files): Likewise.
74974         * modules/unictype/ctype-alnum-tests (Files): Likewise.
74975         * modules/unictype/ctype-alpha-tests (Files): Likewise.
74976         * modules/unictype/ctype-blank-tests (Files): Likewise.
74977         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
74978         * modules/unictype/ctype-digit-tests (Files): Likewise.
74979         * modules/unictype/ctype-graph-tests (Files): Likewise.
74980         * modules/unictype/ctype-lower-tests (Files): Likewise.
74981         * modules/unictype/ctype-print-tests (Files): Likewise.
74982         * modules/unictype/ctype-punct-tests (Files): Likewise.
74983         * modules/unictype/ctype-space-tests (Files): Likewise.
74984         * modules/unictype/ctype-upper-tests (Files): Likewise.
74985         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
74986         * modules/unictype/decimal-digit-tests (Files): Likewise.
74987         * modules/unictype/digit-tests (Files): Likewise.
74988         * modules/unictype/mirror-tests (Files): Likewise.
74989         * modules/unictype/numeric-tests (Files): Likewise.
74990         * modules/unictype/property-alphabetic-tests (Files): Likewise.
74991         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
74992         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
74993         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
74994         Likewise.
74995         * modules/unictype/property-bidi-block-separator-tests (Files):
74996         Likewise.
74997         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
74998         Likewise.
74999         * modules/unictype/property-bidi-common-separator-tests (Files):
75000         Likewise.
75001         * modules/unictype/property-bidi-control-tests (Files): Likewise.
75002         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
75003         Likewise.
75004         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
75005         Likewise.
75006         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
75007         Likewise.
75008         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
75009         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
75010         Likewise.
75011         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
75012         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
75013         Likewise.
75014         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
75015         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
75016         * modules/unictype/property-bidi-segment-separator-tests (Files):
75017         Likewise.
75018         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
75019         * modules/unictype/property-byname-tests (Files): Likewise.
75020         * modules/unictype/property-combining-tests (Files): Likewise.
75021         * modules/unictype/property-composite-tests (Files): Likewise.
75022         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
75023         * modules/unictype/property-dash-tests (Files): Likewise.
75024         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
75025         * modules/unictype/property-default-ignorable-code-point-tests (Files):
75026         Likewise.
75027         * modules/unictype/property-deprecated-tests (Files): Likewise.
75028         * modules/unictype/property-diacritic-tests (Files): Likewise.
75029         * modules/unictype/property-extender-tests (Files): Likewise.
75030         * modules/unictype/property-format-control-tests (Files): Likewise.
75031         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
75032         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
75033         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
75034         * modules/unictype/property-hex-digit-tests (Files): Likewise.
75035         * modules/unictype/property-hyphen-tests (Files): Likewise.
75036         * modules/unictype/property-id-continue-tests (Files): Likewise.
75037         * modules/unictype/property-id-start-tests (Files): Likewise.
75038         * modules/unictype/property-ideographic-tests (Files): Likewise.
75039         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
75040         * modules/unictype/property-ids-trinary-operator-tests (Files):
75041         Likewise.
75042         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
75043         * modules/unictype/property-iso-control-tests (Files): Likewise.
75044         * modules/unictype/property-join-control-tests (Files): Likewise.
75045         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
75046         * modules/unictype/property-line-separator-tests (Files): Likewise.
75047         * modules/unictype/property-logical-order-exception-tests (Files):
75048         Likewise.
75049         * modules/unictype/property-lowercase-tests (Files): Likewise.
75050         * modules/unictype/property-math-tests (Files): Likewise.
75051         * modules/unictype/property-non-break-tests (Files): Likewise.
75052         * modules/unictype/property-not-a-character-tests (Files): Likewise.
75053         * modules/unictype/property-numeric-tests (Files): Likewise.
75054         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
75055         * modules/unictype/property-other-default-ignorable-code-point-tests
75056         (Files): Likewise.
75057         * modules/unictype/property-other-grapheme-extend-tests (Files):
75058         Likewise.
75059         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
75060         * modules/unictype/property-other-id-start-tests (Files): Likewise.
75061         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
75062         * modules/unictype/property-other-math-tests (Files): Likewise.
75063         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
75064         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
75065         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
75066         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
75067         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
75068         * modules/unictype/property-private-use-tests (Files): Likewise.
75069         * modules/unictype/property-punctuation-tests (Files): Likewise.
75070         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
75071         * modules/unictype/property-radical-tests (Files): Likewise.
75072         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
75073         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
75074         * modules/unictype/property-space-tests (Files): Likewise.
75075         * modules/unictype/property-terminal-punctuation-tests (Files):
75076         Likewise.
75077         * modules/unictype/property-test-tests (Files): Likewise.
75078         * modules/unictype/property-titlecase-tests (Files): Likewise.
75079         * modules/unictype/property-unassigned-code-value-tests (Files):
75080         Likewise.
75081         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
75082         * modules/unictype/property-uppercase-tests (Files): Likewise.
75083         * modules/unictype/property-variation-selector-tests (Files): Likewise.
75084         * modules/unictype/property-white-space-tests (Files): Likewise.
75085         * modules/unictype/property-xid-continue-tests (Files): Likewise.
75086         * modules/unictype/property-xid-start-tests (Files): Likewise.
75087         * modules/unictype/property-zero-width-tests (Files): Likewise.
75088         * modules/unictype/scripts-tests (Files): Likewise.
75089         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
75090         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
75091         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
75092         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
75093         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
75094         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
75095         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
75096         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
75097         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
75098         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
75099         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
75100         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
75101         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
75102         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
75103         * modules/uninorm/composition-tests (Files): Likewise.
75104         * modules/uninorm/decomposing-form-tests (Files): Likewise.
75105         * modules/uninorm/decomposition-tests (Files): Likewise.
75106         * modules/uninorm/filter-tests (Files): Likewise.
75107         * modules/uninorm/nfc-tests (Files): Likewise.
75108         * modules/uninorm/nfd-tests (Files): Likewise.
75109         * modules/uninorm/nfkc-tests (Files): Likewise.
75110         * modules/uninorm/nfkd-tests (Files): Likewise.
75111         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
75112         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
75113         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
75114         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
75115         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
75116         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
75117         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
75118         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
75119         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
75120         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
75121         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
75122         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
75123         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
75124         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
75125         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
75126         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
75127         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
75128         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
75129         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
75130         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
75131         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
75132         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
75133         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
75134         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
75135         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
75136         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
75137         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
75138         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
75139         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
75140         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
75141         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
75142         * modules/uniwidth/u8-width-tests (Files): Likewise.
75143         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
75144         * modules/uniwidth/u16-width-tests (Files): Likewise.
75145         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
75146         * modules/uniwidth/u32-width-tests (Files): Likewise.
75147         * modules/uniwidth/width-tests (Files): Likewise.
75148         * modules/unlink-tests (Files): Likewise.
75149         * modules/unsetenv-tests (Files): Likewise.
75150         * modules/usleep-tests (Files): Likewise.
75151         * modules/utimens-tests (Files): Likewise.
75152         * modules/utimensat-tests (Files): Likewise.
75153         * modules/vasnprintf-posix-tests (Files): Likewise.
75154         * modules/vasnprintf-tests (Files): Likewise.
75155         * modules/vasprintf-posix-tests (Files): Likewise.
75156         * modules/vasprintf-tests (Files): Likewise.
75157         * modules/vdprintf-posix-tests (Files): Likewise.
75158         * modules/vfprintf-posix-tests (Files): Likewise.
75159         * modules/vprintf-posix-tests (Files): Likewise.
75160         * modules/vsnprintf-posix-tests (Files): Likewise.
75161         * modules/vsnprintf-tests (Files): Likewise.
75162         * modules/vsprintf-posix-tests (Files): Likewise.
75163         * modules/wcrtomb-tests (Files): Likewise.
75164         * modules/wcsnrtombs-tests (Files): Likewise.
75165         * modules/wcsrtombs-tests (Files): Likewise.
75166         * modules/wctype-tests (Files): Likewise.
75167         * modules/wcwidth-tests (Files): Likewise.
75168         * modules/xmemdup0-tests (Files): Likewise.
75169         * modules/xprintf-posix-tests (Files): Likewise.
75170         * modules/xvasprintf-tests (Files): Likewise.
75172 2009-12-24  Eric Blake  <ebb9@byu.net>
75174         test-nanosleep: fix typo
75175         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
75176         patch.
75177         Reported by Bruno Haible.
75179 2009-12-24  Bruno Haible  <bruno@clisp.org>
75181         Reduce namespace pollution on glibc systems.
75182         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
75183         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
75184         systems.
75185         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
75186         <getopt.h> on glibc systems.
75187         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
75188         systems.
75189         * lib/fcntl.c: Include <unistd.h> here instead.
75191 2009-12-24  Bruno Haible  <bruno@clisp.org>
75193         * lib/stdlib.in.h (includes): Fix typo in today's commit.
75195 2009-12-24  Eric Blake  <ebb9@byu.net>
75197         tests: add signature checks
75198         * tests/signature.h (SIGNATURE_CHECK): New file.
75199         * modules/atexit-tests (Files): Use it.
75200         * modules/btowc-tests (Files): Likewise.
75201         * modules/canonicalize-lgpl-tests (Files): Likewise.
75202         * modules/ceilf-tests (Files): Likewise.
75203         * modules/ceill-tests (Files): Likewise.
75204         * modules/chown-tests (Files): Likewise.
75205         * modules/dprintf-posix-tests (Files): Likewise.
75206         * modules/dup2-tests (Files): Likewise.
75207         * modules/dup3-tests (Files): Likewise.
75208         * modules/duplocale-tests (Files): Likewise.
75209         * modules/fchdir-tests (Files): Likewise.
75210         * modules/fcntl-tests (Files): Likewise.
75211         * modules/fdopendir-tests (Files): Likewise.
75212         * modules/fflush-tests (Files): Likewise.
75213         * modules/flock-tests (Files): Likewise.
75214         * modules/floorf-tests (Files): Likewise.
75215         * modules/floorl-tests (Files): Likewise.
75216         * modules/fnmatch-tests (Files): Likewise.
75217         * modules/fopen-tests (Files): Likewise.
75218         * modules/fprintf-posix-tests (Files): Likewise.
75219         * modules/freopen-tests (Files): Likewise.
75220         * modules/frexp-nolibm-tests (Files): Likewise.
75221         * modules/frexp-tests (Files): Likewise.
75222         * modules/frexpl-nolibm-tests (Files): Likewise.
75223         * modules/frexpl-tests (Files): Likewise.
75224         * modules/fseek-tests (Files): Likewise.
75225         * modules/fseeko-tests (Files): Likewise.
75226         * modules/fsync-tests (Files): Likewise.
75227         * modules/ftell-tests (Files): Likewise.
75228         * modules/ftello-tests (Files): Likewise.
75229         * modules/futimens-tests (Files): Likewise.
75230         * modules/getaddrinfo-tests (Files): Likewise.
75231         * modules/getcwd-tests (Files): Likewise.
75232         * modules/getdelim-tests (Files): Likewise.
75233         * modules/getdtablesize-tests (Files): Likewise.
75234         * modules/getgroups-tests (Files): Likewise.
75235         * modules/gethostname-tests (Files): Likewise.
75236         * modules/getline-tests (Files): Likewise.
75237         * modules/getopt-posix-tests (Files): Likewise.
75238         * modules/gettimeofday-tests (Files): Likewise.
75239         * modules/glob-tests (Files): Likewise.
75240         * modules/iconv-tests (Files): Likewise.
75241         * modules/inet_ntop-tests (Files): Likewise.
75242         * modules/inet_pton-tests (Files): Likewise.
75243         * modules/isblank-tests (Files): Likewise.
75244         * modules/lchown-tests (Files): Likewise.
75245         * modules/ldexpl-tests (Files): Likewise.
75246         * modules/link-tests (Files): Likewise.
75247         * modules/linkat-tests (Files): Likewise.
75248         * modules/lseek-tests (Files): Likewise.
75249         * modules/lstat-tests (Files): Likewise.
75250         * modules/mbrtowc-tests (Files): Likewise.
75251         * modules/mbsinit-tests (Files): Likewise.
75252         * modules/mbsnrtowcs-tests (Files): Likewise.
75253         * modules/mbsrtowcs-tests (Files): Likewise.
75254         * modules/memchr-tests (Files): Likewise.
75255         * modules/memcmp-tests (Files): Likewise.
75256         * modules/memmem-tests (Files): Likewise.
75257         * modules/memrchr-tests (Files): Likewise.
75258         * modules/mkdir-tests (Files): Likewise.
75259         * modules/mkfifo-tests (Files): Likewise.
75260         * modules/mkfifoat-tests (Files): Likewise.
75261         * modules/mknod-tests (Files): Likewise.
75262         * modules/nanosleep-tests (Files): Likewise.
75263         * modules/nl_langinfo-tests (Files): Likewise.
75264         * modules/obstack-printf-tests (Files): Likewise.
75265         * modules/open-tests (Files): Likewise.
75266         * modules/openat-tests (Files): Likewise.
75267         * modules/perror-tests (Files): Likewise.
75268         * modules/pipe2-tests (Files): Likewise.
75269         * modules/poll-tests (Files): Likewise.
75270         * modules/popen-tests (Files): Likewise.
75271         * modules/posix_spawn-tests (Files): Likewise.
75272         * modules/posix_spawnp-tests (Files): Likewise.
75273         * modules/pread-tests (Files): Likewise.
75274         * modules/printf-posix-tests (Files): Likewise.
75275         * modules/pty-tests (Files): Likewise.
75276         * modules/random_r-tests (Files): Likewise.
75277         * modules/rawmemchr-tests (Files): Likewise.
75278         * modules/readlink-tests (Files): Likewise.
75279         * modules/remove-tests (Files): Likewise.
75280         * modules/rename-tests (Files): Likewise.
75281         * modules/renameat-tests (Files): Likewise.
75282         * modules/rmdir-tests (Files): Likewise.
75283         * modules/round-tests (Files): Likewise.
75284         * modules/roundf-tests (Files): Likewise.
75285         * modules/roundl-tests (Files): Likewise.
75286         * modules/select-tests (Files): Likewise.
75287         * modules/setenv-tests (Files): Likewise.
75288         * modules/sigaction-tests (Files): Likewise.
75289         * modules/sleep-tests (Files): Likewise.
75290         * modules/snprintf-posix-tests (Files): Likewise.
75291         * modules/snprintf-tests (Files): Likewise.
75292         * modules/sprintf-posix-tests (Files): Likewise.
75293         * modules/stat-tests (Files): Likewise.
75294         * modules/strcasestr-tests (Files): Likewise.
75295         * modules/strchrnul-tests (Files): Likewise.
75296         * modules/strerror-tests (Files): Likewise.
75297         * modules/strsignal-tests (Files): Likewise.
75298         * modules/strstr-tests (Files): Likewise.
75299         * modules/strtod-tests (Files): Likewise.
75300         * modules/strverscmp-tests (Files): Likewise.
75301         * modules/symlink-tests (Files): Likewise.
75302         * modules/symlinkat-tests (Files): Likewise.
75303         * modules/times-tests (Files): Likewise.
75304         * modules/trunc-tests (Files): Likewise.
75305         * modules/truncf-tests (Files): Likewise.
75306         * modules/truncl-tests (Files): Likewise.
75307         * modules/tsearch-tests (Files): Likewise.
75308         * modules/uname-tests (Files): Likewise.
75309         * modules/unlink-tests (Files): Likewise.
75310         * modules/unsetenv-tests (Files): Likewise.
75311         * modules/usleep-tests (Files): Likewise.
75312         * modules/utimensat-tests (Files): Likewise.
75313         * modules/vasprintf-tests (Files): Likewise.
75314         * modules/vdprintf-posix-tests (Files): Likewise.
75315         * modules/vfprintf-posix-tests (Files): Likewise.
75316         * modules/vprintf-posix-tests (Files): Likewise.
75317         * modules/vsnprintf-posix-tests (Files): Likewise.
75318         * modules/vsnprintf-tests (Files): Likewise.
75319         * modules/vsprintf-posix-tests (Files): Likewise.
75320         * modules/wcrtomb-tests (Files): Likewise.
75321         * modules/wcsnrtombs-tests (Files): Likewise.
75322         * modules/wcsrtombs-tests (Files): Likewise.
75323         * modules/wcwidth-tests (Files): Likewise.
75324         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
75325         * tests/test-isinf.c (isinf): Likewise.
75326         * tests/test-isnan.c (isnan): Likewise.
75327         * tests/test-signbit.c (signbit): Likewise.
75328         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
75329         declaration, either as macro or with correct signature.
75330         (select): Ensure function under test is declared with correct
75331         signature in correct header.
75332         * tests/test-atexit.c (atexit): Likewise.
75333         * tests/test-btowc.c (btowc): Likewise.
75334         * tests/test-canonicalize-lgpl.c (realpath)
75335         (canonicalize_file_name): Likewise.
75336         * tests/test-ceilf1.c (ceilf): Likewise.
75337         * tests/test-ceill.c (ceill): Likewise.
75338         * tests/test-chown.c (chown): Likewise.
75339         * tests/test-dprintf-posix.c (dprintf): Likewise.
75340         * tests/test-dup2.c (dup2): Likewise.
75341         * tests/test-dup3.c (dup3): Likewise.
75342         * tests/test-duplocale.c (duplocale): Likewise.
75343         * tests/test-fchdir.c (fchdir): Likewise.
75344         * tests/test-fchownat.c (fchownat): Likewise.
75345         * tests/test-fcntl.c (fcntl): Likewise.
75346         * tests/test-fdopendir.c (fdopendir): Likewise.
75347         * tests/test-fflush.c (fflush): Likewise.
75348         * tests/test-flock.c (flock): Likewise.
75349         * tests/test-floorf1.c (floorf): Likewise.
75350         * tests/test-floorl.c (floorl): Likewise.
75351         * tests/test-fnmatch.c (fnmatch): Likewise.
75352         * tests/test-fopen.c (fopen): Likewise.
75353         * tests/test-fprintf-posix.c (fprintf): Likewise.
75354         * tests/test-freopen.c (freopen): Likewise.
75355         * tests/test-frexp.c (frexp): Likewise.
75356         * tests/test-frexpl.c (frexpl): Likewise.
75357         * tests/test-fseek.c (fseek): Likewise.
75358         * tests/test-fseeko.c (fseeko): Likewise.
75359         * tests/test-fstatat.c (fstatat): Likewise.
75360         * tests/test-fsync.c (fsync): Likewise.
75361         * tests/test-ftell.c (ftell): Likewise.
75362         * tests/test-ftello.c (ftello): Likewise.
75363         * tests/test-futimens.c (futimens): Likewise.
75364         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
75365         (gai_strerror): Likewise.
75366         * tests/test-getcwd.c (getcwd): Likewise.
75367         * tests/test-getdelim.c (getdelim): Likewise.
75368         * tests/test-getdtablesize.c (getdtablesize): Likewise.
75369         * tests/test-getgroups.c (getgroups): Likewise.
75370         * tests/test-gethostname.c (gethostname): Likewise.
75371         * tests/test-getline.c (getline): Likewise.
75372         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
75373         Likewise.
75374         * tests/test-gettimeofday.c (gettimeofday): Likewise.
75375         * tests/test-glob.c (glob, globfree): Likewise.
75376         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
75377         * tests/test-inet_ntop.c (inet_ntop): Likewise.
75378         * tests/test-inet_pton.c (inet_pton): Likewise.
75379         * tests/test-isblank.c (isblank): Likewise.
75380         * tests/test-lchown.c (lchown): Likewise.
75381         * tests/test-ldexpl.c (ldexpl): Likewise.
75382         * tests/test-link.c (link): Likewise.
75383         * tests/test-linkat.c (linkat): Likewise.
75384         * tests/test-lseek.c (lseek): Likewise.
75385         * tests/test-lstat.c (lstat): Likewise.
75386         * tests/test-mbrtowc.c (mbrtowc): Likewise.
75387         * tests/test-mbsinit.c (mbsinit): Likewise.
75388         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
75389         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
75390         * tests/test-memchr.c (memchr): Likewise.
75391         * tests/test-memcmp.c (memcmp): Likewise.
75392         * tests/test-memmem.c (memmem): Likewise.
75393         * tests/test-memrchr.c (memrchr): Likewise.
75394         * tests/test-mkdir.c (mkdir): Likewise.
75395         * tests/test-mkdirat.c (mkdirat): Likewise.
75396         * tests/test-mkfifo.c (mkfifo): Likewise.
75397         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
75398         * tests/test-mknod.c (mknod): Likewise.
75399         * tests/test-nanosleep.c (nanosleep): Likewise.
75400         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
75401         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
75402         Likewise.
75403         * tests/test-open.c (open): Likewise.
75404         * tests/test-openat.c (openat): Likewise.
75405         * tests/test-perror.c (perror): Likewise.
75406         * tests/test-pipe2.c (pipe2): Likewise.
75407         * tests/test-poll.c (poll): Likewise.
75408         * tests/test-popen.c (popen, pclose): Likewise.
75409         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
75410         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
75411         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
75412         (posix_spawn_file_actions_destroy)
75413         (posix_spawn_file_actions_addclose)
75414         (posix_spawn_file_actions_addopen)
75415         (posix_spawn_file_actions_adddup2): Likewise.
75416         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
75417         * tests/test-pread.c (pread): Likewise.
75418         * tests/test-printf-posix.c (printf): Likewise.
75419         * tests/test-pty.c (openpty, forkpty): Likewise.
75420         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
75421         (random_r): Likewise.
75422         * tests/test-rawmemchr.c (rawmemchr): Likewise.
75423         * tests/test-readlink.c (readlink): Likewise.
75424         * tests/test-remove.c (remove): Likewise.
75425         * tests/test-rename.c (rename): Likewise.
75426         * tests/test-renameat.c (renameat): Likewise.
75427         * tests/test-rmdir.c (rmdir): Likewise.
75428         * tests/test-round1.c (round): Likewise.
75429         * tests/test-roundf1.c (roundf): Likewise.
75430         * tests/test-roundl.c (roundl): Likewise.
75431         * tests/test-setenv.c (setenv): Likewise.
75432         * tests/test-sigaction.c (sigaction): Likewise.
75433         * tests/test-sleep.c (sleep): Likewise.
75434         * tests/test-snprintf.c (snprintf): Likewise.
75435         * tests/test-sprintf-posix.c (sprintf): Likewise.
75436         * tests/test-stat.c (stat): Likewise.
75437         * tests/test-stpncpy.c (stpncpy): Likewise.
75438         * tests/test-strcasestr.c (strcasestr): Likewise.
75439         * tests/test-strchrnul.c (strchrnul): Likewise.
75440         * tests/test-strerror.c (strerror): Likewise.
75441         * tests/test-strsignal.c (strsignal): Likewise.
75442         * tests/test-strstr.c (strstr): Likewise.
75443         * tests/test-strtod.c (strtod): Likewise.
75444         * tests/test-strverscmp.c (strverscmp): Likewise.
75445         * tests/test-symlink.c (symlink): Likewise.
75446         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
75447         * tests/test-times.c (times): Likewise.
75448         * tests/test-trunc1.c (trunc): Likewise.
75449         * tests/test-truncf1.c (truncf): Likewise.
75450         * tests/test-truncl.c (truncl): Likewise.
75451         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
75452         Likewise.
75453         * tests/test-uname.c (uname): Likewise.
75454         * tests/test-unlink.c (unlink): Likewise.
75455         * tests/test-unlinkat.c (unlinkat): Likewise.
75456         * tests/test-unsetenv.c (unsetenv): Likewise.
75457         * tests/test-usleep.c (usleep): Likewise.
75458         * tests/test-utimensat.c (utimensat): Likewise.
75459         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
75460         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
75461         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
75462         * tests/test-vprintf-posix.c (vprintf): Likewise.
75463         * tests/test-vsnprintf.c (vsnprintf): Likewise.
75464         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
75465         * tests/test-wcrtomb.c (wcrtomb): Likewise.
75466         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
75467         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
75468         * tests/test-wcwidth.c (wcwidth): Likewise.
75470         build: pull in conditional headers during GNULIB_POSIXCHECK
75471         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
75472         definitions from any conditionally-included headers.
75473         * lib/stdlib.in.h (includes): Likewise.
75474         * lib/unistd.in.h (includes): Likewise.
75476 2009-12-24  Bruno Haible  <bruno@clisp.org>
75478         * tests/test-argv-iter.c: Include header file being tested immediately
75479         after config.h.
75480         * tests/test-base64.c: Likewise.
75481         * tests/test-flock.c: Likewise.
75482         * tests/test-fsync.c: Likewise.
75483         * tests/test-getdate.c: Likewise.
75484         * tests/test-getndelim2.c: Likewise.
75485         * tests/test-isfinite.c: Likewise.
75486         * tests/test-isinf.c: Likewise.
75487         * tests/test-strerror.c: Likewise.
75488         * tests/test-strsignal.c: Likewise.
75490 2009-12-23  Eric Blake  <ebb9@byu.net>
75492         unistd: work around cygwin bug
75493         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
75494         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
75495         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75497 2009-12-23  Bruno Haible  <bruno@clisp.org>
75499         localename: More tests.
75500         * tests/test-localename.c (SIZEOF): New macro.
75501         (categories): New variable.
75502         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
75503         test_locale_name_default): Add test w.r.t. thread locale.
75504         (test_locale_name_thread): New function.
75505         (main): Invoke it.
75507         localename: Make aware of thread locale.
75508         * lib/localename.h (gl_locale_name_thread): New declaration.
75509         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
75510         behaviour with respect to thread locale.
75511         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
75512         <langinfo.h>, glthread/lock.h.
75513         (SIZE_BITS): New macro.
75514         (string_hash): New function.
75515         (struct hash_node): New type.
75516         (HASH_TABLE_SIZE): New macro.
75517         (struniq_hash_table, struniq_lock): New variables.
75518         (struniq): New function.
75519         (gl_locale_name_thread): New function.
75520         (gl_locale_name): Invoke it.
75521         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
75522         * modules/localename (Depends-on): Add lock.
75523         Reported by Mike Gran <spk121@yahoo.com>.
75525 2009-12-23  Eric Blake  <ebb9@byu.net>
75527         va-args: new module
75528         * modules/va-args: New file.
75529         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
75530         * MODULES.html.sh (Core language properties): Mention it.
75532         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
75533         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
75534         named alias for __attribute__((__unused__)).
75535         * lib/chown.c: Update client.
75536         * lib/fchmodat.c: Likewise.
75537         * lib/fts.c: Likewise.
75538         * lib/getdate.y: Likewise.
75539         * lib/getgroups.c: Likewise.
75540         * lib/getopt.c: Likewise.
75541         * lib/getugroups.c: Likewise.
75542         * lib/mkdir.c: Likewise.
75543         * lib/mkfifo.c: Likewise.
75544         * lib/mkfifoat.c: Likewise.
75545         * lib/mknod.c: Likewise.
75546         * lib/mknodat.c: Likewise.
75547         * lib/readlink.c: Likewise.
75548         * lib/se-context.in.h: Likewise.
75549         * lib/se-selinux.in.h: Likewise.
75550         * lib/sockets.c: Likewise.
75551         * lib/symlink.c: Likewise.
75552         * lib/symlinkat.c: Likewise.
75553         * lib/unicodeio.c: Likewise.
75554         * lib/unistr.h: Likewise.
75555         * tests/test-areadlink.c: Likewise.
75556         * tests/test-areadlinkat.c: Likewise.
75557         * tests/test-filenamecat.c: Likewise.
75558         * tests/test-fseeko.c: Likewise.
75559         * tests/test-ftello.c: Likewise.
75560         * tests/test-getdate.c: Likewise.
75561         * tests/test-getgroups.c: Likewise.
75562         * tests/test-gethostname.c: Likewise.
75563         * tests/test-quotearg.c: Likewise.
75564         * tests/test-version-etc.c: Likewise.
75565         * tests/test-xalloc-die.c: Likewise.
75566         * tests/test-xfprintf-posix.c: Likewise.
75567         * tests/test-xprintf-posix.c: Likewise.
75568         * tests/test-xvasprintf.c: Likewise.
75570         tests: avoid compiler warnings
75571         * tests/test-fcntl.c (main): Delete unused parameters.
75572         * tests/test-freopen-safer.c (main): Likewise.
75573         * tests/test-xalloc-die.c (main): Mark unused parameters.
75574         * tests/test-fseeko.c (main): Likewise.
75575         * tests/test-ftello.c (main): Likewise.
75576         * tests/test-nanosleep.c (main): Avoid declaration warning.
75577         * tests/test-sleep.c (main): Likewise.
75578         * tests/test-unsetenv.c (main): Silence warning about string
75579         literal.
75580         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
75582 2009-12-23  Bruno Haible  <bruno@clisp.org>
75584         * tests/test-localename.c (test_locale_name): New function, extracted
75585         from main. Also test mixed situations.
75586         (test_locale_name_posix, test_locale_name_environ,
75587         test_locale_name_default): New functions.
75588         (main): Invoke them all.
75589         * modules/localename-tests (configure.ac): Test for newlocale.
75591 2009-12-23  Bruno Haible  <bruno@clisp.org>
75593         unistd: Ensure getcwd gets declared before being overridden.
75594         * lib/unistd.in.h: Conditionally include <io.h>.
75596 2009-12-22  Bruno Haible  <bruno@clisp.org>
75598         wchar: Diagnose broken combination of glibc and gcc versions and flags.
75599         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
75600         (gl_WCHAR_H): Invoke it.
75601         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
75602         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
75603         Reported by Karl Berry <karl@freefriends.org>.
75605 2009-12-22  Eric Blake  <ebb9@byu.net>
75607         math, unistd: avoid redundant includes
75608         * lib/math.in.h (isnan): No need to re-include <math.h>.
75609         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
75611         getsubopt: work around cygwin bug
75612         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
75613         avoid conflicting with system getsubopt.
75614         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
75615         bug.
75617         getopt: synchronize from glibc
75618         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
75619         parameter order.  Adjust all callers.
75620         (_getopt_internal_r, main): Adjust quoting in error messages.
75621         Drop considerations for outdated POSIX 1003.2 error message.
75622         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
75623         callers.
75624         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
75626         test-getopt: test stderr behavior
75627         * modules/getopt-posix-tests (Depends-on): Add dup2.
75628         * tests/test-getopt.c (ASSERT): Avoid stderr.
75629         (main): Move stderr to a temporary file.
75630         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
75631         Instead, add parameter to inform caller if output occurred.
75632         (test_getopt): Adjust all existing tests to expect silence, and
75633         add new tests of leading ":".
75634         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75635         glibc shortcomings with leading "-:" or "+:" in optstring.
75636         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75637         Likewise.
75638         * doc/posix-functions/getopt.texi (getopt): Likewise.
75640         test-getopt: enhance test
75641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
75642         supports optind=0.
75643         * tests/test-getopt.c (OPTIND_MIN): Move...
75644         * tests/test-getopt.h (OPTIND_MIN): ...here.
75645         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
75646         Require that optind=0 works, since modern BSD supports it in
75647         addition to optreset, and since coreutils expects it.
75648         (test_getopt_long_only): New test.
75649         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75650         glibc shortcomings with 'W;', and enforcement of optind=0.
75651         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75652         Likewise.
75654 2009-12-21  Bruno Haible  <bruno@clisp.org>
75656         localename: Improvements for MacOS X and Cygwin.
75657         * lib/localename.h (gl_locale_name_environ): New declaration.
75658         * lib/localename.c (gl_locale_name_environ): New function, extracted from
75659         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
75660         (gl_locale_name_posix): Invoke it.
75661         (gl_locale_name_default): Add comments. Use Windows native API also on
75662         Cygwin.
75664 2009-12-21  Bruno Haible  <bruno@clisp.org>
75666         Update list of Win32 locale ids.
75667         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
75668         (LANG_SAMI): Renamed from LANG_SAAMI.
75669         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
75670         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
75671         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
75672         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
75673         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
75674         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
75675         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
75676         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
75677         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
75678         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
75679         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
75680         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
75681         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
75682         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
75683         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
75684         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
75685         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
75686         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
75687         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
75688         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
75689         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
75690         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
75691         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
75692         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
75693         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
75694         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
75695         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
75696         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
75697         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
75698         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
75699         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
75700         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
75701         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
75702         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
75703         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
75704         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
75705         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
75706         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
75707         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
75708         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
75709         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
75710         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
75711         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
75712         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
75713         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
75714         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
75715         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
75716         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
75717         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
75718         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
75719         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
75720         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
75721         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
75722         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
75723         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
75724         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
75725         Add more languages and countries for Sami, Sorbian. Add more countries
75726         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
75727         for Pashto. Change country for Syriac, Tswana.
75729 2009-12-21  Eric Blake  <ebb9@byu.net>
75731         test-utimens: avoid spurious failure
75732         * tests/test-chown.h (nap): Factor...
75733         * tests/nap.h: ...into new file.
75734         * tests/test-lchown.h (nap): Avoid duplication.
75735         * tests/test-utimens-common.h (nap): Use shared implementation,
75736         necessary on file systems with 1-second resolution.
75737         * modules/chown-tests (Files): Include new file.
75738         * modules/fdutimensat-tests (Files): Likewise.
75739         * modules/futimens-tests (Files): Likewise.
75740         * modules/lchown-tests (Files): Likewise.
75741         * modules/openat-tests (Files): Likewise.
75742         * modules/utimens-tests (Files): Likewise.
75743         * modules/utimensat-tests (Files): Likewise.
75745 2009-12-19  Eric Blake  <ebb9@byu.net>
75747         futimens, utimensat: work around Linux bug
75748         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
75749         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75750         * lib/utimensat.c (rpl_utimensat): Work around it.
75751         * lib/futimens.c (rpl_futimens): Adjust comment.
75753         utimens: work around Linux ctime bug
75754         * lib/utimens.c (detect_ctime_bug): New helper function.
75755         (update_timespec): Differentiate between workaround needed for
75756         this bug vs. what is needed for systems that lack utimensat.
75757         (fdutimens, lutimens): Work around bug.
75759         utimens: check for ctime update
75760         * tests/test-utimens-common.h (check_ctime): Define.
75761         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
75762         * tests/test-futimens.h (test_futimens): Likewise.
75763         * tests/test-lutimens.h (test_lutimens): Likewise.
75764         * doc/posix-functions/futimens.texi (futimens): Document the bug.
75765         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75767 2009-12-19  Bruno Haible  <bruno@clisp.org>
75769         dprintf-posix: Check against memory leak fixed on 2009-12-15.
75770         * tests/test-dprintf-posix2.sh: New file.
75771         * tests/test-dprintf-posix2.c: New file.
75772         * modules/dprintf-posix-tests (Files): Add them.
75773         (configure.ac): Check for getrlimit and setrlimit.
75774         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75776 2009-12-19  Bruno Haible  <bruno@clisp.org>
75778         fprintf-posix: Check against memory leak fixed on 2009-12-15.
75779         * tests/test-fprintf-posix3.sh: New file.
75780         * tests/test-fprintf-posix3.c: New file.
75781         * modules/fprintf-posix-tests (Files): Add them.
75782         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75784 2009-12-19  Eric Blake  <ebb9@byu.net>
75786         dirfd: fix prototype
75787         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
75788         * lib/dirfd.c (dirfd): Likewise.
75790         canonicalize: reduce memory usage
75791         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
75792         allocation to size.
75793         Reported by Solar Designer <solar@openwall.com>.
75795 2009-12-19  Bruno Haible  <bruno@clisp.org>
75797         New module attribute 'Applicability'.
75798         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
75799         * gnulib-tool: New option --extract-applicability.
75800         (func_usage): Document it.
75801         (sed_extract_prog): Recognize it.
75802         (func_get_applicability): New function.
75803         (func_import): Generalize handling of 'link-warning' module.
75804         * modules/link-warning (Applicability): New section.
75805         * modules/arg-nonnull (Applicability): New section.
75806         Repoted by Simon Josefsson <simon@josefsson.org>.
75808 2009-12-19  Bruno Haible  <bruno@clisp.org>
75810         fflush: tweak
75811         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
75812         * lib/fseeko.c (rpl_fseeko): Likewise.
75814 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
75816         * lib/gl_list.h: Fix typo in comment.
75818 2009-12-16  Eric Blake  <ebb9@byu.net>
75820         fcntl: use to simplify other modules
75821         * modules/cloexec (Depends-on): Add fcntl.
75822         * modules/fchdir (Depends-on): Likewise.
75823         * modules/fd-safer-flag (Depends-on): Likewise.
75824         * modules/unistd-safer (Depends-on): Likewise.
75825         * modules/dup3 (configure.ac): Set module indicator.
75826         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
75827         missing.
75828         * lib/fchdir.c (_gl_register_dup): Fix comment.
75829         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
75830         * lib/dup-safer.c (dup_safer): Likewise.
75831         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
75832         * lib/dup3.c (dup3): Likewise.
75833         * tests/test-fchdir.c (main): Enhance test.
75834         Fixes a dup_cloexec bug reported by Ondřej Vašík.
75836         fcntl: port portions of fcntl to mingw
75837         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
75838         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
75839         replacement for mingw.
75840         * modules/fcntl (Description): Update.
75841         (Depends-on): Add dup2.
75842         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
75843         * modules/fcntl-h (Makefile.am): Substitute it.
75844         * lib/fcntl.in.h (fcntl): Update declaration.
75845         (F_DUPFD, F_GETFD): New macros, when needed.
75846         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
75847         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
75848         * tests/test-fcntl.c (check_flags, main): Enhance test for items
75849         we now guarantee.
75851         fcntl: work around cygwin bug in F_DUPFD
75852         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
75853         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
75854         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
75855         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
75856         * doc/posix-functions/fcntl.texi (fcntl): Document it.
75858         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
75859         * modules/fcntl (Files): List new files.
75860         (configure.ac): Run a test.
75861         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
75862         * lib/fcntl.c (rpl_fcntl): Likewise.
75863         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
75864         (gl_FCNTL_H): Always replace fcntl.h.
75865         * modules/fcntl-h (Makefile.am): Substitute witnesses.
75866         * lib/fcntl.in.h (fcntl): Declare replacement.
75867         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
75868         needed, plus a witness.
75869         * doc/posix-functions/fcntl.texi (fcntl): Document this.
75870         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
75871         * tests/test-fcntl.c: New file.
75872         * modules/fcntl-tests: Likewise.
75874         binary-io: avoid potential compilation warning
75875         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
75876         directives.
75878         fflush: avoid compilation error on NetBSD
75879         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
75880         between off_t and fpos_t, since the latter is sometimes a struct.
75881         * lib/fseeko.c (rpl_fseeko): Likewise.
75882         Reported by Alexander Nasonov <alnsn@yandex.ru>.
75884 2009-12-15  Eric Blake  <ebb9@byu.net>
75886         fcntl-h, stdio, sys_ioctl: fix declarations
75887         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
75888         function must not take arguments.
75889         * lib/sys_ioctl.in.h (ioctl): Likewise.
75890         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
75891         (open): Add a link warning.
75893 2009-12-15  Jim Meyering  <meyering@redhat.com>
75895         areadlink, areadlink-with-size: relax license to LGPLv2+
75896         * modules/areadlink (License): Relax to LGPLv2+.
75897         * modules/areadlink-with-size (License): Likewise.
75899 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
75900             Bruno Haible  <bruno@clisp.org>
75902         *printf: Fix memory leak.
75903         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
75904         * lib/vfprintf.c (vfprintf): Likewise.
75905         * lib/dprintf.c (dprintf): Likewise.
75906         * lib/vdprintf.c (vdprintf): Likewise.
75908 2009-12-14  Eric Blake  <ebb9@byu.net>
75910         accept4: adjust module dependencies
75911         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
75913         utimens: one more try at avoiding compiler warning
75914         * lib/utimens.c (lutimens): Lower scope of result.
75916 2009-12-13  Bruno Haible  <bruno@clisp.org>
75918         Move the malloc checking from module 'list' to new module 'xlist'.
75919         * modules/xlist: New file.
75920         * lib/gl_xlist.h: New file.
75921         * lib/gl_xlist.c: New file.
75922         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
75923         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
75924         gl_list_add_last, gl_list_add_before, gl_list_add_after,
75925         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
75926         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
75927         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
75928         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
75929         gl_sortedlist_nx_add): New declarations.
75930         (struct gl_list_implementation): Rename and change methods accordingly.
75931         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
75932         (gl_list_nx_create): Renamed from gl_list_create.
75933         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75934         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75935         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75936         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75937         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75938         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75939         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75940         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75941         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
75942         gl_list_create_empty.
75943         (gl_list_nx_create): Renamed from gl_list_create.
75944         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75945         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75946         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75947         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75948         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75949         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75950         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75951         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75952         * lib/gl_array_list.c: Don't include xalloc.h.
75953         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
75954         NULL upon out-of-memory.
75955         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
75956         out-of-memory.
75957         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
75958         Change return type to 'int'.
75959         (gl_array_nx_set_at): Renamed from gl_array_set_at.
75960         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75961         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
75962         upon out-of-memory.
75963         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
75964         upon out-of-memory.
75965         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
75966         upon out-of-memory.
75967         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
75968         upon out-of-memory.
75969         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
75970         out-of-memory.
75971         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
75972         Update.
75973         (gl_array_list_implementation): Update.
75974         * lib/gl_carray_list.c: Don't include xalloc.h.
75975         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
75976         Return NULL upon out-of-memory.
75977         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
75978         out-of-memory.
75979         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
75980         Change return type to 'int'.
75981         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
75982         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75983         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
75984         upon out-of-memory.
75985         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
75986         upon out-of-memory.
75987         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
75988         out-of-memory.
75989         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
75990         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
75991         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
75992         Update.
75993         (gl_carray_list_implementation): Update.
75994         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
75995         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
75996         gl_linked_create_empty. Return NULL upon out-of-memory.
75997         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
75998         out-of-memory.
75999         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
76000         Change return type to 'int'. Return -1 upon out-of-memory.
76001         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
76002         out-of-memory.
76003         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
76004         upon out-of-memory.
76005         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
76006         upon out-of-memory.
76007         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
76008         NULL upon out-of-memory.
76009         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
76010         upon out-of-memory.
76011         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
76012         out-of-memory.
76013         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
76014         Update.
76015         * lib/gl_linked_list.c: Don't include xalloc.h.
76016         (gl_linked_list_implementation): Update.
76017         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
76018         (add_to_bucket): Change return type to 'int'.
76019         (gl_linkedhash_list_implementation): Update.
76020         * lib/gl_anytree_list1.h (free_subtree): New function.
76021         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
76022         gl_tree_create_empty. Return NULL upon out-of-memory.
76023         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
76024         Change return type to 'int'. Return -1 upon out-of-memory.
76025         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
76026         out-of-memory.
76027         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
76028         (gl_tree_remove_node): New function, moved here from
76029         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
76030         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
76031         Update.
76032         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
76033         malloc, not xmalloc. Return NULL upon out-of-memory.
76034         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76035         out-of-memory.
76036         (gl_tree_remove_node_from_tree): New function, extracted from
76037         gl_tree_remove_node.
76038         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76039         upon out-of-memory.
76040         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76041         out-of-memory.
76042         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76043         upon out-of-memory.
76044         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76045         upon out-of-memory.
76046         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76047         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
76048         not xmalloc. Return NULL upon out-of-memory.
76049         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76050         out-of-memory.
76051         (gl_tree_remove_node_from_tree): New function, extracted from
76052         gl_tree_remove_node.
76053         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76054         upon out-of-memory.
76055         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76056         out-of-memory.
76057         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76058         upon out-of-memory.
76059         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76060         upon out-of-memory.
76061         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76062         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
76063         gl_anytree_list1.h before gl_anyavltree_list2.h.
76064         (gl_avltree_list_implementation): Update.
76065         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
76066         gl_anytree_list1.h before gl_anyavltree_list2.h.
76067         (gl_rbtree_list_implementation): Update.
76068         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
76069         Change return type to 'int'. Return -1 upon out-of-memory. Use
76070         __builtin_expect.
76071         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
76072         (gl_avltreehash_list_implementation): Update.
76073         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
76074         (gl_rbtreehash_list_implementation): Update.
76075         * modules/array-list (Depends-on): Remove xalloc.
76076         * modules/carray-list (Depends-on): Likewise.
76077         * modules/linked-list (Depends-on): Likewise.
76078         * modules/linkedhash-list (Depends-on): Likewise.
76079         * modules/avltree-list (Depends-on): Likewise.
76080         * modules/rbtree-list (Depends-on): Likewise.
76081         * modules/avltreehash-list (Depends-on): Likewise.
76082         * modules/rbtreehash-list (Depends-on): Likewise.
76084         * modules/xsublist: New file.
76085         * lib/gl_xsublist.h: New file.
76086         * lib/gl_xsublist.c: New file.
76087         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
76088         (gl_sublist_nx_create): New declaration.
76089         * lib/gl_sublist.c: Don't include xalloc.h.
76090         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
76091         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
76092         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
76093         Change return type to 'int'. Return -1 upon out-of-memory.
76094         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
76095         upon out-of-memory.
76096         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
76097         NULL upon out-of-memory.
76098         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
76099         upon out-of-memory.
76100         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
76101         NULL upon out-of-memory.
76102         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
76103         NULL upon out-of-memory.
76104         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
76105         upon out-of-memory.
76106         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
76107         (gl_sublist_list_implementation): Update.
76108         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
76109         upon out-of-memory.
76110         * modules/sublist (Depends-on): Remove xalloc.
76112         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
76113         * tests/test-carray_list.c: Likewise.
76114         * tests/test-linked_list.c: Likewise.
76115         * tests/test-linkedhash_list.c: Likewise.
76116         * tests/test-avltree_list.c: Likewise.
76117         * tests/test-rbtree_list.c: Likewise.
76118         * tests/test-avltreehash_list.c: Likewise.
76119         * tests/test-rbtreehash_list.c: Likewise.
76120         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
76121         * modules/carray-list-tests (Makefile.am): Likewise.
76122         * modules/linked-list-tests (Makefile.am): Likewise.
76123         * modules/linkedhash-list-tests (Makefile.am): Likewise.
76124         * modules/avltree-list-tests (Makefile.am): Likewise.
76125         * modules/rbtree-list-tests (Makefile.am): Likewise.
76126         * modules/avltreehash-list-tests (Makefile.am): Likewise.
76127         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
76129         * NEWS: Mention the changes.
76131         * lib/clean-temp.c: Include gl_xlist.h.
76132         * modules/clean-temp (Depends-on): Add xlist.
76134         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
76135         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
76137         * tests/test-array_oset.c: Include gl_xlist.h.
76138         * modules/array-oset-tests (Depends-on): Add xlist.
76140         Reported by José E. Marchesi <jemarch@gnu.org>.
76142 2009-12-13  Bruno Haible  <bruno@clisp.org>
76144         Move the malloc checking from module 'oset' to new module 'xoset'.
76145         * modules/xoset: New file.
76146         * lib/gl_xoset.h: New file.
76147         * lib/gl_xoset.c: New file.
76148         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
76149         declarations.
76150         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
76151         (struct gl_oset_implementation): Rename and change methods accordingly.
76152         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
76153         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76154         'int'. Mark as __warn_unused_result__.
76155         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
76156         gl_oset_create_empty.
76157         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76158         'int'.
76159         * lib/gl_array_oset.c: Don't include xalloc.h.
76160         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
76161         malloc, not xmalloc.
76162         (grow): Change return type to 'int'. Don't call xalloc_die.
76163         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
76164         to 'int'.
76165         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
76166         'int'.
76167         (gl_array_oset_implementation): Update.
76168         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
76169         gl_tree_create_empty.
76170         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
76171         'int'.
76172         * lib/gl_avltree_oset.c: Don't include xalloc.h.
76173         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76174         xmalloc.
76175         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76176         not xmalloc.
76177         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76178         xmalloc.
76179         (gl_avltree_oset_implementation): Update.
76180         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
76181         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76182         xmalloc.
76183         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76184         not xmalloc.
76185         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76186         xmalloc.
76187         (gl_rbtree_oset_implementation): Update.
76188         * modules/array-oset (Depends-on): Remove xalloc.
76189         * modules/avltree-oset (Depends-on): Likewise.
76190         * modules/rbtree-oset (Depends-on): Likewise.
76191         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
76192         * tests/test-avltree_oset.c: Likewise.
76193         * tests/test-rbtree_oset.c: Likewise.
76194         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76195         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
76196         * modules/rbtree-oset-tests (Makefile.am): Likewise.
76197         * NEWS: Mention the change.
76199 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
76201         maint.mk: allow a project to override release-prep commands
76202         * top/maint.mk (alpha, beta, stable): Move release-preparatory
76203         commands into a new rule.
76204         (release-prep): New rule.
76205         (release-prep-hook): New overridable variable.
76207 2009-12-13  Bruno Haible  <bruno@clisp.org>
76209         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
76211 2009-12-13  Jim Meyering  <meyering@redhat.com>
76213         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
76214         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
76216 2009-12-12  Bruno Haible  <bruno@clisp.org>
76218         duplocale: Tweak.
76219         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
76221 2009-12-12  Karl Berry  <karl@gnu.org>
76223         * config/srclist.txt (strtoll.c): tab changes, no more sync.
76225 2009-12-12  Bruno Haible  <bruno@clisp.org>
76227         * m4/po.m4: Undo incorrect untabification.
76229 2009-12-12  Bruno Haible  <bruno@clisp.org>
76231         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
76232         * modules/c-strtod (Depends-on): Add locale.
76233         * modules/c-strtold (Depends-on): Likewise.
76235 2009-12-12  Bruno Haible  <bruno@clisp.org>
76237         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
76239 2009-12-11  Eric Blake  <ebb9@byu.net>
76241         setenv: relax requirement in light of POSIX ruling
76242         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
76243         not NULL.
76244         * tests/test-setenv.c (main): Relax test.
76245         * tests/test-unsetenv.c (main): Likewise.
76246         * doc/posix-functions/setenv.texi (setenv): Document this.
76247         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76249 2009-12-11  Bruno Haible  <bruno@clisp.org>
76251         New module 'fd-safer-flag'.
76252         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
76253         * lib/dup-safer.c (dup_safer_flag): Remove function.
76254         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
76255         * lib/fd-safer.c (fd_safer_flag): Remove function.
76256         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
76257         * modules/cloexec (configure.ac): Drop indicator macro.
76258         * modules/fd-safer-flag: New file.
76259         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
76260         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
76261         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
76263 2009-12-11  Bruno Haible  <bruno@clisp.org>
76265         Tests for module 'nl_langinfo'.
76266         * modules/nl_langinfo-tests: New file.
76267         * tests/test-nl_langinfo.sh: New file.
76268         * tests/test-nl_langinfo.c: New file.
76270         New module 'nl_langinfo'.
76271         * lib/nl_langinfo.c: New file.
76272         * m4/nl_langinfo.m4: New file.
76273         * modules/nl_langinfo: New file.
76274         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
76276 2009-12-11  Bruno Haible  <bruno@clisp.org>
76278         Tests for module 'langinfo'.
76279         * modules/langinfo-tests: New file.
76280         * tests/test-langinfo.c: New file.
76282         New module 'langinfo'.
76283         * lib/langinfo.in.h: New file.
76284         * m4/langinfo_h.m4: New file.
76285         * modules/langinfo: New file.
76286         * doc/posix-headers/langinfo.texi: Mention the new module.
76288 2009-12-11  Bruno Haible  <bruno@clisp.org>
76290         * lib/config.charset: Untabify.
76292 2009-12-11  Bruno Haible  <bruno@clisp.org>
76294         * modules/unistd-safer (configure.ac): Drop indicator macro.
76296 2009-12-11  Bruno Haible  <bruno@clisp.org>
76298         Move pipe2-safer code to its own file.
76299         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
76300         * lib/pipe-safer.c (pipe2_safer): Remove function.
76301         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
76302         (Makefile.am): Add it to lib_SOURCES.
76304 2009-12-10  Bruno Haible  <bruno@clisp.org>
76306         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
76308 2009-12-10  Bruno Haible  <bruno@clisp.org>
76310         Declare which arguments expect non-NULL values, for GCC and clang.
76311         * build-aux/arg-nonnull.h: New file.
76312         * modules/arg-nonnull: New file.
76313         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
76314         (inet_ntop, inet_pton): Use it.
76315         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
76316         (closedir, dirfd, opendir, scandir, alphasort): Use it.
76317         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
76318         (open, openat): Use it.
76319         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
76320         (fnmatch): Use it.
76321         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
76322         (getopt, getopt_long, getopt_long_only): Use it.
76323         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
76324         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
76325         Use it.
76326         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
76327         (iconv_open): Use it.
76328         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
76329         (strtoimax, strtoumax): Use it.
76330         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
76331         (duplocale): Use it.
76332         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
76333         (frexp, frexpl): Use it.
76334         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
76335         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
76336         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
76337         (tsearch, tfind, tdelete, twalk): Use it.
76338         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
76339         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
76340         sigpending): Use it.
76341         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
76342         (posix_spawn, posix_spawnp, posix_spawnattr_init,
76343         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
76344         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
76345         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
76346         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
76347         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
76348         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
76349         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
76350         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
76351         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
76352         Use it.
76353         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
76354         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
76355         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
76356         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
76357         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
76358         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
76359         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
76360         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
76361         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
76362         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
76363         strtoull, unsetenv): Use it.
76364         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
76365         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
76366         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
76367         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
76368         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
76369         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
76370         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
76371         (strcasecmp, strncasecmp): Use it.
76372         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
76373         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
76374         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
76375         rpl_setsockopt): Use it.
76376         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
76377         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
76378         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
76379         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
76380         (gettimeofday): Use it.
76381         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
76382         (times): Use it.
76383         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
76384         (uname): Use it.
76385         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
76386         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
76387         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
76388         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
76389         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
76390         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
76391         unlinkat, write): Use it.
76392         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
76393         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
76394         * lib/argv-iter.h: Include arg-nonnull.h.
76395         (_ATTRIBUTE_NONNULL_): Remove macro.
76396         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
76397         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
76398         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
76399         optimization.
76400         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
76401         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
76402         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
76403         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
76404         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
76405         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
76406         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
76407         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
76408         * modules/arpa_inet (Depends-on): Add arg-nonnull.
76409         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
76410         * modules/dirent (Depends-on): Add arg-nonnull.
76411         (Makefile.am): Insert arg-nonnull.h into dirent.h.
76412         * modules/fcntl-h (Depends-on): Add arg-nonnull.
76413         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
76414         * modules/fnmatch (Depends-on): Add arg-nonnull.
76415         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
76416         * modules/getopt-posix (Depends-on): Add arg-nonnull.
76417         (Makefile.am): Insert arg-nonnull.h into getopt.h.
76418         * modules/glob (Depends-on): Add arg-nonnull.
76419         (Makefile.am): Insert arg-nonnull.h into glob.h.
76420         * modules/iconv_open (Depends-on): Add arg-nonnull.
76421         (Makefile.am): Insert arg-nonnull.h into iconv.h.
76422         * modules/inttypes (Depends-on): Add arg-nonnull.
76423         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
76424         * modules/locale (Depends-on): Add arg-nonnull.
76425         (Makefile.am): Insert arg-nonnull.h into locale.h.
76426         * modules/math (Depends-on): Add arg-nonnull.
76427         (Makefile.am): Insert arg-nonnull.h into math.h.
76428         * modules/netdb (Depends-on): Add arg-nonnull.
76429         (Makefile.am): Insert arg-nonnull.h into netdb.h.
76430         * modules/search (Depends-on): Add arg-nonnull.
76431         (Makefile.am): Insert arg-nonnull.h into search.h.
76432         * modules/signal (Depends-on): Add arg-nonnull.
76433         (Makefile.am): Insert arg-nonnull.h into signal.h.
76434         * modules/spawn (Depends-on): Add arg-nonnull.
76435         (Makefile.am): Insert arg-nonnull.h into spawn.h.
76436         * modules/stdio (Depends-on): Add arg-nonnull.
76437         (Makefile.am): Insert arg-nonnull.h into stdio.h.
76438         * modules/stdlib (Depends-on): Add arg-nonnull.
76439         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
76440         * modules/string (Depends-on): Add arg-nonnull.
76441         (Makefile.am): Insert arg-nonnull.h into string.h.
76442         * modules/strings (Depends-on): Add arg-nonnull.
76443         (Makefile.am): Insert arg-nonnull.h into strings.h.
76444         * modules/sys_socket (Depends-on): Add arg-nonnull.
76445         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
76446         * modules/sys_stat (Depends-on): Add arg-nonnull.
76447         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
76448         * modules/sys_time (Depends-on): Add arg-nonnull.
76449         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
76450         * modules/sys_times (Depends-on): Add arg-nonnull.
76451         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
76452         * modules/sys_utsname (Depends-on): Add arg-nonnull.
76453         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
76454         * modules/time (Depends-on): Add arg-nonnull.
76455         (Makefile.am): Insert arg-nonnull.h into time.h.
76456         * modules/unistd (Depends-on): Add arg-nonnull.
76457         (Makefile.am): Insert arg-nonnull.h into unistd.h.
76458         * modules/wchar (Depends-on): Add arg-nonnull.
76459         (Makefile.am): Insert arg-nonnull.h into wchar.h.
76460         * modules/argv-iter (Depends-on): Add arg-nonnull.
76461         * tests/test-canonicalize.c (null_ptr): New function.
76462         (main): Use it.
76463         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
76464         (main): Use it.
76465         * tests/test-memmem.c (null_ptr): New function.
76466         (main): Use it.
76467         Reported by Jim Meyering.
76469 2009-12-10  Bruno Haible  <bruno@clisp.org>
76471         Use spaces for indentation, not tabs.
76472         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
76473         * m4/*.m4: Untabify.
76474         * build-aux/*.h: Untabify.
76475         * tests/**/*.[hc]: Untabify.
76476         * README: New section "Indent with spaces, not TABs", based on
76477         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
76478         * NEWS: Mention the change.
76480 2009-12-10  Bruno Haible  <bruno@clisp.org>
76482         pty test: Fix link error.
76483         * modules/pty-tests (Makefile.am): Add the default LDADD value to
76484         test_pty_LDADD.
76486 2009-12-07  Simon Josefsson  <simon@josefsson.org>
76488         * modules/pty: New file.
76489         * modules/pty-tests: New file.
76490         * m4/pty.m4: New file.
76491         * tests/test-pty.c: New file.
76492         * doc/glibc-headers/pty.texi: Modified.
76493         * doc/glibc-functions/forkpty.texi: Modified.
76494         * doc/glibc-functions/openpty.texi: Modified.
76496 2009-12-10  Bruno Haible  <bruno@clisp.org>
76498         Avoid syntax error in C++ mode.
76499         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
76501 2009-12-10  Bruno Haible  <bruno@clisp.org>
76503         Use sed with option -e.
76504         * gnulib-tool (func_version, func_emit_copyright_notice,
76505         func_emit_initmacro_end, func_import, func_create_testdir): Pass
76506         option -e to sed.
76507         * modules/link-warning (Makefile.am): Likewise.
76509 2009-12-10  Jim Meyering  <meyering@redhat.com>
76511         mgetgroups: do not write bytes beyond end of malloc'd buffer
76512         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
76513         username, we call getgroups with a one-element-shorter buffer,
76514         but still told it the length was original, max_n_groups.
76516 2009-12-09  Eric Blake  <ebb9@byu.net>
76518         cloexec: relax license
76519         * modules/cloexec (Maintainer): Add myself.
76520         (License): Use LGPL, not GPL.
76522         link-warning: optimize generation
76523         * modules/link-warning (Makefile.am): Reduce process usage.
76525 2009-12-09  Bruno Haible  <bruno@clisp.org>
76527         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
76528         workaround was added on 2009-11-17.
76530 2009-12-09  Jim Meyering  <meyering@redhat.com>
76531             Bruno Haible  <bruno@clisp.org>
76533         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
76534         * modules/link-warning (Makefile.am): Make the comment-removing sed
76535         command more robust in the face of bootstrap-prepended comment lines.
76537 2009-12-09  Bruno Haible  <bruno@clisp.org>
76539         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
76540         most one group.
76542 2009-12-09  Simon Josefsson  <simon@josefsson.org>
76543             Bruno Haible  <bruno@clisp.org>
76545         * build-aux/link-warning.h: Add copyright notice.
76546         * modules/link-warning (Makefile.am): Generate link-warning.h from
76547         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
76548         * NEWS: Mention change in link-warning module.
76549         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
76550         * modules/dirent (Makefile.am): Add dependency to dirent.h.
76551         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
76552         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
76553         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
76554         * modules/math (Makefile.am): Add dependency to math.h.
76555         * modules/search (Makefile.am): Add dependency to search.h.
76556         * modules/signal (Makefile.am): Add dependency to signal.h.
76557         * modules/spawn (Makefile.am): Add dependency to spawn.h.
76558         * modules/stdio (Makefile.am): Add dependency to stdio.h.
76559         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
76560         * modules/string (Makefile.am): Add dependency to string.h.
76561         * modules/strings (Makefile.am): Add dependency to strings.h.
76562         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
76563         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
76564         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
76565         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
76566         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
76567         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
76568         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
76569         * modules/unistd (Makefile.am): Add dependency to unistd.h.
76570         * modules/wchar (Makefile.am): Add dependency to wchar.h.
76572 2009-12-09  Bruno Haible  <bruno@clisp.org>
76574         fchdir: Optimize away rpl_fstat when possible.
76575         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
76576         REPLACE_OPEN_DIRECTORY.
76577         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
76579 2009-12-09  Bruno Haible  <bruno@clisp.org>
76581         * lib/fchdir.c: Update comment.
76583 2009-12-09  Bruno Haible  <bruno@clisp.org>
76585         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
76587 2009-12-08  Eric Blake  <ebb9@byu.net>
76589         fchdir: avoid memory leak on re-registration.
76590         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
76592 2009-12-08  Jim Meyering  <meyering@redhat.com>
76594         init.sh: avoid Solaris 10 /bin/sh portability problem
76595         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
76596         sourced script:
76597           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
76598           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
76599           bar
76600         tests/init.sh relied on that, accepting a --set-path=DIR argument,
76601         and two tests used that idiom.
76602         * tests/init.sh: Update suggested usage comments.
76603         (path_prepend_): New function, to be used in place
76604         of the --src-path=DIR option.
76605         (setup_): Move PATH-prepending code into path_prepend_.
76606         * tests/test-pread.sh: Adapt to new usage.
76607         * tests/test-xalloc-die.sh: Likewise.
76609 2009-12-08  Simon Josefsson  <simon@josefsson.org>
76611         * doc/gnulib.texi (Glibc pty.h): Add.
76612         * doc/glibc-functions/forkpty.texi: Add.
76613         * doc/glibc-functions/openpty.texi: Add.
76614         Suggested by Bruno Haible.
76616 2009-12-08  Eric Blake  <ebb9@byu.net>
76618         fchdir: fix logic bugs
76619         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
76620         * tests/test-fchdir.c (main): Enhance test.
76621         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
76622         is in use.
76624         dup2: fix logic bugs
76625         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
76626         REPLACE_DUP2 to decide when rpl_dup2 is needed.
76627         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
76628         exists.
76629         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
76631 2009-12-07  Eric Blake  <ebb9@byu.net>
76633         unlink: fix m4 detection
76634         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
76636         unistd-safer: add unit test
76637         * modules/unistd-safer-tests: New file.
76638         * tests/test-dup-safer.c: Likewise.
76639         * tests/test-cloexec.c (setmode): Avoid compiler warning.
76640         * tests/test-dup2.c (setmode): Likewise.
76641         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
76643         cloexec: preserve text vs. binary across dup_cloexec
76644         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
76645         mode.
76646         * modules/dup2-tests (Depends-on): Add binary-io.
76647         * modules/cloexec-tests (Depends-on): Likewise.
76648         * tests/test-dup2.c (setmode, is_mode): New helpers.
76649         (main): Add tests that translation mode is preserved.
76650         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
76651         Reported by Bruno Haible.
76653         mgetgroups: reduce duplicate listings
76654         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
76655         resulting array.
76656         * tests/test-chown.h (test_chown): Simplify client.
76657         * tests/test-lchown.h (test_lchown): Likewise.
76659 2009-12-06  Bruno Haible  <bruno@clisp.org>
76661         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
76662         value.
76664 2009-12-06  Bruno Haible  <bruno@clisp.org>
76666         * lib/progname.c: Include stdio.h, stdlib.h.
76667         (set_program_name): Reject a NULL argument.
76669 2009-12-05  Eric Blake  <ebb9@byu.net>
76671         pipe2-safer: new module
76672         * modules/pipe2-safer: New file.
76673         * lib/unistd-safer.h (pipe2_safer): New prototype.
76674         * lib/unistd--.h (pipe2): New wrapper.
76675         * lib/pipe-safer.c (pipe2_safer): New function.
76676         * modules/pipe (Depends-on): Add pipe2-safer.
76677         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
76679         stdlib-safer: preserve cloexec flag for mkostemp[s]
76680         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
76681         fd_safer_flag.
76683         unistd-safer: allow preservation of cloexec status via flag
76684         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
76685         prototypes.
76686         * lib/dup-safer.c (dup_safer_flag): New function.
76687         * lib/fd-safer.c (fd_safer_flag): Likewise.
76688         * modules/cloexec (configure.ac): Set witness.
76690         test-dup2: enhance test
76691         * modules/dup2-tests (Depends-on): Add cloexec.
76692         * tests/test-dup2.c (main): Enhance test.
76694         cloexec: add dup_cloexec
76695         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
76696         header and comments.
76697         * lib/cloexec.c (set_cloexec_flag): Add comments.
76698         (dup_cloexec): New function, with mingw implementation borrowed
76699         from...
76700         * lib/w32spawn.h (dup_noinherit): ...here.
76701         * modules/execute (Depends-on): Add cloexec.
76702         * modules/pipe (Depends-on): Likewise.
76703         * modules/cloexec (Depends-on): Add dup2.
76704         * modules/cloexec-tests (Files): New file.
76705         * tests/test-cloexec.c: Likewise.
76707         test-xalloc-die: fix test for mingw
76708         * modules/xalloc-die-tests (Files): Add tests/init.sh.
76709         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
76710         directory and .exe suffix off argv[0] output.
76712         test-fseeko: fix test for mingw
76713         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
76714         than undefining fseek, so test will pass on mingw.
76716 2009-12-05  Bruno Haible  <bruno@clisp.org>
76718         * lib/progname.h (set_program_name): Clarify specification.
76719         * lib/progname.c (set_program_name): Likewise.
76720         Reported by Jim Meyering.
76722 2009-12-05  Jim Meyering  <meyering@redhat.com>
76724         maint.mk: backslash-escape parens in default regexp
76725         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
76726         backslash-escape the literal parentheses.
76728         maint.mk: news-date-check: use grep -E
76729         * top/maint.mk (today): Define a Make variable, not a...
76730         (news-date-check): ...shell variable.
76731         (news-date-regexp): Use the Make variable.
76732         Use grep's -E option.  Change the failing diagnostic to mention
76733         the variable, $(news-date-regexp).
76735 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
76737         maintainer-makefile: allow customization of NEWS entry format
76738         * top/maint.mk (news-date-regexp): New overridable variable.
76739         (news-date-check): Use it.
76741 2009-12-04  Eric Blake  <ebb9@byu.net>
76743         mgetgroups: add xgetgroups, and avoid ENOSYS failures
76744         * lib/mgetgroups.h (xgetgroups): New prototype.
76745         * lib/mgetgroups.c (xgetgroups): New wrapper.
76746         (mgetgroups): Handle ENOSYS.
76747         * modules/mgetgroups (Depends-on): Add realloc.
76748         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
76750         mgetgroups: avoid argument promotion issues with -1
76751         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
76752         for invalid gid_t.
76753         * tests/test-chown.h (getegid, test_chown): Likewise.
76754         * tests/test-lchown.h (getegid, test_lchown): Likewise.
76756 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
76758         exclude: Fix header file problems.
76759         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
76761 2009-12-01  Jim Meyering  <meyering@redhat.com>
76763         fts: fts_open: do not let an empty string cause immediate failure
76764         This is required in support of GNU rm, for which the command
76765         "rm A '' B" must process and remove both A and B, in spite of
76766         the empty string argument.
76767         * lib/fts.c (fts_open): Do not let the presence of an empty string
76768         cause fts_open to fail immediately.  Most fts-using tools must be
76769         able to process all arguments, in order, and can be expected to
76770         diagnose such arguments themselves.
76772 2009-11-30  Eric Blake  <ebb9@byu.net>
76774         utimens: fix compilation error
76775         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
76776         Declare variable at right scope.
76778 2009-11-29  Jim Meyering  <meyering@redhat.com>
76780         bootstrap: handle perl-5.11's changed --version output
76781         * build-aux/bootstrap (get_version): Handle perl separately,
76782         since perl-5.11's --version output is different.
76784 2009-11-28  Jim Meyering  <meyering@redhat.com>
76786         userspec: depend on the inttostr module, too
76787         * modules/userspec (Depends-on): Add inttostr.
76789         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
76790         * lib/userspec.c (parse_with_separator): Do not accept a user ID
76791         number of MAXUID when it evaluates to (uid_t) -1.
76792         Likewise for group ID.  Reported by Matt McCutchen in
76793         <http://savannah.gnu.org/bugs/?28113>
76795         userspec: reformat to use spaces, not TABs
76796         * lib/userspec.c: Expand TABs to spaces.
76797         Add Emacs' "indent-tabs-mode: nil" hint.
76799 2009-11-27  Eric Blake  <ebb9@byu.net>
76801         getopt-gnu: flush out another BSD bug
76802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
76803         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
76804         flush out BSD bug.
76805         * tests/test-getopt.h (test_getopt): End lists with NULL.
76806         * tests/test-getopt_long.h (test_getopt_long): Likewise.
76807         (test_getopt_long_posix): Enhance test.
76808         * modules/getopt-posix-tests (Depends-on): Add stdbool.
76809         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
76810         getopt-gnu.
76811         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76812         Likewise.
76814 2009-11-27  Simon Josefsson  <simon@josefsson.org>
76816         * modules/idpriv-droptemp-tests (Notice): Fix text.
76818 2009-11-27  Jim Meyering  <meyering@redhat.com>
76820         test-xalloc-die: avoid spurious failure due to libtool argv difference
76821         In a libtool-enabled project, this test would fail due to a difference
76822         in the emitted program name, e.g.,
76823         -test-xalloc-die: memory exhausted
76824         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
76825         Use program to avoid that.
76826         * modules/xalloc-die-tests (Depends-on): Add progname.
76827         * tests/test-xalloc-die.c: Include progname.h".
76828         (program_name): Remove decl.
76829         (main): Call set_program_name.
76830         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
76832 2009-11-26  Richard Jones  <rjones@redhat.com>
76834         w32sock: leave win32 error in place.
76835         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
76837 2009-11-26  Eric Blake  <ebb9@byu.net>
76839         init.sh: suggest to use skip_ and fail_ functions in comments
76840         * tests/init.sh: Add a sentence.
76842 2009-11-25  Bruno Haible  <bruno@clisp.org>
76844         init.sh: add documentation in comments
76845         * tests/init.sh: Add some developer and user documentation.
76847 2009-11-26  Jim Meyering  <meyering@redhat.com>
76849         init.sh: accommodate even those who specify bogus srcdir manually
76850         * tests/init.sh: Normally, srcdir is guaranteed by automake and
76851         configure-time tests to be sanitized, so that there is no need to
76852         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
76853         (with no double quotes) suffices.  However, since tests may be
76854         invoked manually, and since you may explicitly set srcdir to the
76855         name of a directory containing spaces, do quote its uses here.
76856         * tests/test-pread.sh: Likewise.
76857         Suggested by Bruno Haible.
76859         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
76860         * tests/test-pread.sh: Write no data into the pipe, because
76861         test-pread actually reads none.  This avoids a diagnostic,
76862         "bash: echo: write error: Broken pipe", that arises in the unusual
76863         event something is ignoring SIGPIPE, and might be interpreted
76864         as some sort of failure.  Reported by Bruno Haible.
76866 2009-11-25  Jim Meyering  <meyering@redhat.com>
76868         test-pread: cover failure with ESPIPE and EINVAL
76869         * tests/test-pread.c (main): Test for failure, too.
76870         * tests/test-pread.sh: Invoke with stdin on a pipe.
76871         Suggested by Eric Blake.
76873         pread: improvement and fix
76874         * modules/pread (Depends-on): Depend on lseek, for portability to
76875         e.g., mingw.  Suggested by Eric Blake.
76876         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
76878         unistd.in.h: correct declaration of pread
76879         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
76880         Reported by Richard W.M. Jones.
76882         test-pread.sh: distribute the test script
76883         * modules/pread-tests (Files): Include test-pread.sh.
76885         test-pread.sh: clean up
76886         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
76887         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
76888         That is unnecessary, since it's always ".".
76889         Suggestion from Eric Blake.
76891         test-pread.sh: make executable
76892         * tests/test-pread.sh: Set executable bit.
76893         Reported by Eric Blake.
76895         correct typo in test-pread.sh
76896         * tests/test-pread.sh: Add #! line.
76898         test pread
76899         * tests/test-pread.c: New file.
76900         * tests/test-pread.sh: Likewise.
76901         * modules/pread-tests: Likewise.
76903         pread: new module
76904         * modules/pread: New file.
76905         * lib/unistd.in.h (pread): Define/declare.
76906         * lib/pread.c (pread): New file.
76907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
76908         * modules/unistd (Makefile.am): Substitute witnesses.
76909         * doc/posix-functions/pread.texi (pread): Update.
76910         * MODULES.html.sh: Add pread.
76912 2009-11-25  Jim Meyering  <meyering@redhat.com>
76914         tests/init.sh: new file to be used via most *.sh tests
76915         * tests/init.sh: New file.
76917 2009-11-25  Eric Blake  <ebb9@byu.net>
76919         utimens: work around older Linux failure with symlinks
76920         * lib/utimens.c (lutimensat_works_really): New variable.
76921         (fdutimens, lutimens): Use it to manage kernels that support
76922         nanosecond times on files, but not on symlinks.
76923         Reported by Ondřej Vašík.
76925         utimes: fix configure grammar
76926         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
76928 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
76930         regex: Fix fastmap for multibyte character ranges.
76931         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
76932         characters when a multibyte character range is included.
76934 2009-11-22  Andy Wingo  <wingo@pobox.com>
76936         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
76937         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
76939 2009-11-24  Bruno Haible  <bruno@clisp.org>
76941         doc: Most *_l functions exist in MacOS X 10.5.
76942         * doc/posix-functions/duplocale.texi: Update platforms list.
76943         * doc/posix-functions/freelocale.texi: Likewise.
76944         * doc/posix-functions/newlocale.texi: Likewise.
76945         * doc/posix-functions/uselocale.texi: Likewise.
76946         * doc/posix-functions/isalnum_l.texi: Likewise.
76947         * doc/posix-functions/isalpha_l.texi: Likewise.
76948         * doc/posix-functions/isblank_l.texi: Likewise.
76949         * doc/posix-functions/iscntrl_l.texi: Likewise.
76950         * doc/posix-functions/isdigit_l.texi: Likewise.
76951         * doc/posix-functions/isgraph_l.texi: Likewise.
76952         * doc/posix-functions/islower_l.texi: Likewise.
76953         * doc/posix-functions/isprint_l.texi: Likewise.
76954         * doc/posix-functions/ispunct_l.texi: Likewise.
76955         * doc/posix-functions/isspace_l.texi: Likewise.
76956         * doc/posix-functions/isupper_l.texi: Likewise.
76957         * doc/posix-functions/iswalnum_l.texi: Likewise.
76958         * doc/posix-functions/iswalpha_l.texi: Likewise.
76959         * doc/posix-functions/iswblank_l.texi: Likewise.
76960         * doc/posix-functions/iswcntrl_l.texi: Likewise.
76961         * doc/posix-functions/iswctype_l.texi: Likewise.
76962         * doc/posix-functions/iswdigit_l.texi: Likewise.
76963         * doc/posix-functions/iswgraph_l.texi: Likewise.
76964         * doc/posix-functions/iswlower_l.texi: Likewise.
76965         * doc/posix-functions/iswprint_l.texi: Likewise.
76966         * doc/posix-functions/iswpunct_l.texi: Likewise.
76967         * doc/posix-functions/iswspace_l.texi: Likewise.
76968         * doc/posix-functions/iswupper_l.texi: Likewise.
76969         * doc/posix-functions/iswxdigit_l.texi: Likewise.
76970         * doc/posix-functions/isxdigit_l.texi: Likewise.
76971         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
76972         * doc/posix-functions/strcasecmp_l.texi: Likewise.
76973         * doc/posix-functions/strcoll_l.texi: Likewise.
76974         * doc/posix-functions/strfmon_l.texi: Likewise.
76975         * doc/posix-functions/strftime_l.texi: Likewise.
76976         * doc/posix-functions/strncasecmp_l.texi: Likewise.
76977         * doc/posix-functions/strxfrm_l.texi: Likewise.
76978         * doc/posix-functions/tolower_l.texi: Likewise.
76979         * doc/posix-functions/toupper_l.texi: Likewise.
76980         * doc/posix-functions/towctrans_l.texi: Likewise.
76981         * doc/posix-functions/towlower_l.texi: Likewise.
76982         * doc/posix-functions/towupper_l.texi: Likewise.
76983         * doc/posix-functions/wcscoll_l.texi: Likewise.
76984         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
76985         * doc/posix-functions/wctrans_l.texi: Likewise.
76986         * doc/posix-functions/wctype_l.texi: Likewise.
76987         * doc/glibc-functions/strptime_l.texi: Likewise.
76988         * doc/glibc-functions/strtod_l.texi: Likewise.
76989         * doc/glibc-functions/strtof_l.texi: Likewise.
76990         * doc/glibc-functions/strtol_l.texi: Likewise.
76991         * doc/glibc-functions/strtold_l.texi: Likewise.
76992         * doc/glibc-functions/strtoll_l.texi: Likewise.
76993         * doc/glibc-functions/strtoul_l.texi: Likewise.
76994         * doc/glibc-functions/strtoull_l.texi: Likewise.
76995         * doc/glibc-functions/wcsftime_l.texi: Likewise.
76996         * doc/glibc-functions/wcstod_l.texi: Likewise.
76997         * doc/glibc-functions/wcstof_l.texi: Likewise.
76998         * doc/glibc-functions/wcstol_l.texi: Likewise.
76999         * doc/glibc-functions/wcstold_l.texi: Likewise.
77000         * doc/glibc-functions/wcstoll_l.texi: Likewise.
77001         * doc/glibc-functions/wcstoul_l.texi: Likewise.
77002         * doc/glibc-functions/wcstoull_l.texi: Likewise.
77004 2009-11-24  Bruno Haible  <bruno@clisp.org>
77006         duplocale: Fix logic bug.
77007         * lib/duplocale.c: Don't include <langinfo.h>.
77008         (_NL_LOCALE_NAME): Remove macro.
77009         (rpl_duplocale): Use setlocale instead of nl_langinfo.
77010         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
77012 2009-11-23  Jim Meyering  <meyering@redhat.com>
77014         test-update-copyright: don't hard-code /usr/bin/perl
77015         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
77016         perl to print the current year.  Gilles Espinasse reported that
77017         the replaced use of perl was hard-coded as /usr/bin/perl.
77019 2009-11-23  Bruno Haible  <bruno@clisp.org>
77021         duplocale: Add support for glibc 2.3.x.
77022         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
77024 2009-11-22  Bruno Haible  <bruno@clisp.org>
77026         vasnprintf: Tiny optimization.
77027         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
77028         MacOS X.
77030 2009-11-22  Bruno Haible  <bruno@clisp.org>
77032         Tests for module 'duplocale'.
77033         * modules/duplocale-tests: New file.
77034         * tests/test-duplocale.c: New file.
77036         New module 'duplocale'.
77037         * m4/duplocale.m4: New file.
77038         * lib/locale.in.h (duplocale): New declaration.
77039         * lib/duplocale.c: New file.
77040         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
77041         gl_LOCALE_H_DEFAULTS): New macros.
77042         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
77043         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
77044         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
77045         REPLACE_DUPLOCALE.
77046         * modules/duplocale: New file.
77047         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
77049 2009-11-22  Bruno Haible  <bruno@clisp.org>
77051         * modules/locale-tests (configure.ac): Test for newlocale function.
77052         * tests/test-locale.c: When the system has extended locale functions,
77053         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
77055         locale: Make locale_t available when possible.
77056         * lib/locale.in.h: Include <xlocale.h> when it exists.
77057         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
77058         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
77059         * modules/locale (Depends-on): Add extensions.
77060         (Makefile.am): Also substitute HAVE_XLOCALE_H.
77061         * doc/posix-headers/locale.texi: Document the problem with locale_t.
77063 2009-11-22  Bruno Haible  <bruno@clisp.org>
77065         Add comments.
77066         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
77067         invocation.
77068         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
77069         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
77070         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77072 2009-11-22  Bruno Haible  <bruno@clisp.org>
77074         error: account for the possibility of freopen (stdout).
77075         * lib/error.c: Include <unistd.h>.
77076         (flush_stdout): New function, extracted from error and error_at_line.
77077         Determine stdout's fd dynamically.
77078         (error, error_at_line): Invoke flush_stdout.
77079         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
77080         * modules/error (Depends-on): Add unistd.
77082 2009-11-22  Bruno Haible  <bruno@clisp.org>
77084         diffseq: Add comment.
77085         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
77087 2009-11-22  Jim Meyering  <meyering@redhat.com>
77089         c-stack: avoid defining an unused static function
77090         * lib/c-stack.c (find_stack_direction): Do not define this function
77091         when it will not be used.
77093         diffseq: avoid spurious gcc warnings
77094         * lib/diffseq.h (IF_LINT2): Define.
77095         (compareseq): Use it to initialize two members of "part".
77096         This avoids two used-uninitialized warnings.
77098 2009-11-21  Jim Meyering  <meyering@redhat.com>
77100         c-stack: avoid "ignoring return value of `write'" warning
77101         * lib/c-stack.c: Include "ignore-value.h".
77102         (die): Explicitly ignore each write return value.
77103         * modules/c-stack (Depends-on): Add ignore-value.
77105 2009-11-21  Bruno Haible  <bruno@clisp.org>
77107         diffseq: reduce scope of variable 'best'.
77108         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
77109         variable, earlier used for two different purposes.
77111 2009-11-21  Jim Meyering  <meyering@redhat.com>
77113         diffseq: remove useless assignment to "best"
77114         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
77115         assignment.  At that point "best" is already guaranteed to be zero.
77117 2009-11-20  Eric Blake  <ebb9@byu.net>
77119         build: mention ftp redirector in release announcements
77120         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
77121         values that used to come from cfg.mk; mention FTP redirect URL.
77122         * build-aux/announce-gen: Mention the mirror list.
77123         Suggested by Karl Berry.
77125         nanosleep: improve port to mingw
77126         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
77127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
77128         LIB_NANOSLEEP, but only when needed.
77129         * modules/select (Link): Document LIBSOCKET.
77130         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
77131         enough.
77133         nanosleep: work around cygwin bug
77134         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
77135         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
77136         bug.
77137         (getnow): Delete, not needed.
77138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
77139         LIB_CLOCK_GETTIME.
77140         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
77141         clock-time, gettime.
77142         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
77143         bug.
77144         * modules/nanosleep-tests: New test.
77145         * tests/test-nanosleep.c: New file.
77147         sleep: work around cygwin bug
77148         * lib/sleep.c (rpl_sleep): Work around the bug.
77149         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
77150         (gl_PREREQ_SLEEP): Delete unused macro.
77151         * modules/sleep (Depends-on): Add verify.
77152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77153         * modules/unistd (Makefile.am): Substitute witness.
77154         * lib/unistd.in.h (sleep): Update prototype.
77155         * doc/posix-functions/sleep.texi (sleep): Document the bug.
77156         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
77157         * modules/sleep-tests (Depends-on): Check for alarm.
77159 2009-11-20  Jim Meyering  <meyering@redhat.com>
77161         maint.mk: improve sc_prohibit_magic_number_exit
77162         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
77163         so it does not match uses like System.exit(1).
77164         Add comments showing how to correct all offenders.
77166 2009-11-19  Eric Blake  <ebb9@byu.net>
77168         xalloc-die-tests: add missing library
77169         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
77171         test-xvasprintf: silence compiler warnings
77172         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
77173         empty string from gcc.
77175 2009-11-19  Jim Meyering  <meyering@redhat.com>
77177         xfreopen: new module, from coreutils
77178         * modules/xfreopen: New module.
77179         * lib/xfreopen.c: New file.
77180         * lib/xfreopen.h: New file.
77181         * MODULES.html.sh (File stream based Input/Output"): Add it.
77183 2009-11-19  Eric Blake  <ebb9@byu.net>
77185         manywarnings: depend on warnings
77186         * modules/manywarnings (Depends-on): Add warnings.
77188         build: avoid compiler warnings
77189         * lib/select.c (rpl_select): Delete unused variable.
77190         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
77192 2009-11-18  Eric Blake  <ebb9@byu.net>
77194         tests: avoid false negative with --with-packager
77195         * tests/test-version-etc.sh: Discard packager information.
77196         * tests/test-argp-version-etc-1.sh: Likewise.
77197         Reported by Mike Frysinger.
77199         utimens: fix regression on Solaris
77200         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
77201         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
77202         can only change fd timestamps via futimesat.  Instead, use an
77203         additional witness macro to avoid BSD bug.
77204         Reported by Jim Meyering.
77206 2009-11-17  Eric Blake  <ebb9@byu.net>
77208         usleep: use it to simplify tests
77209         * modules/stat-time-tests (Depends-on): Add usleep.
77210         (configure.ac): Drop usleep check.
77211         * modules/chown-tests (Depends-on, configure.ac): Likewise.
77212         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
77213         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
77214         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
77215         * modules/openat-tests (Depends-on, configure.ac): Likewise.
77216         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
77217         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
77218         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
77219         Likewise.
77220         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
77221         * tests/test-lchown.h (nap): Likewise.
77222         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
77223         * tests/test-stat-time.c (nap): Likewise.
77224         * tests/test-utimens-common.h (nap): Update comments.
77226         usleep: new module
77227         * modules/usleep: New file.
77228         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
77229         * lib/usleep.c (usleep): Likewise.
77230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
77231         * modules/unistd (Makefile.am): Substitute witnesses.
77232         * lib/unistd.in.h (usleep): Add declaration.
77233         * doc/pastposix-functions/usleep.texi (usleep): Document this.
77234         * MODULES.html.sh (Date and time): Likewise.
77235         * modules/usleep-tests (Depends-on): New test.
77236         * tests/test-usleep.c: New file.
77238         chown: work around OpenBSD bug
77239         * lib/chown.c (rpl_chown): Work around the bug.
77240         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
77241         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
77242         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
77243         * modules/chown (Depends-on): Add stdbool.
77244         * modules/lchown (Depends-on): Likewise.
77245         * doc/posix-functions/chown.texi (chown): Document the bug.
77246         * doc/posix-functions/lchown.texi (lchown): Likewise.
77247         * tests/test-lchown.h (test_chown): Relax test.
77249         mkstemp: avoid conflict with C++ keyword template
77250         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
77251         * lib/mkostemp.c (mkostemp): Likewise.
77252         * lib/mkostemps.c (mkostemps): Likewise.
77253         * lib/mkstemp.c (mkstemp): Likewise.
77254         * lib/mkstemps.c (mkstemps): Likewise.
77256         xalloc-die-tests: optimize
77257         * tests/test-xalloc-die.sh: Reduce number of processes.
77259 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77261         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
77262         patch from ludo@gnu.org (Ludovic Courtès).
77264 2009-11-17  Jim Meyering  <meyering@redhat.com>
77266         version-etc: use proper license string
77267         * modules/version-etc (License): Use LGPL, not LGPLv3+.
77268         * modules/version-etc-fsf: Likewise.
77270 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77272         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
77273         printed to stdout.  Deal with EOL differences.
77275 2009-11-17  Eric Blake  <ebb9@byu.net>
77277         unsetenv: work around Solaris bug
77278         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
77279         * lib/unsetenv.c (rpl_unsetenv): Work around it.
77280         Reported by Jim Meyering.
77282         vasnprintf: avoid compiler warnings
77283         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
77284         variables.
77285         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
77287 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77289         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
77290         settings since xalloc-die is no longer the self test,
77291         xalloc-die.sh is.
77293 2009-11-17  Jim Meyering  <meyering@redhat.com>
77295         test-xalloc-die.sh: make the code agree with the commit log
77296         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
77297         at the end, just in case you happen to have a test-xalloc-die
77298         program in some other PATH directory.
77300         test-xalloc-die.sh: fix a portability bug
77301         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
77302         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
77303         Otherwise, argv[0] (as often seen in diagnostics) would be too
77304         system-dependent, sometimes with, and sometimes without the leading "./".
77306         version-etc-fsf: relax license to LGPLv3+
77307         * modules/version-etc-fsf (License): Relax license.
77309 2009-11-16  Eric Blake  <ebb9@byu.net>
77311         xalloc-die-tests: avoid printing null pointer
77312         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
77313         shell script.
77314         * tests/test-xalloc-die.c (program_name): Declare.
77315         * tests/test-xalloc-die.sh (tmpfiles): New file.
77317         setenv, unsetenv: work around various bugs
77318         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
77319         (setenv) [HAVE_SETENV]: Work around bugs.
77320         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
77321         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
77322         for bugs.
77323         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
77324         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
77325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
77326         * modules/stdlib (Makefile.am): Update substitutions.
77327         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
77328         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
77329         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77330         * modules/setenv-tests: New test.
77331         * modules/unsetenv-tests: Likewise.
77332         * tests/test-setenv.c: New file.
77333         * tests/test-unsetenv.c: Likewise.
77335 2009-11-16  Jim Meyering  <meyering@redhat.com>
77337         version-etc: relax license to LGPLv3+
77338         * modules/version-etc (License): Relax license.
77340         better AC_REQUIRE expanded-before-required-warning avoidance
77341         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
77342         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
77343         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
77344         which is no longer needed.
77346 2009-11-16  Eric Blake  <ebb9@byu.net>
77348         test-freading: clean up temporary file
77349         * tests/test-freading.c (main): Remove file on success, and use
77350         ASSERT more liberally.
77351         Reported by Jim Meyering.
77353 2009-11-16  Jim Meyering  <meyering@redhat.com>
77355         avoid new AC_REQUIRE expanded-before-required warnings
77356         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
77357         merely using it.
77358         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
77359         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
77361 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77363         * tests/test-xalloc-die.c: New file.
77364         * modules/xalloc-die-tests: New file.
77365         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
77366         XFAIL_TESTS so it can be appended by modules.
77368 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77370         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
77371         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
77373 2009-11-14  Eric Blake  <ebb9@byu.net>
77375         fnmatch: avoid compiler warning
77376         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
77377         to silence compiler warning about mismatch signedness in ?:.
77378         Reported by Robert Millan.
77380         intprops: add double-inclusion guard
77381         * lib/intprops.h: Allow idempotent includes.
77382         Suggested by Bruce Korb.
77384         openat: detect Solaris fchownat bug
77385         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
77386         penalizing glibc chownat when only lchownat is broken.
77387         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
77388         trailing slash bugs.
77389         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
77390         * modules/openat-tests (Files): Include more files.
77391         (Depends-on): Add mgetgroups, sleep, stat-time.
77392         (configure.ac): Add additional checks.
77393         (Makefile.am): Build new test.
77394         * tests/test-fchownat.c: New file.
77396         lchown: detect Solaris and FreeBSD bug
77397         * lib/lchown.c (rpl_lchown): Work around bug.
77398         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
77399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77400         * modules/unistd (Makefile.am): Populate it.
77401         * lib/unistd.in.h (lchown): Update declaration.
77402         * doc/posix-functions/lchown.texi (lchown): Document the bug.
77403         * modules/lchown-tests: New file.
77404         * tests/test-lchown.h (test_lchown): Likewise.
77405         * tests/test-lchown.c (main): Likewise.
77407         chown: detect Solaris and FreeBSD bug
77408         * lib/chown.c (rpl_chown): Work around bug.
77409         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
77410         (gl_PREREQ_CHOWN): Delete.
77411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77412         * modules/unistd (Makefile.am): Populate it.
77413         * lib/unistd.in.h (chown): Update declaration.
77414         * lib/lchown.c (chown): Update client.
77415         * modules/lchown (Depends-on): Add lstat.
77416         * doc/posix-functions/chown.texi (chown): Document the bug.
77417         * doc/posix-functions/getgroups.texi (getgroups): Document
77418         getgroups pitfall.
77419         * modules/chown-tests: New file.
77420         * tests/test-chown.h (test_chown): Likewise.
77421         * tests/test-chown.c (main): Likewise.
77423 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
77425         gnulib-tool: correctly detect absence of m4 directories
77426         * gnulib-tool: Avoid extra newline on data passed to wc -l.
77428 2009-11-14  Jim Meyering  <meyering@redhat.com>
77430         maint.mk: Prohibit inclusion of "xalloc.h" without use.
77431         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77433 2009-11-14  John W. Eaton  <jwe@gnu.org>
77435         strftime.h: wrap function declaration in extern "C" block
77436         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
77438 2009-11-13  Eric Blake  <ebb9@byu.net>
77440         getgroups: avoid compiler warning
77441         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
77443         getgroups: work around FreeBSD bug
77444         * lib/getgroups.c (rpl_getgroups): Work around the bug.
77445         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
77446         * doc/posix-functions/getgroups.texi (getgroups): Document it.
77447         * tests/test-getgroups.c (main): Fix buffer overrun.
77449         getgroups: avoid compilation failure
77450         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
77451         * modules/getgroups (Depends-on): Add stdint.
77453 2009-11-13  Jim Meyering  <meyering@redhat.com>
77455         test-getgroups: avoid compilation failure
77456         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
77458 2009-11-13  Eric Blake  <ebb9@byu.net>
77460         mgetgroups: new module, taken from coreutils
77461         * modules/mgetgroups: New file.
77462         * lib/mgetgroups.h: Likewise.
77463         * lib/mgetgroups.c (mgetgroups): Likewise.
77464         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
77465         * MODULES.html.sh (Users and groups): Mention it.
77467         getgroups: don't expose GETGROUPS_T to user
77468         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
77469         an element at a time if GETGROUPS_T is wrong size.
77470         * lib/getugroups.h (getugroups): Change signature.
77471         * lib/unistd.in.h (getgroups): Likewise.
77472         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
77473         signature needs fixing.
77474         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
77475         AC_TYPE_GETGROUPS.
77476         * modules/group-member (Depends-on): Add getgroups.
77477         * lib/group-member.c (group_info, get_group_info): Use gid_t.
77478         (group_member): Rely on getgroups replacement.
77479         * lib/getugroups.c (getugroups): Use gid_t.
77480         * tests/test-getgroups.c (main): Likewise.
77481         * NEWS: Mention the signature change.
77482         * doc/posix-functions/getgroups.texi (getgroups): Mention the
77483         problem with signature.
77484         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
77485         GETGROUPS_T is still useful for setgroups.
77487         getgroups, getugroups: provide stubs for mingw
77488         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
77489         * lib/getugroups.c (getugroups): Likewise.
77490         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
77491         function.  Modernize replacement scheme.
77492         (gl_PREREQ_GETGROUPS): Delete.
77493         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
77494         * modules/getgroups (configure.ac): Declare witness.
77495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77496         * modules/unistd (Depends-on): Substitute witness.
77497         * lib/unistd.in.h (getgroups): Declare replacement.
77499         getgroups: avoid calling exit
77500         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
77501         drop xalloc.
77502         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
77503         dependencies.
77504         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
77505         exiting, in the rare case of malloc failure.
77507         getgroups: fix logic error
77508         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
77509         has more than 20 groups.
77510         * modules/getgroups-tests: New test.
77511         * tests/test-getgroups.c: New file.
77513 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77515         * tests/test-base64.c: Improve.
77517 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77519         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
77520         Blake <ebb9@byu.net>.
77522 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77524         * tests/test-xvasprintf.c: Add %s%s related checks.
77526 2009-11-12  Eric Blake  <ebb9@byu.net>
77528         version-etc: match standards.texi style
77529         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
77530         and use <> only for URLs.
77532 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
77534         fts: do not fail on a submount during traversal
77535         * lib/fts.c (fts_build): Read the stat info again after opening
77536         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
77537         Original report at http://bugzilla.redhat.com/501848.
77539 2009-11-12  Jim Meyering  <meyering@redhat.com>
77541         bootstrap: sync from coreutils
77542         * build-aux/bootstrap (bootstrap_epilogue): New function.
77543         Use git_modules_config in one more place.  This make bootstrap's
77544         --gnulib-srcdir option more useful for testing.
77546         bootstrap: generalize autoheader check
77547         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
77548         AC_CONFIG_HEADERS.
77550 2009-11-11  Eric Blake  <ebb9@byu.net>
77552         mkfifoat: use new modules for Solaris and BSD bugs
77553         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
77554         * lib/mkfifoat.c (mknodat): Split...
77555         * lib/mknodat.c (mknodat): ...into new file.
77556         * modules/mkfifoat (Files): Ship new file.
77557         (Depends-on): Add mkfifo, mknod.
77558         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
77559         (Depends-on): Add symlink.
77560         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
77561         redundant with test_mkfifo.h.
77562         (do_mkfifoat, do_mknodat): New helpers.
77564         mknod: new module
77565         * modules/mknod: New file.
77566         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
77567         * lib/mknod.c (mknod): Likewise.
77568         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77569         defaults.
77570         * modules/sys_stat (Makefile.am): Substitute them.
77571         * lib/sys_stat.in.h (mknod): Declare replacement.
77572         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77573         Document it.
77574         * doc/posix-functions/mknod.texi (mknod): Likewise.
77575         * modules/mknod-tests: New test.
77576         * tests/test-mknod.c: Likewise.
77578         mkfifo: new module
77579         * modules/mkfifo: New file.
77580         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
77581         * lib/mkfifo.c (mkfifo): Likewise.
77582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77583         defaults.
77584         * modules/sys_stat (Makefile.am): Substitute them.
77585         * lib/sys_stat.in.h (mkfifo): Declare replacement.
77586         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77587         Document it.
77588         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
77589         * modules/mkfifo-tests: New test.
77590         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
77591         from test-mkfifoat.c.
77592         * tests/test-mkfifo.c: New file.
77594         readlink: detect FreeBSD bug
77595         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
77596         slash on symlink.
77597         * doc/posix-functions/readlink.texi (readlink): Document the bug.
77598         * tests/test-readlink.h (test_readlink): Enhance test.
77600         symlink: detect FreeBSD bug
77601         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
77602         slash on symlink.
77603         * doc/posix-functions/symlink.texi (symlink): Document the bug.
77604         * tests/test-symlink.h (test_symlink): Enhance test.
77606 2009-11-10  Eric Blake  <ebb9@byu.net>
77608         link: detect FreeBSD bug
77609         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
77610         symlink.
77611         * doc/posix-functions/link.texi (link): Document the bug.
77612         * tests/test-link.h (test_link): Enhance test.
77613         * tests/test-linkat.c (main): Update caller.
77615         unlink, remove: detect FreeBSD bug
77616         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
77617         slash on symlink.
77618         * doc/posix-functions/unlink.texi (unlink): Document the bug.
77619         * doc/posix-functions/remove.texi (remove): Likewise.
77620         * tests/test-unlink.h (test_unlink): Enhance test.
77621         * tests/test-remove.c (main): Likewise.
77623 2009-11-09  Eric Blake  <ebb9@byu.net>
77625         rename: detect FreeBSD bug
77626         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
77627         slash on symlink.
77628         * modules/renameat-tests (Depends-on): Add filenamecat.
77629         * tests/test-rename.h (test_rename): Allow one more errno.
77630         * tests/test-renameat.c (main): Likewise.
77631         * doc/posix-functions/rename.texi (rename): Document the bug.
77633         open: detect FreeBSD bug
77634         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
77635         symlink.
77636         * doc/posix-functions/open.texi (open): Document the bug.
77637         * doc/posix-functions/utimes.texi (utimes): Likewise.
77638         * tests/test-open.h (test_open): Add parameters, and test symlink
77639         handling.
77640         * tests/test-open.c (main): Adjust caller.
77641         * tests/test-fcntl-safer.c (main): Likewise.
77642         * modules/open-tests (Depends-on): Add stdbool, symlink.
77643         * modules/fcntl-safer-tests (Depends-on): Likewise.
77644         * tests/test-openat.c (main): Add test-open tests.
77646         stat: detect FreeBSD bug
77647         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
77648         symlink.
77649         * doc/posix-functions/stat.texi (stat): Document the bug.
77650         * tests/test-stat.h (test_stat_func): Add argument.
77651         * tests/test-stat.c (main): Adjust caller.
77652         * tests/test-fstatat.c (main): Likewise.
77653         * modules/stat-tests (Depends-on): Add stdbool, symlink.
77654         Reported by Jim Meyering.
77656 2009-11-09  James Youngman  <jay@gnu.org>
77658         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
77659         * lib/strftime.c: Correct placement of #include "ignore-value.h".
77661 2009-11-08  Jim Meyering  <meyering@redhat.com>
77663         utimens: remove invalid futimesat call
77664         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
77665         It used the file descriptor of the target file as the DIR_FD
77666         parameter and NULL as the file name.  That caused failure with
77667         errno == EFAULT on FreeBSD-8.0-rc2
77669 2009-11-07  Eric Blake  <ebb9@byu.net>
77671         fflush, freadseek: use fseeko, not fseek
77672         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
77673         (clear_ungetc_buffer): Avoid potential problems on large files.
77674         * lib/freadseek.c (freadseek): Likewise.
77675         * modules/freadseek (Depends-on): Add fseeko.
77676         * modules/fseek (configure.ac): Set a witness.
77677         * tests/test-fflush.c (main): Use fseeko.
77678         * tests/test-fpurge.c (fseek): Disable link warning.
77679         * tests/test-freadable.c (fseek): Likewise.
77680         * tests/test-freading.c (fseek): Likewise.
77681         * tests/test-fseeko.c (fseek): Likewise.
77682         * tests/test-ftell.c (fseek): Likewise.
77683         * tests/test-ftello.c (fseek): Likewise.
77684         * tests/test-fwritable.c (fseek): Likewise.
77685         * tests/test-fwriting.c (fseek): Likewise.
77687 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77689         * modules/memchr (Depends-on): Drop getpagesize dependency.
77691 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77693         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
77694         Reported by Ludovic Courtès.
77695         * build-aux/pmccabe2html: Improve example usage.
77696         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
77698 2009-11-06  Jim Meyering  <meyering@redhat.com>
77700         do-release-commit-and-tag: New module.
77701         Automate the release-commit and tag process.
77702         * build-aux/do-release-commit-and-tag: New script, from coreutils.
77703         * modules/do-release-commit-and-tag: New file.
77704         * MODULES.html.sh (Support for maintaining and releasing): Add it.
77706 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77708         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
77709         because test-select.c uses inet_pton.
77711 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77713         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
77714         GETADDRINFO_LIB.  Bump serial number.
77715         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
77716         Suggested by Eric Blake <ebb9@byu.net>.
77718 2009-11-05  Eric Blake  <ebb9@byu.net>
77720         strtod: detect darwin bug
77721         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
77722         Reported by Leo Davis.
77724         freopen-safer: new module
77725         * modules/freopen-safer: New module.
77726         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
77727         * lib/freopen-safer.c (freopen_safer): New file.
77728         * lib/stdio-safer.h (freopen_safer): New declaration.
77729         * lib/stdio--.h (freopen): New override.
77730         * MODULES.html.sh (File stream based Input/Output): Mention it.
77731         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
77732         freopen-safer module.
77733         * doc/posix-functions/stderr.texi (stderr): Likewise.
77734         * doc/posix-functions/stdin.texi (stdin): Likewise.
77735         * doc/posix-functions/stdout.texi (stdout): Likewise.
77736         * modules/freopen-safer-tests: New test.
77737         * tests/test-reopen-safer.c: New file.
77739 2009-11-05  Jim Meyering  <meyering@redhat.com>
77741         maint.mk: Prohibit inclusion of "close-stream.h" without use.
77742         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77744 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77746         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
77748 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77750         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
77752 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77754         Fix link error.
77755         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77756         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77758 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77760         * tests/test-func.c: Also test value of __func__.
77762 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77764         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
77765         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
77767 2009-11-05  Bruno Haible  <bruno@clisp.org>
77769         Fix link error.
77770         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77771         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77772         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
77774 2009-11-05  Bruno Haible  <bruno@clisp.org>
77776         Tests for module 'inet_pton'.
77777         * modules/inet_pton-tests: New file.
77778         * tests/test-inet_pton.c: New file.
77780 2009-11-05  Bruno Haible  <bruno@clisp.org>
77782         Tests for module 'inet_ntop'.
77783         * modules/inet_ntop-tests: New file.
77784         * tests/test-inet_ntop.c: New file.
77786 2009-11-04  Eric Blake  <ebb9@byu.net>
77788         stdlib-safer: wrap all mkstemp variants
77789         * modules/mkostemp (configure.ac): Set witness.
77790         * modules/mkostemps (configure.ac): Likewise.
77791         * modules/mkstemps (configure.ac): Likewise.
77792         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
77793         (mkstemps_safer): Wrap more functions.
77794         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
77795         wrapping.
77796         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
77797         (mkstemps_safer): Implement the wrappers.
77799         mkstemps, mkostemps: new modules
77800         * modules/mkostemps: New module.
77801         * modules/mkstemps: Likewise.
77802         * lib/mkostemps.c (mkostemps): New file.
77803         * lib/mkstemps.c (mkstemps): Likewise.
77804         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
77805         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
77806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
77807         * modules/stdlib (Makefile.am): Substitute them.
77808         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
77809         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
77810         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
77811         * doc/gnulib.texi (Glibc stdlib.h): Include them.
77812         * MODULES.html.sh (File system functions): Mention them.
77814         tempname: resync from glibc
77815         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
77816         same values for __GT_FILE as glibc.  Abort even when assertions
77817         are disabled.
77818         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
77819         match its value otherwise.  Allow idempotent inclusion.
77820         * lib/mkdtemp.c (mkdtemp): Adjust caller.
77821         * lib/mkostemp.c (mkostemp): Likewise.
77822         * lib/mkstemp.c (mkstemp): Likewise.
77823         * lib/tmpfile.c (tmpfile): Likewise.
77824         * NEWS: Document this.
77826         utimens: fix use of futimens on older Linux
77827         * lib/utimens.c (fdutimens): Use updated, rather than original,
77828         timespec to avoid bug in older Linux kernel.
77829         Reported by Simon Josefsson.
77831 2009-11-04  Bruno Haible  <bruno@clisp.org>
77833         Make num_processors more flexible and consistent.
77834         * lib/nproc.h (enum nproc_query): New type.
77835         (num_processors): Add a 'query' argument.
77836         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
77837         (num_processors): Add a 'query' argument. Test the value of the
77838         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
77839         mingw, count the number of CPUs available for the current process.
77840         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
77841         Check for sched_getaffinity and sched_getaffinity_np.
77842         * modules/nproc (Depends-on): Add c-ctype, extensions.
77843         * NEWS: Mention the change.
77845 2009-11-03  Bruno Haible  <bruno@clisp.org>
77847         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
77849 2009-11-03  Jim Meyering  <meyering@redhat.com>
77851         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
77852         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
77853         if it is defined.
77855 2009-11-02  Eric Blake  <ebb9@byu.net>
77857         mktime, timegm: share common declaration
77858         * lib/mktime-internal.h: New file.
77859         * lib/mktime.c: Use it rather than open-coding a declaration.
77860         * lib/timegm.c: Likewise.
77861         * modules/mktime (Files): Ship it.
77862         * modules/timegm (Files): Likewise.
77863         Suggested by Bruno Haible.
77865         test-update-copyright: update test to match script changes
77866         * tests/test-update-copyright.sh: Avoid hard-coding perl
77867         location.  Don't update *.bak created by earlier runs.
77869 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77870             Simon Josefsson  <simon@josefsson.org>
77871             Bruno Haible  <bruno@clisp.org>
77873         Fix link error on Solaris 8.
77874         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
77875         also in libnsl. Define also INET_PTON_LIB.
77876         * modules/inet_pton (Link): New section.
77878 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77879             Bruno Haible  <bruno@clisp.org>
77881         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
77882         * modules/inet_ntop (Link): New section.
77883         Reported by Boyan Kasarov <bkasarov@gmail.com>.
77885 2009-11-02  Eric Blake  <ebb9@byu.net>
77887         maint: avoid compiler warnings in m4 macros
77888         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
77889         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
77891 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77893         * m4/pmccabe2html.m4: Remove file.
77894         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
77895         function.  Change maintainer.
77896         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
77897         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
77898         Courtès).
77900 2009-10-31  Eric Blake  <ebb9@byu.net>
77902         fseeko: fix m4 regression
77903         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
77904         regression from 2009-10-27.
77905         Reported by Ralf Wildenhues.
77907 2009-10-31  Jim Meyering  <meyering@redhat.com>
77909         inttostr: aesthetics and improved (compile-time) safety
77910         Define inttype_is_signed rather than inttype_is_unsigned,
77911         since the sole use is via "#if inttype_is_signed".
77912         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
77913         inttype_is_unsigned.
77914         * lib/offtostr.c (inttype_is_signed): Likewise.
77915         * lib/uinttostr.c (inttype_is_signed): Likewise.
77916         * lib/umaxtostr.c (inttype_is_signed): Likewise.
77917         * lib/inttostr.c (inttostr): Use verify to cross-check the
77918         inttype_is_signed value and the signedness of the actual type.
77919         * modules/inttostr (Depends-on): Add verify.
77921 2009-10-30  Eric Blake  <ebb9@byu.net>
77923         build: avoid compiler warnings
77924         * lib/fchmodat.c (lchmod): Mark unused variables.
77925         * lib/getopt.c (_getopt_initialize): Likewise.
77926         * lib/mktime.c (__mktime_internal): Provide prototype.
77927         * lib/inttostr.c (inttostr): Avoid compiler warning even with
77928         older gcc that do not understand #pragma GCC diagnostic.
77929         * lib/uinttostr.c (inttype_is_unsigned): Define.
77930         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
77932 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
77934         stat: fix compilation on AIX
77935         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
77936         only see struct stat64.
77938 2009-10-30  Eric Blake  <ebb9@byu.net>
77940         exclude: make more robust
77941         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
77942         rather than masking a coding bug.
77943         Suggested by Bruno Haible.
77945 2009-10-30  Jim Meyering  <meyering@redhat.com>
77947         perl scripts: remove #!/usr/bin/perl in favor of more portable...
77948         Rather than putting #!/usr/bin/perl on the first line,
77949         start with a variant of what's recommended by "man perlrun" that
77950         invokes the first "perl" program from your shell's search path.
77951         * build-aux/gitlog-to-changelog: Replace #!... as above.
77952         Add a "Local Variables" perl mode setting.
77953         Prompted by a patch from Ludovic Courtès.
77954         Improved by Eric Blake.
77955         * build-aux/useless-if-before-free: Likewise.
77956         * build-aux/announce-gen: Likewise.
77957         * build-aux/update-copyright: Likewise.
77959 2009-10-29  Eric Blake  <ebb9@byu.net>
77961         filenamecat-lgpl: adjust clients
77962         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
77963         filenamecat.
77964         * modules/renameat (Depends-on): Likewise.
77966         filenamecat: split into filenamecat-lgpl
77967         * modules/filenamecat-lgpl: New module.
77968         * modules/filenamecat (Files): Move library-safe files into
77969         filenamecat-lgpl.
77970         (Depends-on): Add filenamecat-lgpl.
77971         (configure.ac): Declare witness.
77972         * lib/filenamecat.h (file_name_concat): Only declare when using
77973         GPL module.
77974         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
77975         Move...
77976         * lib/filenamecat-lgpl.c: ...into new file.
77977         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
77978         (gl_FILE_NAME_CONCAT): Use it.
77979         * MODULES.html.sh (File system functions): Mention new module.
77981         argp: avoid memory leak
77982         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
77983         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
77984         base_name, since the latter malloc()s and can call exit().
77985         Leak introduced 2006-07-03.
77987         dirname-lgpl: adjust clients that don't need full dirname
77988         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
77989         * modules/filenamecat (Depends-on): Likewise.
77990         * modules/linkat (Depends-on): Likewise.
77991         * modules/mkancesdirs (Depends-on): Likewise.
77992         * modules/mkdir (Depends-on): Likewise.
77993         * modules/openat (Depends-on): Likewise.
77994         * modules/savewd (Depends-on): Likewise.
77995         * modules/rename (Depends-on): Likewise.
77996         (License): Relax license.
77997         * modules/mkdir-tests (Depends-on): Drop progname.
77998         (Makefile.am): Delete unneeded LDADD.
77999         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
78001         dirname: split into dirname-lgpl
78002         * modules/dirname-lgpl: New module.
78003         * modules/dirname (Files): Move library-safe files into
78004         dirname-lgpl.
78005         (Depends-on): Add dirname-lgpl.
78006         (configure.ac): Declare witness.
78007         * modules/double-slash-root (License): Relax license.
78008         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
78009         module.
78010         * lib/dirname.c (dir_len, mdir_name): Move...
78011         * lib/dirname-lgpl.c: ...into new file.
78012         * lib/basename.c (last_component, base_len): Move...
78013         * lib/basename-lgpl.c: ...into new file.
78014         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
78015         (gl_DIRNAME): Use it.
78016         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
78017         Mention new module.
78018         * modules/dirname-tests (Depends-on): Add progname.
78019         * tests/test-dirname.c (program_name): Delete.
78021         mkdir: make safe for libraries
78022         * modules/mkdir (Depends-on): Drop xalloc.
78023         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
78024         exit.
78026         tests: avoid some compiler warnings
78027         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
78028         literals.
78029         * tests/test-memchr.c (main): Avoid type mismatch.
78030         * tests/test-arpa_inet.c (main): Avoid unused parameters.
78031         * tests/test-base64.c (main): Likewise.
78032         * tests/test-getdelim.c (main): Likewise.
78033         * tests/test-gethostname.c (main): Likewise.
78034         * tests/test-getline.c (main): Likewise.
78035         * tests/test-netinet_in.c (main): Likewise.
78036         * tests/test-select.c (open_server_socket, main): Likewise.
78037         * tests/test-select-stdin.c (main): Likewise.
78038         * tests/test-sockets.c (main): Likewise.
78039         * tests/test-strsignal.c (main): Likewise.
78040         * tests/test-sys_select.c (main): Likewise.
78041         * tests/test-sys_socket.c (main): Likewise.
78042         * tests/test-u64.c (main): Likewise.
78043         * tests/test-xfprintf-posix.c (main): Likewise.
78044         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
78046         sockets: avoid compiler warning
78047         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
78049         maint: detect usage(1) and other suspicious exits
78050         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
78052 2009-10-29  Jim Meyering  <meyering@redhat.com>
78054         timespec: long-to-int truncation could make timespec_cmp malfunction
78055         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
78056         a multiple of 2^32 nanoseconds as no difference.
78058 2009-10-28  Jim Meyering  <meyering@redhat.com>
78060         fprintftime: wrap macro code argument in "do {...} while(0)"
78061         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
78062         cpy macro must be a statement that can be followed by a semicolon.
78063         Now that the else clause contains a comment and is hence longer
78064         than one line, I require curly braces.  That in turn requires
78065         that we wrap this code block in the standard do...while(0).
78067         fprintftime: remove stray semicolon from previous change
78068         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
78070         fprintftime: avoid a warning about ignored fwrite return value
78071         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
78072         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
78073         that is unsafe.
78074         * modules/fprintftime (Depends-on): Add ignore-value.
78076         exclude: avoid an unwarranted warning
78077         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
78079 2009-10-27  Eric Blake  <ebb9@byu.net>
78081         fseek: avoid compilation failure when fflush is replaced
78082         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
78083         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
78084         module is in use.
78085         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
78086         module is not in use; since REPLACE_FSEEK worked otherwise.
78087         (GNULIB_FTELLO): Likewise for ftell.
78088         Reported by Ian Beckwith and others.
78090 2009-10-27  Bruno Haible  <bruno@clisp.org>
78092         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
78093         Reported by Jim Meyering.
78095 2009-10-27  Jim Meyering  <jim@meyering.net>
78096             Bruno Haible  <bruno@clisp.org>
78098         Avoid warning despite dropping the return value of fwrite.
78099         * lib/unicodeio.c: Include ignore-value.h.
78100         (fwrite_success_callback): Explicitly ignore fwrite's return value.
78101         * modules/unicodeio (Depends-on): Add ignore-value.
78103 2009-10-26  Eric Blake  <ebb9@byu.net>
78105         areadlinkat: fix fallback path
78106         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
78107         pointer and zero.
78109 2009-10-22  Pádraig Brady  <P@draigBrady.com>
78111         Use a better IO block size for modern systems
78112         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
78113         * lib/md2.c: Likewise.
78114         * lib/md4.c: Likewise.
78115         * lib/md5.c: Likewise.
78116         * lib/sha1.c: Likewise.
78117         * lib/sha256.c: Likewise.
78118         * lib/sha512.c: Likewise.
78120 2009-10-22  Eric Blake  <ebb9@byu.net>
78122         tests: avoid several compiler warnings
78123         * tests/test-getcwd.c (main): Avoid buffer underflow.
78124         * tests/test-getdate.c (main): String literals are not safe with
78125         putenv, so use setenv.  Declare unused argument.
78126         * modules/getdate-tests (Depends-on): Add setenv.
78127         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
78128         problems with string literals in char *.
78129         * tests/test-hash.c (main): Avoid shadowing declaration.
78130         (insert_new): Treat string literals as char const *.
78131         * tests/test-getopt.h (test_getopt): Likewise.
78132         (getopt_loop): Alter types to minimize casting elsewhere.
78133         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
78134         (test_getopt_long_posix): Likewise.
78135         (do_getopt_long): Add wrapper to minimize casting.
78136         * tests/test-atexit.c (clear_temp_file): Use void.
78137         * tests/test-areadlink-with-size.c (main): Declare unused
78138         arguments.
78139         * tests/test-areadlink.c (main): Likewise.
78140         * tests/test-areadlinkat-with-size.c (main): Likewise.
78141         * tests/test-areadlinkat.c (main): Likewise.
78142         * tests/test-canonicalize-lgpl.c (main): Likewise.
78143         * tests/test-canonicalize.c (main): Likewise.
78144         * tests/test-dirent-safer.c (main): Likewise.
78145         * tests/test-dirname.c (main): Likewise.
78146         * tests/test-dup2.c (main): Likewise.
78147         * tests/test-fchdir.c (main): Likewise.
78148         * tests/test-fcntl-h.c (main): Likewise.
78149         * tests/test-fcntl-safer.c (main): Likewise.
78150         * tests/test-fdopendir.c (main): Likewise.
78151         * tests/test-fdutimensat.c (main): Likewise.
78152         * tests/test-fflush.c (main): Likewise.
78153         * tests/test-filenamecat.c (main): Likewise.
78154         * tests/test-filevercmp.c (main): Likewise.
78155         * tests/test-fopen-safer.c (main): Likewise.
78156         * tests/test-fopen.c (main): Likewise.
78157         * tests/test-fpending.c (main): Likewise.
78158         * tests/test-fpurge.c (main): Likewise.
78159         * tests/test-freading.c (main): Likewise.
78160         * tests/test-fstatat.c (main): Likewise.
78161         * tests/test-fsync.c (main): Likewise.
78162         * tests/test-futimens.c (main): Likewise.
78163         * tests/test-getndelim2.c (main): Likewise.
78164         * tests/test-gettimeofday.c (main): Likewise.
78165         * tests/test-getopt.c (main): Likewise.
78166         * tests/test-i-ring.c (main): Likewise.
78167         * tests/test-inttypes.c (main): Likewise.
78168         * tests/test-link.c (main): Likewise.
78169         * tests/test-lstat.c (main): Likewise.
78170         * tests/test-math.c (main): Likewise.
78171         * tests/test-md5.c (main): Likewise.
78172         * tests/test-memchr2.c (main): Likewise.
78173         * tests/test-memrchr.c (main): Likewise.
78174         * tests/test-mkdir.c (main): Likewise.
78175         * tests/test-mkdirat.c (main): Likewise.
78176         * tests/test-mkfifoat.c (main): Likewise.
78177         * tests/test-open.c (main): Likewise.
78178         * tests/test-openat-safer.c (main): Likewise.
78179         * tests/test-openat.c (main): Likewise.
78180         * tests/test-quotearg.c (main): Likewise.
78181         * tests/test-rawmemchr.c (main): Likewise.
78182         * tests/test-readlink.c (main): Likewise.
78183         * tests/test-remove.c (main): Likewise.
78184         * tests/test-rename.c (main): Likewise.
78185         * tests/test-renameat.c (main): Likewise.
78186         * tests/test-rmdir.c (main): Likewise.
78187         * tests/test-sha1.c (main): Likewise.
78188         * tests/test-signal.c (main): Likewise.
78189         * tests/test-sigaction.c (main): Likewise.
78190         * tests/test-stat.c (main): Likewise.
78191         * tests/test-stat-time.c (main): Likewise.
78192         * tests/test-stddef.c (main): Likewise.
78193         * tests/test-stdint.c (main): Likewise.
78194         * tests/test-stdio.c (main): Likewise.
78195         * tests/test-stdlib.c (main): Likewise.
78196         * tests/test-strchrnul.c (main): Likewise.
78197         * tests/test-strerror.c (main): Likewise.
78198         * tests/test-string.c (main): Likewise.
78199         * tests/test-strtod.c (main): Likewise.
78200         * tests/test-strverscmp.c (main): Likewise.
78201         * tests/test-symlink.c (main): Likewise.
78202         * tests/test-symlinkat.c (main): Likewise.
78203         * tests/test-sys_stat.c (main): Likewise.
78204         * tests/test-sys_time.c (main): Likewise.
78205         * tests/test-time.c (main): Likewise.
78206         * tests/test-unistd.c (main): Likewise.
78207         * tests/test-unlink.c (main): Likewise.
78208         * tests/test-unlinkat.c (main): Likewise.
78209         * tests/test-utimens.c (main): Likewise.
78210         * tests/test-utimensat.c (main): Likewise.
78211         * tests/test-version-etc.c (main): Likewise.
78212         * tests/test-wchar.c (main): Likewise.
78213         * tests/test-wctype.c (main): Likewise.
78214         * tests/test-xprintf-posix.c (main): Likewise.
78215         * tests/test-posixtm.c (main): Likewise.
78216         (STREQ): Delete unused macro.
78217         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
78218         shadowed variables.
78219         * tests/test-memchr.c (main): Likewise.
78221 2009-10-21  Eric Blake  <ebb9@byu.net>
78223         areadlinkat: avoid failure on older glibc
78224         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
78225         rather than mis-comparing 0 against FUNC_RESULT of char*.
78227 2009-10-21  Bruno Haible  <bruno@clisp.org>
78229         * modules/stpncpy (License): Relicense under LGPLv2+.
78230         Reported by David Lutterkort <lutter@redhat.com>.
78232 2009-10-20  Eric Blake  <ebb9@byu.net>
78234         utimensat: work around Solaris 9 bug
78235         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
78236         has trailing slash bugs.
78237         * tests/test-lutimens.h (test_lutimens): Enhance test.
78238         * tests/test-utimens.h (test_utimens): Likewise.
78239         * doc/posix-functions/utime.texi (utime): Enhance documentation.
78240         * doc/posix-functions/utimes.texi (utimes): Likewise.
78241         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78242         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
78243         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
78244         * doc/posix-functions/futimens.texi (futimens): Likewise.
78246         fdutimensat: new module
78247         * modules/fdutimensat: New file.
78248         * lib/fdutimensat.c (fdutimensat): Likewise.
78249         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
78250         * MODULES.html.sh (File system functions): Mention module.
78251         * modules/fdutimensat-tests: New test.
78252         * tests/test-fdutimensat.c: Likewise.
78254         doc: regenerate INSTALL
78255         * doc/INSTALL: Reflect recent autoconf update.
78256         * doc/INSTALL.ISO: Likewise.
78257         * doc/INSTALL.UTF-8: Likewise.
78259 2009-10-20  Pádraig Brady  <P@draigBrady.com>
78261         acl: warn if ACL support is not detected
78262         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
78264 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
78266         * lib/nproc.h: Add extern "C" block for C++.
78268 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
78269             Bruno Haible  <bruno@clisp.org>
78271         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
78272         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
78273         * doc/posix-functions/isalpha.texi: Likewise.
78274         * doc/posix-functions/isblank.texi: Likewise.
78275         * doc/posix-functions/iscntrl.texi: Likewise.
78276         * doc/posix-functions/isdigit.texi: Likewise.
78277         * doc/posix-functions/isgraph.texi: Likewise.
78278         * doc/posix-functions/islower.texi: Likewise.
78279         * doc/posix-functions/isprint.texi: Likewise.
78280         * doc/posix-functions/ispunct.texi: Likewise.
78281         * doc/posix-functions/isspace.texi: Likewise.
78282         * doc/posix-functions/isupper.texi: Likewise.
78283         * doc/posix-functions/isxdigit.texi: Likewise.
78285 2009-10-18  Bruno Haible  <bruno@clisp.org>
78287         Tests for module 'isblank'.
78288         * modules/isblank-tests: New file.
78289         * tests/test-isblank.c: New file.
78291         New module 'isblank'.
78292         * lib/isblank.c: New file.
78293         * m4/isblank.m4: New file.
78294         * modules/isblank: New file.
78295         * doc/posix-functions/isblank.texi: Mention the new module.
78297 2009-10-18  Bruno Haible  <bruno@clisp.org>
78299         New module 'ctype'.
78300         * lib/ctype.in.h: New file.
78301         * m4/ctype.m4: New file.
78302         * modules/ctype: New file.
78303         * doc/posix-headers/ctype.texi: Mention the new module.
78305 2009-10-18  Jim Meyering  <meyering@redhat.com>
78307         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
78308         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
78309         right after its initialization, rather than farther down.
78310         Keeping these in close proximity makes it easier to ensure
78311         that each such variable is initialized.  E.g.,
78313             LIB_CLOCK_GETTIME=
78314             AC_SUBST([LIB_CLOCK_GETTIME])
78316         This change also increments these serial numbers.
78317         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
78318         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78321 2009-10-18  Bruno Haible  <bruno@clisp.org>
78323         Don't let environment variables perturb build.
78324         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
78325         (gl_PREREQ_GETHRXTIME): ... not here.
78327 2009-10-18  Bruno Haible  <bruno@clisp.org>
78329         Avoid symlink attack in localcharset module.
78330         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
78331         (O_NOFOLLOW): Define fallback.
78332         (get_charset_aliases): Don't open the file if it is a symbolic link.
78333         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
78334         gl_FCNTL_H.
78335         (gl_FCNTL_H): Require it.
78336         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
78337         * modules/localcharset (Files): Add m4/fcntl_h.m4.
78338         Reported by Fergal Glynn <fglynn@veracode.com>.
78340 2009-10-18  Bruno Haible  <bruno@clisp.org>
78342         Implement nproc for mingw.
78343         * lib/nproc.c: Include <windows.h>
78344         (num_processors): On native Windows platforms, try GetSystemInfo.
78346 2009-10-18  Bruno Haible  <bruno@clisp.org>
78348         Implement nproc for IRIX.
78349         * lib/nproc.c: Include <sys/sysmp.h>.
78350         (num_processors): On IRIX systems, try sysmp.
78351         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
78353 2009-10-18  Bruno Haible  <bruno@clisp.org>
78355         Implement nproc for HP-UX.
78356         * lib/nproc.c: Include <sys/pstat.h>
78357         (num_processors): On HP-UX systems, try pstat_getdynamic.
78358         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
78359         pstat_getdynamic.
78361 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
78362             Bruno Haible  <bruno@clisp.org>
78364         Implement nproc for NetBSD, OpenBSD.
78365         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
78366         (ARRAY_SIZE): New macro.
78367         (num_processors): On BSD systems, try sysctl of HW_NCPU.
78368         * m4/nproc.m4: New file.
78369         * modules/nproc (Files): Add m4/nproc.m4.
78370         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
78371         (Makefile.am): Instead, augment lib_SOURCES.
78373 2009-10-18  Bruno Haible  <bruno@clisp.org>
78375         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
78376         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
78377         sys/param.h.
78379 2009-10-16  Eric Blake  <ebb9@byu.net>
78381         utimensat: new module
78382         * modules/utimensat: New file.
78383         * lib/utimensat.c (utimensat): Likewise.
78384         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
78385         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
78386         so we can work around Linux bugs.
78387         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78388         * modules/sys_stat (Makefile.am): Substitute them.
78389         * lib/sys_stat.in.h (utimensat): Declare it.
78390         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78391         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78392         * modules/utimensat-tests: New test.
78393         * tests/test-utimensat.c: Likewise.
78395         utimens: let lutimens work on non-symlinks
78396         * lib/utimens.c (lutimens): Fall back to utimens rather than
78397         failing with ENOSYS, when file is not a symlink.
78398         (utimens): Reduce redirection.
78399         * tests/test-lutimens.h (test_lutimens): Update test to cover
78400         non-symlinks.
78401         * tests/test-utimens.h (test_utimens): Update test to cover
78402         symlinks.
78403         * tests/test-utimens.c (main): Update caller.
78405         utimens: cache whether utimensat syscall works
78406         * lib/utimens.c (utimensat_works_really): New cache variable.
78407         (fdutimens, lutimens): Use it to avoid failing syscall.
78409         test-stat-time, test-utimens: improve portability
78410         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
78411         ext4 on alpha, and for cygwin.
78412         * tests/test-utimens-common.h: New file.
78413         (nap): Factor delays into single function.
78414         * tests/test-lutimens.h (test_lutimens): Use new header.
78415         * tests/test-futimens.h (test_futimens): Likewise.
78416         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
78417         timestamps to occur from same machine, as was done previously for
78418         test_utimens.
78419         * modules/utimens-tests (Files): Ship new file.
78420         * modules/futimens-tests (Files): Likewise.
78421         Reported in part by Jim Meyering.
78423         sys_stat: sort replacement declarations
78424         * lib/sys_stat.in.h: Sort declarations.
78425         * lib/futimens.c (futimens): Fix typo.
78427 2009-10-15  Jim Meyering  <meyering@redhat.com>
78429         don't let environment settings perturb build
78430         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
78431         could cause a configure-time and/or build-time malfunction.
78432         Typically, a configure-time function-in-library test is performed
78433         via code like this:
78435           LIB_VAR=
78436           AC_SUBST([LIB_VAR])
78437           prefix_saved_LIBS=$LIBS
78438             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
78439                        [test "$ac_cv_search_FUNC" = "none required" ||
78440                         LIB_VAR=$ac_cv_search_FUNC])
78441           LIBS=$prefix_saved_LIBS
78443         However, in each of the files affected by this change, the LIB_VAR=
78444         initialization was omitted.  Thus, when set in the environment, its
78445         value would propagate into generated Makefiles when FUNC is not found
78446         in LIB_NAME.
78447         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
78448         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78451 2009-10-14  Eric Blake  <ebb9@byu.net>
78453         fchdir: avoid infinite recursion in mingw
78454         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
78455         recursing.
78457         test-stat-time: port to mingw
78458         * tests/test-stat-time.c (force_unlink): Return a value.
78459         (test_ctime) [W32]: Fix compilation error.
78460         (nap): Don't call usleep with too large an argument.  Use
78461         force_unlink.
78462         * doc/pastposix-functions/usleep.texi (usleep): Document the
78463         portability issue.
78465 2009-10-13  Jim Meyering  <meyering@redhat.com>
78467         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
78468         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
78469         * modules/pipe-filter-ii: Likewise.
78470         * modules/sys_socket-tests: Likewise.
78471         * modules/tsearch-tests: Likewise.
78472         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
78473         (check): Depend on it.
78475 2009-10-12  Eric Blake  <ebb9@byu.net>
78477         utimens-tests: port to NFS file systems
78478         * tests/test-utimens.h (test_utimens): Refactor utimecmp
78479         comparisons to avoid spurious failures from timestamp drift
78480         between NFS machines.
78482 2009-10-12  Eric Blake  <ebb9@byu.net>
78484         stat-time-tests: minor cleanups
78485         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
78486         * tests/test-stat-time.c (nap): Separate assignment from call.
78487         Suggested by Paolo Bonzini and Bruno Haible.
78489         sys_stat: guarantee struct timespec
78490         * lib/sys_stat.in.h (includes): Always include <time.h>
78491         * modules/sys_stat (Depends-on): Add time.
78492         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
78493         mode_t permission values.
78494         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
78495         get at subsecond timestamps.
78497 2009-10-10  Eric Blake  <ebb9@byu.net>
78499         futimens: new module
78500         * modules/futimens: New file.
78501         * lib/futimens.c (futimens): Likewise.
78502         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
78503         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
78504         we can work around Linux bugs.
78505         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78506         * modules/sys_stat (Makefile.am): Substitute them.
78507         * lib/sys_stat.in.h (futimens): Declare it.
78508         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78509         * doc/posix-functions/futimens.texi (futimens): Likewise.
78510         * modules/futimens-tests: New test.
78511         * tests/test-futimens.c: Likewise.
78513         utimens: introduce fdutimens
78514         * lib/utimens.h (fdutimens): New prototype.
78515         * lib/utimens.c (gl_futimens): Move guts...
78516         (fdutimens): ...to new interface.
78517         * tests/test-utimens.c (do_fdutimens): Use it.
78519         utimens: add UTIME_NOW and UTIME_OMIT support
78520         * lib/utimens.c (validate_timespec, update_timespec): New helper
78521         functions.
78522         (gl_futimens, lutimens): Use them.
78523         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
78524         stdbool, sys_stat.
78525         (Link): Mention resulting library dependency.
78526         * modules/utimecmp (Link): Likewise.
78527         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
78528         (Makefile.am): Pick up library dependency.
78529         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
78530         definition.
78531         * tests/test-sys_stat.c: Test the definitions.
78532         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
78533         * NEWS: Document library dependency.
78535         utimecmp: support symlink timestamps
78536         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
78537         hashing when possible.  Use pathconf when available.
78538         (SYSCALL_RESOLUTION): Recognize tighter resolution.
78539         * modules/utimecmp (Depends-on): Add lstat.
78541         utimens: add lutimens interface
78542         * lib/utimens.c (lutimens): New function.
78543         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
78544         * lib/utimens.h (lutimens): Declare new interface.
78545         * tests/test-utimens.c (main): Enhance test.
78546         * tests/test-lutimens.h (test_lutimens): New file.
78547         * modules/utimens-tests (Files): Distribute it.
78548         (Depends-on): Add symlink.
78549         (configure.ac): Check for usleep.
78551         utimens: validate futimens usage
78552         * lib/utimens.c (gl_futimens): Require valid fd up front, using
78553         fewer syscalls on failure later on.  Avoid compiler warning on
78554         mingw.
78555         * modules/utimens (Depends-on): Add dup2.
78557         utimens: add test
78558         * modules/utimens-tests: New test.
78559         * tests/test-utimens.h: New file.
78560         * tests/test-futimens.h: Likewise.
78561         * tests/test-utimens.c: Likewise.
78563         doc: mention timestamp portability issues
78564         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
78565         instead.
78566         * doc/posix-functions/utime.texi (utime): Likewise.
78567         * doc/posix-functions/utimes.texi (utimes): Likewise.
78568         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
78569         instead.
78570         * doc/posix-functions/futimens.texi (futimens): Mention utimens
78571         module.
78572         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78573         Mention weakness with symlink timestamps.
78574         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
78575         to utimensat/futimens instead.
78576         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
78578         test-dup2: enhance test
78579         * tests/test-dup2.c (main): Also check AT_FDCWD.
78581         test-stat-time: avoid more spurious failures
78582         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
78583         xfs; and avoid race if the two timestamps cross quantization edge.
78585         relocatable: prefer 'file system' over 'filesystem'
78586         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
78587         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
78588         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
78589         * doc/relocatable.texi (Enabling Relocatability): Likewise.
78590         * lib/relocatable.c (compute_curr_prefix): Likewise.
78592 2009-10-10  Jim Meyering  <meyering@redhat.com>
78594         stat-time-tests: check for the usleep function
78595         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
78597 2009-10-10  Bruno Haible  <bruno@clisp.org>
78599         * modules/xnanosleep: Put the Link section after the Include section.
78601 2009-10-09  Eric Blake  <ebb9@byu.net>
78603         dup2: work around FreeBSD 6.1 bug
78604         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
78605         * doc/posix-functions/dup2.texi (dup2): Document it.
78606         Reported by Nelson H. F. Beebe and Jim Meyering.
78608         test-stat-time: port to buggy NFS clients
78609         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
78610         (test_ctime): Also skip test if mtime and ctime are skewed.
78612         maint: prefer 'file system' over 'filesystem'
78613         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78614         * doc/posix-functions/lstat.texi (lstat): Likewise.
78615         * lib/file-has-acl.c (file_has_acl): Likewise.
78616         * lib/fwriteerror.c [TEST]: Likewise.
78617         * tests/test-areadlink.h (test_areadlink): Likewise.
78618         * tests/test-areadlinkat-with-size.c (main): Likewise.
78619         * tests/test-areadlinkat.c (main): Likewise.
78620         * tests/test-canonicalize-lgpl.c (main): Likewise.
78621         * tests/test-canonicalize.c (main): Likewise.
78622         * tests/test-fstatat.c (main): Likewise.
78623         * tests/test-linkat.c (main): Likewise.
78624         * tests/test-lstat.h (test_lstat_func): Likewise.
78625         * tests/test-mkdir.h (test_mkdir): Likewise.
78626         * tests/test-readlink.h (test_readlink): Likewise.
78627         * tests/test-remove.c (main): Likewise.
78628         * tests/test-rename.h (test_rename): Likewise.
78629         * tests/test-renameat.c (main): Likewise.
78630         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78631         * tests/test-symlink.h (test_symlink): Likewise.
78632         * tests/test-symlinkat.c (main): Likewise.
78633         * tests/test-unlink.h (test_unlink_func): Likewise.
78634         * tests/test-unlinkat.c (main): Likewise.
78636         maint: make realtime library usage explicit
78637         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
78638         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
78639         * modules/settime (Link): Likewise.
78640         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
78642         test-stat-time: speed up execution
78643         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
78644         warning on mingw.
78645         (nap): New helper function.
78646         (prepare_test): Use it to reduce sleep time.
78647         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
78648         execution.
78649         * modules/stat-time-tests (configure.ac): Check for usleep.
78651 2009-10-09  Jim Meyering  <meyering@redhat.com>
78653         selinux-h: always use getfilecon wrappers
78654         * lib/getfilecon.c: New file.
78655         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
78656         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
78657         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
78658         (fgetfilecon): Provide a stub.
78659         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
78660         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
78661         file unconditionally.
78662         When <selinux/selinux.h> is found, arrange to use wrappers.
78663         * modules/selinux-h (Files): Add getfilecon.c.
78664         (Makefile.am): Substitute include-next-related bits
78665         into the now-always-generated selinux/selinux.h file.
78666         * doc/glibc-functions/lgetfilecon.texi: New file.
78667         * doc/glibc-functions/fgetfilecon.texi: New file.
78668         * doc/glibc-functions/getfilecon.texi: New file.
78669         * doc/glibc-functions/getfilecon-desc.texi: New file.
78670         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
78671         which to pull in the new files.
78672         * MODULES.html.sh (Misc): Add selinux-h.
78674 2009-10-08  Jim Meyering  <meyering@redhat.com>
78676         unistd: fix comment typo
78677         * lib/unistd.in.h (euidaccess): Fix a comment typo.
78679 2009-10-08  Eric Blake  <ebb9@byu.net>
78681         areadlink: use SIZE_MAX consistently
78682         * modules/areadlink (Depends-on): Add stdint.
78683         * modules/areadlink-with-size (Depends-on): Likewise.
78684         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
78685         gives NULL; drop sys/types, since unistd gives size_t; and add
78686         stdint for SIZE_MAX.
78687         (SIZE_MAX): Rely on headers.
78688         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
78689         and add stdint.
78690         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
78691         (SIZE_MAX): Likewise.
78692         (INITIAL_BUF_SIZE): Turn into enum.
78693         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
78695 2009-10-08  Jim Meyering  <meyering@redhat.com>
78697         areadlinkat: avoid compilation failure
78698         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
78699         Fix typo in comment.
78701 2009-10-07  Eric Blake  <ebb9@byu.net>
78703         areadlinkat-with-size: new module
78704         * modules/areadlinkat-with-size: New module.
78705         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
78706         * lib/areadlink.h (areadlinkat): Declare it.
78707         * MODULES.html.sh (File system functions): Mention it.
78708         * modules/areadlinkat-with-size-tests: New test.
78709         * tests/test-areadlinkat-with-size.c: New file.
78711         xreadlinkat: new module
78712         * modules/xreadlinkat: New module.
78713         * lib/xreadlinkat.c (xreadlinkat): New file.
78714         * lib/xreadlink.h (xreadlinkat): Declare it.
78715         * MODULES.html.sh (File system functions): Mention it.
78717         areadlinkat: new module
78718         * lib/at-func.c (FUNC_FAIL): New define.
78719         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
78720         * modules/areadlinkat: New module.
78721         * lib/linkat.c (areadlinkat): Move...
78722         * lib/areadlinkat.c (areadlinkat): ...to new file.
78723         * lib/areadlink.h (areadlinkat): Declare it.
78724         * modules/linkat (Depends-on): Add areadlinkat.
78725         * MODULES.html.sh (File system functions): Mention it.
78726         * modules/areadlinkat-tests: New test.
78727         * tests/test-areadlinkat.c: New file.
78729         areadlink, areadlink-with-size: add tests
78730         * modules/areadlink-tests: New test.
78731         * modules/areadlink-with-size-tests: Likewise.
78732         * tests/test-areadlink.h: New file.
78733         * tests/test-areadlink.c: Likewise.
78734         * tests/test-areadlink-with-size.c: Likewise.
78736         maint: minor cleanups
78737         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
78738         _UNUSED_PARAMETER_ instead.
78739         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
78740         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
78741         * modules/linkat-tests (Files): Distribute test-link.h.
78743         openat, utimens: whitespace cleanup
78744         * lib/openat.c: Prefer space throughout, rather than mix of 8
78745         spaces vs. tabs.
78746         * lib/at-func.c: Likewise.
78747         * lib/utimens.c: Likewise.
78749         openat: avoid using wrong fd
78750         * lib/openat.c (openat_permissive): Reject user's fd if saving the
78751         working directory chooses same fd.
78752         * lib/at-func.c (AT_FUNC_NAME): Likewise.
78754         mkdir, mkdirat: fix cygwin 1.5.x bug
78755         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
78756         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
78757         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
78758         bug.
78759         (gl_PREREQ_MKDIR): Delete unused macro.
78760         * modules/mkdir (Files): Track file rename.
78761         (configure.ac): Update macro name.
78762         * modules/openat (Depends-on): Add mkdir.
78763         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
78765         mkdir, mkdirat: add tests
78766         * modules/mkdir-tests: New test.
78767         * tests/test-mkdir.h: New file.
78768         * tests/test-mkdir.c: Likewise.
78769         * tests/test-mkdirat.c: Likewise.
78770         * modules/openat-tests (Files): Add new files.
78771         (Makefile.am): Run new test.
78773 2009-10-06  Eric Blake  <ebb9@byu.net>
78775         doc: tweak *at function documentation
78776         * doc/posix-functions/faccessat.texi (faccessat): Mention
78777         known issue with replacement.
78778         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
78779         * doc/posix-functions/linkat.texi (linkat): Likewise.
78780         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
78781         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
78782         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78783         * doc/posix-functions/renameat.texi (renameat): Likewise.
78784         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
78786         openat: fix GNU/Hurd bug in unlinkat
78787         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
78788         broken.
78789         * doc/posix-functions/unlink.texi (unlink): Document this.
78790         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
78792         fdopendir: fix GNU/Hurd bug
78793         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
78794         allowing non-directory fds.
78795         * lib/fdopendir.c (rpl_fdopendir): Work around it.
78796         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
78797         * modules/dirent (Makefile.am): Substitute it.
78798         * lib/dirent.in.h (fdopendir): Declare replacement.
78799         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
78800         * tests/test-fdopendir.c (main): Test something other than
78801         /dev/null, since on Hurd that behaves like a directory.
78803         test-symlink: port to GNU/Hurd
78804         * tests/test-symlink.h (test_symlink): Relax expected errno.
78806         doc: tweak more cygwin information
78807         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
78808         now compatible with glibc.
78809         * doc/posix-functions/getopt.texi (getopt): Likewise.
78811         getopt-gnu: add another test
78812         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
78813         guarantee behavior relied on by m4.
78814         * tests/test-getopt.c (main): Use it.
78815         * modules/getopt-posix-tests (Depends-on): Add setenv.
78816         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
78818         getopt: fix compilation on darwin
78819         * lib/getopt.in.h (includes): Leave breadcrumbs during system
78820         include.
78821         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
78822         Reported by Ludovic Courtès.
78824 2009-10-06  Bruno Haible  <bruno@clisp.org>
78826         * modules/size_max (Description): Discourage its use.
78827         Reported by Simon Josefsson.
78829 2009-10-06  Jim Meyering  <meyering@redhat.com>
78831         linkat: avoid compilation failure
78832         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
78834 2009-10-05  Eric Blake  <ebb9@byu.net>
78836         linkat: support Linux 2.6.17
78837         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
78838         linkat on Linux, but allow cache variable override.
78839         * lib/linkat.c (rpl_linkat): Define override.
78840         * modules/linkat (Depends-on): Add symlinkat.
78841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
78842         * modules/unistd (Makefile.am): Substitute it.
78843         * lib/unistd.in.h (linkat): Declare replacement.
78844         Reported by Pádraig Brady.
78846         quotearg: port test to systems with C.UTF-8 locale
78847         * tests/test-quotearg.c (struct result_strings): Add another
78848         member, differentiating between C.ASCII and C.UTF-8 handling.
78849         (compare_strings): Add parameter.
78850         (main): Adjust all callers.
78852         getopt: avoid clash with FreeBSD _getopt_internal
78853         * lib/getopt.in.h (_getopt_internal): Override the name.
78854         * lib/getopt_int.h (includes): Pick up any overrides.
78855         Reported by Reuben Thomas.
78857         hash: allow C89 compilation
78858         * lib/hash.c (check_tuning): Move declaration before statement.
78859         Reported by Reuben Thomas.
78861 2009-10-05  Karl Berry  <karl@gnu.org>
78863         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
78865 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
78866             Bruno Haible  <bruno@clisp.org>
78868         * lib/uname.c (uname): Use a table-driven algorithm to compute
78869         Windows NT versions.
78871 2009-10-04  Bruno Haible  <bruno@clisp.org>
78873         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
78874         program_invocation_short_name.
78875         * modules/progname (configure.ac): Test for presence of
78876         program_invocation_short_name.
78877         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
78879 2009-10-04  Bruno Haible  <bruno@clisp.org>
78881         * lib/progname.c (set_program_name): Fix comment.
78882         Reported by Jim Meyering.
78884 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78885             Bruno Haible  <bruno@clisp.org>
78887         * lib/uname.c: Include <string.h>.
78888         (uname): Do only one call to GetVersionEx in the common case.
78890 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78891             Bruno Haible  <bruno@clisp.org>
78893         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
78894         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
78895         (uname): Add support for Windows CE and various non-x86 CPU types.
78897 2009-10-03  Bruno Haible  <bruno@clisp.org>
78899         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
78900         invocation to tests/configure.ac.
78901         Reported by Ian Beckwith <ianb@erislabs.net>.
78903 2009-10-02  Eric Blake  <ebb9@byu.net>
78905         fchdir: avoid compiler warning
78906         * lib/fchdir.c (canonicalize_file_name)
78907         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
78909         test-open: support mingw errno values
78910         * tests/test-open.h (test_open): Relax test.
78911         * tests/test-fopen.h (test_fopen): Likewise.
78912         * tests/test-openat-safer.c (main): Likewise.
78914         open: fix opening directory on mingw
78915         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
78917         test-open: on GNU/Hurd, /dev/null is a directory
78918         * tests/test-fopen.h (main): Rename...
78919         (test_fopen): ...to this.  Use a guaranteed non-directory when
78920         confirming open behavior on trailing slash.
78921         * tests/test-openat-safer.c (main): Likewise.
78922         * tests/test-open.h (main): Likewise....
78923         (test_open): ...to this.
78924         * tests/test-fopen.c (main): Adjust caller.
78925         * tests/test-fopen-safer.c (main): Likewise.
78926         * tests/test-open.c (main): Likewise.
78927         * tests/test-fcntl-safer.c (main): Likewise.
78928         Reported by Samuel Thibault.
78930         rename, fchdir: don't ignore chdir failure
78931         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
78932         * lib/rename.c (rpl_rename) [W32]: Likewise.
78933         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
78934         an empty destination directory if source cannot be renamed,
78935         although there is still possibility for failure.
78936         * doc/posix-functions/rename.texi (rename): Document the race.
78937         Reported by Jim Meyering.
78939         maint: cleanup whitespace in recent commits
78940         * lib/rename.c (rpl_rename): Remove tabs.
78941         * tests/test-link.h (test_link): Likewise.
78942         * lib/fchdir.c (get_name): Likewise.
78943         Reported by Jim Meyering.
78945 2009-10-02  Ben Pfaff  <blp@gnu.org>
78947         relocatable-prog-wrapper: Add missing dependency on
78948         double-slash-root.
78949         * modules/relocatable-prog-wrapper: Add dependency.
78950         Reported by Ian Beckwith <ianb@erislabs.net>.
78952 2009-10-02  Eric Blake  <ebb9@byu.net>
78954         renameat: fix Solaris bugs
78955         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
78956         needed fixing.
78957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
78958         * modules/stdio (Makefile.am): Substitute it.
78959         * lib/stdio.in.h (renameat): Declare replacement.
78960         * lib/renameat.c (rpl_renameat): Implement fix.
78962         renameat: new module
78963         * modules/renameat: New file.
78964         * lib/renameat.c (renameat): Likewise.
78965         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
78966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78967         * modules/stdio (Makefile.am): Substitute them.
78968         * lib/stdio.in.h (renameat): Declare it.
78969         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78970         * doc/posix-functions/renameat.texi (renameat): Likewise.
78971         * modules/renameat-tests: New test.
78972         * tests/test-renameat.c: Likewise.
78974         rename: fix mingw bugs
78975         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
78976         directory overwrite bugs.
78978         rename: fix another cygwin 1.5 bug
78979         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
78980         checks.
78981         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
78982         unnecessary cygwin workarounds.  Also work around bug with moving
78983         full directory onto an empty one.
78984         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
78986         rename-dest-slash: merge into rename module
78987         * modules/rename-dest-slash (Status): Mark obsolete.
78988         (Depends-on): Add rename.
78989         (Files): Let rename do it all.
78990         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
78991         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
78992         * m4/rename-dest-slash.m4: ...so this file can be deleted.
78993         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
78994         * lib/rename.c (rpl_rename): Update comments.
78996         rename: fix cygwin 1.5.x bugs
78997         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
78998         * lib/rename.c (rpl_rename): Work around them.
78999         * modules/rename (Depends-on): Add same-inode.
79001         rename: fix Solaris 10 bug
79002         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79003         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
79004         was the only bug.
79006         rename: fix Solaris 9 bug
79007         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
79008         on non-directory.  Avoid calling exit.
79009         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
79010         strdup.
79011         * modules/rename-tests (Depends-on): Drop lstat.
79012         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79013         (gl_PREREQ_RENAME): Delete unused macro.
79015         rename-dest-slash: fix NetBSD bug
79016         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
79017         links.
79018         * modules/rename-dest-slash (Depends-on): Add same-inode.
79020         rename-tests: new test, exposes several platform bugs
79021         * modules/rename-tests: New file.
79022         * tests/test-rename.h: Likewise.
79023         * tests/test-rename.c: Likewise.
79024         * doc/posix-functions/rename.texi (rename): Improve documentation,
79025         including bugs that will eventually be fixed in gnulib.
79027 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
79029         * lib/uname.c: Include <stdlib.h>
79030         (uname): Assume version info is available.
79032 2009-10-02  Jim Meyering  <meyering@redhat.com>
79034         gnu-web-doc-update: correct --help output
79035         * build-aux/gnu-web-doc-update: Make --help output relevant.
79037         gnu-web-doc-update: add standard options
79038         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
79040         gnu-web-doc-update: New module.
79041         Use this script to automatically update the on-line web documentation
79042         for your GNU project at http://www.gnu.org/software/$pkg/manual/
79043         * modules/gnu-web-doc-update: New file, from coreutils.
79044         * build-aux/gnu-web-doc-update: New script.
79046 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
79048         link: LoadLibrary is not needed.
79049         * lib/link.c: Use GetModuleHandle.
79051 2009-10-01  Eric Blake  <ebb9@byu.net>
79053         getopt: bump serial number
79054         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
79055         change.
79057         tests: tighten link, rmdir, and remove tests
79058         * tests/test-link.h (includes): No need to use <config.h> here.
79059         Clean up if directory hard link was created, otherwise test for
79060         trailing '.'.
79061         * tests/test-linkat.c (main): Simplify.
79062         * tests/test-remove.c (main): Enhance test for trailing '.'.
79063         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79065 2009-10-01  Jim Meyering  <meyering@redhat.com>
79067         maint.mk: requiring "make major" was annoying, for a "minor" release.
79068         What is intended is "stable", to contrast with alpha and beta,
79069         so require "make stable", not "make major".
79070         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
79071         (get_tool_versions): Likewise.
79072         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
79074 2009-09-30  Ben Pfaff  <blp@gnu.org>
79076         Fix broken build of replacement for Windows tmpfile().
79077         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
79078         flags argument added along with the 'mkostemp' module.
79080 2009-09-28  Bruno Haible  <bruno@clisp.org>
79082         Avoid identifier clash with POSIX function 'remove' defined as a macro.
79083         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
79084         to 'remove_elt'.
79085         (gl_list_remove): Update.
79086         * lib/gl_list.c (gl_list_remove): Update.
79087         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
79088         to 'remove_elt'.
79089         (gl_oset_remove): Update.
79090         * lib/gl_list.c (gl_oset_remove): Update.
79091         Reported by Eric Blake.
79093 2009-09-28  Eric Blake  <ebb9@byu.net>
79095         doc: mention yet more cygwin 1.7 status
79096         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
79097         cygwin.
79098         * doc/glibc-functions/execvpe.texi (execvpe): New file.
79099         * doc/gnulib.texi (Glibc unistd.h): Mention it.
79101         argp: fix test failure
79102         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
79103         that are not upper-case.  Pass correct range to tolower.
79105 2009-09-27  Jim Meyering  <meyering@redhat.com>
79107         test-yesno: work around sparc-dash here-document infelicity
79108         Without this change, the literal \177 byte in a here document
79109         would make dash 0.5.5.1-3 access uninitialized memory.
79110         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
79111         Instead, use a marker, "@", and filter through tr to create the desired
79112         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
79114 2009-09-27  Bruno Haible  <bruno@clisp.org>
79116         Disable untested support for new flavours of ACLs on AIX.
79117         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
79118         progress.
79119         * lib/set-mode-acl.c (qset_acl): Likewise.
79121 2008-12-07  Bruno Haible  <bruno@clisp.org>
79123         Add support for new flavours of ACLs on AIX. (Untested.)
79124         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
79125         (file_has_acl): Add support for newer AIX.
79126         * lib/set-mode-acl.c (qset_acl): Likewise.
79127         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
79128         Rainer Tammer <tammer@tammer.net>.
79130 2009-09-26  Eric Blake  <ebb9@byu.net>
79132         argp: fix compilation of getopt
79133         * lib/getopt.in.h (includes): Use different guard than glibc.
79134         Reported by Sergey Poznyakoff.
79136         doc: mention more cygwin 1.7 status
79137         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
79138         bug.
79139         * doc/posix-functions/execl.texi (execl): Likewise.
79140         * doc/posix-functions/execle.texi (execle): Likewise.
79141         * doc/posix-functions/execlp.texi (execlp): Likewise.
79142         * doc/posix-functions/execv.texi (execv): Likewise.
79143         * doc/posix-functions/execve.texi (execve): Likewise.
79144         * doc/posix-functions/execvp.texi (execvp): Likewise.
79145         * doc/glibc-functions/canonicalize_file_name.texi
79146         (canonicalize_file_name): Cygwin 1.7 now provides this.
79147         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
79148         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
79149         on AT_SYMLINK_NOFOLLOW.
79151 2009-09-24  Eric Blake  <ebb9@byu.net>
79153         test-linkat: make test more robust
79154         * tests/test-linkat.c (main): Avoid collision with EEXIST.
79156         getopt: fix inclusion guards for cygwin
79157         * modules/getopt-posix (Depends-on): Add include-next.
79158         (Makefile.am): Substitute more items in replacement header.
79159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
79160         <getopt.h>.
79161         * lib/getopt.in.h (includes): Use split inclusion guard, and
79162         prefer <getopt.h> over include <unistd.h> when one is present.
79163         (option): Also override name of 'struct option'.
79165         same-inode: revert prior change; it is not yet ready
79166         * NEWS: Undo mention of this change.
79167         * lib/same-inode.h (same-inode.h): Undo tri-state change.
79168         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79169         * lib/cycle-check.c (cycle_check): Likewise.
79170         * lib/same.c (same_name): Likewise.
79171         * lib/at-func2.c (at_func2): Likewise.
79173 2009-09-23  Eric Blake  <ebb9@byu.net>
79175         linkat: new module
79176         * modules/linkat: New file.
79177         * lib/at-func2.c (at_func2): Likewise.
79178         * lib/linkat.c (linkat): Likewise.
79179         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
79180         * lib/openat-priv.h (at_func2): Add declaration.
79181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79182         * modules/unistd (Makefile.am): Substitute them.
79183         * lib/unistd.in.h (linkat): Declare it.
79184         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79185         * doc/posix-functions/linkat.texi (linkat): Likewise.
79186         * doc/posix-functions/link.texi (link): Tweak wording.
79187         * tests/test-link.c (main): Move guts...
79188         * tests/test-link.h (test_link): ...into new file.
79189         * modules/linkat-tests: New test.
79190         * tests/test-linkat.c: Likewise.
79191         * modules/link-tests (Files): Ship new file.
79192         (Depends-on): Add stdbool.
79194         dirname: add library-safe mdir_name
79195         * lib/dirname.h (mdir_name): New prototype.
79196         * lib/dirname.c (dir_name): Move guts...
79197         (mdir_name): ...to new function that avoids xalloc_die.
79199         fchdir: another mingw fix
79200         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
79201         * lib/fchdir.c (get_name): New helper method; skips canonicalize
79202         on mingw (where it has not yet been ported), and make it optional
79203         elsewhere.
79204         (_gl_register_fd): Use it.
79206         same-inode: make SAME_INODE tri-state, to port to mingw
79207         * NEWS: Mention this change.
79208         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
79209         st_ino always being 0.
79210         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79211         * lib/cycle-check.c (cycle_check): Likewise.
79212         * lib/same.c (same_name): Likewise.
79214         lstat: avoid mingw compilation error
79215         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
79216         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
79217         lstat ourselves.
79218         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
79219         was adequate.
79220         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
79221         the checks for lstat.
79222         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
79224         link: fix test failure on Solaris 9
79225         * lib/link.c (rpl_link): Don't assume link will catch bogus
79226         trailing slash on source.
79228         test-symlinkat: enhance test
79229         * tests/test-readlink.c (main): Move guts...
79230         * tests/test-readlink.h (test_readlink): ...into new file.
79231         * tests/test-symlink.c (main): Move guts...
79232         * tests/test-symlink.h (test_symlink): ...into new file.
79233         * tests/test-symlinkat.c (main): Use new files for further
79234         coverage.
79235         (do_symlink, do_readlink): New helper functions.
79236         * modules/symlink-tests (Files): Ship new file.
79237         (Depends-on): Add stdbool.
79238         * modules/readlink-tests (Files): Ship new file.
79239         (Depends-on): Add stdbool.
79240         * modules/symlinkat-tests (Files): Use new files.
79242 2009-09-23  Eric Blake  <ebb9@byu.net>
79244         readlink: document portability issue with symlink length
79245         * doc/posix-functions/lstat.texi (lstat): Mention that some file
79246         systems have bogus st_size on symlinks, and mention the
79247         areadlink-with-size module.
79248         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79249         * doc/posix-functions/readlink.texi (readlink): Mention the
79250         areadlink module, and ERANGE failure.
79251         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79252         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
79254         readlink: fix Solaris 9 bug with trailing slash
79255         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
79256         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
79257         * doc/posix-functions/readlink.texi (readlink): Document this.
79258         * modules/readlink-tests: New test.
79259         * tests/test-readlink.c: Likewise.
79261         readlink: fix cygwin 1.5.x bug with return type
79262         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
79263         * lib/unistd.in.h (readlink): Use ssize_t.
79264         * lib/readlink.c (readlink): Likewise.
79265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79266         * modules/unistd (Makefile.am): Substitute it.
79267         * lib/unistd.in.h (readlink): Declare replacement.
79268         * doc/posix-functions/readlink.texi (readlink): Document this.
79270         symlink: use throughout gnulib
79271         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
79272         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
79273         symlink is not used.
79274         * modules/symlinkat (Depends-on): Add symlink.
79275         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79276         * modules/canonicalize-tests (Depends-on): Likewise.
79277         * modules/lstat-tests (Depends-on): Likewise.
79278         * modules/openat-tests (Depends-on): Likewise.
79279         * modules/remove-tests (Depends-on): Likewise.
79280         * modules/rmdir-tests (Depends-on): Likewise.
79281         * modules/unlink-tests (Depends-on): Likewise.
79282         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
79283         * tests/test-canonicalize.c (symlink): Likewise.
79284         * tests/test-fstatat.c (symlink): Likewise.
79285         * tests/test-lstat.c (symlink): Likewise.
79286         * tests/test-remove.c (symlink): Likewise.
79287         * tests/test-rmdir.c (symlink): Likewise.
79288         * tests/test-unlink.c (symlink): Likewise.
79289         * tests/test-unlinkat.c (symlink): Likewise.
79291         symlink: new module, for Solaris 9 bug
79292         * modules/symlink: New file.
79293         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
79294         * lib/symlink.c: Likewise.
79295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
79296         * modules/unistd (Makefile.am): Substitute them.
79297         * lib/unistd.in.h (symlink): Declare replacement.
79298         * MODULES.html.sh (File system functions): Mention it.
79299         * doc/posix-functions/symlink.texi (symlink): Likewise.
79300         * modules/symlink-tests: New test.
79301         * tests/test-symlink.c: Likewise.
79303 2009-09-23  Bruno Haible  <bruno@clisp.org>
79305         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
79306         when needed.
79307         Test case: gnulib-tool --import --with-tests atexit inttypes.
79308         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
79310 2009-09-23  Bruno Haible  <bruno@clisp.org>
79312         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
79313         subcommand, not in a subshell.
79315 2009-09-22  Eric Blake  <ebb9@byu.net>
79317         unistd: sort replacement declarations
79318         * lib/unistd.in.h: Sort declarations.
79320         open, openat: minor optimization
79321         * lib/open.c (open): If open succeeded, len is non-zero.
79322         * lib/openat.c (rpl_openat): Likewise.
79324         link-follow: ensure correct result
79325         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
79326         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
79327         distinguish between possible failures.
79329 2009-09-21  Eric Blake  <ebb9@byu.net>
79331         fts: avoid compiler warning
79332         * lib/fts.c (dirent_inode_sort_may_be_useful)
79333         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
79335 2009-09-19  Bruno Haible  <bruno@clisp.org>
79337         * lib/progreloc.c (canonicalize_file_name): New declaration.
79339 2009-09-19  Eric Blake  <ebb9@byu.net>
79341         link: fix quoting
79342         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
79344         openat: fix openat bugs on Solaris 9
79345         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
79346         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
79347         * modules/openat (Depends-on): Add open.
79348         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
79349         * modules/fcntl-h (Makefile.am): Substitute it.
79350         * lib/fcntl.in.h (openat): Declare replacement.
79351         * doc/posix-functions/openat.texi (openat): Document this.
79353         openat: move fstatat and unlinkat into correct files
79354         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
79355         compiled.
79356         * lib/openat.c (fstatat, unlinkat): Move...
79357         * lib/fstatat.c (fstatat): ...into correct files.
79358         * lib/unlinkat.c (unlinkat): Likewise.
79360         openat: fix unlinkat bugs on Solaris 9
79361         * lib/unlinkat.c (unlinkat): New file.
79362         * modules/openat (Depends-on): Add unlink.
79363         (Files): Distribute it.
79364         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
79365         trailing slash behavior is broken.
79366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79367         * modules/unistd (Makefile.am): Substitute it.
79368         * lib/unistd.in.h (unlinkat): Declare replacement.
79369         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
79371         openat: fix fstatat bugs on Solaris 9
79372         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
79373         stat.
79374         * doc/posix-functions/fstatat.texi (fstatat): Document this.
79376         test-unlinkat: enhance test, to expose Solaris 9 bug
79377         * tests/test-unlink.c (main): Factor guts...
79378         * tests/test-unlink.h (test_rmdir_func): ...into new file.
79379         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
79380         * tests/test-rmdir.c (main): Adjust caller.
79381         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
79382         (unlinker): New helper function.
79383         (rmdirat): Enhance check.
79384         * modules/rmdir-tests (Depends-on): Add stdbool.
79385         * modules/unlink-tests (Depends-on): Likewise.
79386         (Files): Add test-unlink.h.
79387         * modules/openat-tests (Files): Likewise.
79388         (Depends-on): Add unlinkdir.
79390         test-fstatat: new test, to expose Solaris 9 bugs
79391         * tests/test-stat.c (main): Factor guts...
79392         * tests/test-stat.h (test_stat_func): ...into new file.
79393         * tests/test-lstat.c (main): Factor guts...
79394         * tests/test-lstat.h (test_lstat_func): ...into new file.
79395         * tests/test-fstatat.c: New file.
79396         * modules/stat-tests (Files): Add test-stat.h.
79397         * modules/lstat-tests (Files): Add test-lstat.h.
79398         (Depends-on): Add stdbool.
79399         * modules/openat-tests (Depends-on): Add pathmax.
79400         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
79401         (Makefile.am): Run new test.
79403         remove: new module, for mingw and Solaris 9 bugs
79404         * modules/remove: New file.
79405         * lib/remove.c: Likewise.
79406         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
79407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79408         * modules/stdio (Makefile.am): Use them.
79409         * lib/stdio.in.h (remove): Declare replacement.
79410         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79411         * doc/posix-functions/remove.texi (remove): Likewise.
79412         * modules/remove-tests: New test.
79413         * tests/test-remove.c: Likewise.
79415         unlink: new module, for Solaris 9 bug
79416         * modules/unlink: New file.
79417         * lib/unlink.c: Likewise.
79418         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
79419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79420         * modules/unistd (Makefile.am): Use them.
79421         * lib/unistd.in.h (stat): Declare replacement.
79422         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79423         * doc/posix-functions/unlink.texi (unlink): Likewise.
79424         * modules/unlink-tests: New test.
79425         * tests/test-unlink.c: Likewise.
79427         lstat: fix Solaris 9 bug
79428         * lib/lstat.c (lstat): Also check for trailing slash on
79429         non-symlink, non-directories.  Use stat module to simplify logic.
79430         * doc/posix-functions/lstat.texi (lstat): Document it.
79431         * modules/lstat-tests (Depends-on): Add errno, same-inode.
79432         (configure.ac): Check for symlink.
79433         * tests/test-lstat.c (main): Add more tests.
79435         stat: add as dependency to other modules
79436         * modules/chown (Depends-on): Add stat.
79437         * modules/euidaccess (Depends-on): Likewise.
79438         * modules/fchdir (Depends-on): Likewise.
79439         * modules/isdir (Depends-on): Likewise.
79440         * modules/link (Depends-on): Likewise.
79441         * modules/lstat (Depends-on): Likewise.
79442         * modules/mkdir-p (Depends-on): Likewise.
79443         * modules/modechange (Depends-on): Likewise.
79444         * modules/open (Depends-on): Likewise.
79445         * modules/readlink (Depends-on): Likewise.
79446         * modules/same (Depends-on): Likewise.
79448         stat: fix Solaris 9 bug
79449         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
79450         slash.
79451         * lib/stat.c (rpl_stat): Work around it.
79452         * doc/posix-functions/stat.texi (stat): Update documentation.
79454         stat: new module, for mingw bug
79455         * modules/stat: New file.
79456         * lib/stat.c: Likewise.
79457         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
79458         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79459         * modules/sys_stat (Makefile.am): Use them.
79460         * lib/sys_stat.in.h (stat): Declare replacement.
79461         * lib/openat.c (fstatat): Deal with lstat and stat being function
79462         macros.
79463         * modules/openat (Depends-on): Add inline.
79464         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79465         * doc/posix-functions/stat.texi (stat): Likewise.
79466         * modules/stat-tests: New test.
79467         * tests/test-stat.c: Likewise.
79469 2009-09-19  Jim Meyering  <meyering@redhat.com>
79471         syntax-check: detect unnecessary inclusion of canonicalize.h
79472         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
79474 2009-09-19  Eric Blake  <ebb9@byu.net>
79476         canonicalize-lgpl: adjust clients to use correct header
79477         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79478         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
79479         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
79480         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
79481         * lib/progreloc.c (includes): Likewise.
79483 2009-09-19  Jim Meyering  <meyering@redhat.com>
79485         test-posixtm.c: correct a comment
79486         * tests/test-posixtm.c: Correct first-line comment.
79487         Spotted by Eric Blake.
79489 2009-09-16  Jim Meyering  <meyering@redhat.com>
79491         posixtm-tests: make T const-correct; add a test case
79492         * tests/test-posixtm.c (T): Declare const.
79493         Add a test for -(2^31+1).
79494         Remove useless can-succeed-only-in-2002 test.
79496         posixtm-tests: adjust the sole failing test
79497         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
79498         expected output matches what mktime now produces.  Cross-checked via
79499         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
79501         posixtm: move #ifdef'd tests into a new module
79502         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
79503         * tests/test-posixtm.c: ... this new file.
79504         * modules/posixtm-tests: New module.
79506 2009-09-19  Eric Blake  <ebb9@byu.net>
79508         openat: simplify use of at-func.c
79509         * lib/at-func.c (includes): Include prerequisites here, to
79510         simplify requirements on client files.
79511         * lib/openat-priv.h: Add double-inclusion guard.
79512         * lib/faccessat.c (includes): Simplify.
79513         * lib/fchmodat.c (includes): Likewise.
79514         * lib/fchownat.c (includes): Likewise.
79515         * lib/mkdirat.c (includes): Likewise.
79516         * lib/mkfifoat.c (includes): Likewise.
79517         * lib/symlinkat.c (includes): Likewise.
79519         openat: allow return of fd 0
79520         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
79521         * modules/save-cwd (Depends-on): Replace fcntl-safer with
79522         unistd-safer.
79523         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
79524         <fcntl.h>; this module does not leak fds.
79525         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
79526         must be allowed to return 0, leaving openat_safer to add the
79527         safety.
79528         (openat_permissive): Avoid writing to just-opened fd 2 if
79529         restoring the current directory fails.
79530         * lib/openat-die.c (openat_restore_fail): Add comment.
79531         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
79532         (save_cwd): Guarantee safe fd, but without use of open_safer.
79533         * tests/test-openat.c: New test.
79534         * modules/openat-tests (Files, Makefile.am): Distribute and build
79535         new file.
79537         relocatable-prog-wrapper: fix build
79538         * modules/relocatable-prog-wrapper (Files): Update name of
79539         canonicalize m4 file, broken on 2009-09-17.
79540         Reported by emad hajjar <aleppos@hotmail.com>.
79542 2009-09-19  Bruno Haible  <bruno@clisp.org>
79544         * lib/safe-alloc.h: Use the standard header with GPL copyright.
79545         * lib/safe-alloc.c: Likewise.
79546         Reported by Ian Beckwith <ianb@erislabs.net>.
79548 2009-09-18  Bruno Haible  <bruno@clisp.org>
79550         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
79551         Reported by <erobles@sensacd.com.mx>.
79553 2009-09-17  Eric Blake  <ebb9@byu.net>
79555         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
79556         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
79557         slashes when checking if last component is missing.
79558         * tests/test-canonicalize.c (main): Test this.
79560         canonicalize, canonicalize-lgpl: honor // if distinct from /
79561         * modules/canonicalize (Files): Add double-slash-root.m4.
79562         * modules/canonicalize-lgpl (Files): Likewise.
79563         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79564         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
79565         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
79566         fallback definition.
79567         (canonicalize_filename_mode): Use it to protect //.
79568         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
79569         (__realpath): Likewise.
79570         * tests/test-canonicalize.c (main): Test this.
79571         * tests/test-canonicalize-lgpl.c (main): Likewise.
79572         * modules/canonicalize-tests (Depends-on): Add same-inode.
79573         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79575         canonicalize-lgpl: fix glibc bug with trailing slash
79576         * m4/canonicalize-lgpl.m4: Move contents...
79577         * m4/canonicalize.m4: ...here.
79578         (gl_CANONICALIZE_LGPL): Factor realpath check...
79579         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
79580         glibc 2.3.5 bug, fixed 2005-04-27.
79581         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
79582         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
79583         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
79584         * modules/canonicalize-lgpl (Files): Manage file rename.
79585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79586         * modules/stdlib (Makefile.am): Substitute witness.
79587         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
79588         is needed.
79589         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
79590         replacement is required.
79591         * lib/canonicalize.c (canonicalize_file_name): Likewise.
79592         * doc/glibc-functions/canonicalize_file_name.texi
79593         (canonicalize_file_name): Document this.
79594         * doc/posix-functions/realpath.texi (realpath): Likewise.
79596         canonicalize-lgpl: reject non-directory with trailing slash
79597         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
79598         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
79599         catches failures in glibc 2.3.5.
79600         * tests/test-canonicalize.c (main): Likewise.
79602         canonicalize-lgpl: use native realpath if it works
79603         * lib/canonicalize-lgpl.c (realpath): Guard with
79604         FUNC_REALPATH_WORKS.
79605         * lib/stdlib.in.h (realpath): Make declaration optional based on
79606         HAVE_REALPATH.
79607         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
79608         native realpath works.
79609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79610         * modules/stdlib (Makefile.am): Substitute witness.
79612         canonicalize, canonicalize-lgpl: use <stdlib.h>
79613         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
79614         (Include): Mention <stdlib.h>.
79615         (configure.ac): Mention functions we provide.
79616         * modules/canonicalize (configure.ac): Likewise.
79617         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
79618         realpath if canonicalize_file_name is missing.
79619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
79620         * modules/stdlib (Makefile.am): Substitute witnesses.
79621         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
79622         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
79623         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
79624         * NEWS: Document this.
79625         * doc/glibc-functions/canonicalize_file_name.texi
79626         (canonicalize_file_name): Likewise.
79627         * doc/posix-functions/realpath.texi (realpath): Likewise.
79628         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
79630         test-canonicalize: consolidate into single C program
79631         * tests/test-canonicalize.sh: Delete; move setup into...
79632         * tests/test-canonicalize.c (main): ...the program, making it
79633         easier to run in debugger.  Add some tests.
79634         * modules/canonicalize-tests (Files): Remove unused file.
79635         (Depends-on): Add progname.
79636         (configure.ac, Makefile.am): Simplify.
79638         test-canonicalize-lgpl: consolidate into single C program
79639         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
79640         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
79641         easier to run in debugger.  Add some tests.
79642         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
79643         (configure.ac, Makefile.am): Simplify.
79645         canonicalize: avoid resolvepath
79646         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
79647         unnecessary checks.
79648         * lib/canonicalize.c (includes): Simplify.
79649         (canonicalize_file_name): Drop resolvepath implementation.
79650         * modules/canonicalize (Depends-on): Drop filenamecat.
79652         canonicalize: don't lose errno
79653         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
79654         over calls to free.
79656         canonicalize: simplify errno handling
79657         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
79658         assignment.
79660         canonicalize, canonicalize-lgpl: update module dependencies
79661         * modules/canonicalize (Depends-on): Add extensions, lstat,
79662         pathmax, stdlib.
79663         (Files): Drop pathmax.h.
79664         (configure.ac): Adjust macro name.
79665         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
79666         lstat, stdlib, sys_stat.
79667         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
79668         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
79669         extensions.
79670         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
79671         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
79672         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
79673         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
79674         declaration, if available.
79675         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
79676         we can rely on the readlink module.
79677         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
79678         (includes): Use <unistd.h> unconditionally.
79680 2009-09-17  Eric Blake  <ebb9@byu.net>
79682         maint: make Include sections of modules consistent
79683         * modules/alloca: Use only header name; no need to list #include.
79684         * modules/alloca-opt: Likewise.
79685         * modules/arpa_inet: Likewise.
79686         * modules/canon-host: Likewise.
79687         * modules/configmake: Likewise.
79688         * modules/dirent: Likewise.
79689         * modules/eealloc: Likewise.
79690         * modules/environ: Likewise.
79691         * modules/fchdir: Likewise.
79692         * modules/fcntl: Likewise.
79693         * modules/fcntl-h: Likewise.
79694         * modules/gethrxtime: Likewise.
79695         * modules/gettime: Likewise.
79696         * modules/ignore-value: Likewise.
79697         * modules/inet_ntop: Likewise.
79698         * modules/inet_pton: Likewise.
79699         * modules/inttypes: Likewise.
79700         * modules/isnand-nolibm: Likewise.
79701         * modules/isnanf-nolibm: Likewise.
79702         * modules/mbchar: Likewise.
79703         * modules/mbfile: Likewise.
79704         * modules/mbiter: Likewise.
79705         * modules/mbuiter: Likewise.
79706         * modules/netdb: Likewise.
79707         * modules/netinet_in: Likewise.
79708         * modules/nproc: Likewise.
79709         * modules/pagealign_alloc: Likewise.
79710         * modules/poll: Likewise.
79711         * modules/printf-frexp: Likewise.
79712         * modules/pthread: Likewise.
79713         * modules/putenv: Likewise.
79714         * modules/random_r: Likewise.
79715         * modules/relocatable-prog: Likewise.
79716         * modules/search: Likewise.
79717         * modules/select: Likewise.
79718         * modules/selinux-h: Likewise.
79719         * modules/settime: Likewise.
79720         * modules/signal: Likewise.
79721         * modules/size_max: Likewise.
79722         * modules/socklen: Likewise.
79723         * modules/ssize_t: Likewise.
79724         * modules/stdarg: Likewise.
79725         * modules/stdbool: Likewise.
79726         * modules/stddef: Likewise.
79727         * modules/stdint: Likewise.
79728         * modules/stdio: Likewise.
79729         * modules/stdlib: Likewise.
79730         * modules/string: Likewise.
79731         * modules/strings: Likewise.
79732         * modules/sys_file: Likewise.
79733         * modules/sys_ioctl: Likewise.
79734         * modules/sys_select: Likewise.
79735         * modules/sys_socket: Likewise.
79736         * modules/sys_stat: Likewise.
79737         * modules/sys_time: Likewise.
79738         * modules/sys_times: Likewise.
79739         * modules/sys_utsname: Likewise.
79740         * modules/sys_wait: Likewise.
79741         * modules/sysexits: Likewise.
79742         * modules/time: Likewise.
79743         * modules/times: Likewise.
79744         * modules/tmpfile: Likewise.
79745         * modules/trim: Likewise.
79746         * modules/unistd: Likewise.
79747         * modules/wchar: Likewise.
79748         * modules/wctype: Likewise.
79750 2009-09-17  Bruno Haible  <bruno@clisp.org>
79752         Make getdate.y compile on QNX and NetBSD 5 / i386.
79753         * m4/getdate.m4 (gl_GETDATE): Conditionally define
79754         TIME_T_FITS_IN_LONG_INT.
79755         * lib/getdate.y (long_time_t): New type.
79756         (relative_time): Change type of 'seconds' field to long_time_t.
79757         (get_date): Update types of local variables. Check against overflow
79758         during conversion from long_time_t to time_t.
79759         Reported by Matt Kraai <kraai@ftbfs.org>
79760         and Hasso Tepper <hasso@netbsd.org>.
79762 2009-09-17  Bruno Haible  <bruno@clisp.org>
79764         * modules/COPYING: Update copyright years.
79765         * modules/README: Likeiwse.
79766         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
79767         Reported by Ian Beckwith <ianb@erislabs.net>.
79769 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79771         * users.txt: Update references for gnuit package.
79773 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79775         * m4/getdelim.m4: Fix typo in copyright line.
79777 2009-09-17  Bruno Haible  <bruno@clisp.org>
79779         * lib/atoll.c: Use the standard header with GPL copyright.
79780         * lib/argz.in.h: Likewise.
79781         * lib/glob.c: Likewise.
79782         * lib/glob-libc.h: Likewise.
79783         * lib/random_r.c: Likewise.
79784         * lib/siglist.h: Likewise.
79785         * lib/strsignal.c: Likewise.
79786         Reported by Ian Beckwith <ianb@erislabs.net>.
79788 2009-09-17  Eric Blake  <ebb9@byu.net>
79790         rmdir: ensure correct dependency order
79791         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
79793 2009-09-17  Bruno Haible  <bruno@clisp.org>
79795         Disable assertion that fails on NetBSD 5 / i386.
79796         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
79797         Reported by Sam Steingold <sds@gnu.org>
79798         and Hasso Tepper <hasso@netbsd.org>.
79800 2009-09-16  Eric Blake  <ebb9@byu.net>
79802         unlinkdir: port to mingw
79803         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
79804         on which no one can unlink a directory.
79806         stdlib: sort witness names
79807         * modules/stdlib (Makefile.am): Sort replacements.
79808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
79809         * lib/stdlib.in.h: Likewise.
79811         parse-duration-tests: avoid link failure
79812         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
79813         LIBINTL.
79814         Reported by Tom G. Christensen.
79816         openat-tests: ensure unlinkat behaves like rmdir
79817         * tests/test-rmdir.c (main): Factor guts...
79818         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
79819         * modules/rmdir-tests (Files): Ship new file.
79820         * modules/openat-tests: New test.
79821         * tests/test-unlinkat.c: Likewise.
79823         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
79824         * modules/rmdir-errno (Status, Notice): Now obsolete.
79826         rmdir: work around cygwin 1.5.x and mingw bugs
79827         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
79828         * lib/rmdir.c (rmdir): Work around it.
79829         * modules/rmdir (Status, Notice): No longer obsolete.
79830         (Files): Add dos.m4.
79831         (Depends-on): Add unistd.
79832         (configure.ac): Set witnesses.
79833         (License): Relax to LGPLv2+.
79834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
79835         * modules/unistd (Makefile.am): Substitute witnesses.
79836         * lib/unistd.in.h (rmdir): Declare replacement.
79837         * doc/posix-functions/rmdir.texi (rmdir): Document this.
79838         * modules/rmdir-tests: New tests.
79839         * tests/test-rmdir.c: Likewise.
79841 2009-09-15  Eric Blake  <ebb9@byu.net>
79843         fchdir: improve use of replacement functions
79844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
79845         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
79846         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
79847         REPLACE_CLOSEDIR.
79848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
79849         * modules/sys_stat (Makefile.am): Substitute correct witness.
79850         * modules/dirent (Makefile.am): Likewise.
79851         * modules/unistd (Makefile.am): Likewise.
79852         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
79853         * lib/unistd.in.h (dup): Likewise.
79854         * lib/sys_stat.in.h (fstat): Likewise.
79856         maint: ignore gnulib-tool temp files
79857         * .gitignore: Ignore files created during gnulib-tool --test.
79859 2009-09-13  Jim Meyering  <meyering@redhat.com>
79861         posixtm: don't reject a time that specify "60" as the number of seconds
79862         * lib/posixtm.c (posixtime): The code to reject invalid dates
79863         would also reject a time specified with the .60 suffix.
79864         But POSIX allows that, in order to accommodate leap seconds.
79865         So don't reject it.
79866         (main): Adjust tests accordingly.
79867         * modules/posixtm (Depends-on): Add stpcpy.
79869 2009-09-11  Jim Meyering  <meyering@redhat.com>
79871         announce-gen: include [$release_type] in emitted Subject:
79872         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
79873         e.g., [stable] in the emitted Subject: line.
79875 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79877         Remove obsolete macros from several modules.
79878         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
79879         obsolete Autoconf macros with their modern counterparts.
79880         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
79881         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
79882         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
79883         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79884         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
79885         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79887         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
79888         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
79889         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
79890         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
79891         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
79892         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
79893         * m4/sockets.m4 (gl_SOCKETS): Likewise.
79894         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
79895         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
79896         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
79897         * m4/time_r.m4 (gl_TIME_R): Likewise.
79898         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
79899         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
79900         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
79902         Fix copyright header in build-aux scripts.
79903         * build-aux/git-version-gen: Fix copyright header to match GPLv3
79904         recommendation.
79905         * build-aux/ncftpput-ftp: Likewise.
79906         * build-aux/update-copyright: Likewise.
79908 2009-09-09  Eric Blake  <ebb9@byu.net>
79910         test-link: allow Linux choice of errno
79911         * tests/test-link.c (main): Relax test for alternate error.
79913         strndup: fix improper m4 caching
79914         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
79915         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
79916         (gl_PREREQ_STRNDUP): Delete.
79917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
79918         * modules/string (Makefile.am): Substitute it.
79919         * lib/string.in.h (strndup): Modernize prototype.
79921         getcwd: port to mingw
79922         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
79923         different from the POSIX assumptions made throughout the getcwd
79924         module; fortunately, the mingw getcwd does not need replacement.
79925         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
79926         * modules/getcwd-tests: New test.
79927         * tests/test-getcwd.c: Likewise.
79929         link: fix platform bugs
79930         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
79931         * lib/link.c (link): Work around them.  Fix related mingw bug.
79932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
79933         * modules/unistd (Makefile.am): Substitute it.
79934         * lib/unistd.in.h (link): Declare replacement.
79935         * doc/posix-functions/link.texi (link): Document this.
79936         * modules/link (Depends-on): Add strdup-posix, sys_stat.
79938         test-link: consolidate into single C program, test more cases
79939         * tests/test-link.sh: Delete.
79940         * tests/test-link.c: Test more error conditions.  Exposes bugs on
79941         at least Cygwin and Solaris.
79942         * modules/link-tests (Files): Remove unused file.
79943         (Depends-on): Add errno, sys_stat.
79944         (Makefile.am): Simplify.
79946 2009-09-08  Bruno Haible  <bruno@clisp.org>
79948         Work around towlower, towupper bug on mingw.
79949         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
79950         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
79951         * doc/posix-functions/towlower.texi: Mention the mingw bug.
79952         * doc/posix-functions/towupper.texi: Likewise.
79953         Reported by Eric Blake.
79955 2009-09-08  Jim Meyering  <meyering@redhat.com>
79957         build: don't try to run autoheader if we don't use it
79958         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
79959         is not used in configure.ac.
79961 2009-09-08  Eric Blake  <ebb9@byu.net>
79963         euidaccess: fix compilation error
79964         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
79966         rawmemchr: relax license
79967         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
79968         okay.
79969         Reported by Jim Meyering.
79971         mkfifoat: new module
79972         * modules/mkfifoat: New file.
79973         * lib/mkfifoat.c: Likewise.
79974         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
79975         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79976         * modules/sys_stat (Makefile.am): Use them.
79977         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
79978         * MODULES.html.sh (File system functions): Mention module.
79979         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79980         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79981         * modules/mkfifoat-tests: New test.
79982         * tests/test-mkfifoat.c: Likewise.
79984         strchrnul: relax license
79985         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
79986         okay.
79987         Reported by Jim Meyering.
79989 2009-09-08  Eric Blake  <ebb9@byu.net>
79991         fstatat: fix compilation on Solaris
79992         * lib/fstatat.c (includes): Add fcntl.h.
79993         Reported by Pádraig Brady.
79995 2009-09-07  Eric Blake  <ebb9@byu.net>
79997         rename: modernize replacement
79998         * modules/rename (Depends-on): Add stdio.
79999         (configure.ac): Declare witness.
80000         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
80001         stdio take care of replacement.
80002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
80003         * modules/stdio (Makefile.am): Substitute them.
80004         * lib/stdio.in.h (rename): Declare replacement.
80005         * lib/rename.c (includes): Allow cross-compilation to non-windows
80006         machines.
80007         * doc/posix-functions/rename.texi (rename): Improve
80008         documentation.
80010         stdio: sort witness names
80011         * modules/stdio (Makefile.am): Sort replacements.
80012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
80013         * lib/stdio.in.h: Likewise.
80015         getcwd: minor cleanups
80016         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
80017         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
80019         openat: provide more convenience names
80020         * modules/faccessat (configure.ac): Add C witness.
80021         * lib/unistd.in.h (readlinkat): Fix typo.
80022         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
80023         convenience wrappers.
80024         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
80025         wrappers in syntax checks.
80027 2009-09-06  Eric Blake  <ebb9@byu.net>
80029         doc: fix comments in recent patches
80030         * lib/faccessat.c: Mention correct function.
80031         * lib/fchmodat.c: Likewise.
80032         * lib/fchownat.c: Likewise.
80033         * lib/symlinkat.c: Likewise.
80034         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
80035         constants.
80037         faccessat, symlinkat: continue cleanup of previous patch
80038         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
80039         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80040         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
80041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
80042         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
80043         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
80044         set.
80046 2009-09-06  Bruno Haible  <bruno@clisp.org>
80048         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
80049         (fstatat): Declare if GNULIB_FSTATAT is set.
80050         (mkdirat): Declare if GNULIB_MKDIRAT is set.
80051         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
80052         (unlinkat): Declare if GNULIB_UNLINKAT is set.
80053         * modules/fcntl-h (Files): Remove m4/openat.m4.
80054         * modules/sys_stat (Files): Remove m4/openat.m4.
80055         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
80056         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
80057         * modules/unistd (Files): Remove m4/openat.m4.
80058         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
80059         GNULIB_OPENAT.
80060         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
80061         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
80062         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
80063         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
80064         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
80065         gl_OPENAT_DEFAULTS.
80066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
80067         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
80068         Don't require gl_OPENAT_DEFAULTS.
80069         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
80070         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
80071         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
80072         (gl_OPENAT_DEFAULTS): Remove macro.
80074 2009-09-06  Bruno Haible  <bruno@clisp.org>
80076         * modules/openat (configure.ac): Remove unneeded witness.
80078 2009-09-06  Bruno Haible  <bruno@clisp.org>
80080         Set errno to ENOSYS when a function is entirely unsupported.
80081         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
80082         EOPNOTSUPP.
80083         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80084         * modules/chown (Depends-on): Remove errno.
80086 2009-09-06  Bruno Haible  <bruno@clisp.org>
80088         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
80090 2009-09-06  Bruno Haible  <bruno@clisp.org>
80092         * lib/sys_stat.in.h: Fix preprocessor command indentation.
80094 2009-09-06  Ben Pfaff  <blp@gnu.org>
80095             Bruno Haible  <bruno@clisp.org>
80097         Work around a glibc bug in strtok_r.
80098         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
80099         Undefine if UNDEFINE_STRTOK_R is set.
80100         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
80101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
80102         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
80103         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
80104         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
80105         UNDEFINE_STRTOK_R.
80106         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
80108 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
80110         exclude: minor fix
80111         * lib/exclude.c: Include wctype.h
80113 2009-09-06  Akim Demaille  <demaille@gostai.com>
80115         bootstrap: improve error message
80116         * build-aux/bootstrap (find_tool): Upon failure, report the list
80117         of candidates.
80118         Honor the initial value of the envvar.
80120 2009-09-05  Eric Blake  <ebb9@byu.net>
80122         symlinkat: new module
80123         * modules/symlinkat: New file.
80124         * lib/symlinkat.c: Likewise.
80125         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
80126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80127         * modules/unistd (Makefile.am): Use them.
80128         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
80129         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
80130         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
80131         * MODULES.html.sh (File system functions): Mention module.
80132         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
80133         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80134         * modules/symlinkat-tests: New test.
80135         * tests/test-symlinkat.c: Likewise.
80137         test-openat-safer: add more checks
80138         * tests/test-openat-safer.c (main): Check more code paths.
80140 2009-09-05  Jim Meyering  <meyering@redhat.com>
80142         syntax-check: detect unnecessary inclusion of openat.h
80143         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
80145 2009-09-05  Bruno Haible  <bruno@clisp.org>
80147         Support towlower, towupper.
80148         * doc/posix-functions/towlower.texi: Mention module wctype.
80149         * doc/posix-functions/towupper.texi: Likewise.
80150         * lib/wctype.in.h (towlower, towupper): New functions.
80151         * tests/test-wctype.c: Include stdio.h, stdlib.h.
80152         (ASSERT): New macro.
80153         (e): New variable.
80154         (main): Test also towlower, towupper. Test WEOF argument.
80155         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
80157 2009-09-05  Bruno Haible  <bruno@clisp.org>
80159         Fix conversion behaviour when the input is invalid.
80160         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
80161         mark occurring in first pass of indirect conversion.
80162         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
80163         input.
80164         Found by clang's static analyzer.
80166 2009-09-05  Bruno Haible  <bruno@clisp.org>
80168         * tests/test-striconveh.c (main): Test indirect conversion on platforms
80169         where direct conversion is possible.
80171 2009-09-04  Eric Blake  <ebb9@byu.net>
80173         openat: fail with ENOENT on empty name
80174         * lib/openat-proc.c (openat_proc_name): Special-case the empty
80175         buffer.
80177         link-follow: fix logic bug in prior patch
80178         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
80179         reversed sense of yes and no in prior patch.  Avoid confusing
80180         compilation failure with desired semantics.
80182         link-follow: accommodate mingw and cross-compilation
80183         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
80184         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
80185         cross-compilation results to -1, to make linkat easier to
80186         implement when cross-compiling.  Trivially support mingw.
80187         * modules/link-follow (configure.ac): Call new name.
80188         * NEWS: Mention this.
80190 2009-09-03  Eric Blake  <ebb9@byu.net>
80192         faccessat: compile replacement
80193         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
80194         needed.
80196         fts: fix compilation error
80197         * lib/fts.c (includes): Re-add "openat.h", for
80198         openat_needs_fchdir.
80200         faccessat: new module
80201         * modules/faccessat: New file.
80202         * lib/faccessat.c: Likewise.
80203         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80205         * modules/unistd (Makefile.am): Use it.
80206         * lib/unistd.in.h (faccessat): Declare it.
80207         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
80208         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
80209         * MODULES.html.sh (File system functions): Mention it.
80210         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
80211         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
80213         euidaccess: prefer POSIX over non-standard implementation
80214         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
80215         * lib/euidaccess.c (euidaccess): Use it if available.
80217         openat: make template easier to use
80218         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
80219         AT_FUNC_F2 to be undefined.
80220         (VALIDATE_FLAG): New macro; use it to reject bad flags.
80221         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
80222         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
80223         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
80224         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
80225         Likewise.
80226         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
80227         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
80228         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
80229         Likewise.
80231         openat: declare in POSIX headers
80232         * NEWS: Mention this.
80233         * modules/openat (configure.ac): Declare witnesses.
80234         (Depends-on): Add fcntl-h, sys_stat, unistd.
80235         (Include): Mention correct headers.
80236         * modules/fcntl-h (Depends-on): Add link-warning.
80237         (Files): Add openat.m4.
80238         (Makefile.am): Substitute witnesses.
80239         * modules/sys_stat (Files, Makefile.am): Likewise.
80240         * modules/unistd (Files, Makefile.am): Likewise.
80241         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
80242         (gl_OPENAT_DEFAULTS): New macro.
80243         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
80244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
80245         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
80246         (SYS_STAT_H): Remove unused variable.
80247         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
80248         * lib/fcntl--.h (includes): Remove unneeded header.
80249         * lib/openat-safer.c (includes): Likewise.
80250         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
80251         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
80252         appropriate headers.
80253         (__OPENAT_PREFIX): Delete.
80254         * lib/fcntl.in.h (openat): Provide declaration.
80255         (AT_FDCWD): Fix Solaris bug.
80256         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
80257         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
80258         * lib/fchmodat.c (includes):  Adjust to find declaration.
80259         * lib/fchownat.c (includes): Likewise.
80260         * lib/mkdirat.c (includes): Likewise.
80261         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
80262         still visible.
80264 2009-09-02  Eric Blake  <ebb9@byu.net>
80266         errno: use consistently
80267         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
80268         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
80269         * lib/canonicalize.c (ELOOP): Likewise.
80270         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
80271         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
80272         * lib/lchown.c (EOPNOTSUPP): Likewise.
80273         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
80274         * lib/savewd.c (ESTALE): Likewise.
80275         * lib/settime.c (ENOSYS): Likewise.
80276         * lib/utimens.c (ENOSYS): Likewise.
80277         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
80278         * lib/chdir-safer.c (ELOOP): Likewise.
80279         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
80280         * modules/c-stack (Depends-on): Add errno.
80281         * modules/canonicalize (Depends-on): Likewise.
80282         * modules/chdir-safer (Depends-on): Likewise.
80283         * modules/fdopendir (Depends-on): Likewise.
80284         * modules/inet_ntop (Depends-on): Likewise.
80285         * modules/inet_pton (Depends-on): Likewise.
80286         * modules/lchown (Depends-on): Likewise.
80287         * modules/openat (Depends-on): Likewise.
80288         * modules/savewd (Depends-on): Likewise.
80289         * modules/settime (Depends-on): Likewise.
80290         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
80292         fts: avoid leaking fds
80293         * modules/fts (Depends-on): Add cloexec.
80294         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
80295         flag.
80297         fts: make directory fds more robust
80298         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
80299         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
80301         backupfile, chdir-long, fts, savedir: make safer
80302         * lib/backupfile.c (includes): Use "dirent--.h", since
80303         numbered_backup can write to stderr during readdir.
80304         * lib/savedir.c (includes): Likewise.
80305         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
80306         emulation can write to stderr on failure.
80307         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
80308         * lib/getcwd.c: Document why opendir_safer is unused.
80309         * lib/glob.c: Likewise.
80310         * lib/scandir.c: Likewise.
80311         * lib/openat-proc.c: Likewise, for open_safer.
80312         * modules/backupfile (Depends-on): Add dirent-safer.
80313         * modules/savedir (Depends-on): Likewise.
80314         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
80315         * modules/chdir-long (Depends-on): Add openat-safer.
80317         openat-safer: new module
80318         * modules/openat-safer: New file.
80319         * lib/openat-safer.c: Likewise.
80320         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
80321         * lib/fcntl-safer.h (openat_safer): Declare.
80322         * lib/fcntl--.h (openat): Override.
80323         * MODULES.html.sh (File descriptor based I/O): Mention it.
80324         * lib/openat.h: Add double-inclusion guards.
80325         * lib/openat.c (includes): Only include "fcntl-safer.h", not
80326         "fcntl--.h", so we can implement openat.
80327         * modules/openat-safer-tests: New test.
80328         * tests/test-openat-safer.c: New file.
80330         dirent-safer: new module
80331         * modules/dirent-safer: New file.
80332         * lib/dirent--.h: Likewise.
80333         * lib/dirent-safer.h: Likewise.
80334         * lib/opendir-safer.c: Likewise.
80335         * m4/dirent-safer.m4: Likewise.
80336         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
80337         * modules/dirent-safer-tests: New test.
80338         * tests/test-dirent-safer.c: New file.
80339         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
80341         fdopendir: optimize on mingw
80342         * lib/unistd.in.h (_gl_directory_name): New prototype.
80343         * lib/fchdir.c (_gl_directory_name): Implement it.
80344         (fchdir): Use it to simplify implementation.
80345         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
80346         fchdir, when available, to avoid calling [f]chdir().
80348         fdopendir: split into its own module
80349         * lib/openat.c (fdopendir): Move...
80350         * lib/fdopendir.c: ...into new file.
80351         * modules/fdopendir: New module.
80352         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
80353         * modules/openat (Depends-on): Add fdopendir.
80354         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
80355         fdopendir here.
80356         * modules/savedir (Depends-on): Only need fdopendir, not full
80357         openat.
80358         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
80359         * lib/openat.h (fdopendir): Drop prototype.
80360         * lib/dirent.in.h (fdopendir): Provide prototype.
80361         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
80362         * modules/dirent (Makefile.am): Substitute them.
80363         * MODULES.html.sh (File system functions): Mention it.
80364         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
80365         * modules/fdopendir-tests: New file.
80366         * tests/test-fdopendir.c: Likewise.
80368         fchdir: use more consistent macro convention
80369         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
80370         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
80371         REPLACE_FCHDIR, rather than relying on config.h macros.
80372         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
80373         inside a single make-time REPLACE_FCHDIR block, rather than using
80374         the config.h FCHDIR_REPLACEMENT.
80375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
80376         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
80377         Manage fstat replacement.
80378         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
80379         REPLACE_FCHDIR.
80380         * modules/sys_stat (Files): Add m4/unistd_h.m4.
80381         (Makefile.am): Substitute REPLACE_FCHDIR.
80382         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
80383         FCHDIR_REPLACEMENT.
80384         * lib/dup-safer.c (dup_safer): Likewise.
80385         * lib/dup2.c (rpl_dup2): Likewise.
80386         * lib/dup3.c (rpl_dup3): Likewise.
80387         * lib/open.c (rpl_open): Likewise.
80389         fchdir: simplify error handling, and support dup3
80390         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
80391         stdbool, malloc-posix, realloc-posix.
80392         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
80393         (ensure_dirs_slot): Return false on allocation failure.
80394         (rpl_dup2): Delete.
80395         (_gl_register_dup): New function.
80396         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
80397         (_gl_register_fd): Close fd on allocation failure.
80398         * lib/fcntl.in.h (_gl_register_fd): Update signature.
80399         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
80400         prototype.
80401         (rpl_dup2_fchdir): Delete prototype.
80402         * lib/open.c (open): Update caller.
80403         * lib/dup2.c (dup2): Track fchdir metadata.
80404         * lib/dup3.c (dup3): Likewise.
80405         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
80406         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
80408 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80410         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
80411         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
80412         don't pass arguments to AC_OUTPUT.
80414 2009-09-02  Bruno Haible  <bruno@clisp.org>
80416         * modules/mkdtemp (License): Relicense under LGPLv2+.
80417         Reported by Paolo Bonzini.
80419 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80421         Replace uses of obsolete autoconf macros in Jim's modules.
80422         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
80423         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
80424         can evoke a warning from autoconf when run with -Wobsolete
80425         enabled.  They were declared obsolete for good reasons (see
80426         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
80427         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
80428         should not continue using the deprecated macros.
80429         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
80430         obsolete Autoconf macros with modern counterparts.
80431         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80432         * m4/dos.m4 (gl_AC_DOS): Likewise.
80433         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
80434         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
80435         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
80436         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
80437         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
80438         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
80439         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
80440         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
80441         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
80442         Likewise.
80443         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
80444         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80445         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
80446         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
80447         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
80448         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80450 2009-09-01  Eric Blake  <ebb9@byu.net>
80452         fchdir: fix off-by-one bug in previous patch
80453         * lib/fchdir.c (rpl_fstat): Use correct bounds.
80454         (_gl_unregister_fd): Delete useless if.
80456 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
80458         maint.mk: sort the list of syntax-check rules
80459         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
80460         easier to get a sense of progress when the rules are run sequentially
80461         and take a long time.
80463 2009-09-01  Simon Josefsson  <simon@josefsson.org>
80465         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
80466         * modules/netinet_in: Likewise.
80467         * modules/sys_file: Likewise.
80468         * modules/sys_ioctl: Likewise.
80469         * modules/sys_select: Likewise.
80470         * modules/sys_socket: Likewise.
80471         * modules/sys_stat: Likewise.
80472         * modules/sys_time: Likewise.
80473         * modules/sys_times: Likewise.
80474         * modules/sys_utsname: Likewise.
80475         * modules/sys_wait: Likewise.
80477 2009-09-01  Jim Meyering  <meyering@redhat.com>
80479         fts: help ensure that return values are not ignored
80480         * lib/fts_.h (__GNUC_PREREQ): Define.
80481         (__attribute_warn_unused_result__): Define.
80482         (fts_children, fts_close, fts_open, fts_read): Declare with
80483         __attribute_warn_unused_result__.
80485         fts: fts_close now fails also when closing a dir file descriptor fails
80486         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
80487         and propagate to caller, along with errno.
80489         announce-gen: correct formatting in --help output
80490         * build-aux/announce-gen (usage): Move the one-line description in
80491         --help output "up", to where it belongs, just after Usage:.
80493 2009-08-31  Eric Blake  <ebb9@byu.net>
80495         fchdir: port to mingw
80496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
80497         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
80498         opened, then use a substitute.
80499         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
80500         replacement.
80501         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
80502         (_gl_register_fd): No need to check stat if open already filters
80503         all directories.
80504         (fchdir): Fix error condition to match POSIX.
80505         * modules/fchdir (Depends-on): Add sys_stat.
80506         * doc/posix-functions/open.texi (open): Document the limitation.
80507         * modules/fchdir-tests: New file.
80508         * tests/test-fchdir.c: Likewise.
80510         canonicalize: allow cross-testing from cygwin to mingw
80511         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
80512         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
80513         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
80514         Likewise.
80515         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
80516         target does not support symlinks.
80517         * tests/test-canonicalize-lgpl.sh: Likewise.
80519         chown: avoid compilation warning on mingw
80520         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
80521         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
80522         mingw.
80523         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80524         * modules/chown (Depends-on): Add errno.
80526 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
80528         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
80529         command.
80531 2009-08-31  Jim Meyering  <meyering@redhat.com>
80533         canonicalize: remove useless initialization
80534         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
80535         initialization of local, "end".
80537 2009-08-30  Bruno Haible  <bruno@clisp.org>
80539         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
80540         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
80541         ENOSYS.
80543 2009-08-30  Bruno Haible  <bruno@clisp.org>
80545         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
80546         /usr/xpg4/bin/tr when it exists.
80547         * tests/test-pipe-filter-gi1.sh: Likewise.
80549 2009-08-30  Bruno Haible  <bruno@clisp.org>
80551         Work around deficient /usr/bin/id program on Solaris.
80552         * tests/test-file-has-acl.sh (ID): New variable.
80553         * tests/test-set-mode-acl.sh (ID): Likewise.
80554         * tests/test-copy-acl.sh (ID): Likewise.
80555         * tests/test-copy-file.sh (ID): Likewise.
80557 2009-08-30  Bruno Haible  <bruno@clisp.org>
80559         New module 'xstriconveh'.
80560         * lib/xstriconveh.h: New file.
80561         * lib/xstriconveh.c: New file.
80562         * modules/xstriconveh: New file.
80564 2009-08-30  Bruno Haible  <bruno@clisp.org>
80566         Make it easier to use mem_cd_iconveh.
80567         * lib/striconveh.h (iconveh_t): New type.
80568         (iconveh_open, iconveh_close): New declarations.
80569         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80570         with a single 'const iconveh_t *' argument.
80571         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
80572         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80573         with a single 'const iconveh_t *' argument.
80574         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
80575         * tests/test-striconveh.c (main): Update.
80576         * NEWS: Mention the change.
80578 2009-08-30  Bruno Haible  <bruno@clisp.org>
80580         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
80581         problem.
80583 2009-08-30  Bruno Haible  <bruno@clisp.org>
80585         Work around iconv_open problem on Solaris.
80586         * lib/iconv_open-solaris.gperf: New file.
80587         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
80588         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
80589         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
80590         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
80591         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
80592         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
80594 2009-08-29  Jim Meyering  <meyering@redhat.com>
80596         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
80597         * top/maint.mk (cvs-check): Remove target; it was just an alias
80598         to the better-named vc-diff-check.
80599         (maintainer-distcheck): Remove rule.  It was used only from
80600         the (alpha/beta/major) target, and all of its commands but one
80601         were coreutils-specific.
80602         (vc-dist): Remove rule.
80603         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
80604         Run vc-diff-check, not vc-dist.
80605         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
80607 2009-08-27  Bruno Haible  <bruno@clisp.org>
80609         * tests/test-bitrotate.c (main): Remove test that uses a shift count
80610         of 0.
80612 2009-08-27  Bruno Haible  <bruno@clisp.org>
80614         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
80615         compilers.
80616         * doc/func.texi: Document the SunPRO C bug.
80618 2009-08-27  Bruno Haible  <bruno@clisp.org>
80620         Fix link error on Solaris.
80621         * tests/test-parse-duration.c (xstrdup): Remove function.
80623 2009-08-26  Pádraig Brady  <P@draigbrady.com>
80625         ignore-value: handle pointer types, too
80626         * lib/ignore-value.h (__attribute__): Remove definition.
80627         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
80628         of a more concise and more-often effective "(void) i" statement.
80629         (ignore_ptr): New function to suppress warnings from functions that
80630         return pointers, and to make it explicit that one function doesn't
80631         handle all cases.
80633 2009-08-25  Bruno Haible  <bruno@clisp.org>
80635         dup2: work around a Linux bug.
80636         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
80637         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
80638         * doc/posix-functions/dup2.texi: Mention the Linux bug.
80639         Reported by Simon Josefsson.
80641 2009-08-25  Jim Meyering  <meyering@redhat.com>
80643         libguestfs uses gnulib
80644         * users.txt: Add libguestfs.
80646 2009-08-24  Eric Blake  <ebb9@byu.net>
80648         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
80649         * lib/pipe2.c (includes): Add binary-io.h.
80650         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
80652 2009-08-24  Bruno Haible  <bruno@clisp.org>
80654         Tolerate declared but missing accept4 syscall.
80655         * lib/accept4.c (accept4): Invoke original accept4 function first, if
80656         available.
80657         * lib/sys_socket.in.h (accept4): If the function is already present,
80658         override it.
80659         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
80660         * modules/accept4 (Makefile.am): Compile accept4.c always.
80661         Reported by Paolo Bonzini and Eric Blake.
80663 2009-08-23  Bruno Haible  <bruno@clisp.org>
80665         New module 'accept4'.
80666         * lib/sys_socket.in.h (accept4): New declaration.
80667         * lib/accept4.c: New file.
80668         * m4/accept4.m4: New file.
80669         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
80670         GNULIB_ACCEPT4, HAVE_ACCEPT4.
80671         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
80672         HAVE_ACCEPT4.
80673         * modules/accept4: New file.
80674         * doc/glibc-functions/accept4.texi: Mention the new module.
80676 2009-08-24  Jim Meyering  <meyering@redhat.com>
80678         progname: also set global program_invocation_name, when possible
80679         Before this change, a libtool-enabled program that calls glibc's
80680         error function would report the program name as
80681         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
80682         * modules/progname (configure.ac): Check for a declaration of
80683         program_invocation_name.
80684         * lib/progname.c:  Include <errno.h>.
80685         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
80686         Set program_invocation_name.
80688 2009-08-23  Bruno Haible  <bruno@clisp.org>
80690         * lib/dup3.c: Include <string.h>.
80692 2009-08-23  Bruno Haible  <bruno@clisp.org>
80694         * lib/dup3.c (dup3): Test only once whether the system actually exists.
80695         * lib/pipe2.c (pipe2): Likewise.
80696         Suggested by Eric Blake.
80698 2009-08-23  Bruno Haible  <bruno@clisp.org>
80700         Tolerate declared but missing dup3 syscall.
80701         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
80702         * lib/unistd.in.h (dup3): If the function is already present,
80703         override it.
80704         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
80705         * modules/dup3 (Makefile.am): Compile dup3.c always.
80706         Reported by Paolo Bonzini.
80708 2009-08-23  Bruno Haible  <bruno@clisp.org>
80710         Tolerate declared but missing pipe2 syscall.
80711         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
80712         available.
80713         * lib/unistd.in.h (pipe2): If the function is already present,
80714         override it.
80715         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
80716         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
80717         Reported by Paolo Bonzini.
80719 2009-08-23  Bruno Haible  <bruno@clisp.org>
80721         * lib/pipe2.c (pipe2): Move #ifs inside function.
80723 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80725         quotearg: document limitations of quote_these_too
80726         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
80727         those limitations are created.
80728         * lib/quotearg.h (set_char_quoting): Document that digits and
80729         letters that are special after backslash are not permitted.
80730         (quotearg_char): Cross-reference set_char_quoting documentation.
80732 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
80734         quotearg: implement custom_quoting_style
80735         * lib/quotearg.c: (struct quoting_options): Add left_quote and
80736         right_quote fields.
80737         (set_custom_quoting): New public function.
80738         (quotearg_buffer_restyled): Add left_quote and right_quote
80739         arguments, handle them very much like locale quoting, and update
80740         all uses.
80741         (quotearg_n_custom): New public function.
80742         (quotearg_n_custom_mem): New public function.
80743         (quotearg_custom): New public function.
80744         (quotearg_custom_mem): New public function.
80745         * lib/quotearg.h: Prototype and document new public functions.
80746         (enum quoting_style): For escape_quoting_style and
80747         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
80748         ignored even though they're otherwise like c_quoting_style.
80749         Add custom_quoting_style member and document with comparison to
80750         clocale_quoting_style.
80751         * tests/test-quotearg.c (custom_quotes): New array.
80752         (custom_results): New array.
80753         (main): Extend to test custom quoting.
80755 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80757         quotearg: fix right quote escaping when it's in quote_these_too
80758         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
80759         quote, be sure to prepend only one backslash.
80760         * tests/test-quotearg.c (use_quote_double_quotes): New function.
80761         (main): Test it.
80763 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80765         quotearg-tests: test escaping of embedded locale quotes
80766         * tests/test-quotearg.c (struct result_strings): Add member for
80767         new input.
80768         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
80769         (inputs): Add new input.
80770         (results_g): Add expected results.
80771         (flag_results): Likewise.
80772         (locale_results): Likewise.
80773         (compare_strings): Check those.
80775 2009-08-23  Bruno Haible  <bruno@clisp.org>
80777         Tests for module 'dup3'.
80778         * modules/dup3-tests: New file.
80779         * tests/test-dup3.c: New file.
80781         New module 'dup3'.
80782         * lib/unistd.in.h (dup3): New declaration.
80783         * lib/dup3.c: New file.
80784         * m4/dup3.m4: New file.
80785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
80786         HAVE_DUP3.
80787         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
80788         * modules/dup3: New file.
80789         * doc/glibc-functions/dup3.texi: Mention the new module.
80791 2009-08-23  Bruno Haible  <bruno@clisp.org>
80793         Tweak the dup2 test.
80794         * tests/test-dup2.c (main): Create the test file empty. Verify that an
80795         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
80796         the test file is still empty. Fix argument order of lseek.
80798 2009-08-23  Bruno Haible  <bruno@clisp.org>
80800         Avoid test link errors when the modules getopt-gnu, gettext are used.
80801         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
80802         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80804 2009-08-23  Bruno Haible  <bruno@clisp.org>
80806         Fix getdtablesize() on mingw.
80807         * lib/getdtablesize.c (getdtablesize): Implement differently.
80808         * lib/unistd.in.h (getdtablesize): Improve comment.
80810 2009-08-23  Bruno Haible  <bruno@clisp.org>
80812         New module 'mkostemp'.
80813         Based on Ulrich Drepper's 2007-08-10 change in glibc.
80814         * lib/stdlib.in.h (mksotemp): New declaration.
80815         * lib/mkostemp.c: New file, from glibc with modifications.
80816         * lib/tempname.h (GT_FILE): Remove outdated comment.
80817         (gen_tempname): Add flags argument.
80818         * lib/tempname.c (__GT_BIGFILE): Remove macro.
80819         (__GT_FILE): Map to 1.
80820         (small_open, large_open): Remove macros.
80821         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
80822         * lib/mkstemp.c (mkstemp): Update.
80823         * lib/mkdtemp.c (mkdtemp): Likewise.
80824         * m4/mkostemp.m4: New file.
80825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
80826         HAVE_MKOSTEMP.
80827         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
80828         HAVE_MKOSTEMP.
80829         * modules/mkostemp: New file, based on modules/mkstemp.
80830         * doc/glibc-functions/mkostemp.texi: Mention the new module.
80831         * NEWS: Mention the change.
80833 2009-08-23  Bruno Haible  <bruno@clisp.org>
80835         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
80836         Reported by Eric Blake.
80838 2009-08-23  Bruno Haible  <bruno@clisp.org>
80840         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
80841         Reported by Eric Blake.
80843 2009-08-23  Bruno Haible  <bruno@clisp.org>
80845         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
80846         * modules/pipe2 (Depends-on): Likewise.
80848 2009-08-23  Eric Blake  <ebb9@byu.net>
80850         fcntl-h: add O_TTY_INIT support
80851         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
80852         * tests/test-fcntl-h.c (o): Test it.
80853         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80855         fcntl-h: rename from fcntl, in preparation for fcntl(2)
80856         * modules/fcntl: Move <fcntl.h> header replacement...
80857         * modules/fcntl-h: ...to new name, so as not to collide with
80858         like-named function.
80859         * tests/test-fcntl.c: Rename...
80860         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
80861         * modules/fcntl-tests: Rename...
80862         * modules/fcntl-h-tests: ...to this.  Update test file name.
80863         * modules/chdir-long (Depends-on): Update clients.
80864         * modules/chdir-safer (Depends-on): Likewise.
80865         * modules/fcntl-safer (Depends-on): Likewise.
80866         * modules/fts (Depends-on): Likewise.
80867         * modules/mkancesdirs (Depends-on): Likewise.
80868         * modules/mkdir-p (Depends-on): Likewise.
80869         * modules/open (Depends-on): Likewise.
80870         * modules/savewd (Depends-on): Likewise.
80871         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
80872         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80874 2009-08-22  Bruno Haible  <bruno@clisp.org>
80876         * modules/binary-io (License): Relicense under LGPL.
80877         * modules/pipe2 (License): Likewise.
80879 2009-08-22  Bruno Haible  <bruno@clisp.org>
80881         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
80882         return value.
80883         * lib/pipe-filter-gi.c (filter_init): Likewise.
80884         Reported by Eric Blake.
80886 2009-08-22  Bruno Haible  <bruno@clisp.org>
80888         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
80889         * modules/pipe (Depends-on): Add pipe2.
80891 2009-08-22  Bruno Haible  <bruno@clisp.org>
80893         Tests for module 'pipe2'.
80894         * modules/pipe2-tests: New file.
80895         * tests/test-pipe2.c: New file.
80897         New module 'pipe2'.
80898         * lib/unistd.in.h (pipe2): New declaration.
80899         * lib/pipe2.c: New file.
80900         * m4/pipe2.m4: New file.
80901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
80902         HAVE_PIPE2.
80903         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
80904         * modules/pipe2: New file.
80905         * doc/glibc-functions/pipe2.texi: Mention the new module.
80907 2009-08-22  Bruno Haible  <bruno@clisp.org>
80909         Reference some new glibc functions.
80910         * doc/glibc-functions/accept4.texi: New file.
80911         * doc/glibc-functions/dup3.texi: New file.
80912         * doc/glibc-functions/mkostemp.texi: New file.
80913         * doc/glibc-functions/pipe2.texi: New file.
80914         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
80915         (Glibc sys/socket.h): Refer to accept4.
80916         (Glibc unistd.h): Refer to dup3, pipe2.
80917         Reported by Eric Blake.
80919 2009-08-22  Jim Meyering  <meyering@redhat.com>
80920             Bruno Haible  <bruno@clisp.org>
80922         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
80923         This makes it so packages using automake-1.11's silent-rules option
80924         can print e.g., a single "GEN    configmake.h" line, rather than
80925         the 30+ statements that perform the job.  If you want to see the
80926         actual commands, you can still run "make V=1".
80927         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
80928         so that make output is abbreviated when those variables are defined
80929         appropriately.
80930         * modules/argz: Likewise.
80931         * modules/arpa_inet: Likewise.
80932         * modules/byteswap: Likewise.
80933         * modules/configmake: Likewise.
80934         * modules/dirent: Likewise.
80935         * modules/errno: Likewise.
80936         * modules/fcntl: Likewise.
80937         * modules/float: Likewise.
80938         * modules/fnmatch: Likewise.
80939         * modules/getopt-posix: Likewise.
80940         * modules/glob: Likewise.
80941         * modules/iconv_open: Likewise.
80942         * modules/inttypes: Likewise.
80943         * modules/localcharset: Likewise.
80944         * modules/locale: Likewise.
80945         * modules/math: Likewise.
80946         * modules/netdb: Likewise.
80947         * modules/netinet_in: Likewise.
80948         * modules/poll: Likewise.
80949         * modules/posix_spawnp-tests: Likewise.
80950         * modules/sched: Likewise.
80951         * modules/search: Likewise.
80952         * modules/selinux-h: Likewise.
80953         * modules/signal: Likewise.
80954         * modules/spawn: Likewise.
80955         * modules/stdarg: Likewise.
80956         * modules/stdbool: Likewise.
80957         * modules/stddef: Likewise.
80958         * modules/stdint: Likewise.
80959         * modules/stdio: Likewise.
80960         * modules/stdlib: Likewise.
80961         * modules/string: Likewise.
80962         * modules/strings: Likewise.
80963         * modules/sys_file: Likewise.
80964         * modules/sys_ioctl: Likewise.
80965         * modules/sys_select: Likewise.
80966         * modules/sys_socket: Likewise.
80967         * modules/sys_stat: Likewise.
80968         * modules/sys_time: Likewise.
80969         * modules/sys_times: Likewise.
80970         * modules/sys_utsname: Likewise.
80971         * modules/sys_wait: Likewise.
80972         * modules/sysexits: Likewise.
80973         * modules/time: Likewise.
80974         * modules/unistd: Likewise.
80975         * modules/wchar: Likewise.
80976         * modules/wctype: Likewise.
80978 2009-08-22  Jim Meyering  <meyering@redhat.com>
80980         announce-gen: detect write failure
80981         * build-aux/announce-gen: Add Coda at end.
80982         Remove equivalent-but-more-verbose block at top.
80984 2009-08-19  Akim Demaille  <demaille@gostai.com>
80986         bootstrap: --help to stdout.
80987         * bootstrap (usage): Don't send --help to stderr.
80988         Use a here doc instead of a long string.
80990 2009-08-21  Eric Blake  <ebb9@byu.net>
80992         test-popen-safer: split from test-popen
80993         * tests/test-popen.c (main): Move...
80994         * tests/test-popen.h: ...into new file.
80995         * tests/test-popen-safer2.c: New file.
80996         * modules/popen-tests (Files): Add test-popen.h.
80997         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
80998         Suggested by Bruno Haible.
81000         test-fcntl-safer: split from test-open
81001         * tests/test-open.c (main): Move...
81002         * tests/test-open.h: ...into new file.
81003         * tests/test-fcntl-safer.c: New file.
81004         * modules/open-tests (Files): Add test-open.h.
81005         * modules/fcntl-safer-tests: New file.
81006         Suggested by Bruno Haible.
81008         test-fopen-safer: split from test-fopen
81009         * tests/test-fopen.c (main): Move...
81010         * tests/test-fopen.h: ...into new file.
81011         * tests/test-fopen-safer.c: New file.
81012         * modules/fopen-tests (Files): Add test-fopen.h.
81013         * modules/fopen-safer-tests: New file.
81014         Suggested by Bruno Haible.
81016 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81018         popen-safer: test O_CLOEXEC at run-time.
81019         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
81021 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81023         fcntl: move more flags to the header
81024         * lib/cloexec.c: Do not define FD_CLOEXEC here.
81025         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
81026         * lib/fcntl.in.h: Do both things here.
81028 2009-08-21  Jim Meyering  <meyering@redhat.com>
81030         consistently remove $@-t before redirecting to it
81031         * modules/argz: Remove $@-t and $@ before redirecting to the former.
81032         * modules/alloca-opt: Likewise.
81033         * modules/byteswap: Likewise.
81034         * modules/fnmatch: Likewise.
81035         * modules/getopt-posix: Likewise.
81036         * modules/glob: Likewise.
81037         * modules/poll: Likewise.
81038         * modules/posix_spawnp-tests: Likewise.
81039         * modules/sys_socket: Likewise.
81040         * modules/sysexits: Likewise.
81042 2009-08-21  Eric Blake  <ebb9@byu.net>
81044         popen: simplify access to original popen
81045         * lib/popen.c (rpl_popen): No need to worry about popen being a
81046         macro.
81047         Reported by Bruno Haible.
81049 2009-08-20  Eric Blake  <ebb9@byu.net>
81051         build: avoid some compiler warnings
81052         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
81053         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
81054         type.
81055         (new_exclude_segment, excluded_file_pattern_p)
81056         (excluded_file_name_p): Reduce scope.
81057         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
81058         old-style declaration.
81060 2009-08-20  Simon Josefsson  <simon@josefsson.org>
81062         * tests/test-exclude1.sh: Handle Windows EOL.
81063         * tests/test-exclude2.sh: Likewise.
81064         * tests/test-exclude3.sh: Likewise.
81065         * tests/test-exclude4.sh: Likewise.
81066         * tests/test-exclude5.sh: Likewise.
81067         * tests/test-exclude6.sh: Likewise.
81068         * tests/test-exclude7.sh: Likewise.
81070 2009-08-19  Akim Demaille  <demaille@gostai.com>
81072         bootstrap: find sha1sum when named gsha1sum.
81073         * bootstrap (find_tool): New.
81074         ($SHA1SUM): New.
81075         Use it.
81077 2009-08-20  Jim Meyering  <meyering@redhat.com>
81079         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
81080         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
81081         expression that converts "." in a file name to "\." in the resulting
81082         regexp.  Start with a dummy statement, so that prior shell variable
81083         definitions are expanded portably.  Reported by Simon Josefsson.
81085 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
81087         Fix polling for writeability of a screen buffer.
81088         * lib/poll.c: Distinguish input and screen buffers for the
81089         Win32 implementation.
81090         * lib/select.c: Likewise.
81092 2009-08-19  Eric Blake  <ebb9@byu.net>
81094         popen-safer: prevent popen from clobbering std descriptors
81095         * modules/popen-safer: New file.
81096         * lib/popen-safer.c: Likewise.
81097         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
81098         * lib/stdio--.h (popen): Provide override.
81099         * lib/stdio-safer.h (popen_safer): Provide declaration.
81100         * tests/test-popen.c (includes): Partially test this.
81101         * modules/popen-safer-tests: New file, for more tests.
81102         * tests/test-popen-safer.c: Likewise.
81103         * MODULES.html.sh (file stream based Input/Output): Mention it.
81105         tests: test some of the *-safer modules
81106         * modules/fopen-safer (Depends-on): Add fopen.
81107         * modules/fcntl-safer (Depends-on): Add fcntl.
81108         * modules/stdlib-safer (Depends-on): Add stdlib.
81109         (configure.ac): Set indicator.
81110         * modules/unistd-safer (configure.ac): Likewise.
81111         * modules/tmpfile-safer (configure.ac): Likewise.
81112         (Depends-on): Add tmpfile.
81113         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
81114         active.
81115         * tests/test-fopen.c (includes): Test safer versions when they are
81116         in use.
81117         * tests/test-open.c (includes): Likewise.
81119         popen: fix cygwin 1.5 bug when stdin closed
81120         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
81121         * modules/popen: New file.
81122         * modules/popen-tests: Likewise.
81123         * tests/test-popen.c: Likewise.
81124         * m4/popen.m4: Likewise.
81125         * lib/popen.c: Likewise.
81126         * lib/stdio.in.h (popen): New declaration.
81127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
81128         * modules/stdio (Makefile.am): Likewise.
81129         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
81131 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
81133         maint.mk: give full control over update-copyright exclusions
81134         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
81135         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
81136         (update-copyright): Don't force inclusion of top-level
81137         ChangeLog.  Don't force exclusion of all COPYING files, but make
81138         them the default exclusion instead.
81140 2009-08-16  Bruno Haible  <bruno@clisp.org>
81142         Fix test failures on Solaris 10.
81143         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
81144         tests when Solaris iconv() is used.
81145         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
81146         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
81147         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
81148         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
81149         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
81151 2009-08-16  Bruno Haible  <bruno@clisp.org>
81153         Fix test failures on Solaris 10.
81154         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
81155         'tr' program and pass it as first argument.
81156         * tests/test-pipe-filter-gi1.sh: Likewise.
81157         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
81158         program as first argument.
81159         * tests/test-pipe-filter-gi1.c (main): Likewise.
81161 2009-08-16  Eric Blake  <ebb9@byu.net>
81163         fpurge: fix previous commits
81164         * modules/fpurge (Makefile.am): Make replacement conditional,
81165         partially reverting 2007-04-29 change; missed in previous
81166         attempt.
81167         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
81168         is missing.
81170 2009-08-16  Bruno Haible  <bruno@clisp.org>
81172         Clarify fpurge's effect on the file position.
81173         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
81174         * tests/test-fpurge.c (main): Make a second pass for checking the file
81175         position.
81177 2009-08-16  Bruno Haible  <bruno@clisp.org>
81179         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
81180         declaration of fpurge is missing.
81181         * tests/test-fpurge.c (main): Check that the file has not more contents
81182         than expected. Close the file before removing it.
81184 2009-08-15  Eric Blake  <ebb9@byu.net>
81186         fpurge: don't wrap working cygwin implementation
81187         * lib/fpurge.c (fpurge): Fix comment typo.
81188         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
81189         1.7 to avoid replacement.
81190         * tests/test-fpurge.c (main): Enhance test.
81192 2009-08-15  Eric Blake  <ebb9@byu.net>
81193         and Jim Meyering  <meyering@redhat.com>
81195         test-update-copyright: skip if perl is insufficient
81196         * tests/test-update-copyright.sh: Failure to run maintainer tool
81197         should not cause testsuite failure on cygwin 1.5.
81199 2009-08-14  Eric Blake  <ebb9@byu.net>
81201         doc: mention more functions added in cygwin 1.7.0
81202         * doc/posix-headers/limits.texi (limits.h): Update for recent
81203         cygwin additions.
81204         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
81205         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
81206         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
81207         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
81208         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
81210 2009-08-14  Eric Blake  <ebb9@byu.net>
81212         maint.mk: simplify update-copyright rule
81213         * top/maint.mk (update-copyright-local): Delete, and document how
81214         to do it in cfg.mk instead.
81215         (update-copyright-exclude-regexp): Delete, and document how to do
81216         it in .x-update-copyright instead.
81217         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
81218         exclude ChangeLog.
81220 2009-08-14  Bruno Haible  <bruno@clisp.org>
81222         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
81224 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81226         maint.mk: support update-copyright-env
81227         * top/maint.mk (update-copyright-env): Define place-holder.
81228         (update-copyright): Expand $(update-copyright-env) before
81229         invoking update-copyright.
81231 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81233         update-copyright: implement forced reformatting
81234         * build-aux/update-copyright: Implement and document
81235         UPDATE_COPYRIGHT_FORCE.
81236         * tests/test-update-copyright.sh: Test it.
81238 2009-08-14  Eric Blake  <ebb9@byu.net>
81239         and Bruno Haible  <bruno@clisp.org>
81241         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
81242         * tests/test-locale.c: Revert previous patch related to NULL.
81243         * tests/test-stdio.c: Likewise.
81244         * tests/test-stdlib.c: Likewise.
81245         * tests/test-string.c: Likewise.
81246         * tests/test-unistd.c: Likewise.
81247         * modules/time-tests (Depends-on): Add verify.
81248         * modules/wchar-tests (Depends-on): Likewise.
81249         * tests/test-time.c: Test for NULL compliance.
81250         * tests/test-wchar.c: Likewise.
81251         * modules/locale (Depends-on): Add stddef.
81252         * modules/stdio (Depends-on): Likewise.
81253         * modules/stdlib (Depends-on): Likewise.
81254         * modules/string (Depends-on): Likewise.
81255         * modules/time (Depends-on): Likewise.
81256         * modules/unistd (Depends-on): Likewise.
81257         * modules/wchar (Depends-on): Likewise.
81258         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
81259         * lib/stdlib.in.h (includes): Likewise.
81260         * lib/string.in.h (includes): Likewise.
81261         * lib/time.in.h (includes): Likewise.
81262         * lib/unistd.in.h (includes): Likewise.
81263         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
81264         replaced.
81265         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
81266         * m4/stddef_h.m4: New file.
81267         * modules/stddef: Likewise.
81268         * lib/stddef.in.h: Likewise.
81269         * modules/stddef-tests: Likewise.
81270         * tests/test-stddef.c: Likewise.
81271         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
81272         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
81273         * doc/posix-headers/locale.texi (locale.h): Likewise.
81274         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
81275         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
81276         * doc/posix-headers/string.texi (string.h): Likewise.
81277         * doc/posix-headers/time.texi (time.h): Likewise.
81278         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
81279         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
81281 2009-08-14  Eric Blake  <ebb9@byu.net>
81283         doc: improve git diff of texinfo files
81284         * .gitattributes: Add rule for *.texi files, with hint on how to
81285         use it.
81286         Copied from m4, and based on a report by Bruno Haible.
81288 2009-08-14  Bruno Haible  <bruno@clisp.org>
81290         Disable multithread support by default on Cygwin 1.5.x for real.
81291         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
81293 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81295         update-copyright: much ado about intervals
81296         * build-aux/update-copyright: Implement and document
81297         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
81298         of copyright year intervals.
81299         Also, document UPDATE_COPYRIGHT_YEAR.
81300         * tests/test-update-copyright.sh: Test it.
81302         update-copyright: convert 2-digit to 4-digit years
81303         * build-aux/update-copyright: Implement and document.
81304         * tests/test-update-copyright.sh: Update.
81306 2009-08-14  Jim Meyering  <meyering@redhat.com>
81308         test-exclude: avoid coreutils "make check" failure
81309         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
81310         just as in test-argmatch.c.
81312 2009-08-13  Eric Blake  <ebb9@byu.net>
81314         test-dup2: fix bad assumption
81315         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
81316         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
81318         test-version-etc: fix CRLF portability issue
81319         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
81320         recognize \r.
81321         * tests/test-argp-version-etc-1.sh: Likewise.
81323         getopt: update client modules
81324         * modules/argp (Depends-on): Use getopt-gnu.
81325         * modules/git-merge-changelog (Depends-on): Likewise.
81326         * modules/long-options (Depends-on): Likewise.
81327         * modules/xstrtol (Depends-on): Likewise.
81329 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81331         * tests/test-version-etc.sh: Don't fail on different
81332         project/version.  Don't fail on CRLF differences.  Rewrite to use
81333         multiple -e instead of multiple sed forks, suggested by Eric Blake
81334         <ebb9@byu.net>.
81335         * tests/test-argp-version-etc-1.sh: Likewise.
81337 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81339         * tests/test-version-etc.sh: Don't fail on different
81340         project/version.
81342 2009-08-12  Bruno Haible  <bruno@clisp.org>
81344         Tests for modules 'getopt-posix', 'getopt-gnu'.
81345         * modules/getopt-posix-tests: New file.
81346         * tests/test-getopt.c: New file.
81347         * tests/test-getopt.h: New file.
81348         * tests/test-getopt_long.h: New file.
81350         New modules 'getopt-posix', 'getopt-gnu'.
81351         * modules/getopt-gnu: New file, renamed from modules/getopt.
81352         * modules/getopt-posix: New file.
81353         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
81354         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
81355         (gl_GETOPT): Remove macro.
81356         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
81357         Disable the test against BSD systems that declare optreset. Test
81358         against mingw bug. Test against lack of support of optional arguments
81359         on many platforms.
81360         * doc/glibc-headers/getopt.texi: Update module name and list of
81361         relevant platforms.
81362         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
81363         'getopt-gnu' and more portability problems.
81364         * NEWS: Mention the changes.
81366 2009-08-12  Bruno Haible  <bruno@clisp.org>
81368         Ensure that optarg etc. get declared by <unistd.h>.
81369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
81370         AC_USE_SYSTEM_EXTENSIONS.
81371         * modules/getopt (Depends-on): Add 'extensions'.
81373 2009-08-12  Bruno Haible  <bruno@clisp.org>
81375         Avoid test link errors.
81376         * modules/pipe-filter-ii-tests (Makefile.am): Define
81377         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
81378         * modules/pipe-filter-gi-tests (Makefile.am): Define
81379         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
81380         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81382 2009-08-12  Bruno Haible  <bruno@clisp.org>
81384         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
81385         gl_GETOPT_SUBSTITUTE before.
81386         (gl_GETOPT): Use it.
81387         * m4/argp.m4 (gl_ARGP): Update.
81388         Reported by Sergey Poznyakoff.
81390         * m4/getopt.m4: Reorder macros.
81391         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
81392         (gl_GETOPT_SUBSTITUTE): Remove macro.
81394 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81396         Minor improvement in gitlog-to-changelog
81398         * build-aux/gitlog-to-changelog: New option `--format' makes
81399         output format string configurable.
81401 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81403         Optimize exclude: use hash tables for non-wildcard patterns.
81405         * lib/exclude.c: Include hash.h and mbuiter.h
81406         (struct exclude_pattern, exclude_segment): New data types.
81407         (struct exclude): Rewrite.
81408         (fnmatch_pattern_has_wildcards): New function.
81409         (new_exclude_segment, free_exclude_segment): New functions.
81410         (excluded_file_pattern_p, excluded_file_name_p): New functions.
81411         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
81412         * lib/exclude.h (is_fnmatch_pattern): New prototype.
81413         * modules/exclude: Depend on hash and mbuiter.
81415         * modules/exclude-tests: New file.
81416         * tests/test-exclude.c: New file.
81417         * tests/test-exclude1.sh: New file.
81418         * tests/test-exclude2.sh: New file.
81419         * tests/test-exclude3.sh: New file.
81420         * tests/test-exclude4.sh: New file.
81421         * tests/test-exclude5.sh: New file.
81422         * tests/test-exclude6.sh: New file.
81423         * tests/test-exclude7.sh: New file.
81425 2009-08-12  Bruno Haible  <bruno@clisp.org>
81427         Ensure that getopt() gets declared by <unistd.h>.
81428         * lib/unistd.in.h: Conditionally include getopt.h.
81429         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
81430         Set GNULIB_UNISTD_H_GETOPT.
81431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81432         GNULIB_UNISTD_H_GETOPT.
81433         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
81435 2009-08-12  Bruno Haible  <bruno@clisp.org>
81437         Clarify logic.
81438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
81439         gl_replace_getopt instead of GETOPT_H.
81441 2009-08-12  Bruno Haible  <bruno@clisp.org>
81443         * m4/getopt.m4: Add comments.
81445 2009-08-12  Bruno Haible  <bruno@clisp.org>
81447         Disable multithread support by default on Cygwin 1.5.x.
81448         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
81449         set gl_use_threads=no if not specified otherwise.
81451 2009-08-11  Bruno Haible  <bruno@clisp.org>
81453         Avoid compilation error on NetBSD 5.0.
81454         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
81455         * tests/test-stdio.c: Likewise.
81456         * tests/test-stdlib.c: Likewise.
81457         * tests/test-string.c: Likewise.
81458         * tests/test-unistd.c: Likewise.
81459         Reported by Greg Troxel <gdt@ir.bbn.com>
81460         at <https://savannah.gnu.org/support/?106973>.
81462 2009-08-11  Bruno Haible  <bruno@clisp.org>
81464         * modules/dup2-tests (Depends-on): Remove close.
81466         Undo 2009-07-19 commit.
81467         * modules/acl-tests (Depends-on): Remove close.
81468         * modules/binary-io-tests (Depends-on): Likewise.
81469         * modules/closein-tests (Depends-on): Likewise.
81470         * modules/flock-tests (Depends-on): Likewise.
81471         * modules/fsync-tests (Depends-on): Likewise.
81472         * modules/lseek-tests (Depends-on): Likewise.
81473         * modules/pipe-tests (Depends-on): Likewise.
81474         * modules/posix_spawn-tests (Depends-on): Likewise.
81475         * modules/posix_spawnp-tests (Depends-on): Likewise.
81476         * modules/stat-time-tests (Depends-on): Likewise.
81477         * modules/yesno-tests (Depends-on): Likewise.
81479 2009-08-10  Bruno Haible  <bruno@clisp.org>
81481         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
81483 2009-08-10  Bruno Haible  <bruno@clisp.org>
81485         Fix a gcc warning.
81486         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
81488 2009-08-10  Bruno Haible  <bruno@clisp.org>
81490         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
81491         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
81492         not only the first time.
81493         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
81494         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
81495         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
81496         is 1, not only the first time.
81498 2009-08-10  Bruno Haible  <bruno@clisp.org>
81500         Make it possible to use module 'gethostname' without module 'close'.
81501         * lib/unistd.in.h (close): Evoke a link error only if
81502         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81504         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81505         * modules/unistd (Makefile.am): Substitute
81506         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81507         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
81508         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81509         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
81510         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81511         * modules/sys_ioctl (Makefile.am): Substitute
81512         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81513         * modules/socket (configure.ac): On native Windows, set
81514         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
81515         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81516         Reported by Sam Steingold <sds@gnu.org>.
81518 2009-08-10  Bruno Haible  <bruno@clisp.org>
81520         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
81521         * modules/ioctl (configure.ac): Likewise.
81523 2009-08-10  Bruno Haible  <bruno@clisp.org>
81525         Avoid collision between gnulib wrapper and libintl wrapper.
81526         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
81527         already defined in intl/printf.c.
81528         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
81529         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
81531 2009-08-09  Bruno Haible  <bruno@clisp.org>
81533         Make <sys/select.h> really self-contained, also on Solaris 10.
81534         * lib/sys_select.in.h: Include <string.h>.
81535         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
81536         Solaris 10 problem.
81537         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
81538         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
81539         Reported by Jim Meyering.
81541 2009-08-09  Bruno Haible  <bruno@clisp.org>
81543         Avoid warnings from 'aclocal' that are due to a use of macro name
81544         AM_XGETTEXT_OPTION that is not defined in automake.
81545         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
81546         automake.
81547         * modules/error (configure.ac): Likewise.
81548         * modules/propername (configure.ac): Likewise.
81549         * modules/vasprintf (configure.ac): Likewise.
81550         * modules/verror (configure.ac): Likewise.
81551         * modules/xprintf (configure.ac): Likewise.
81552         * modules/xvasprintf (configure.ac): Likewise.
81554 2009-08-08  Bruno Haible  <bruno@clisp.org>
81556         Avoid compilation error in C++ mode.
81557         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
81558         Reported by Sam Steingold <sds@gnu.org>.
81560 2009-08-08  Bruno Haible  <bruno@clisp.org>
81562         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
81563         for the various Unix platforms.
81564         * doc/posix-headers/limits.texi: Update platforms list regarding
81565         HOST_NAME_MAX.
81566         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81568 2009-08-07  Jim Meyering  <meyering@redhat.com>
81570         selinux-at: fix typo in a comment
81571         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
81572         Spotted by Paolo Bonzini.
81574         selinux-at: remove redundant m4 code, add documentation
81575         * modules/selinux-at (configure.ac): Remove redundant code.
81576         LIB_SELINUX is already set via the dependent module, selinux-h.
81577         (Include): Add quotes around selinux-at.h.
81578         * lib/selinux-at.h: Add documentation.
81579         Reported by Bruno Haible in
81580         http://marc.info/?l=gnulib-bug&m=124958988300749
81582 2009-08-07  Bruno Haible  <bruno@clisp.org>
81584         Avoid link error on MacOS X 10.3 and 10.4.
81585         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
81586         on non-ELF systems.
81587         * lib/argp-pv.c (argp_program_version): Likewise.
81588         Reported by Simon Josefsson.
81590 2009-08-07  Simon Josefsson  <simon@josefsson.org>
81592         * tests/test-version-etc.sh: Use $EXEEXT.
81594 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
81596         update-copyright: update documentation to point to maint.mk
81597         * build-aux/update-copyright: Here.
81599 2009-08-06  Jim Meyering  <meyering@redhat.com>
81601         maint.mk: support update-copyright-local
81602         * top/maint.mk (update-copyright-local): Define place-holder.
81603         (update-copyright): Depend on $(update-copyright-local).
81605 2009-08-06  Jim Meyering  <meyering@redhat.com>
81607         selinux-at: new module
81608         Initially written for coreutils, this module will soon be
81609         used by findutils, too.
81610         * MODULES.html.sh [Misc]: Add selinux-at.
81611         * lib/selinux-at.h: New file, from coreutils.
81612         * lib/selinux-at.c: Likewise.
81613         * modules/selinux-at: Likewise.
81614         (License): Change from LGPL to GPL, since it depends
81615         on the GPL'd openat module.
81617         doc: update README
81618         * README: Remove references to cogito.
81619         Remove cvs-repo-updating instructions from 2007.
81620         Don't imply that CVS is better if you have limited disk space.
81622 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81624         update-copyright: support C-style comments
81625         * build-aux/update-copyright: Implement and document.
81626         * tests/test-update-copyright.sh: Test.
81628 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81630         update-copyright: support omitted "(C)"
81631         * build-aux/update-copyright: Implement and document.  Also,
81632         allow variable whitespace before "(C)".
81633         * tests/test-update-copyright.sh: Test.
81635 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81637         update-copyright: don't trip on non-FSF copyright statements
81638         * build-aux/update-copyright: Fix so that the first correctly
81639         formatted FSF copyright statement is recognized no matter what
81640         appears before it.  Update documentation.
81641         * tests/test-update-copyright.sh: Test that.
81643 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81645         update-copyright: clean up code a little
81646         * build-aux/update-copyright: Append "_re" to the name of any
81647         variable holding a regular expression.
81648         Replace "old" and "new" with "stmt" in variable names.
81649         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
81650         handled correctly.
81651         Format code more consistently.
81653 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81655         update-copyright-tests: improve portability
81656         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
81657         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
81659 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81661         update-copyright: support @copyright{} and &copy;
81662         * build-aux/update-copyright: Implement and document.
81663         * tests/test-update-copyright.sh: Test.
81665 2009-08-04  Jim Meyering  <meyering@redhat.com>
81667         update-copyright-tests: correctly test EOL=\r\n handling
81668         * tests/test-update-copyright.sh: Put \r at the end of some lines
81669         for the dos-eol tests.  Based on a patch by Joel E. Denny.
81671         maint.mk: make update-copyright exclusion list more configurable
81672         * top/maint.mk (update-copyright): Default to excluding COPYING,
81673         but allow an override, in case someone does want to update that file.
81675         maint.mk: don't update copyright date in COPYING
81676         * top/maint.mk (update-copyright): Exclude COPYING.
81678         maint.mk: add a copyright-updating rule
81679         * top/maint.mk (update-copyright): New rule.
81680         Derived from coreutils/Makefile.am.
81682         update-copyright: rename some variables
81683         * build-aux/update-copyright: Rename a few variables for clarity.
81684         Tweak syntax.  List Joel E. Denny as coauthor.
81686 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81688         update-copyright: fix bug for 2-digit last year and add tests
81689         * build-aux/update-copyright: Fix bug.
81690         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
81691         specified.
81692         * modules/update-copyright-tests: New
81693         * tests/test-update-copyright.sh: New.
81695 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81697         update-copyright: handle leading tabs in line prefix
81698         * build-aux/update-copyright: Count leading tabs as 8 spaces
81699         when computing margin.  This helps with the formatting of
81700         ChangeLogs, for example.
81701         Fix documentation a little.
81703 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81705         update-copyright: support EOL=\r\n
81706         * build-aux/update-copyright: Implement that.
81708 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81710         update-copyright: automatically format copyright statements
81711         * build-aux/update-copyright: Implement that.
81712         Also, be a little more predictable and safer by always failing
81713         when the full copyright format is not perfectly recognized as an
81714         unbroken whole.  Discussed at
81715         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
81716         Rewrite documentation.
81718 2009-08-03  Bruno Haible  <bruno@clisp.org>
81720         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
81722 2009-08-02  Bruno Haible  <bruno@clisp.org>
81724         Tests for module 'uname'.
81725         * modules/uname-tests: New file.
81726         * tests/test-uname.c: New file.
81728         New module 'uname'.
81729         * lib/uname.c: New file.
81730         * m4/uname.m4: New file.
81731         * modules/uname: New file.
81732         * doc/posix-functions/uname.texi: Mention the new module.
81734 2009-08-02  Bruno Haible  <bruno@clisp.org>
81736         Tests for module 'sys_utsname'.
81737         * modules/sys_utsname-tests: New file.
81738         * tests/test-sys_utsname.c: New file.
81740         New module 'sys_utsname'.
81741         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
81742         * m4/sys_utsname_h.m4: New file.
81743         * modules/sys_utsname: New file.
81744         * doc/posix-headers/sys_utsname.texi: Mention the new module.
81746 2009-08-02  Bruno Haible  <bruno@clisp.org>
81748         Implicitly initialize the sockets library.
81749         * lib/gethostname.c: Include sockets.h.
81750         (rpl_gethostname): Invoke gl_sockets_startup.
81751         * lib/socket.c: Include sockets.h.
81752         (rpl_socket): Invoke gl_sockets_startup.
81753         * modules/gethostname (Depends-on): Add sockets.
81754         * modules/socket (Depends-on): Likewise.
81755         * tests/test-poll.c: Don't include sockets.h.
81756         (main): Don't invoke gl_sockets_startup.
81757         * tests/test-select.c: Don't include sockets.h.
81758         (main): Don't invoke gl_sockets_startup.
81760 2009-08-02  Bruno Haible  <bruno@clisp.org>
81762         Allow multiple calls to gl_sockets_startup.
81763         * lib/sockets.c (initialized_sockets_version): New variable.
81764         (gl_sockets_startup): Do nothing if already called for this or a higher
81765         version.
81766         (gl_sockets_cleanup): Reset initialized_sockets_version.
81768 2009-08-03  Simon Josefsson  <simon@josefsson.org>
81770         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
81771         different project/version.
81773 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
81774             Bruno Haible  <bruno@clisp.org>
81776         Tests for module 'pipe-filter-gi'.
81777         * modules/pipe-filter-gi-tests: New file.
81778         * tests/test-pipe-filter-gi1.sh: New file.
81779         * tests/test-pipe-filter-gi1.c: New file.
81780         * tests/test-pipe-filter-gi2.sh: New file.
81781         * tests/test-pipe-filter-gi2-main.c: New file.
81782         * tests/test-pipe-filter-gi2-child.c: New file.
81784         New module 'pipe-filter-gi'.
81785         * lib/pipe-filter-gi.c: New file.
81786         * modules/pipe-filter-gi: New file.
81788 2009-08-02  Bruno Haible  <bruno@clisp.org>
81789             Paolo Bonzini  <bonzini@gnu.org>
81791         Tests for module 'pipe-filter-ii'.
81792         * modules/pipe-filter-ii-tests: New file.
81793         * tests/test-pipe-filter-ii1.sh: New file.
81794         * tests/test-pipe-filter-ii1.c: New file.
81795         * tests/test-pipe-filter-ii2.sh: New file.
81796         * tests/test-pipe-filter-ii2-main.c: New file.
81797         * tests/test-pipe-filter-ii2-child.c: New file.
81799         New module 'pipe-filter-ii'.
81800         * lib/pipe-filter.h: New file.
81801         * lib/pipe-filter-ii.c: New file.
81802         * lib/pipe-filter-aux.h: New file.
81803         * modules/pipe-filter-ii: New file.
81805 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81807         * lib/gc-libgcrypt.c: Change copyright to FSF.
81808         * lib/gc-gnulib.c: Likewise.
81810 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
81812         * lib/gethostname.c: Include limits.h.
81814 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81815             Bruno Haible  <bruno@clisp.org>
81817         Ensure HOST_NAME_MAX as part of the gethostname module.
81818         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
81819         define also HOST_NAME_MAX.
81820         * tests/test-gethostname.c: Include <limits.h>.
81821         (main): Check also HOST_NAME_MAX.
81822         * doc/posix-headers/limits.texi: Document the mingw problem.
81824 2009-08-02  Bruno Haible  <bruno@clisp.org>
81826         * lib/gethostname.c (gethostname): Fix handling of large len argument.
81827         Add comments.
81829 2009-03-31  Simon Josefsson  <simon@josefsson.org>
81831         * lib/gethostname.c: Add Windows wrapper.
81832         * m4/gethostname.m4: Look for gethostname in -lws2_32.
81833         * modules/gethostname: Depend on sys_socket & errno, for also
81834         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
81835         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
81837 2009-07-31  Jim Meyering  <meyering@redhat.com>
81839         getloadavg: fix symbol name in comment
81840         * lib/getloadavg.c: Correct a typo I introduced when adding
81841         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
81842         Matt Kraai spotted the problem.
81844 2009-07-29  Matt Kraai  <mkraai@beckman.com>
81846         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
81847         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
81848         code also if ! defined N_NAME_POINTER.
81849         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
81850         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
81851         but the n_name member is a 12-byte array.
81853 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
81855         update-copyright: generalize comment handling
81856         * build-aux/update-copyright: Handle copyright statements
81857         within more comment styles.
81858         Document usage.
81859         Report any file with an external copyright holder or parse failure.
81861 2009-07-29  Jim Meyering  <meyering@redhat.com>
81863         mktime: correct setting of REPLACE_MKTIME
81864         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
81866         update-copyright: new module
81867         * modules/update-copyright: New file.
81868         * build-aux/update-copyright: New file.
81869         * MODULES.html.sh (maint+release support): Add update-copyright.
81871 2009-07-27  Bruno Haible  <bruno@clisp.org>
81873         Fix compilation error when <ctime> is used and mktime is replaced.
81874         * lib/time.in.h (mktime): New declaration.
81875         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
81876         REPLACE_MKTIME instead of defining mktime in config.h.
81877         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
81878         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
81879         Reported by Ross McFarland <rwmcfa1@neces.com>.
81881 2009-07-27  Bruno Haible  <bruno@clisp.org>
81883         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
81884         Reported by Matt Kraai <mkraai@beckman.com>.
81886 2009-07-25  Jim Meyering  <meyering@redhat.com>
81888         maint.mk: avoid warnings about missing files
81889         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
81890         diagnostic when .prev-version does not exist.
81891         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
81892         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
81893         nonexistent cfg.mk.
81894         Suggestions from Simon Josefsson.
81896 2009-07-25  Bruno Haible  <bruno@clisp.org>
81898         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
81899         defined as macros. Needed on QNX 6.4.1.
81900         Reported by Matt Kraai <mkraai@beckman.com>.
81902 2009-07-23  Jim Meyering  <meyering@redhat.com>
81904         maint.mk: invoke "make dist" with a working value of XZ_OPT
81905         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
81907 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
81909         Make fseeko.c compile on QNX.
81910         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
81912 2009-07-22  Peter Simons  <simons@cryp.to>
81914         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
81915         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
81916         * lib/md4.h: Likewise.
81917         * lib/md5.h: Likewise.
81918         * lib/sha1.h: Likewise.
81919         * lib/sha256.h: Likewise.
81920         * lib/sha512.h: Likewise.
81922         tests-sha1: don't assign literal string to 'char *' variable
81923         * tests/test-sha1.c (main): Declare locals with "const" to match
81924         attributes of the right hand side.
81926 2009-07-21  Eric Blake  <ebb9@byu.net>
81928         dup2: fix more mingw problems
81929         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
81930         fd to itself.
81931         * doc/posix-functions/dup2.texi (dup2): Document the bug.
81932         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
81933         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
81934         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
81935         care of mingw bugs.
81937 2009-07-21  Jim Meyering  <meyering@redhat.com>
81939         vc-list-files: avoid failure when /bin/sh is dash
81940         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
81941         On some Debian based systems, /bin/sh is a symlink to dash, and running
81942         this command would omit the "/" following each 'tests' prefix:
81943           dash -x build-aux/vc-list-files -C . tests
81944         That is because bash and dash work differently:
81945           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
81946           bash ok
81947           dash odd
81949 2009-07-21  Eric Blake  <ebb9@byu.net>
81951         dup2-tests: test previous patch
81952         * modules/dup2-tests: New file.
81953         * tests/test-dup2.c: Likewise.
81954         * tests/test-open.c (main): Avoid unspecified behavior.
81955         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
81956         test.
81958         dup2: work around mingw and cygwin 1.5 bug
81959         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
81960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81961         * modules/unistd (Makefile.am): Substitute it.
81962         * lib/unistd.in.h (dup2): Declare the replacement.
81963         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
81964         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
81965         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
81966         * modules/execute (Depends-on): Add dup2.
81967         * modules/fseterr (Depends-on): Likewise.
81968         * modules/pipe (Depends-on): Likewise.
81969         * modules/posix_spawn-internal (Depends-on): Likewise.
81971 2009-07-21  Bruno Haible  <bruno@clisp.org>
81973         * modules/.gitattributes: New file.
81975 2009-07-20  Bruno Haible  <bruno@clisp.org>
81977         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
81978         (main): Use it.
81980 2009-07-20  Eric Blake  <ebb9@byu.net>
81982         test-pipe: make a bit more robust.
81983         * tests/test-pipe.c (myerr): Allow error messages regardless of
81984         what we do to stderr.
81985         (test_pipe): Rearrange to avoid deadlock.
81986         (child_main): Try a larger read, to ensure we avoided deadlock.
81987         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
81988         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
81989         if misused.
81991 2009-07-19  Jim Meyering  <meyering@redhat.com>
81993         fts: avoid false-positive cycle-detection
81994         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
81995         for each new command line argument.
81997 2009-07-19  Bruno Haible  <bruno@clisp.org>
81999         Fix build error on mingw with the modules sys_select and unistd.
82000         * modules/acl-tests (Depends-on): Add close.
82001         * modules/binary-io-tests (Depends-on): Likewise.
82002         * modules/closein-tests (Depends-on): Likewise.
82003         * modules/flock-tests (Depends-on): Likewise.
82004         * modules/fsync-tests (Depends-on): Likewise.
82005         * modules/lseek-tests (Depends-on): Likewise.
82006         * modules/pipe-tests (Depends-on): Likewise.
82007         * modules/posix_spawn-tests (Depends-on): Likewise.
82008         * modules/posix_spawnp-tests (Depends-on): Likewise.
82009         * modules/stat-time-tests (Depends-on): Likewise.
82010         * modules/yesno-tests (Depends-on): Likewise.
82012 2009-07-19  Bruno Haible  <bruno@clisp.org>
82014         Unify conditionals.
82015         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
82016         macros, not at the compiler macros.
82017         * lib/pipe.c: Likewise.
82018         * lib/execute.c: Likewise.
82019         * lib/spawni.c: Likewise.
82021 2009-07-19  Bruno Haible  <bruno@clisp.org>
82023         Fix handling of closed stdin/stdout/stderr on mingw.
82024         * lib/w32spawn.h: Include unistd.h.
82025         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
82026         file descriptor with O_NOINHERIT flag.
82027         (fd_safer_noinherit): New function, based on fd-safer.c.
82028         (dup_safer_noinherit): New function, based on dup-safer.c.
82029         (undup_safer_noinherit): New function.
82030         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
82031         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
82032         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
82033         instead of fd_safer.
82034         * tests/test-pipe.c: Include <windows.h>.
82035         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
82036         result.
82038         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
82039         from main.
82040         (test_pipe): Pass an extra argument for disambiguation.
82041         (main): Invoke parent_main or child_main.
82043         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
82044         consistently.
82046 2009-07-18  Eric Blake  <ebb9@byu.net>
82048         test-pipe: fix mingw build
82049         * tests/test-pipe.c (main): Avoid fcntl on mingw.
82051 2009-07-18  Bruno Haible  <bruno@clisp.org>
82053         * modules/pipe-tests (Makefile.am): Fix typo.
82055 2009-07-18  Eric Blake  <ebb9@byu.net>
82057         error: fix mingw build
82058         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
82059         Reported by Bruno Haible.
82061         error: avoid undefined use of stdout
82062         * lib/error.c (error, error_at_line): Check that fd 1 is open
82063         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
82064         is handling faults and the close_stdout module wants to report the
82065         detection of closed stdout as an error.
82067 2009-07-17  Eric Blake  <ebb9@byu.net>
82069         pipe: be robust in face of closed fds
82070         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
82071         should cause child to misbehave.
82072         * modules/pipe-tests: New module.
82073         * tests/test-pipe.c: New file.
82074         * tests/test-pipe.sh: New file.
82075         Reported by Akim Demaille.
82077 2009-07-14  Bruno Haible  <bruno@clisp.org>
82079         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
82080         Reported by anonymous kc.
82082 2009-07-07  Jim Meyering  <meyering@redhat.com>
82084         maint.mk: don't look for translatable strings in *.m4 or *.mk
82085         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
82086         when searching for translatable strings.
82088 2009-07-05  Jim Meyering  <meyering@redhat.com>
82090         remove superfluous parentheses in STREQ definition
82091         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
82092         * lib/getugroups.c (STREQ): Likewise.
82093         * lib/fnmatch.c (STREQ): Likewise.
82094         Spotted by Bruno Haible.
82096 2009-07-04  Jim Meyering  <meyering@redhat.com>
82098         argv-iter: new module
82099         * MODULES.html.sh: Add argv-iter.
82100         * lib/argv-iter.c, lib/argv-iter.h: New files.
82101         * modules/argv-iter: New file.
82102         * modules/argv-iter-tests: New file.
82103         * tests/test-argv-iter.c: Test it.
82105 2009-07-04  Bruno Haible  <bruno@clisp.org>
82107         Fix assertion.
82108         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
82109         contains more exact copies of a given entry than file2, leave the extra
82110         copies unpaired rather than aborting.
82111         Reported by Eric Blake.
82113 2009-07-02  Bruno Haible  <bruno@clisp.org>
82115         Speedup git-merge-changelog for git cherry-pick.
82116         * lib/git-merge-changelog.c (struct entries_mapping): New type.
82117         (entries_mapping_get): New function, extracted from compute_mapping.
82118         (entries_mapping_reverse_get): New function.
82119         (compute_mapping): Add a 'full' argument. Return the result in a
82120         'struct entries_mapping'.
82121         (main): Update. Access the mappings through entries_mapping_get.
82122         Reported by Eric Blake.
82124 2009-07-02  Bruno Haible  <bruno@clisp.org>
82126         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
82127         best_i.
82129 2009-07-02  Bruno Haible  <bruno@clisp.org>
82131         Speed up approximate search for matching ChangeLog entries.
82132         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
82133         argument. Call fstrcmp_bounded instead of fstrcmp.
82134         (compute_mapping, try_split_merged_entry, main): Update callers.
82136 2009-07-02  Bruno Haible  <bruno@clisp.org>
82138         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
82140 2009-06-30  Bruno Haible  <bruno@clisp.org>
82142         Reduce the number of uc_is_cased calls.
82143         * lib/unicase.h (casing_suffix_context_t): Add
82144         'first_char_except_ignorable' field.
82145         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
82146         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
82147         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
82148         Update initializer.
82149         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
82150         case-ignorable characters.
82151         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
82152         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
82153         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
82154         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
82155         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
82157 2009-06-30  Bruno Haible  <bruno@clisp.org>
82159         Tests for module 'unicase/ignorable'.
82160         * modules/unicase/ignorable-tests: New file.
82161         * tests/unicase/test-ignorable.c: New file, generated by
82162         gen-uni-tables.
82164         Tests for module 'unicase/cased'.
82165         * modules/unicase/cased-tests: New file.
82166         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
82167         * tests/unicase/test-predicate-part1.h: New file, derived from
82168         tests/unictype/test-predicate-part1.h.
82169         * tests/unicase/test-predicate-part2.h: New file, same as
82170         tests/unictype/test-predicate-part2.h.
82172         Fix evaluation of "Before C" condition of FINAL_SIGMA.
82173         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
82174         (output_casing_properties): New function.
82175         (main): Call it.
82176         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
82177         * lib/unicase/cased.c: Include unictype/bitmap.h.
82178         (uc_is_cased): Define through a bitmap lookup.
82179         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
82180         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
82181         (uc_is_case_ignorable): Define through a bitmap lookup.
82182         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
82183         lib/unictype/bitmap.h.
82184         (Depends-on): Add inline. Clean up.
82185         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
82186         lib/unictype/bitmap.h.
82187         (Depends-on): Add inline. Clean up.
82188         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
82189         recognition.
82190         * tests/unicase/test-u16-tolower.c (main): Likewise.
82191         * tests/unicase/test-u32-tolower.c (main): Likewise.
82193 2009-06-30  Bruno Haible  <bruno@clisp.org>
82195         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
82196         * lib/unicase/u16-casemap.c: Likewise.
82197         * lib/unicase/u32-casemap.c: Likewise.
82199 2009-06-29  Bruno Haible  <bruno@clisp.org>
82201         Define u32_casefold as a wrapper around u32_ct_casefold.
82202         * lib/unicase/u32-casefold.c: Update.
82203         * modules/unicase/u32-casefold (Depends-on): Add
82204         unicase/u32-ct-casefold, unicase/empty-prefix-context,
82205         unicase/empty-suffix-context. Clean up.
82207         Define u16_casefold as a wrapper around u16_ct_casefold.
82208         * lib/unicase/u16-casefold.c: Update.
82209         * modules/unicase/u16-casefold (Depends-on): Add
82210         unicase/u16-ct-casefold, unicase/empty-prefix-context,
82211         unicase/empty-suffix-context. Clean up.
82213         Define u8_casefold as a wrapper around u8_ct_casefold.
82214         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
82215         * lib/unicase/u8-casefold.c: Update.
82216         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
82217         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82219         Define u32_totitle as a wrapper around u32_ct_totitle.
82220         * lib/unicase/u32-totitle.c: Update.
82221         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
82222         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82224         Define u16_totitle as a wrapper around u16_ct_totitle.
82225         * lib/unicase/u16-totitle.c: Update.
82226         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
82227         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82229         Define u8_totitle as a wrapper around u8_ct_totitle.
82230         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
82231         functions.
82232         (FUNC): Delegate to U_CT_TOTITLE.
82233         * lib/unicase/u8-totitle.c: Update.
82234         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
82235         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82237         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
82238         invocation.
82239         * modules/unicase/u32-tolower (Depends-on): Add
82240         unicase/empty-prefix-context, unicase/empty-suffix-context.
82242         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
82243         invocation.
82244         * modules/unicase/u16-tolower (Depends-on): Add
82245         unicase/empty-prefix-context, unicase/empty-suffix-context.
82247         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
82248         * modules/unicase/u8-tolower (Depends-on): Add
82249         unicase/empty-prefix-context, unicase/empty-suffix-context.
82251         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
82252         invocation.
82253         * modules/unicase/u32-toupper (Depends-on): Add
82254         unicase/empty-prefix-context, unicase/empty-suffix-context.
82256         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
82257         invocation.
82258         * modules/unicase/u16-toupper (Depends-on): Add
82259         unicase/empty-prefix-context, unicase/empty-suffix-context.
82261         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
82262         * modules/unicase/u8-toupper (Depends-on): Add
82263         unicase/empty-prefix-context, unicase/empty-suffix-context.
82265         New module 'unicase/u32-ct-casefold'.
82266         * lib/unicase/u32-ct-casefold.c: New file.
82267         * modules/unicase/u32-ct-casefold: New file.
82269         New module 'unicase/u16-ct-casefold'.
82270         * lib/unicase/u16-ct-casefold.c: New file.
82271         * modules/unicase/u16-ct-casefold: New file.
82273         New module 'unicase/u8-ct-casefold'.
82274         * lib/unicase/u8-ct-casefold.c: New file.
82275         * lib/unicase/u-ct-casefold.h: New file, derived from
82276         lib/unicase/u-casefold.h.
82277         * modules/unicase/u8-ct-casefold: New file.
82279         New module 'unicase/u32-ct-totitle'.
82280         * lib/unicase/u32-ct-totitle.c: New file.
82281         * modules/unicase/u32-ct-totitle: New file.
82283         New module 'unicase/u16-ct-totitle'.
82284         * lib/unicase/u16-ct-totitle.c: New file.
82285         * modules/unicase/u16-ct-totitle: New file.
82287         New module 'unicase/u8-ct-totitle'.
82288         * lib/unicase/u8-ct-totitle.c: New file.
82289         * lib/unicase/u-ct-totitle.h: New file, derived from
82290         lib/unicase/u-totitle.h.
82291         * modules/unicase/u8-ct-totitle: New file.
82293         New module 'unicase/u32-ct-tolower'.
82294         * lib/unicase/u32-ct-tolower.c: New file.
82295         * modules/unicase/u32-ct-tolower: New file.
82297         New module 'unicase/u16-ct-tolower'.
82298         * lib/unicase/u16-ct-tolower.c: New file.
82299         * modules/unicase/u16-ct-tolower: New file.
82301         New module 'unicase/u8-ct-tolower'.
82302         * lib/unicase/u8-ct-tolower.c: New file.
82303         * modules/unicase/u8-ct-tolower: New file.
82305         New module 'unicase/u32-ct-toupper'.
82306         * lib/unicase/u32-ct-toupper.c: New file.
82307         * modules/unicase/u32-ct-toupper: New file.
82309         New module 'unicase/u16-ct-toupper'.
82310         * lib/unicase/u16-ct-toupper.c: New file.
82311         * modules/unicase/u16-ct-toupper: New file.
82313         New module 'unicase/u8-ct-toupper'.
82314         * lib/unicase/u8-ct-toupper.c: New file.
82315         * modules/unicase/u8-ct-toupper: New file.
82317         Add context arguments to u*_casemap functions.
82318         * lib/unicase/unicasemap.h: Include unicase.h.
82319         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
82320         suffix_context arguments.
82321         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
82322         functions.
82323         (FUNC): Add prefix_context and suffix_context arguments. Use
82324         uc_is_cased and uc_is_case_ignorable.
82325         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
82326         * lib/unicase/u16-casemap.c: Likewise.
82327         * lib/unicase/u32-casemap.c: Likewise.
82328         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
82329         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82330         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
82331         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82332         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
82333         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82335         New module 'unicase/u32-suffix-context'.
82336         * lib/unicase/u32-suffix-context.c: New file.
82337         * modules/unicase/u32-suffix-context: New file.
82339         New module 'unicase/u16-suffix-context'.
82340         * lib/unicase/u16-suffix-context.c: New file.
82341         * modules/unicase/u16-suffix-context: New file.
82343         New module 'unicase/u8-suffix-context'.
82344         * lib/unicase/u8-suffix-context.c: New file.
82345         * lib/unicase/u-suffix-context.h: New file.
82346         * modules/unicase/u8-suffix-context: New file.
82348         New module 'unicase/empty-suffix-context'.
82349         * lib/unicase/empty-suffix-context.c: New file.
82350         * modules/unicase/empty-suffix-context: New file.
82352         New module 'unicase/u32-prefix-context'.
82353         * lib/unicase/u32-prefix-context.c: New file.
82354         * modules/unicase/u32-prefix-context: New file.
82356         New module 'unicase/u16-prefix-context'.
82357         * lib/unicase/u16-prefix-context.c: New file.
82358         * modules/unicase/u16-prefix-context: New file.
82360         New module 'unicase/u8-prefix-context'.
82361         * lib/unicase/u8-prefix-context.c: New file.
82362         * lib/unicase/u-prefix-context.h: New file.
82363         * lib/unicase/context.h: New file.
82364         * modules/unicase/u8-prefix-context: New file.
82366         New module 'unicase/empty-prefix-context'.
82367         * lib/unicase/empty-prefix-context.c: New file.
82368         * modules/unicase/empty-prefix-context: New file.
82370         New module 'unicase/ignorable'.
82371         * lib/unicase/ignorable.c: New file.
82372         * modules/unicase/ignorable: New file.
82374         New module 'unicase/cased'.
82375         * lib/unicase/caseprop.h: New file.
82376         * lib/unicase/cased.c: New file.
82377         * modules/unicase/cased: New file.
82379         New functions for case mapping of substrings.
82380         * lib/unicase.h (casing_prefix_context_t): New type.
82381         (unicase_empty_prefix_context): New variable.
82382         (u8_casing_prefix_context, u16_casing_prefix_context,
82383         u32_casing_prefix_context, u8_casing_prefixes_context,
82384         u16_casing_prefixes_context, u32_casing_prefixes_context): New
82385         declarations.
82386         (casing_suffix_context_t): New type.
82387         (unicase_empty_suffix_context): New variable.
82388         (u8_casing_suffix_context, u16_casing_suffix_context,
82389         u32_casing_suffix_context, u8_casing_suffixes_context,
82390         u16_casing_suffixes_context, u32_casing_suffixes_context,
82391         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
82392         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
82393         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
82394         declarations.
82396 2009-06-28  Jim Meyering  <meyering@redhat.com>
82398         boostrap: indent only with spaces
82399         * build-aux/bootstrap: Indent only with spaces, never TABs.
82401         bootstrap: split long lines
82402         * build-aux/bootstrap: Keep line length < 80.
82404         bootstrap: sync from coreutils
82405         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
82406         just as autoreconf does.  Verify a list of prerequisite
82407         package-name,version-number pairs if defined in bootstrap.conf.
82408         Refer to README-prereq, if prerequisites are not satisfied.
82410 2009-06-27  Eric Blake  <ebb9@byu.net>
82412         tests: add test for bogus NULL definition
82413         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
82414         * tests/test-stdlib.c: Likewise.
82415         * tests/test-string.c: Likewise.
82416         * tests/test-locale.c: Likewise.
82417         * tests/test-unistd.c: Likewise.
82418         * modules/stdio-tests (Depends-on): Add verify.
82419         * modules/stdlib-tests (Depends-on): Likewise.
82420         * modules/string-tests (Depends-on): Likewise.
82421         * modules/locale-tests (Depends-on): Likewise.
82422         * modules/unistd-tests (Depends-on): Likewise.
82424 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
82426         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
82427         self-explaining comment.
82428         * m4/selinux-selinux-h: Update serial.
82429         (gl_LIBSELINUX): New macro, adding a warning for missing development
82430         packages to code extracted from...
82431         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
82432         Add warning for missing development packages here, too.
82434 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
82436         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
82438 2009-06-25  Eric Blake  <ebb9@byu.net>
82440         version-etc: fix regression
82441         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
82442         gcc.
82443         (version_etc): Use it, to catch bugs with trailing NULL.
82444         * lib/version-etc.c (version_etc_arn): Delete unused argument.
82445         (version_etc_va): Fix logic bug.
82446         * modules/version-etc-tests: Add test.
82447         * tests/test-version-etc.c: New file.
82448         * tests/test-version-etc.sh: Likewise.
82450 2009-06-25  Sam Steingold  <sds@gnu.org>
82452         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
82453         mbtowc declaration.
82455 2009-06-25  Eric Blake  <ebb9@byu.net>
82457         fpurge: migrate into <stdio.h>
82458         * lib/fpurge.h: Delete...
82459         * lib/stdio.in.h (fpurge): ...and declare here, instead.
82460         * lib/fpurge.c (fpurge): Change declaring header.
82461         * modules/fpurge (Files): Drop deleted file.
82462         (Depends-on): Add stdio.
82463         (configure.ac): Set witness.
82464         * modules/stdio (Makefile.am): Support fpurge macros.
82465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82466         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
82467         * lib/fflush.c: Update client.
82468         * tests/test-fpurge.c: Likewise.
82469         * NEWS: Mention the change.
82471 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82473         * lib/argp-version-etc.c (program_authors): Add const
82474         qualifier.
82475         * lib/version-etc.c: Fix typos in the comments.
82476         * modules/argp-version-etc: Depends on version-etc.
82478 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82480         argp-version-etc: new module.
82482         * lib/argp-version-etc.c: New file.
82483         * lib/argp-version-etc.h: New file.
82484         * modules/argp-version-etc: New file.
82485         * modules/argp-version-etc-tests: New file.
82486         * tests/test-argp-version-etc.c: New test.
82487         * tests/test-argp-version-etc-1.sh: New test.
82489 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82491         Provide additional interfaces and documentation for version-etc
82492         module.
82494         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
82495         interfaces.
82496         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
82497         prototypes.
82499 2009-06-24  Bruno Haible  <bruno@clisp.org>
82501         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
82502         HAVE_LIB${NAME} macro.
82503         Reported by Sam Steingold <sds@gnu.org>.
82505 2009-06-23  Simon Josefsson  <simon@josefsson.org>
82507         * modules/hash-tests (test_hash_LDADD): Link to libintl when
82508         needed.
82510 2009-06-21  Bruno Haible  <bruno@clisp.org>
82512         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
82513         work.
82514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
82515         together with LIB${NAME}, LTLIB${NAME}.
82516         Reported by Sam Steingold <sds@gnu.org>.
82518 2009-06-20  Jim Meyering  <meyering@redhat.com>
82520         tests: make sc_require_test_exit_idiom more generic
82521         * top/maint.mk (Exit_witness_file): New overridable variable.
82522         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
82523         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
82525 2009-06-19  Jim Meyering  <meyering@redhat.com>
82527         hash: reverse order of src/dst parameters in an internal interface
82528         * lib/hash.c (transfer_entries): Reverse order of parameters to
82529         put DST before SRC.  Adjust callers.
82531         tests: test-hash: avoid wholesale duplication
82532         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
82533         Instead, use a loop and add a single conditional.
82535         tests: test-hash: allow seed selection via a command line argument
82536         * tests/test-hash.c (get_seed): New function.
82537         (main): Use it.
82539 2009-06-19  Eric Blake  <ebb9@byu.net>
82541         hash: avoid memory leak on allocation failure
82542         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
82543         failure.  Factor repeated algorithm...
82544         (transfer_entries): ...into new helper routine.
82545         (hash_delete): React to hash_rehash return value.
82547         hash: reduce memory pressure in hash_rehash no-op case
82548         * lib/hash.c (next_prime): Avoid overflow.
82549         (hash_initialize): Factor bucket size computation...
82550         (compute_bucket_size): ...into new helper function.
82551         (hash_rehash): Use new function and open coding to reduce memory
82552         pressure, and avoid a memory leak in USE_OBSTACK code.
82553         Reported by Jim Meyering.
82555 2009-06-18  Eric Blake  <ebb9@byu.net>
82557         hash: make rotation more obvious
82558         * modules/hash (Depends-on): Add bitrotate and stdint.
82559         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
82560         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
82561         (SIZE_MAX): Rely on headers for definition.
82562         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
82563         (raw_hasher): Use rotr_sz.
82564         Suggested by Jim Meyering.
82566         hash: fix memory leak in last patch
82567         * lib/hash.c (hash_rehash): Avoid memory leak.
82569         hash: avoid no-op rehashing
82570         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
82572         hash: provide default callback functions
82573         * lib/hash.c (raw_hasher, raw_comparator): New functions.
82574         (hash_initialize): Use them as defaults.
82575         * tests/test-hash.c (main): Test this.
82577         hash: minor optimization
82578         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
82579         when possible.
82580         (hash_initialize): Document this promise.
82581         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
82582         * tests/test-hash.c (hash_compare_strings): Test this.
82584 2009-06-18  Bruno Haible  <bruno@clisp.org>
82586         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
82587         going to be replaced anyway.
82589 2009-06-18  Bruno Haible  <bruno@clisp.org>
82591         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
82592         in one place.
82593         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
82594         be replaced anyway.
82596 2009-06-18  Eric Blake  <ebb9@byu.net>
82598         hash: check for resize before insertion
82599         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
82600         threshold before insertion, so that a pathological hash_rehash
82601         that fills every bucket can still trigger another rehash.
82603 2009-06-18  Jim Meyering  <meyering@redhat.com>
82605         hash-tests: add a loop around the small tests
82606         * tests/test-hash.c (main): Repeat small tests with selected
82607         small initial table sizes.
82609 2009-06-17  Eric Blake  <ebb9@byu.net>
82611         hash: minor cleanups
82612         * lib/hash.h (hash_entry): Make opaque, by moving...
82613         * lib/hash.c (hash_entry): ...here.
82614         (hash_insert): Clarify restrictions on what can be inserted.
82615         (hash_get_next): Clarify when it is safe to remove an element
82616         during traversal.
82617         (check_tuning): Skip verification when tuning is known safe.
82618         (hash_initialize): Clarify restrictions on tuning.
82620 2009-06-17  Jim Meyering  <jim@meyering.net>
82621         and Eric Blake  <ebb9@byu.net>
82623         hash-tests: new module
82624         * modules/hash-tests: New file.
82625         * tests/test-hash.c: New file.
82627 2009-06-17  Eric Blake  <ebb9@byu.net>
82629         strstr-simple: document new module
82630         * MODULES.html.sh: Document new module.
82632         strstr, strcasestr: replace on platforms with broken memchr
82633         * modules/strstr: Split into...
82634         * modules/strstr-simple: ...new module that does not care about
82635         performance, but does care about glibc bug.
82636         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
82637         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
82638         if platform memchr is broken, per Debian bug 521737.
82639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
82640         memchr.
82641         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
82642         * doc/posix-functions/strstr.texi (strstr): Document the fix.
82643         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
82644         * modules/mountlist (Depends-on): Add strstr-simple.
82645         * modules/gen-uni-tables (Depends-on): Likewise.
82646         * modules/argz (Depends-on): Add strstr.
82648 2009-06-17  Bruno Haible  <bruno@clisp.org>
82650         * modules/posix_spawn-internal (Depends-on): Add errno.
82652 2009-06-17  Bruno Haible  <bruno@clisp.org>
82654         Define missing ESTALE on Interix 3.5.
82655         * lib/errno.in.h (ESTALE): Assign a value if missing.
82656         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
82657         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
82658         missing.
82659         * doc/posix-headers/errno.texi: Mention the Interix bug.
82660         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
82662 2009-06-15  Eric Blake  <ebb9@byu.net>
82664         memchr, memchr2: add valgrind exception
82665         * lib/memchr.valgrind: New file.
82666         * lib/memchr2.valgrind: New file.
82667         * modules/memchr (Files): Distribute valgrind file.
82668         * modules/memchr2 (Files): Likewise.
82670         docs: memchr is no longer obsolete
82671         * MODULES.html.sh: Move memchr from obsolete to string.h section.
82672         * lib/string.in.h (memchr): Simplify logic.
82674 2009-06-14  Jim Meyering  <meyering@redhat.com>
82676         link-follow: fix the "checking..." message to not mention trailing slash
82677         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
82678         never considered trailing slashes.
82680 2009-06-14  Bruno Haible  <bruno@clisp.org>
82682         * m4/memchr.m4: Mention also the bug on IA-64.
82683         * doc/posix-functions/memchr.texi: Likewise.
82685 2009-06-12  Eric Blake  <ebb9@byu.net>
82687         memchr: detect broken x86_64 and alpha implementations
82688         * modules/memchr-tests (Depends-on): Move mmap detection...
82689         * modules/memchr (Depends-on): ...here.
82690         (configure.ac): Set indicator.
82691         * lib/string.in.h (memchr): Declare replacement.
82692         * modules/string (Makefile.am): Trigger replacement.
82693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
82694         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
82695         bugs.
82696         * doc/posix-functions/memchr.texi (memchr): Document the bug.
82697         * modules/getpagesize (License): Relax license.
82699 2009-06-11  Bruno Haible  <bruno@clisp.org>
82701         * lib/idpriv.h: Add more references.
82703 2009-06-08  Bruno Haible  <bruno@clisp.org>
82705         Tests for module 'idpriv-droptemp'.
82706         * modules/idpriv-droptemp-tests: New file.
82707         * tests/test-idpriv-droptemp.sh: New file.
82708         * tests/test-idpriv-droptemp.su.sh: New file.
82709         * tests/test-idpriv-droptemp.c: New file.
82711         New module 'idpriv-droptemp'.
82712         * lib/idpriv-droptemp.c: New file.
82713         * modules/idpriv-droptemp: New file.
82715 2009-06-08  Bruno Haible  <bruno@clisp.org>
82717         Tests for module 'idpriv-drop'.
82718         * modules/idpriv-drop-tests: New file.
82719         * tests/test-idpriv-drop.sh: New file.
82720         * tests/test-idpriv-drop.su.sh: New file.
82721         * tests/test-idpriv-drop.c: New file.
82723         New module 'idpriv-drop'.
82724         * lib/idpriv.h: New file.
82725         * lib-idpriv-drop.c: New file.
82726         * m4/idpriv.m4: New file.
82727         * modules/idpriv-drop: New file.
82729 2009-06-08  Bruno Haible  <bruno@clisp.org>
82731         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
82732         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82733         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82734         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82735         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82736         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82737         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82739 2009-06-08  Eric Blake  <ebb9@byu.net>
82741         test-strstr: use memory fence, when possible
82742         * tests/test-strstr.c (main): Use memory fence, in order to be
82743         more likely to trigger Debian bug 521737.
82744         * modules/strstr-tests (Files): Pull in additional files.
82746         memchr: no longer obsolete, for wider field testing
82747         * modules/memchr (Status, Notice): Delete, this module is no
82748         longer obsolete.
82749         * modules/vasnprintf (Depends-on): Add memchr.
82751 2009-06-07  Jim Meyering  <meyering@redhat.com>
82753         hash: declare some functions with the warn_unused_result attribute
82754         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
82756 2009-06-07  Bruno Haible  <bruno@clisp.org>
82758         * tests/test-alignof.c: Don't test int64_t if it does not exist.
82759         Reported by Eric Blake.
82761 2009-06-06  Eric Blake  <ebb9@byu.net>
82763         test-alignof: fix typo with long double
82764         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
82765         compiler error.
82767 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
82769         Escape non-texinfo { and }s.
82770         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
82771         markup error.
82773 2009-06-04  Jim Meyering  <meyering@redhat.com>
82775         gitlog-to-changelog: don't infloop on an empty commit log
82776         * build-aux/gitlog-to-changelog: Warn about an empty log message.
82777         Reported by Boris Petersen <transacid@centerim.org>.
82779 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
82781         version-etc: extend for packagers
82782         Add three new configure options, intended for packagers:
82783           --with-packager="packager name"
82784           --with-packager-version="packager-specific version"
82785           --with-packager-bug-reports="packager bug reporting"
82786         An example with coreutils:
82787           $ ./configure \
82788             --with-packager=Gentoo \
82789             --with-packager-bug-report=http://bugs.gentoo.org/ \
82790             --with-packager-version="patchset 1.6"
82791           $ ./src/ls --version | head -n2
82792           ls (GNU coreutils) 7.1-dirty
82793           Packaged by Gentoo (patchset 1.6)
82794         Note that the bug reporting info via --help doesn't show up because
82795         coreutils uses its own custom emit_bug_reporting_address() implementation
82796         in src/system.h.  If it didn't, it'd look like:
82797           $ ./src/ls --help | tail -n4
82798           Report bugs to <bug-coreutils@gnu.org>.
82799           Report Gentoo bugs to <http://bugs.gentoo.org/>.
82800           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
82801           General help using GNU software: <http://www.gnu.org/gethelp/>.
82802         * lib/version-etc.c: Print new information, if provided.
82803         * m4/version-etc.m4: New file.
82804         * modules/version-etc (Files): Add m4/version-etc.m4.
82805         (configure.ac): Add gl_VERSION_ETC.
82807 2009-05-31  Bruno Haible  <bruno@clisp.org>
82809         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
82810         and 'int64_t'.
82811         * modules/alignof-tests (Dependencies): Add stdint.
82812         Reported by Eric Blake.
82814 2009-05-31  Bruno Haible  <bruno@clisp.org>
82816         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
82817         restriction due to compiler bugs.
82818         Reported by Eric Blake.
82820 2009-05-31  Simon Josefsson  <simon@josefsson.org>
82821             Bruno Haible  <bruno@clisp.org>
82823         Fix test-alignof failure.
82824         * lib/alignof.h (alignof_slot): New macro.
82825         (alignof_type): New macro, with the same semantics as the previous
82826         'alignof'.
82827         (alignof): Alias to alignof_slot.
82828         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
82829         check that the results are usable as constant expressions.
82831 2009-05-31  Bruno Haible  <bruno@clisp.org>
82833         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
82834         * tests/test-memchr.c (main): Check that memchr does not read past the
82835         first occurrence of the byte.
82836         * tests/test-strstr.c (main): Update comment.
82837         Suggested by Eric Blake.
82839 2009-05-30  Bruno Haible  <bruno@clisp.org>
82841         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
82842         detail how to use dumpbin.
82843         Reported by David Byron <dbyron@dbyron.com>.
82845 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82847         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
82849 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82851         * m4/manywarnings.m4: Add GCC 4.4 warnings.
82853 2009-05-28  Bruno Haible  <bruno@clisp.org>
82855         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
82856         build-aux/ files.
82858 2009-05-28  Simon Josefsson  <simon@josefsson.org>
82860         * gnulib-tool (func_import): Transform license on build-aux/ files too.
82862 2009-05-27  Simon Josefsson  <simon@josefsson.org>
82864         * gnulib-tool (sed_transform_main_lib_file)
82865         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
82866         regexps.
82868 2009-05-26  Simon Josefsson  <simon@josefsson.org>
82870         * tests/test-strstr.c: Add another self-test.
82871         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
82872         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
82874 2009-05-23  Bruno Haible  <bruno@clisp.org>
82876         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
82877         change.
82879 2009-05-21  Bruno Haible  <bruno@clisp.org>
82881         Simplify use of mode_t varargs.
82882         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
82883         uses 'mode_t' or 'int'.
82884         * lib/openat.c (openat): Likewise.
82885         * lib/open-safer.c (open_safer): Likewise.
82886         * m4/mode_t.m4: New file.
82887         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
82888         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
82889         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
82890         * modules/open (Files): Add m4/mode_t.m4.
82891         * modules/openat (Files): Likewise.
82892         * modules/fcntl-safer (Files): Likewise.
82893         Suggested by Eric Blake.
82895 2009-05-21  Pádraig Brady  <P@draigbrady.com>
82897         * doc/glibc-functions/fallocate.texi: New file.
82898         * doc/gnulib.texi: Include it.
82900 2009-05-21  Eric Blake  <ebb9@byu.net>
82901             Bruno Haible  <bruno@clisp.org>
82903         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
82904         invocations.
82905         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
82907 2009-05-21  Eric Blake  <ebb9@byu.net>
82908             Bruno Haible  <bruno@clisp.org>
82910         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
82911         include_next. Fix of 2008-11-20 commit.
82912         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
82913         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
82914         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
82915         NEXT_MATH_H.
82916         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
82917         instead of NEXT_MATH_H.
82919 2009-05-21  Bruno Haible  <bruno@clisp.org>
82921         Avoid redefinition warnings for SIZE_MAX.
82922         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
82923         Reported by Simon Josefsson.
82925 2009-05-21  Bruno Haible  <bruno@clisp.org>
82927         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
82928         AC_CACHE_VAL.
82930 2009-05-20  Bruno Haible  <bruno@clisp.org>
82932         Make zeroptr.h work on mingw.
82933         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
82934         mprotect.
82935         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
82936         * modules/memchr2-tests (configure.ac): Likewise.
82937         * modules/memcmp-tests (configure.ac): Likewise.
82938         * modules/memmem-tests (configure.ac): Likewise.
82939         * modules/memrchr-tests (configure.ac): Likewise.
82940         Reported by Simon Josefsson.
82942 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82944         * tests/test-glob.c: Include string.h for strcmp prototype.
82946 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82948         * modules/getdelim (Depends-on): Add explicit stdint, although it
82949         was implicitly already pulled in via realloc-posix.
82950         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
82952 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82954         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
82955         G. Christensen" <tgc@jupiterrise.com>.
82956         * m4/sys_socket_h.m4: Check for sa_family_t.
82957         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
82958         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
82959         * tests/test-sys_socket.c: Check that sa_family_t works.
82961 2009-05-18  Eric Blake  <ebb9@byu.net>
82963         maint.mk: allow gnulib_dir in VPATH build
82964         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
82966 2009-05-15  Jim Meyering  <meyering@redhat.com>
82968         maint.mk: Give gnulib_dir a default definition.
82969         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
82970         Thus, most packages no longer need to specify this variable in cfg.mk
82972 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
82974         rename.m4: fix typos that would make non-mingw cross-configure fail
82975         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
82977 2009-05-13  Eric Blake  <ebb9@byu.net>
82979         mmap-anon: avoid out-of-order autoconf expansion
82980         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
82981         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
82982         * modules/memchr-tests (Depends-on): Add extensions.
82983         * modules/memchr2-tests (Depends-on): Add extensions.
82984         * modules/memcmp-tests (Depends-on): Add extensions.
82985         * modules/memmem-tests (Depends-on): Add extensions.
82986         * modules/memrchr-tests (Depends-on): Add extensions.
82988 2009-05-13  Bruno Haible  <bruno@clisp.org>
82990         Make some tests ISO C 99 compliant.
82991         * tests/zerosize-ptr.h: New file.
82992         * tests/test-memchr.c: Include zerosize-ptr.h.
82993         (main): Use a zero-size object pointer instead of NULL.
82994         * tests/test-memchr2.c: Include zerosize-ptr.h.
82995         (main): Use a zero-size object pointer instead of NULL.
82996         * tests/test-memcmp.c: Include zerosize-ptr.h.
82997         (main): Use a zero-size object pointer instead of NULL.
82998         * tests/test-memmem.c: Include zerosize-ptr.h.
82999         (main): Use a zero-size object pointer instead of NULL.
83000         * tests/test-memrchr.c: Include zerosize-ptr.h.
83001         (main): Use a zero-size object pointer instead of NULL.
83002         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
83003         m4/mmap-anon.m4.
83004         (Depends-on): Add getpagesize.
83005         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83006         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
83007         m4/mmap-anon.m4.
83008         (Depends-on): Add getpagesize.
83009         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83010         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
83011         m4/mmap-anon.m4.
83012         (Depends-on): Add getpagesize.
83013         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83014         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
83015         m4/mmap-anon.m4.
83016         (Depends-on): Add getpagesize.
83017         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83018         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
83019         m4/mmap-anon.m4.
83020         (Depends-on): Add getpagesize.
83021         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83023 2009-05-12  Bruno Haible  <bruno@clisp.org>
83025         Tests for module 'alignof'.
83026         * modules/alignof-tests: New file.
83027         * tests/test-alignof.c: New file.
83029 2009-05-12  Bruno Haible  <bruno@clisp.org>
83031         Fix alignof macro.
83032         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
83033         vendor compilers that are always correct.
83035 2009-05-12  Bruno Haible  <bruno@clisp.org>
83037         Make the MAP_ANONYMOUS detection work on HP-UX 11.
83038         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
83039         not whether its fully works.
83041 2009-05-12  Bruno Haible  <bruno@clisp.org>
83043         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
83045 2009-05-12  Jim Meyering  <meyering@redhat.com>
83047         * top/maint.mk: Adjust backslash alignment.
83049 2009-05-11  Simon Josefsson  <simon@josefsson.org>
83051         * top/maint.mk: Make $(srcdir)/build-aux configurable.
83053 2009-05-11  Eric Blake  <ebb9@byu.net>
83055         argp: avoid undefined behavior
83056         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
83057         macros.
83059 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83061         * tests/test-vc-list-files-git.sh: Do git config of user.email and
83062         user.name to prevent git commit from complaining.
83064 2009-05-10  Bruno Haible  <bruno@clisp.org>
83066         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
83067         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
83068         it rewrites every file name only once.
83069         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
83071 2009-05-08  Bruno Haible  <bruno@clisp.org>
83073         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
83074         instead of 'max'.
83076 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83078         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
83079         sockaddr_storage test.
83081 2009-05-07  Simon Josefsson  <simon@josefsson.org>
83083         * modules/sys_socket (Makefile.am): Substitute
83084         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
83085         * m4/sys_socket_h.m4: Check for sockaddr_storage.
83086         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
83087         * tests/test-sys_socket.c: Check sockaddr_storage.
83089 2009-05-08  Bruno Haible  <bruno@clisp.org>
83091         New module 'alignof'.
83092         * lib/alignof.h: New file.
83093         * modules/alignof: New file.
83095 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83096             Bruno Haible  <bruno@clisp.org>
83098         Fix test-file-has-acl on FreeBSD.
83099         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
83100         mask is implicitly added.
83101         * tests/test-file-has-acl.c: Include <signal.h>.
83102         (main): Terminate the test after 5 seconds.
83103         * modules/acl-tests (configure.ac): Check for alarm function.
83105 2009-05-04  Bruno Haible  <bruno@clisp.org>
83107         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
83108         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
83109         * modules/errno (configure.ac): Drop AC_REQUIRE.
83110         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
83111         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
83113 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83115         * modules/glob-tests: New module.
83116         * tests/test-glob.c: Add.
83118 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83120         * modules/fnmatch-tests: New module.
83121         * tests/test-fnmatch.c: Add.
83123 2009-05-04  Eric Blake  <ebb9@byu.net>
83125         maint: make the new no-submodule-changes rule VPATH-safe
83126         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
83128 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83129             Bruno Haible  <bruno@clisp.org>
83131         acl: Fix infinite loop on FreeBSD.
83132         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
83133         of return value from acl_get_entry.
83134         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
83135         Likewise.
83137 2009-05-03  Bruno Haible  <bruno@clisp.org>
83139         * lib/acl-internal.h (acl_entries): Clarify return value.
83140         * lib/acl_entries.c (acl_entries): Likewise.
83142 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83144         Bug fix in acl module.
83145         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
83147 2009-05-03  Bruno Haible  <bruno@clisp.org>
83149         Create gperf-generated file in the source dir, not in the build dir.
83150         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
83151         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
83152         * modules/unicase/locale-language (unicase/locale-languages.h):
83153         Likewise.
83154         * modules/unicase/special-casing (unicase/special-casing-table.h):
83155         Likewise.
83156         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
83157         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
83158         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
83159         Reported by Ralf Wildenhues.
83161 2009-05-03  Bruno Haible  <bruno@clisp.org>
83163         * modules/fnmatch (Description, configure.ac): Taken from
83164         fnmatch-posix.
83165         * modules/fnmatch-posix: Turn into a symbolic reference to the
83166         'fnmatch' module, and deprecate.
83167         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
83169 2009-05-03  Bruno Haible  <bruno@clisp.org>
83171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
83172         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
83173         Reported by Ralf Wildenhues.
83175 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83177         * m4/fnmatch.m4: Fix fnmatch re-define.
83179 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83181         priv-set: new module and tests; adapt write-any-file
83182         * lib/priv-set.c: New file.
83183         * lib/priv-set.h: New file.
83184         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
83185         * lib/write-any-file.c: Simplify by using priv-set module.
83186         * m4/priv-set.m4: New file.
83187         * modules/priv-set: New file.
83188         * modules/unlinkdir: Add dependency on priv-set module.
83189         * modules/write-any-file: Likewise.
83191         Tests for module 'priv-set'.
83192         * modules/priv-set-tests: New file.
83193         * tests/test-priv-set.c: New file.
83195 2009-05-03  Jim Meyering  <meyering@redhat.com>
83196             Bruno Haible  <bruno@clisp.org>
83198         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
83199         use the converted UTF-8 variant of the name instead.
83201 2009-05-03  Jim Meyering  <meyering@redhat.com>
83203         tests: tighten some getdate tests
83204         * tests/test-getdate.c (main): Tighten tests: require equality,
83205         not just greater than.  Set TZ envvar to UTC0.
83207 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
83209         getdate: correctly interpret "next monday" when run on a Monday
83210         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
83211         that e.g., "next tues" (when run on a tuesday) results in a date
83212         that is one week in the future, and not today's date.
83213         I.e., add a week when the wday is the same as the current one.
83214         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
83215         and earlier by Martin Bernreuther and Jan Minář.
83216         * tests/test-getdate.c (main): Check that "next DAY" is always in
83217         the future and that "last DAY" is always in the past.
83219 2009-05-02  Jim Meyering  <meyering@redhat.com>
83221         build: ensure that a release build fails when a submodule is unclean
83222         * top/maint.mk (no-submodule-changes): New rule.
83223         (alpha beta major): Depend on it.
83225 2009-05-02  Bruno Haible  <bruno@clisp.org>
83227         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
83228         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
83229         shell variable gl_fnmatch_required to detect which variant is
83230         requested.
83231         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
83232         gl_FUNC_FNMATCH_POSIX.
83233         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
83234         exclude fnmatch-posix.
83236 2009-05-02  Bruno Haible  <bruno@clisp.org>
83238         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
83239         * modules/mbsrtowcs (License): Change to LGPLv2+.
83240         * modules/strnlen1 (License): Likewise.
83241         Reported by Simon Josefsson.
83243 2009-05-02  Bruno Haible  <bruno@clisp.org>
83245         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
83246         "cross".
83247         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
83248         gnulib-tool was called with option --source-base=lib.
83250 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83252         Use automake *-local hooks without commands, for extensibility.
83253         * modules/localcharset (Makefile.am): Rename install-exec-local
83254         rule to install-exec-localcharset, and make it a prerequisite of
83255         install-exec-local.  Likewise, rename the uninstall-local rule to
83256         uninstall-localcharset, and make it a prerequisite of the former.
83258 2009-05-01  Bruno Haible  <bruno@clisp.org>
83260         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
83261         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83262         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
83263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
83264         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
83265         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83266         m4/locale-zh.m4, m4/codeset.m4.
83268         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83269         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
83270         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83271         m4/locale-zh.m4.
83273         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
83274         REPLACE_WCRTOMB if mbstate_t must be replaced.
83275         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
83276         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
83278 2009-05-01  Bruno Haible  <bruno@clisp.org>
83280         Avoid compiler warnings when redefining macros defined by <libintl.h>.
83281         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
83282         dngettext, dcngettext, textdomain, bindtextdomain,
83283         bind_textdomain_codeset): Undefine before redefining.
83285 2009-04-30  Bruno Haible  <bruno@clisp.org>
83287         Fix bug introduced on 2009-04-25.
83288         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
83289         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
83290         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
83291         is defined.
83292         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
83293         is defined.
83294         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
83295         is defined.
83296         Reported by Elbert_Pol <elbert.pol@gmail.com>.
83298 2009-04-28  Bruno Haible  <bruno@clisp.org>
83300         Comment tweaks.
83301         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
83302         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
83303         * lib/unicase.h (u*_casexfrm): Likewise.
83304         Reported by Paolo Bonzini.
83306 2009-04-28  Bruno Haible  <bruno@clisp.org>
83308         Fix a compilation error.
83309         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
83310         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83311         Reported by Jim Meyering.
83313 2009-04-27  Bruno Haible  <bruno@clisp.org>
83315         New module 'libunistring'.
83316         * modules/libunistring: New file.
83317         * m4/libunistring.m4: New file.
83318         * MODULES.html.sh (Unicode string functions): Add it.
83320 2009-04-27  Eric Blake  <ebb9@byu.net>
83322         maint.mk: allow package-specific header to provide <config.h>
83323         * top/maint.mk (sc_require_config_h): New variable.
83324         (sc_require_config_h, sc_require_config_h_first): Use it.
83326 2009-04-27  Simon Josefsson  <simon@josefsson.org>
83328         * top/maint.mk (sc_avoid_if_before_free): Except
83329         useless-if-before-free script.
83331 2009-04-27  Eric Blake  <ebb9@byu.net>
83333         maintainer-makefile: depend on all required helper scripts
83334         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
83335         useless-if-before-free.
83336         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
83337         version, rather than assuming gnulib checkout is available.
83338         Reported by Simen Josefsson.
83340 2009-04-26  Bruno Haible  <bruno@clisp.org>
83342         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
83343         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
83344         "../" or "..".
83346 2009-04-26  Bruno Haible  <bruno@clisp.org>
83348         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
83349         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
83350         AC_LIB_HAVE_LINKFLAGS.
83352 2009-04-26  Bruno Haible  <bruno@clisp.org>
83354         Simplify calling convention of u*_conv_from_encoding.
83355         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
83356         u32_conv_from_encoding): Expect a resultbuf argument and return the
83357         result directly as a pointer.
83358         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
83359         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
83360         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
83361         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
83362         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
83363         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83364         Update.
83365         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
83366         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
83367         * lib/vasnprintf.c (VASNPRINTF): Update.
83368         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
83369         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
83370         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
83371         * NEWS: Mention the change.
83373 2009-04-26  Bruno Haible  <bruno@clisp.org>
83375         Simplify calling convention of u*_conv_to_encoding.
83376         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
83377         u32_conv_to_encoding): Expect a resultbuf argument and return the
83378         result directly as a pointer.
83379         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83380         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
83381         freeing scaled_offsets if mem_iconveha failed.
83382         * lib/unicase/u-casexfrm.h (FUNC): Update.
83383         * lib/uninorm/u-normxfrm.h (FUNC): Update.
83384         * lib/vasnprintf.c (VASNPRINTF): Update.
83385         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
83386         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
83387         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
83388         * NEWS: Mention the change.
83390 2009-04-26  Bruno Haible  <bruno@clisp.org>
83392         Avoid test failures on AIX and OSF/1.
83393         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
83394         malloc(0).
83395         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83396         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83397         Likewise.
83398         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
83399         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
83400         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
83401         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
83402         * doc/posix-functions/malloc.texi: Document the portability problem
83403         related to malloc(0).
83405 2009-04-26  Bruno Haible  <bruno@clisp.org>
83407         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
83408         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
83409         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
83411 2009-04-25  Bruno Haible  <bruno@clisp.org>
83413         Avoid link error when creating a namespace clean library.
83414         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
83415         as macro with arguments if already defined as an alias.
83416         * lib/signbitf.c (gl_signbitf): Don't undefine.
83417         * lib/signbitd.c (gl_signbitd): Don't undefine.
83418         * lib/signbitl.c (gl_signbitl): Don't undefine.
83420 2009-04-25  Jim Meyering  <meyering@redhat.com>
83422         vc-list-files: fix another quoting bug
83423         * build-aux/vc-list-files: Avoid sed backslash expansion
83424         of pathological directory names.
83426 2009-04-25  Eric Blake  <ebb9@byu.net>
83428         vc-list-files: fix shell quoting error
83429         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
83430         timestamp.
83432 2009-04-25  Jim Meyering  <meyering@redhat.com>
83434         vc-list-files: restore lost functionality with subdir argument
83435         * build-aux/vc-list-files: When given a non-"." sub-directory
83436         argument, substitute the $dir/ prefix back onto each resulting name.
83437         Otherwise, coreutils' root_tests check would fail.
83439 2009-04-24  Eric Blake  <ebb9@byu.net>
83441         vc-list-files: ignore git symlinks
83442         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
83443         than ls-files, to ignore git symlinks.
83445         maint.mk: import improvements from m4
83446         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
83447         (move_if_change): Delete unused macro.
83448         (news-date-check, vc-diff-check): Support VPATH builds.
83449         (announcement): Likewise.  Split --bootstrap-tools list...
83450         (boostrap-tools): ...into separate list, which can be overridden
83451         in cfg.mk.
83452         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
83453         requiring dependency on useless-if-before-free module.
83454         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
83455         Support VPATH builds.
83457 2009-04-24  Jim Meyering  <meyering@redhat.com>
83459         maint.mk: remove coreutils-specific rules and variables
83460         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
83461         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
83462         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
83464         maint.mk: remove obsolete rule
83465         * top/maint.mk (rel-check): Remove rule.
83466         (WGET, WGETFLAGS): Remove now-unused variables.
83468 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83470         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
83471         consistency.
83473         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
83474         '$(PATH_SEPARATOR)' instead of ':'.
83476 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83478         * lib/getopt1.c (main): Use 'const' for static array.
83480 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83482         * top/maint.mk: Sync with coreutils.
83483         * NEWS: Explain incompatibilities.
83485 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83486             Bruno Haible  <bruno@clisp.org>
83488         Fix cross-compilation results.
83489         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
83490         statement, as third argument of AC_TRY_RUN.
83491         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
83492         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
83493         Likewise.
83494         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
83495         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
83496         Likewise.
83497         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
83498         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
83499         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
83501 2009-04-20  Bruno Haible  <bruno@clisp.org>
83503         Avoid test failure on mingw.
83504         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
83506 2009-04-20  Bruno Haible  <bruno@clisp.org>
83508         Avoid compilation error on mingw.
83509         * modules/localename-tests (Depends-on): Add locale.
83511 2009-04-19  Bruno Haible  <bruno@clisp.org>
83513         Support for building a shared library on Windows platforms.
83514         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
83515         (main): Test the presence of UNINORM_NFC here.
83516         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
83517         (main): Test the presence of UNINORM_NFD here.
83518         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
83519         (main): Test the presence of UNINORM_NFKC here.
83520         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
83521         (main): Test the presence of UNINORM_NFKD here.
83523 2009-04-19  Bruno Haible  <bruno@clisp.org>
83525         Avoid a compiler warning.
83526         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
83527         Change type of variable 'sequence'.
83529 2009-04-19  Bruno Haible  <bruno@clisp.org>
83531         * modules/configmake (Makefile.am): When the contents of configmake.h
83532         does not change, arrange to preserve its modification time.
83534 2009-04-17  Simon Josefsson  <simon@josefsson.org>
83536         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
83537         gettext domain.
83539 2009-04-16  Jim Meyering  <meyering@redhat.com>
83541         useless-if-before-free: improve conversion code
83542         * build-aux/useless-if-before-free: Adjust code-in-comment to match
83543         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
83545 2009-04-14  Bruno Haible  <bruno@clisp.org>
83547         * modules/fcntl (Depends-on): Add extensions.
83548         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
83550 2009-04-12  Ben Pfaff  <blp@gnu.org>
83552         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
83553         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
83555 2009-03-20  Ben Pfaff  <blp@gnu.org>
83557         Make rename replace existing destinations on Windows.
83558         * m4/rename.m4: Add test for Mingw.
83559         * lib/rename.c: Add rename replacement that uses MoveFileEx with
83560         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
83561         * doc/posix-functions/rename.texi: Document.
83563 2009-04-10  Bruno Haible  <bruno@clisp.org>
83565         New include file "iconveh.h".
83566         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
83567         * lib/striconveh.h: Include it.
83568         (enum iconv_ilseq_handler): Remove definition.
83569         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
83570         striconveh.h.
83571         * lib/striconveha.c: Include striconveh.h.
83572         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
83573         * modules/striconveh (Files): Add lib/iconveh.h.
83574         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
83575         lib/striconveh.h.
83577 2009-04-10  Bruno Haible  <bruno@clisp.org>
83579         * lib/uniconv.h: Update comment.
83581 2009-04-10  Bruno Haible  <bruno@clisp.org>
83583         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
83584         always.
83585         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
83586         * lib/unistr/u16-mbtouc-aux.c: Likewise.
83587         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
83588         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
83589         "unistring-notinline.h", so that the function gets defined always.
83590         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
83591         * lib/unistr/u8-uctomb.c: Likewise.
83592         * lib/unistr/u16-mbtouc.c: Likewise.
83593         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
83594         * lib/unistr/u16-uctomb.c: Likewise.
83595         * lib/unistr/u32-mbtouc.c: Likewise.
83596         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
83597         * lib/unistr/u32-uctomb.c: Likewise.
83599 2009-04-10  Bruno Haible  <bruno@clisp.org>
83601         Mark 'utime' obsolete.
83602         * modules/utime (Status, Notice): New sections.
83603         Suggested by Jim Meyering.
83605         Fix cross-compile guess for utime test.
83606         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
83607         autoconf.
83608         * doc/posix-functions/utime.texi: Give more precisions.
83609         Reported by Jan <ipif@ymail.com>.
83611 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
83613         filevercmp: correct today's change
83614         * lib/filevercmp.c: Also handle coreutils' test inputs.
83615         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
83617         Fix regression in 'filevercmp' module. Thanks Sven Joachim
83618         for reporting it.
83619         * lib/filevercmp.c: Special handle for "", "." and "..".
83620         * tests/test-filevercmp.c: Enlarge the set suite.
83622 2009-04-07  Jim Meyering  <meyering@redhat.com>
83624         useless-if-before-free: show how to remove braced useless free, too
83625         * build-aux/useless-if-before-free: still only in a comment, though.
83627 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
83629         maint.mk: import changes to syntax-check macros from coreutils
83630         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
83631         Use them in the relevant macros.
83633 2009-04-06  Bruno Haible  <bruno@clisp.org>
83635         Fix unportable use of bit-fields.
83636         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
83637         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
83638         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
83640 2009-04-06  Bruno Haible  <bruno@clisp.org>
83642         Avoid test failures on AIX and OSF/1.
83643         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
83644         that malloc(0) = NULL.
83645         * tests/unicase/test-u8-tolower.c (check): Likewise.
83646         * tests/unicase/test-u8-totitle.c (check): Likewise.
83647         * tests/unicase/test-u8-toupper.c (check): Likewise.
83648         * tests/unicase/test-u16-casefold.c (check): Likewise.
83649         * tests/unicase/test-u16-tolower.c (check): Likewise.
83650         * tests/unicase/test-u16-totitle.c (check): Likewise.
83651         * tests/unicase/test-u16-toupper.c (check): Likewise.
83652         * tests/unicase/test-u32-casefold.c (check): Likewise.
83653         * tests/unicase/test-u32-tolower.c (check): Likewise.
83654         * tests/unicase/test-u32-totitle.c (check): Likewise.
83655         * tests/unicase/test-u32-toupper.c (check): Likewise.
83656         * tests/uninorm/test-u8-nfc.c (check): Likewise.
83657         * tests/uninorm/test-u8-nfd.c (check): Likewise.
83658         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
83659         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
83660         * tests/uninorm/test-u16-nfc.c (check): Likewise.
83661         * tests/uninorm/test-u16-nfd.c (check): Likewise.
83662         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
83663         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
83664         * tests/uninorm/test-u32-nfc.c (check): Likewise.
83665         * tests/uninorm/test-u32-nfd.c (check): Likewise.
83666         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
83667         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
83669 2009-04-05  Bruno Haible  <bruno@clisp.org>
83671         Work around an autoconf limitation.
83672         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
83673         comment line if it would be longer than 3 KB.
83675 2009-04-05  Bruno Haible  <bruno@clisp.org>
83677         Avoid test failure with libiconv-1.13.
83678         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
83679         of the expected test results.
83681 2009-04-05  Bruno Haible  <bruno@clisp.org>
83683         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
83684         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
83685         that it should be installed.
83687 2009-04-05  Bruno Haible  <bruno@clisp.org>
83689         * gnulib-tool: New option --copy-file.
83690         (func_usage): Document it.
83691         (func_dest_tmpfilename): Moved out of func_import.
83692         (func_add_file, func_update_file): New functions, extracted from
83693         func_import.
83694         (func_import): Update.
83696 2009-04-05  Karl Berry  <karl@gnu.org>
83698         * README: prominently mention gnulib-tool.
83699         Rearrange sections so getting the code is near the top.
83701 2009-04-05  Bruno Haible  <bruno@clisp.org>
83703         * lib/unicase.h: Mention u*_cmp2.
83704         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83705         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
83706         * lib/unicase/ulc-casecmp.c: Likewise.
83707         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
83708         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
83709         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
83710         unistr/u8-cmp.
83711         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
83712         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
83713         unistr/u16-cmp.
83714         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
83715         unistr/u32-cmp.
83717         * lib/uninorm.h: Mention u*_cmp2.
83718         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83719         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
83720         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
83721         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
83722         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
83723         unistr/u8-cmp.
83724         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
83725         unistr/u16-cmp.
83726         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
83727         unistr/u32-cmp.
83729         New module 'unistr/u32-cmp2'.
83730         * lib/unistr/u32-cmp2.c: New file.
83731         * modules/unistr/u32-cmp2: New file.
83733         New module 'unistr/u16-cmp2'.
83734         * lib/unistr/u16-cmp2.c: New file.
83735         * modules/unistr/u16-cmp2: New file.
83737         New module 'unistr/u8-cmp2'.
83738         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
83739         * lib/unistr/u8-cmp2.c: New file.
83740         * lib/unistr/u-cmp2.h: New file.
83741         * modules/unistr/u8-cmp2: New file.
83743 2009-04-05  Bruno Haible  <bruno@clisp.org>
83745         * lib/unictype.h (uc_property_is_valid): New macro.
83746         * tests/unictype/test-pr_byname.c (main): Use it.
83748         * lib/unistr.h: Doc fixes.
83749         * lib/uniconv.h: Doc fixes.
83750         * lib/unictype.h: Doc fixes.
83752 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
83754         Port coreutils 7.2 to Solaris 8.
83756         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
83757         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
83758         for Solaris 8.  This is a bit of a hack, as it means it's the
83759         caller's responsibility to add -lnsl if needed, but most likely it
83760         won't be needed since only getaddrinfo uses this and getaddrinfo
83761         isn't needed on Solaris 8.
83763         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
83764         problem to Solaris 8 encountered with coreutils 7.2, which
83765         resulted in a message "fnmatch.c:292: warning: passing argument 4
83766         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
83767         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
83769 2009-04-03  Simon Josefsson  <simon@josefsson.org>
83771         * m4/ld-version-script.m4: Add FIXME comment.
83773 2009-04-02  Simon Josefsson  <simon@josefsson.org>
83775         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
83776         SOVERSION variable.
83778 2009-04-02  Bruno Haible  <bruno@clisp.org>
83780         * Makefile (info, html, dvi, pdf): Combine the rules.
83781         Suggested by Jim Meyering.
83783 2009-04-01  Bruno Haible  <bruno@clisp.org>
83785         * Makefile (info, html, dvi, pdf): New targets.
83786         Reported by Reuben Thomas <rrt@sc3d.org>.
83788 2009-04-01  Bruno Haible  <bruno@clisp.org>
83790         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
83791         can be put into PATH.
83792         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
83794 2009-04-01  Bruno Haible  <bruno@clisp.org>
83796         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
83798 2009-04-01  Bruno Haible  <bruno@clisp.org>
83800         Rename module 'visibility'.
83801         * modules/lib-symbol-visibility: Renamed from modules/visibility.
83802         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
83803         * doc/gnulib.texi: Update.
83804         * MODULES.html.sh (Misc): Update.
83805         * NEWS: Mention the change.
83807 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83809         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
83810         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
83811         Eric Blake <ebb9@byu.net> for review.
83812         * MODULES.html.sh: Add lib-msvc-compat.
83813         * doc/gnulib.texi: Link to new section.
83814         * m4/ld-output-def.m4: New file.
83815         * doc/ld-output-def.texi: New file.
83817 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83819         Rename ld-version-script to lib-symbol-versions.  Suggested by
83820         Bruno Haible <bruno@clisp.org>.
83821         * modules/ld-version-script: Renamed to lib-symbol-versions.
83822         * doc/ld-version-script.texi: Fix module name.
83823         * MODULES.html.sh: Add lib-symbol-versions.
83825 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83827         * modules/u64-tests: New file.
83828         * tests/test-u64.c: New file.
83830 2009-03-04  Simon Josefsson  <simon@josefsson.org>
83832         * MODULES.html.sh: Mention u64.
83833         * modules/u64: New module.
83834         * modules/crypto/sha512: Depend on u64 module instead of providing
83835         u64.h.
83837 2009-03-27  Eric Blake  <ebb9@byu.net>
83839         test-strerror: make debugging EAI_SYSTEM easier
83840         * modules/getaddrinfo-tests (Depends-on): Add strerror.
83841         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
83842         failure was EAI_SYSTEM.
83844 2009-03-25  Bruno Haible  <bruno@clisp.org>
83846         Fix a problem with --enable-relocatable on Solaris 7.
83847         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
83848         since 2008-02-24.
83850 2009-03-25  Eric Blake  <ebb9@byu.net>
83852         test-sockets: avoid gcc warning
83853         * tests/test-sockets.c (main): Silence compiler warning.
83855 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83857         New modules nproc, pthread, contributed by Glen Lenker.
83859         * MODULES.html.sh: Add pthread, nproc.
83860         * lib/nproc.c: New file.
83861         * lib/nproc.h: New file.
83862         * lib/pthread.in.h: New file.
83863         * m4/pthread.m4: New file.
83864         * modules/nproc: New file.
83865         * modules/pthread: New file.
83867 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83869         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
83870         New variable.
83872 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
83874         filevercmp: handle simple~ and numbered.~3~ backup suffixes
83875         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
83876         * tests/test-filevercmp.c: Add tests for backup suffixes.
83878 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83880         * modules/stdlib (Depends-on): Add stdint, needed when defining
83881         struct random_data on, for example, HP-UX 10.20.  Reported by
83882         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83884 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83886         * lib/readline.c (readline): Call fflush on stdout after printing
83887         prompt.
83889 2009-03-20  Bruno Haible  <bruno@clisp.org>
83891         Remove dependency from 'close' module to -lws2_32 on native Windows.
83892         * lib/close-hook.h: New file.
83893         * lib/close-hook.c: New file.
83894         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
83895         w32sock.h.
83896         (_gl_close_fd_maybe_socket): Remove function.
83897         (rpl_close): Invoke execute_all_close_hooks instead of
83898         _gl_close_fd_maybe_socket.
83899         * lib/sockets.c: Include close-hook.h, w32sock.h.
83900         (close_fd_maybe_socket): New function, essentially from lib/close.c.
83901         (close_sockets_hook): New variable.
83902         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
83903         (gl_sockets_cleanup): Unregister it.
83904         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
83905         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
83906         * modules/close-hook: New file.
83907         * modules/close (Files): Remove lib/w32sock.h.
83908         (Depends-on): Add close-hook.
83909         (Link): Remove section.
83910         * modules/sockets (Files): Add lib/w32sock.h.
83911         (Depends-on): Add close-hook.
83912         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
83913         invocation.
83914         * NEWS: Mention that LIB_CLOSE is gone.
83916 2009-03-23  Eric Blake  <ebb9@byu.net>
83918         signal-tests: test previous patch
83919         * tests/test-signal.c: New file.
83920         * modules/signal-tests: Likewise.
83922         signal.h: always support 'volatile sig_atomic_t'
83923         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
83924         (gl_SIGNAL_H_DEFAULTS): Add a default.
83925         * modules/signal (Makefile.am): Substitute if needed.
83926         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
83927         users can blindly add volatile.
83928         * doc/posix-headers/signal.texi (signal.h): Document it.
83929         Reported by Matthew Woehlke.
83931 2009-03-23  Jim Meyering  <meyering@redhat.com>
83933         pathmax: PATH_MAX: use pathconf only when available
83934         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
83935         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
83936         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
83937         This avoids a link failure in a PSP cross-compilation environment
83938         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
83940         * lib/vasnprintf.c (divide): Fix typo in comment.
83942 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83944         * gnulib-tool (func_filter_filelist): Fix comment.
83946 2009-03-20  Bruno Haible  <bruno@clisp.org>
83948         Make sockets.h self-contained.
83949         * lib/sockets.c: Include sockets.h first.
83950         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
83952 2009-03-19  Eric Blake  <ebb9@byu.net>
83954         doc: mention more functions added in cygwin 1.7.0
83955         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
83956         addition.
83957         * doc/posix-functions/log2f.texi: Likewise.
83959 2009-03-19  Jim Meyering  <meyering@redhat.com>
83961         fsusage: avoid syntax error due to statement-before-declaration
83962         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
83963         after all declarations.  Reported by Matthew Woehlke in
83964         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
83966 2009-03-18  Eric Blake  <ebb9@byu.net>
83968         build-aux/compile: sync from automake
83969         * build-aux/compile: New file, from automake.
83970         * config/srclist.txt: Mention build-aux/compile.
83972 2009-03-17  Bruno Haible  <bruno@clisp.org>
83974         * lib/git-merge-changelog.c: Fix typo in comment.
83975         Reported by Reuben Thomas <rrt@sc3d.org>.
83977 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
83979         * m4/regex.m4: update and improve help for
83980         --without-included-regex.
83982 2009-03-17  Simon Josefsson  <simon@josefsson.org>
83984         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
83985         failure on missing include files.
83987 2009-03-17  Eric Blake  <ebb9@byu.net>
83989         doc: mention more functions added in cygwin 1.7.0
83990         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
83991         addition.
83992         * doc/posix-functions/fwscanf.texi: Likewise.
83993         * doc/posix-functions/swprintf.texi: Likewise.
83994         * doc/posix-functions/swscanf.texi: Likewise.
83995         * doc/posix-functions/vfwprintf.texi: Likewise.
83996         * doc/posix-functions/vfwscanf.texi: Likewise.
83997         * doc/posix-functions/vswprintf.texi: Likewise.
83998         * doc/posix-functions/vswscanf.texi: Likewise.
83999         * doc/posix-functions/vwprintf.texi: Likewise.
84000         * doc/posix-functions/vwscanf.texi: Likewise.
84001         * doc/posix-functions/wcscasecmp.texi: Likewise.
84002         * doc/posix-functions/wcsdup.texi: Likewise.
84003         * doc/posix-functions/wcsftime.texi: Likewise.
84004         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84005         * doc/posix-functions/wprintf.texi: Likewise.
84006         * doc/posix-functions/wscanf.texi: Likewise.
84007         * doc/glibc-functions/gethostbyname2.texi: Likewise.
84009 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84011         maint.mk: really add $(AM_MAKEFLAGS)
84012         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
84013         was inadvertently omitted in the last commit.
84014         Spotted by Bruno Haible.
84016         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
84017         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
84018         $(AM_MAKEFLAGS)' rather than plain `make'.
84020         gnulib-tool: execute $MAKE not make
84021         * gnulib-tool: Default $MAKE to 'make'.
84022         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
84023         than make.  Initialize $MAKE in the do-autobuild script.
84025         gnulib-tool: use $MAKE not make in generated files
84026         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
84027         make, in generated files.  Initialize $MAKE in the do-autobuild
84028         script.
84030         * top/GNUmakefile (_have-git-version-gen): Fix typo.
84032         GNUmakefile: disable parallelism only for multiple, recursive targets
84033         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
84034         additions in the Makefile.
84035         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
84036         by Automake.
84037         (.NOTPARALLEL): Only disable parallel builds if multiple targets
84038         are listed on the command line and at least one of them is
84039         listed in $(ALL_RECURSIVE_TARGETS).
84041 2009-03-14  Bruno Haible  <bruno@clisp.org>
84043         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
84044         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
84045         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
84046         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
84047         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
84048         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
84049         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
84050         unistr/u8-uctomb.
84051         * modules/unistr/u8-strchr (Depends-on): Likewise.
84052         * modules/unistr/u8-strrchr (Depends-on): Likewise.
84053         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
84054         unistr/u16-uctomb.
84055         * modules/unistr/u16-strchr (Depends-on): Likewise.
84056         * modules/unistr/u16-strrchr (Depends-on): Likewise.
84058 2009-03-12  Bruno Haible  <bruno@clisp.org>
84060         Work around select() bug on Interix 3.5.
84061         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
84062         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
84063         * m4/select.m4: New file.
84064         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
84065         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
84066         * modules/select (Files): Add m4/select.m4.
84067         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
84068         * modules/nanosleep (Depends-on): Add select.
84069         * modules/poll (Depends-on): Likewise.
84070         * doc/posix-functions/select.texi: Mention the Interix bug.
84071         Reported by Markus Duft <mduft@gentoo.org>.
84073         * lib/select.c: Renamed from lib/winsock-select.c.
84074         * modules/select (Files): Add lib/select.c, remove
84075         lib/winsock-select.c.
84076         (configure.ac): Update.
84078 2009-03-12  Jim Meyering  <meyering@redhat.com>
84080         avoid gcc warnings about unused macro definitions
84081         * lib/readtokens.c (STREQ): Remove unused definition.
84082         * lib/xmalloc.c (SIZE_MAX): Likewise.
84083         * lib/openat-die.c (N_): Likewise.
84084         * lib/mountlist.c (SIZE_MAX): Remove definition.
84085         Instead, include <stdint.h>.
84086         * lib/readutmp.c: Likewise.
84087         * modules/readutmp (Depends-on): Add stdint.
84088         * modules/mountlist (Depends-on): Add stdint.
84089         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
84091 2009-03-10  Bruno Haible  <bruno@clisp.org>
84093         Tests for module 'mbmemcasecoll'.
84094         * modules/mbmemcasecoll-tests: New file.
84095         * tests/test-mbmemcasecoll1.sh: New file.
84096         * tests/test-mbmemcasecoll2.sh: New file.
84097         * tests/test-mbmemcasecoll3.sh: New file.
84098         * tests/test-mbmemcasecoll.c: New file.
84100         New module 'mbmemcasecoll'.
84101         * lib/mbmemcasecoll.h: New file.
84102         * lib/mbmemcasecoll.c: New file.
84103         * modules/mbmemcasecoll: New file.
84105         * tests/test-mbmemcasecmp.h: New file, extracted from
84106         tests/test-mbmemcasecmp.c.
84107         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
84108         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
84109         (main): Update.
84110         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
84112 2009-03-09  Bruno Haible  <bruno@clisp.org>
84114         Tests for module 'mbmemcasecmp'.
84115         * modules/mbmemcasecmp-tests: New file.
84116         * tests/test-mbmemcasecmp1.sh: New file.
84117         * tests/test-mbmemcasecmp2.sh: New file.
84118         * tests/test-mbmemcasecmp3.sh: New file.
84119         * tests/test-mbmemcasecmp.c: New file.
84121         New module 'mbmemcasecmp'.
84122         * lib/mbmemcasecmp.h: New file.
84123         * lib/mbmemcasecmp.c: New file.
84124         * modules/mbmemcasecmp: New file.
84126 2009-03-09  Bruno Haible  <bruno@clisp.org>
84128         Tests for module 'unicase/ulc-casecoll'.
84129         * modules/unicase/ulc-casecoll-tests: New file.
84130         * tests/unicase/test-ulc-casecoll1.sh: New file.
84131         * tests/unicase/test-ulc-casecoll2.sh: New file.
84132         * tests/unicase/test-ulc-casecoll.c: New file.
84134         New module 'unicase/ulc-casecoll'.
84135         * lib/unicase.h (ulc_casecoll): New declaration.
84136         * lib/unicase/ulc-casecoll.c: New file.
84137         * modules/unicase/ulc-casecoll: New file.
84139         New module 'unicase/ulc-casexfrm'.
84140         * lib/unicase.h (ulc_casexfrm): New declaration.
84141         * lib/unicase/ulc-casexfrm.c: New file.
84142         * modules/unicase/ulc-casexfrm: New file.
84144 2009-03-09  Bruno Haible  <bruno@clisp.org>
84146         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
84147         invocations.
84149         * m4/mbscasecmp.m4: Remove file.
84150         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
84151         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
84153         * m4/mbscasestr.m4: Remove file.
84154         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
84155         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
84157         * m4/mbschr.m4: Remove file.
84158         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
84159         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
84161         * m4/mbscspn.m4: Remove file.
84162         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
84163         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
84165         * m4/mbslen.m4: Remove file.
84166         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
84167         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
84169         * m4/mbsncasecmp.m4: Remove file.
84170         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
84171         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
84173         * m4/mbsnlen.m4: Remove file.
84174         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
84175         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
84177         * m4/mbspbrk.m4: Remove file.
84178         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
84179         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
84181         * m4/mbspcasecmp.m4: Remove file.
84182         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
84183         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
84185         * m4/mbsrchr.m4: Remove file.
84186         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
84187         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
84189         * m4/mbssep.m4: Remove file.
84190         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
84191         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
84193         * m4/mbsspn.m4: Remove file.
84194         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
84195         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
84197         * m4/mbsstr.m4: Remove file.
84198         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
84199         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
84201         * m4/mbstok_r.m4: Remove file.
84202         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
84203         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
84205         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
84207         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
84208         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
84210         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
84212 2009-03-08  Bruno Haible  <bruno@clisp.org>
84214         Tests for module 'unicase/ulc-casecmp'.
84215         * modules/unicase/ulc-casecmp-tests: New file.
84216         * tests/unicase/test-ulc-casecmp1.sh: New file.
84217         * tests/unicase/test-ulc-casecmp2.sh: New file.
84218         * tests/unicase/test-ulc-casecmp.c: New file.
84220         New module 'unicase/ulc-casecmp'.
84221         * lib/unicase.h (ulc_casecmp): New declaration.
84222         * lib/unicase/ulc-casecmp.c: New file.
84223         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
84224         'const SRC_UNIT *'.
84225         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
84226         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
84227         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
84228         * modules/unicase/ulc-casecmp: New file.
84230         Tests for module 'unicase/u32-is-cased'.
84231         * modules/unicase/u32-is-cased-tests: New file.
84232         * tests/unicase/test-u32-is-cased.c: New file.
84234         Tests for module 'unicase/u16-is-cased'.
84235         * modules/unicase/u16-is-cased-tests: New file.
84236         * tests/unicase/test-u16-is-cased.c: New file.
84238         Tests for module 'unicase/u8-is-cased'.
84239         * modules/unicase/u8-is-cased-tests: New file.
84240         * tests/unicase/test-u8-is-cased.c: New file.
84241         * tests/unicase/test-is-cased.h: New file.
84243         New module 'unicase/u32-is-cased'.
84244         * lib/unicase/u32-is-cased.c: New file.
84245         * modules/unicase/u32-is-cased: New file.
84247         New module 'unicase/u16-is-cased'.
84248         * lib/unicase/u16-is-cased.c: New file.
84249         * modules/unicase/u16-is-cased: New file.
84251         New module 'unicase/u8-is-cased'.
84252         * lib/unicase/u8-is-cased.c: New file.
84253         * lib/unicase/u-is-cased.h: New file.
84254         * modules/unicase/u8-is-cased: New file.
84256         Tests for module 'unicase/u32-is-casefolded'.
84257         * modules/unicase/u32-is-casefolded-tests: New file.
84258         * tests/unicase/test-u32-is-casefolded.c: New file.
84260         Tests for module 'unicase/u16-is-casefolded'.
84261         * modules/unicase/u16-is-casefolded-tests: New file.
84262         * tests/unicase/test-u16-is-casefolded.c: New file.
84264         Tests for module 'unicase/u8-is-casefolded'.
84265         * modules/unicase/u8-is-casefolded-tests: New file.
84266         * tests/unicase/test-u8-is-casefolded.c: New file.
84267         * tests/unicase/test-is-casefolded.h: New file.
84269         New module 'unicase/u32-is-casefolded'.
84270         * lib/unicase/u32-is-casefolded.c: New file.
84271         * modules/unicase/u32-is-casefolded: New file.
84273         New module 'unicase/u16-is-casefolded'.
84274         * lib/unicase/u16-is-casefolded.c: New file.
84275         * modules/unicase/u16-is-casefolded: New file.
84277         New module 'unicase/u8-is-casefolded'.
84278         * lib/unicase/u8-is-casefolded.c: New file.
84279         * modules/unicase/u8-is-casefolded: New file.
84281         Tests for module 'unicase/u32-is-titlecase'.
84282         * modules/unicase/u32-is-titlecase-tests: New file.
84283         * tests/unicase/test-u32-is-titlecase.c: New file.
84285         Tests for module 'unicase/u16-is-titlecase'.
84286         * modules/unicase/u16-is-titlecase-tests: New file.
84287         * tests/unicase/test-u16-is-titlecase.c: New file.
84289         Tests for module 'unicase/u8-is-titlecase'.
84290         * modules/unicase/u8-is-titlecase-tests: New file.
84291         * tests/unicase/test-u8-is-titlecase.c: New file.
84292         * tests/unicase/test-is-titlecase.h: New file.
84294         New module 'unicase/u32-is-titlecase'.
84295         * lib/unicase/u32-is-titlecase.c: New file.
84296         * modules/unicase/u32-is-titlecase: New file.
84298         New module 'unicase/u16-is-titlecase'.
84299         * lib/unicase/u16-is-titlecase.c: New file.
84300         * modules/unicase/u16-is-titlecase: New file.
84302         New module 'unicase/u8-is-titlecase'.
84303         * lib/unicase/u8-is-titlecase.c: New file.
84304         * modules/unicase/u8-is-titlecase: New file.
84306         Tests for module 'unicase/u32-is-lowercase'.
84307         * modules/unicase/u32-is-lowercase-tests: New file.
84308         * tests/unicase/test-u32-is-lowercase.c: New file.
84310         Tests for module 'unicase/u16-is-lowercase'.
84311         * modules/unicase/u16-is-lowercase-tests: New file.
84312         * tests/unicase/test-u16-is-lowercase.c: New file.
84314         Tests for module 'unicase/u8-is-lowercase'.
84315         * modules/unicase/u8-is-lowercase-tests: New file.
84316         * tests/unicase/test-u8-is-lowercase.c: New file.
84317         * tests/unicase/test-is-lowercase.h: New file.
84319         New module 'unicase/u32-is-lowercase'.
84320         * lib/unicase/u32-is-lowercase.c: New file.
84321         * modules/unicase/u32-is-lowercase: New file.
84323         New module 'unicase/u16-is-lowercase'.
84324         * lib/unicase/u16-is-lowercase.c: New file.
84325         * modules/unicase/u16-is-lowercase: New file.
84327         New module 'unicase/u8-is-lowercase'.
84328         * lib/unicase/u8-is-lowercase.c: New file.
84329         * modules/unicase/u8-is-lowercase: New file.
84331         Tests for module 'unicase/u32-is-uppercase'.
84332         * modules/unicase/u32-is-uppercase-tests: New file.
84333         * tests/unicase/test-u32-is-uppercase.c: New file.
84335         Tests for module 'unicase/u16-is-uppercase'.
84336         * modules/unicase/u16-is-uppercase-tests: New file.
84337         * tests/unicase/test-u16-is-uppercase.c: New file.
84339         Tests for module 'unicase/u8-is-uppercase'.
84340         * modules/unicase/u8-is-uppercase-tests: New file.
84341         * tests/unicase/test-u8-is-uppercase.c: New file.
84342         * tests/unicase/test-is-uppercase.h: New file.
84344         New module 'unicase/u32-is-uppercase'.
84345         * lib/unicase/u32-is-uppercase.c: New file.
84346         * modules/unicase/u32-is-uppercase: New file.
84348         New module 'unicase/u16-is-uppercase'.
84349         * lib/unicase/u16-is-uppercase.c: New file.
84350         * modules/unicase/u16-is-uppercase: New file.
84352         New module 'unicase/u8-is-uppercase'.
84353         * lib/unicase/u8-is-uppercase.c: New file.
84354         * modules/unicase/u8-is-uppercase: New file.
84356         New module 'unicase/u32-is-invariant'.
84357         * lib/unicase/u32-is-invariant.c: New file.
84358         * modules/unicase/u32-is-invariant: New file.
84360         New module 'unicase/u16-is-invariant'.
84361         * lib/unicase/u16-is-invariant.c: New file.
84362         * modules/unicase/u16-is-invariant: New file.
84364         New module 'unicase/u8-is-invariant'.
84365         * lib/unicase/u8-is-invariant.c: New file.
84366         * lib/unicase/invariant.h: New file.
84367         * lib/unicase/u-is-invariant.h: New file.
84368         * modules/unicase/u8-is-invariant: New file.
84370         Tests for module 'unicase/u32-casecoll'.
84371         * modules/unicase/u32-casecoll-tests: New file.
84372         * tests/unicase/test-u32-casecoll.c: New file.
84374         Tests for module 'unicase/u16-casecoll'.
84375         * modules/unicase/u16-casecoll-tests: New file.
84376         * tests/unicase/test-u16-casecoll.c: New file.
84378         Tests for module 'unicase/u8-casecoll'.
84379         * modules/unicase/u8-casecoll-tests: New file.
84380         * tests/unicase/test-u8-casecoll.c: New file.
84382         New module 'unicase/u32-casecoll'.
84383         * lib/unicase/u32-casecoll.c: New file.
84384         * modules/unicase/u32-casecoll: New file.
84386         New module 'unicase/u16-casecoll'.
84387         * lib/unicase/u16-casecoll.c: New file.
84388         * modules/unicase/u16-casecoll: New file.
84390         New module 'unicase/u8-casecoll'.
84391         * lib/unicase/u8-casecoll.c: New file.
84392         * lib/unicase/u-casecoll.h: New file.
84393         * modules/unicase/u8-casecoll: New file.
84395         New module 'unicase/u32-casexfrm'.
84396         * lib/unicase/u32-casexfrm.c: New file.
84397         * modules/unicase/u32-casexfrm: New file.
84399         New module 'unicase/u16-casexfrm'.
84400         * lib/unicase/u16-casexfrm.c: New file.
84401         * modules/unicase/u16-casexfrm: New file.
84403         New module 'unicase/u8-casexfrm'.
84404         * lib/unicase/u8-casexfrm.c: New file.
84405         * lib/unicase/u-casexfrm.h: New file.
84406         * modules/unicase/u8-casexfrm: New file.
84408         Tests for module 'unicase/u32-casecmp'.
84409         * modules/unicase/u32-casecmp-tests: New file.
84410         * tests/unicase/test-u32-casecmp.c: New file.
84412         Tests for module 'unicase/u16-casecmp'.
84413         * modules/unicase/u16-casecmp-tests: New file.
84414         * tests/unicase/test-u16-casecmp.c: New file.
84416         Tests for module 'unicase/u8-casecmp'.
84417         * modules/unicase/u8-casecmp-tests: New file.
84418         * tests/unicase/test-u8-casecmp.c: New file.
84419         * tests/unicase/test-casecmp.h: New file.
84421         New module 'unicase/u32-casecmp'.
84422         * lib/unicase/u32-casecmp.c: New file.
84423         * modules/unicase/u32-casecmp: New file.
84425         New module 'unicase/u16-casecmp'.
84426         * lib/unicase/u16-casecmp.c: New file.
84427         * modules/unicase/u16-casecmp: New file.
84429         New module 'unicase/u8-casecmp'.
84430         * lib/unicase/u8-casecmp.c: New file.
84431         * lib/unicase/u-casecmp.h: New file.
84432         * modules/unicase/u8-casecmp: New file.
84434         Tests for module 'unicase/u32-casefold'.
84435         * modules/unicase/u32-casefold-tests: New file.
84436         * tests/unicase/test-u32-casefold.c: New file.
84438         Tests for module 'unicase/u16-casefold'.
84439         * modules/unicase/u16-casefold-tests: New file.
84440         * tests/unicase/test-u16-casefold.c: New file.
84442         Tests for module 'unicase/u8-casefold'.
84443         * modules/unicase/u8-casefold-tests: New file.
84444         * tests/unicase/test-u8-casefold.c: New file.
84446         New module 'unicase/u32-casefold'.
84447         * lib/unicase/u32-casefold.c: New file.
84448         * modules/unicase/u32-casefold: New file.
84450         New module 'unicase/u16-casefold'.
84451         * lib/unicase/u16-casefold.c: New file.
84452         * modules/unicase/u16-casefold: New file.
84454         New module 'unicase/u8-casefold'.
84455         * lib/unicase/u8-casefold.c: New file.
84456         * lib/unicase/u-casefold.h: New file.
84457         * modules/unicase/u8-casefold: New file.
84459         New module 'unicase/tocasefold'.
84460         * lib/unicase/casefold.h: New file.
84461         * lib/unicase/tocasefold.c: New file.
84462         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
84463         * modules/unicase/tocasefold: New file.
84465         Tests for module 'unicase/u32-totitle'.
84466         * modules/unicase/u32-totitle-tests: New file.
84467         * tests/unicase/test-u32-totitle.c: New file.
84469         Tests for module 'unicase/u16-totitle'.
84470         * modules/unicase/u16-totitle-tests: New file.
84471         * tests/unicase/test-u16-totitle.c: New file.
84473         Tests for module 'unicase/u8-totitle'.
84474         * modules/unicase/u8-totitle-tests: New file.
84475         * tests/unicase/test-u8-totitle.c: New file.
84477         New module 'unicase/u32-totitle'.
84478         * lib/unicase/u32-totitle.c: New file.
84479         * modules/unicase/u32-totitle: New file.
84481         New module 'unicase/u16-totitle'.
84482         * lib/unicase/u16-totitle.c: New file.
84483         * modules/unicase/u16-totitle: New file.
84485         New module 'unicase/u8-totitle'.
84486         * lib/unicase/u8-totitle.c: New file.
84487         * lib/unicase/u-totitle.h: New file.
84488         * modules/unicase/u8-totitle: New file.
84490         Tests for module 'unicase/u32-tolower'.
84491         * modules/unicase/u32-tolower-tests: New file.
84492         * tests/unicase/test-u32-tolower.c: New file.
84494         Tests for module 'unicase/u16-tolower'.
84495         * modules/unicase/u16-tolower-tests: New file.
84496         * tests/unicase/test-u16-tolower.c: New file.
84498         Tests for module 'unicase/u8-tolower'.
84499         * modules/unicase/u8-tolower-tests: New file.
84500         * tests/unicase/test-u8-tolower.c: New file.
84502         New module 'unicase/u32-tolower'.
84503         * lib/unicase/u32-tolower.c: New file.
84504         * modules/unicase/u32-tolower: New file.
84506         New module 'unicase/u16-tolower'.
84507         * lib/unicase/u16-tolower.c: New file.
84508         * modules/unicase/u16-tolower: New file.
84510         New module 'unicase/u8-tolower'.
84511         * lib/unicase/u8-tolower.c: New file.
84512         * modules/unicase/u8-tolower: New file.
84514         Tests for module 'unicase/u32-toupper'.
84515         * modules/unicase/u32-toupper-tests: New file.
84516         * tests/unicase/test-u32-toupper.c: New file.
84518         Tests for module 'unicase/u16-toupper'.
84519         * modules/unicase/u16-toupper-tests: New file.
84520         * tests/unicase/test-u16-toupper.c: New file.
84522         Tests for module 'unicase/u8-toupper'.
84523         * modules/unicase/u8-toupper-tests: New file.
84524         * tests/unicase/test-u8-toupper.c: New file.
84526         New module 'unicase/u32-toupper'.
84527         * lib/unicase/u32-toupper.c: New file.
84528         * modules/unicase/u32-toupper: New file.
84530         New module 'unicase/u16-toupper'.
84531         * lib/unicase/u16-toupper.c: New file.
84532         * modules/unicase/u16-toupper: New file.
84534         New module 'unicase/u8-toupper'.
84535         * lib/unicase/u8-toupper.c: New file.
84536         * modules/unicase/u8-toupper: New file.
84538         New module 'unicase/u32-casemap'.
84539         * lib/unicase/u32-casemap.c: New file.
84540         * modules/unicase/u32-casemap: New file.
84542         New module 'unicase/u16-casemap'.
84543         * lib/unicase/u16-casemap.c: New file.
84544         * modules/unicase/u16-casemap: New file.
84546         New module 'unicase/u8-casemap'.
84547         * lib/unicase/unicasemap.h: New file.
84548         * lib/unicase/u8-casemap.c: New file.
84549         * lib/unicase/u-casemap.h: New file.
84550         * modules/unicase/u8-casemap: New file.
84552         New module 'unicase/special-casing'.
84553         * lib/unicase/special-casing.h: New file.
84554         * lib/unicase/special-casing.c: New file.
84555         * lib/unicase/special-casing-table.gperf: New file, generated by
84556         gen-uni-tables.c.
84557         * modules/unicase/special-casing: New file.
84559         Tests for module 'unicase/locale-language'.
84560         * modules/unicase/locale-language-tests: New file.
84561         * tests/unicase/test-locale-language.sh: New file.
84562         * tests/unicase/test-locale-language.c: New file.
84564         New module 'unicase/locale-language'.
84565         * lib/unicase/locale-language.c: New file.
84566         * lib/unicase/locale-languages.gperf: New file.
84567         * modules/unicase/locale-language: New file.
84569         Generate more tables for case conversion and case folding.
84570         * lib/gen-uni-tables.c (SCC_*): New enum items.
84571         (struct special_casing_rule): New type.
84572         (casing_rules, num_casing_rules, allocated_casing_rules): New
84573         variables.
84574         (add_casing_rule, fill_casing_rules): New functions.
84575         (struct casefold_rule): New type.
84576         (casefolding_rules, num_casefolding_rules,
84577         allocated_casefolding_rules): New variables.
84578         (fill_casefolding_rules): New function.
84579         (unicode_casefold): New variable.
84580         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
84581         sort_casing_rules, output_casing_rules): New functions.
84582         (main): Accept to more arguments: SpecialCasing.txt and
84583         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
84584         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
84585         Output mapping for casefolding.
84587         * lib/unicase.h: Include stdbool.h, uninorm.h.
84588         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
84589         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
84590         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
84591         arguments.
84592         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
84593         resultp arguments.
84594         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
84595         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
84596         resultp arguments.
84597         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
84598         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
84599         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
84600         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
84601         declarations.
84602         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
84604 2009-03-08  Bruno Haible  <bruno@clisp.org>
84606         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84607         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
84608         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
84609         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84611 2009-03-07  Bruno Haible  <bruno@clisp.org>
84613         Adjust u*_normcmp, u*_normcoll API.
84614         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84615         u16_normcoll, u32_normcoll): Change failure conventions.
84616         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
84617         errno and return -1.
84618         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84620 2009-03-07  Bruno Haible  <bruno@clisp.org>
84622         Tests for module 'uninorm/u32-normcoll'.
84623         * modules/uninorm/u32-normcoll-tests: New file.
84624         * tests/uninorm/test-u32-normcoll.c: New file.
84626         Tests for module 'uninorm/u16-normcoll'.
84627         * modules/uninorm/u16-normcoll-tests: New file.
84628         * tests/uninorm/test-u16-normcoll.c: New file.
84630         Tests for module 'uninorm/u8-normcoll'.
84631         * modules/uninorm/u8-normcoll-tests: New file.
84632         * tests/uninorm/test-u8-normcoll.c: New file.
84634 2009-03-07  Bruno Haible  <bruno@clisp.org>
84636         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
84637         tests/uninorm/test-u32-normcmp.c.
84638         * tests/uninorm/test-u32-normcmp.c: Include it.
84639         (test_nonascii): New function, extracted from main. Add some more
84640         tests.
84641         (main): Invoke test_ascii and test_nonascii.
84642         * modules/uninorm/u32-normcmp-tests (Files): Add
84643         tests/uninorm/test-u32-normcmp.h.
84644         (Depends-on): Remove uninorm/u32-normcmp.
84646         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
84647         tests/uninorm/test-u16-normcmp.c.
84648         * tests/uninorm/test-u16-normcmp.c: Include it.
84649         (test_nonascii): New function, extracted from main. Add some more
84650         tests.
84651         (main): Invoke test_ascii and test_nonascii.
84652         * modules/uninorm/u16-normcmp-tests (Files): Add
84653         tests/uninorm/test-u16-normcmp.h.
84654         (Depends-on): Remove uninorm/u16-normcmp.
84656         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
84657         tests/uninorm/test-u8-normcmp.c.
84658         * tests/uninorm/test-u8-normcmp.c: Include it.
84659         (test_nonascii): New function, extracted from main. Add some more
84660         tests.
84661         (main): Invoke test_ascii and test_nonascii.
84662         * modules/uninorm/u8-normcmp-tests (Files): Add
84663         tests/uninorm/test-u8-normcmp.h.
84664         (Depends-on): Remove uninorm/u8-normcmp.
84666 2009-03-07  Bruno Haible  <bruno@clisp.org>
84668         New module 'uninorm/u32-normcoll'.
84669         * lib/uninorm/u32-normcoll.c: New file.
84670         * modules/uninorm/u32-normcoll: New file.
84672         New module 'uninorm/u16-normcoll'.
84673         * lib/uninorm/u16-normcoll.c: New file.
84674         * modules/uninorm/u16-normcoll: New file.
84676         New module 'uninorm/u8-normcoll'.
84677         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
84678         declarations.
84679         * lib/uninorm/u8-normcoll.c: New file.
84680         * lib/uninorm/u-normcoll.h: New file.
84681         * modules/uninorm/u8-normcoll: New file.
84683         New module 'uninorm/u32-normxfrm'.
84684         * lib/uninorm/u32-normxfrm.c: New file.
84685         * modules/uninorm/u32-normxfrm: New file.
84687         New module 'uninorm/u16-normxfrm'.
84688         * lib/uninorm/u16-normxfrm.c: New file.
84689         * modules/uninorm/u16-normxfrm: New file.
84691         New module 'uninorm/u8-normxfrm'.
84692         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
84693         declarations.
84694         * lib/uninorm/u8-normxfrm.c: New file.
84695         * lib/uninorm/u-normxfrm.h: New file.
84696         * modules/uninorm/u8-normxfrm: New file.
84698 2009-03-07  Bruno Haible  <bruno@clisp.org>
84700         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
84701         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
84702         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
84704 2009-03-07  Bruno Haible  <bruno@clisp.org>
84706         New module 'memxfrm'.
84707         * lib/memxfrm.h: New file.
84708         * lib/memxfrm.c: New file.
84709         * modules/memxfrm: New file.
84711 2009-03-07  Bruno Haible  <bruno@clisp.org>
84713         New module 'memcmp2'.
84714         * lib/memcmp2.h: New file.
84715         * lib/memcmp2.c: New file.
84716         * modules/memcmp2: New file.
84718 2009-03-07  Bruno Haible  <bruno@clisp.org>
84720         Tests for module 'uninorm/decomposing-form'.
84721         * modules/uninorm/decomposing-form-tests: New file.
84722         * tests/uninorm/test-decomposing-form.c: New file.
84724         New module 'uninorm/decomposing-form'.
84725         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
84726         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
84727         Add 'decomposing_variant' field.
84728         * lib/uninorm/decomposing-form.c: New file.
84729         * lib/uninorm/nfc.c (uninorm_nfc): Update.
84730         * lib/uninorm/nfd.c (uninorm_nfd): Update.
84731         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
84732         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
84733         * modules/uninorm/decomposing-form: New file.
84734         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
84735         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
84737 2009-03-07  Bruno Haible  <bruno@clisp.org>
84739         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
84740         strings.
84742 2009-03-06  Bruno Haible  <bruno@clisp.org>
84744         Tests for module 'uninorm/u32-normcmp'.
84745         * tests/uninorm/test-u32-normcmp.c: New file.
84746         * modules/uninorm/u32-normcmp-tests: New file.
84748         Tests for module 'uninorm/u16-normcmp'.
84749         * tests/uninorm/test-u16-normcmp.c: New file.
84750         * modules/uninorm/u16-normcmp-tests: New file.
84752         Tests for module 'uninorm/u8-normcmp'.
84753         * tests/uninorm/test-u8-normcmp.c: New file.
84754         * modules/uninorm/u8-normcmp-tests: New file.
84756         New module 'uninorm/u32-normcmp'.
84757         * lib/uninorm/u32-normcmp.c: New file.
84758         * modules/uninorm/u32-normcmp: New file.
84760         New module 'uninorm/u16-normcmp'.
84761         * lib/uninorm/u16-normcmp.c: New file.
84762         * modules/uninorm/u16-normcmp: New file.
84764         New module 'uninorm/u8-normcmp'.
84765         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
84766         declarations.
84767         * lib/uninorm/u8-normcmp.c: New file.
84768         * lib/uninorm/u-normcmp.h: New file.
84769         * modules/uninorm/u8-normcmp: New file.
84771 2009-03-06  Bruno Haible  <bruno@clisp.org>
84773         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
84774         Reported by Eric Blake.
84776 2009-03-06  Eric Blake  <ebb9@byu.net>
84777             Bruno Haible  <bruno@clisp.org>
84779         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
84780         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
84781         condition.
84782         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84783         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
84784         condition.
84785         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84787 2009-03-06  Eric Blake  <ebb9@byu.net>
84789         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
84790         to avoid compiler warnings.
84791         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
84793 2009-03-05  Bruno Haible  <bruno@clisp.org>
84795         * tests/test-ftell.c (main): Disable test beyond end of file on
84796         FreeMiNT.
84797         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84799 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
84801         * lib/filevercmp.c: Move hidden files up in ordering.
84802         * tests/test-filevercmp.c: Add tests for hidden files.
84804 2009-03-04  Bruno Haible  <bruno@clisp.org>
84806         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
84807         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
84808         AM_CFLAGS.
84809         Reported by Simon Josefsson.
84811 2009-03-03  Bruno Haible  <bruno@clisp.org>
84813         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
84814         Reported by Simon Josefsson.
84816         * doc/ld-version-script.texi: Update node reference.
84818 2009-03-03  Bruno Haible  <bruno@clisp.org>
84820         * modules/visibility (License): Change to 'unlimited'.
84821         Suggested by Simon Josefsson.
84823 2009-03-03  Jim Meyering  <meyering@redhat.com>
84825         unlinkdir: cannot_unlink_dir may modify process state
84826         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
84827         it's neither thread-safe nor appropriate for use in a library.
84829 2009-03-03  Eric Blake  <ebb9@byu.net>
84831         test-closein: silence test under Darwin
84832         * tests/test-closein.sh: Ignore stderr from cat, since we don't
84833         care if it dies from EPIPE or EBADF.
84835 2009-03-03  Bruno Haible  <bruno@clisp.org>
84837         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
84838         earlier.
84839         * doc/visibility.texi: Fix @node and @section.
84841 2009-03-03  Simon Josefsson  <simon@josefsson.org>
84843         * doc/gnulib.texi: Link to sections for ld version script and
84844         visibility.
84845         * doc/visibility.texi: Add @node and @section.
84846         * modules/ld-version-script: New module.
84847         * m4/ld-version-script.m4: New file.
84848         * doc/ld-version-script.texi: New file.
84850 2009-03-02  David Lutterkort  <lutter@redhat.com>
84852         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
84853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84855 2009-03-02  Bruno Haible  <bruno@clisp.org>
84857         * doc/visibility.texi: Mention libtool's -export-symbols option.
84859 2009-03-02  Jim Meyering  <meyering@redhat.com>
84861         announce-gen: new option: --no-print-checksums
84862         * build-aux/announce-gen (usage): Describe it.
84863         (print_checksums): Print a newline here, not in the [*] footnote.
84864         (main): Honor it.
84866 2009-03-01  Bruno Haible  <bruno@clisp.org>
84868         Use socklen_t in the native Windows replacements prototypes.
84869         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
84870         instead of 'int'.
84871         * lib/getsockopt.c (rpl_getsockopt): Likewise.
84872         * lib/setsockopt.c (rpl_setsockopt): Likewise.
84873         * modules/getsockopt (Depends-on): Add socklen.
84874         * modules/setsockopt (Depends-on): Add socklen.
84876 2009-03-01  Bruno Haible  <bruno@clisp.org>
84878         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
84879         least 4.2.
84881 2009-03-01  Eric Blake  <ebb9@byu.net>
84882             Bruno Haible  <bruno@clisp.org>
84884         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
84885         error messages.
84886         * lib/wait-process.c (wait_subprocess): Omit error message about
84887         deadly signal sent to the child of termsigp != NULL.
84889 2009-03-01  Eric Blake  <ebb9@byu.net>
84891         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
84893 2009-03-01  Bruno Haible  <bruno@clisp.org>
84895         Avoid a gcc warning.
84896         * tests/test-sched.c (b): Make global.
84897         Reported by Eric Blake.
84899 2009-01-19  Martin Lambers  <marlam@marlam.de>
84901         Provide POSIX semantics for socket timeout options on W32.
84902         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
84903         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
84904         * modules/setsockopt: Depend on sys_time module for struct timeval.
84905         * modules/getsockopt: Depend on sys_time module for struct timeval.
84907 2009-03-01  Simon Josefsson  <simon@josefsson.org>
84909         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
84910         __USE_GNU, for consistency with netdb.in.h.
84911         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84913 2009-03-01  Bruno Haible  <bruno@clisp.org>
84915         More support for FreeMiNT.
84916         * lib/fseeko.c (rpl_fseeko): Complete last commit.
84917         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84919 2009-03-01  Bruno Haible  <bruno@clisp.org>
84921         More support for FreeMiNT.
84922         * lib/fpurge.c (fpurge): Correct last commit.
84923         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84925 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84927         Fix unportable awk script in vc-list-files.
84928         * build-aux/vc-list-files: In the replacement awk script, use
84929         substr with a second argument of 1, not zero.
84930         Report by Simon Josefsson.
84932 2009-02-28  Bruno Haible  <bruno@clisp.org>
84934         More support for FreeMiNT.
84935         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
84936         to FreeMiNT today.
84937         * lib/fwriting.c (fwriting): Likewise.
84938         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
84940 2009-02-28  Bruno Haible  <bruno@clisp.org>
84942         * tests/test-freadseek.c (main): Disable test beyond end of file on
84943         FreeMiNT.
84944         * tests/test-ftello.c (main): Likewise.
84945         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84947 2009-02-28  Bruno Haible  <bruno@clisp.org>
84949         Add tentative support for FreeMiNT.
84950         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
84951         * lib/fpurge.c (fpurge): Likewise.
84952         * lib/freadable.c (freadable): Likewise.
84953         * lib/freading.c (freading): Likewise.
84954         * lib/freadptr.c (freadptr): Likewise.
84955         * lib/freadseek.c (freadptrinc): Likewise.
84956         * lib/fseeko.c (rpl_fseeko): Likewise.
84957         * lib/fseterr.c (fseterr): Likewise.
84958         * lib/fwritable.c (fwritable): Likewise.
84959         * lib/fwriting.c (fwriting): Likewise.
84960         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
84961         Hourihane.
84962         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84964 2009-02-28  Bruno Haible  <bruno@clisp.org>
84966         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
84967         SIGCHLD.
84968         Reported by Jim Meyering.
84970 2009-02-28  Bruno Haible  <bruno@clisp.org>
84972         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
84973         Mention the results of these tests on various platforms.
84974         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
84975         order.
84976         * doc/posix-functions/printf.texi: Likewise.
84977         * doc/posix-functions/snprintf.texi: Likewise.
84978         * doc/posix-functions/sprintf.texi: Likewise.
84979         * doc/posix-functions/vfprintf.texi: Likewise.
84980         * doc/posix-functions/vprintf.texi: Likewise.
84981         * doc/posix-functions/vsnprintf.texi: Likewise.
84982         * doc/posix-functions/vsprintf.texi: Likewise.
84983         * doc/glibc-functions/obstack_printf.texi: Likewise.
84984         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
84986 2009-02-28  Bruno Haible  <bruno@clisp.org>
84988         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
84989         Reported by Loïc Minier <lool@dooz.org>.
84991 2009-02-27  Bruno Haible  <bruno@clisp.org>
84993         * gnulib-tool (func_import): Make the sed expression used to create the
84994         sed script for updating the .gitignore file POSIX compliant.
84995         Reported by Eric Blake.
84997 2009-02-27  Bruno Haible  <bruno@clisp.org>
84999         * gnulib-tool (sed): Don't alias as "sed --posix".
85000         Reported by Eric Blake.
85002 2009-02-27  Bruno Haible  <bruno@clisp.org>
85004         Avoid test link errors.
85005         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
85006         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
85007         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
85008         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
85009         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85011 2009-02-27  Bruno Haible  <bruno@clisp.org>
85013         Avoid spurious "(cached)" in configure output.
85014         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
85015         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
85016         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
85017         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
85018         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
85019         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
85020         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
85021         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
85022         Reported by Eric Blake.
85024 2009-02-27  Eric Blake  <ebb9@byu.net>
85026         printf: fix regression in previous patch
85027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
85029 2009-02-27  Bruno Haible  <bruno@clisp.org>
85031         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
85032         value.
85033         * lib/stdint.in.h: Likewise.
85034         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
85036 2009-02-27  Eric Blake  <ebb9@byu.net>
85038         doc: mention more functions added in cygwin 1.7.0
85039         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
85040         addition.
85041         * doc/posix-functions/open_wmemstream.texi: Likewise.
85042         * doc/posix-functions/wcsnlen.texi: Likewise.
85043         * doc/posix-functions/wcsnrtombs.texi: Likewise.
85044         * doc/posix-functions/wcstod.texi: Likewise.
85045         * doc/posix-functions/wcstof.texi: Likewise.
85046         * doc/posix-functions/wcstoimax.texi: Likewise.
85047         * doc/posix-functions/wcstok.texi: Likewise.
85048         * doc/posix-functions/wcstoumax.texi: Likewise.
85050         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
85051         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
85052         * doc/posix-functions/fprintf.texi: Update.
85053         * doc/posix-functions/printf.texi: Update.
85054         * doc/posix-functions/snprintf.texi: Update.
85055         * doc/posix-functions/sprintf.texi: Update.
85056         * doc/posix-functions/vfprintf.texi: Update.
85057         * doc/posix-functions/vprintf.texi: Update.
85058         * doc/posix-functions/vsnprintf.texi: Update.
85059         * doc/posix-functions/vsprintf.texi: Update.
85060         * doc/glibc-functions/obstack_printf.texi: Update.
85061         * doc/glibc-functions/obstack_vprintf.texi: Update.
85063 2009-02-26  Eric Blake  <ebb9@byu.net>
85065         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
85066         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
85067         compilation bug by using runtime conversion.
85068         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
85069         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
85070         * modules/ceill-tests (Files): Use nan.h.
85071         * modules/floorl-tests (Files): Likewise.
85072         * modules/frexpl-tests (Files): Likewise.
85073         * modules/isnanl-tests (Files): Likewise.
85074         * modules/ldexpl-tests (Files): Likewise.
85075         * modules/roundl-tests (Files): Likewise.
85076         * modules/truncl-tests (Files): Likewise.
85077         * tests/test-ceill.c (main): Use a working NaN.
85078         * tests/test-floorl.c (main): Likewise.
85079         * tests/test-frexpl.c (main): Likewise.
85080         * tests/test-isnan.c (test_long_double): Likewise.
85081         * tests/test-isnanl.h (main): Likewise.
85082         * tests/test-ldexpl.h (main): Likewise.
85083         * tests/test-roundl.h (main): Likewise.
85084         * tests/test-truncl.h (main): Likewise.
85085         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
85087 2009-02-26  Eric Blake  <ebb9@byu.net>
85088             Bruno Haible  <bruno@clisp.org>
85090         Work around a *printf bug with %ls on Solaris.
85091         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
85092         precision is specified, sprintf stops converting the wide string
85093         argument when the number of bytes that have been produced by this
85094         conversion equals or exceeds the precision.
85095         * doc/posix-functions/fprintf.texi: Update.
85096         * doc/posix-functions/printf.texi: Update.
85097         * doc/posix-functions/snprintf.texi: Update.
85098         * doc/posix-functions/sprintf.texi: Update.
85099         * doc/posix-functions/vfprintf.texi: Update.
85100         * doc/posix-functions/vprintf.texi: Update.
85101         * doc/posix-functions/vsnprintf.texi: Update.
85102         * doc/posix-functions/vsprintf.texi: Update.
85103         * doc/glibc-functions/obstack_printf.texi: Update.
85104         * doc/glibc-functions/obstack_vprintf.texi: Update.
85106 2009-02-26  Eric Blake  <ebb9@byu.net>
85108         stdlib: favor compiler check of random.h
85109         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
85110         to avoid an ObjC random.h installed by Swarm.
85112 2009-02-26  Bruno Haible  <bruno@clisp.org>
85114         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
85115         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
85116         Reported by Gary V. Vaughan <gary@gnu.org>.
85118 2009-02-26  Bruno Haible  <bruno@clisp.org>
85120         Fix *printf behaviour regarding the %ls directive.
85121         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
85122         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
85123         NEED_PRINTF_DIRECTIVE_LS.
85124         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
85125         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
85126         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85127         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
85128         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
85129         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
85130         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
85131         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85132         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85133         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85134         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85135         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
85136         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85138         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85139         * doc/posix-functions/fprintf.texi: Update.
85140         * doc/posix-functions/printf.texi: Update.
85141         * doc/posix-functions/snprintf.texi: Update.
85142         * doc/posix-functions/sprintf.texi: Update.
85143         * doc/posix-functions/vfprintf.texi: Update.
85144         * doc/posix-functions/vprintf.texi: Update.
85145         * doc/posix-functions/vsnprintf.texi: Update.
85146         * doc/posix-functions/vsprintf.texi: Update.
85147         * doc/glibc-functions/obstack_printf.texi: Update.
85148         * doc/glibc-functions/obstack_vprintf.texi: Update.
85149         Reported by Eric Blake.
85151 2009-02-25  Bruno Haible  <bruno@clisp.org>
85153         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
85154         with known value.
85155         Reported by Gary V. Vaughan <gary@gnu.org>.
85157 2009-02-25  Bruno Haible  <bruno@clisp.org>
85159         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
85160         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
85161         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
85162         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
85163         Reported by Gary V. Vaughan <gary@gnu.org>.
85165 2009-02-25  Bruno Haible  <bruno@clisp.org>
85167         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
85168         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
85169         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
85170         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
85171         Reported by Gary V. Vaughan <gary@gnu.org>.
85173 2009-02-25  Eric Blake  <ebb9@byu.net>
85175         tests: skip fseek/ftell tests if ungetc is broken
85176         * m4/ungetc.m4: New file.
85177         * modules/fseek-tests: Split test, so ungetc dependency is
85178         separate from rest of test.
85179         * modules/fseeko-tests: Likewise.
85180         * modules/ftell-tests: Likewise.
85181         * modules/ftello-tests: Likewise.
85182         * tests/test-fseek.c (main): Isolate ungetc dependency.
85183         * tests/test-fseeko.c (main): Likewise.
85184         * tests/test-ftell.c (main): Likewise.
85185         * tests/test-ftello.c (main): Likewise.
85186         * tests/test-fseek2.sh: New file.
85187         * tests/test-fseeko2.sh: Likewise.
85188         * tests/test-ftell2.sh: Likewise.
85189         * tests/test-ftello2.sh: Likewise.
85191 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
85193         test-getaddrinfo: fix usage of skip return code 77
85194         * tests/test-gettaddrinfo.c: Return skip code 77 only
85195         for first occurrence of skip (4x77 is not 77)
85197 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
85199         strtod: avoid C99 decl-after-statement
85200         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
85202 2009-02-24  Eric Blake  <ebb9@byu.net>
85204         strtod: detect HP-UX 11.31 bug
85205         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
85206         Reported by Gary V. Vaughan.
85208 2009-02-23  Bruno Haible  <bruno@clisp.org>
85210         Fix invalid read past end of memory block.
85211         * lib/vasnprintf.c (DCHAR_SET): Define.
85212         (local_wcslen): Define only when needed.
85213         (local_strnlen, local_wcsnlen): New functions.
85214         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
85215         directives that involve a conversion ourselves.
85216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
85217         wcsnlen, mbrtowc, wcrtomb.
85218         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
85219         * tests/test-vasprintf-posix.c (test_function): Likewise.
85220         * tests/test-snprintf-posix.h (test_function): Likewise.
85221         * tests/test-sprintf-posix.h (test_function): Likewise.
85222         Reported by Ben Pfaff <blp@cs.stanford.edu>.
85224 2009-02-22  Bruno Haible  <bruno@clisp.org>
85226         Implement new clarified decomposition of Hangul syllables.
85227         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
85228         of type LTV, return only a pairwise decomposition.
85229         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
85230         Likewise.
85231         * tests/uninorm/test-decomposition.c (main): Updated expected result.
85232         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
85233         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
85235 2009-02-22  Bruno Haible  <bruno@clisp.org>
85237         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
85238         zero-length results and shrink excess allocated memory.
85239         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
85240         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
85241         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
85242         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
85243         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
85244         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
85245         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
85246         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
85247         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
85248         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
85249         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
85250         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
85252 2009-02-21  Bruno Haible  <bruno@clisp.org>
85254         * doc/gnulib.texi: Include safe-alloc.texi earlier.
85255         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
85256         spaces after a period. Put a space between a macro name and its
85257         argument list. Trivial rewordings.
85258         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
85259         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
85260         (main): Return 0 explicitly.
85262 2009-02-21  Bruno Haible  <bruno@clisp.org>
85264         Tests for module 'uninorm/filter'.
85265         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
85266         * modules/uninorm/filter-tests: New file.
85268         New module 'uninorm/filter'.
85269         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
85270         uninorm_filter_flush, uninorm_filter_free): New declarations.
85271         * lib/uninorm/uninorm-filter.c: New file.
85272         * modules/uninorm/filter: New file.
85274 2009-02-21  Bruno Haible  <bruno@clisp.org>
85276         Tests for module 'uninorm/nfkc'.
85277         * tests/uninorm/test-nfkc.c: New file.
85278         * tests/uninorm/test-u8-nfkc.c: New file.
85279         * tests/uninorm/test-u16-nfkc.c: New file.
85280         * tests/uninorm/test-u32-nfkc.c: New file.
85281         * tests/uninorm/test-u32-nfkc-big.sh: New file.
85282         * tests/uninorm/test-u32-nfkc-big.c: New file.
85283         * modules/uninorm/nfkc-tests: New file.
85285         New module 'uninorm/nfkc'.
85286         * lib/uninorm/nfkc.c: New file.
85287         * modules/uninorm/nfkc: New file.
85289         Tests for module 'uninorm/nfkd'.
85290         * tests/uninorm/test-nfkd.c: New file.
85291         * tests/uninorm/test-u8-nfkd.c: New file.
85292         * tests/uninorm/test-u16-nfkd.c: New file.
85293         * tests/uninorm/test-u32-nfkd.c: New file.
85294         * tests/uninorm/test-u32-nfkd-big.sh: New file.
85295         * tests/uninorm/test-u32-nfkd-big.c: New file.
85296         * modules/uninorm/nfkd-tests: New file.
85298         New module 'uninorm/nfkd'.
85299         * lib/uninorm/nfkd.c: New file.
85300         * modules/uninorm/nfkd: New file.
85302         Tests for module 'uninorm/nfc'.
85303         * tests/uninorm/test-nfc.c: New file.
85304         * tests/uninorm/test-u8-nfc.c: New file.
85305         * tests/uninorm/test-u16-nfc.c: New file.
85306         * tests/uninorm/test-u32-nfc.c: New file.
85307         * tests/uninorm/test-u32-nfc-big.sh: New file.
85308         * tests/uninorm/test-u32-nfc-big.c: New file.
85309         * modules/uninorm/nfc-tests: New file.
85311         New module 'uninorm/nfc'.
85312         * lib/uninorm/nfc.c: New file.
85313         * modules/uninorm/nfc: New file.
85315         Tests for module 'uninorm/nfd'.
85316         * tests/uninorm/test-nfd.c: New file.
85317         * tests/uninorm/test-u8-nfd.c: New file.
85318         * tests/uninorm/test-u16-nfd.c: New file.
85319         * tests/uninorm/test-u32-nfd.c: New file.
85320         * tests/uninorm/test-u32-nfd-big.sh: New file.
85321         * tests/uninorm/test-u32-nfd-big.c: New file.
85322         * tests/uninorm/test-u32-normalize-big.h: New file.
85323         * tests/uninorm/test-u32-normalize-big.c: New file.
85324         * tests/uninorm/NormalizationTest.txt: New file, created from
85325         Unicode 5.1.0 NormalizationTest.txt.
85326         * modules/uninorm/nfd-tests: New file.
85328         New module 'uninorm/nfd'.
85329         * lib/uninorm/nfd.c: New file.
85330         * modules/uninorm/nfd: New file.
85332         New module 'uninorm/u32-normalize'.
85333         * lib/uninorm/u32-normalize.c: New file.
85334         * modules/uninorm/u32-normalize: New file.
85336         New module 'uninorm/u16-normalize'.
85337         * lib/uninorm/u16-normalize.c: New file.
85338         * modules/uninorm/u16-normalize: New file.
85340         New module 'uninorm/u8-normalize'.
85341         * lib/uninorm/u8-normalize.c: New file.
85342         * lib/uninorm/normalize-internal.h: New file.
85343         * lib/uninorm/u-normalize-internal.h: New file.
85344         * modules/uninorm/u8-normalize: New file.
85346         New module 'uninorm/decompose-internal'.
85347         * lib/uninorm/decompose-internal.c: New file.
85348         * modules/uninorm/decompose-internal: New file.
85350         Tests for module 'uninorm/composition'.
85351         * tests/uninorm/test-composition.c: New file.
85352         * modules/uninorm/composition-tests: New file.
85354         New module 'uninorm/composition'.
85355         * lib/uninorm/composition.c: New file.
85356         * lib/uninorm/composition-table.gperf: New file, generated by
85357         gen-uni-tables.
85358         * modules/uninorm/composition: New file.
85360         Tests for module 'uninorm/compat-decomposition'.
85361         * tests/uninorm/test-compat-decomposition.c: New file.
85362         * modules/uninorm/compat-decomposition-tests: New file.
85364         New module 'uninorm/compat-decomposition'.
85365         * lib/uninorm/decompose-internal.h: New file.
85366         * lib/uninorm/compat-decomposition.c: New file.
85367         * modules/uninorm/compat-decomposition: New file.
85369         Tests for module 'uninorm/canonical-decomposition'.
85370         * tests/uninorm/test-canonical-decomposition.c: New file.
85371         * modules/uninorm/canonical-decomposition-tests: New file.
85373         New module 'uninorm/canonical-decomposition'.
85374         * lib/uninorm/canonical-decomposition.c: New file.
85375         * modules/uninorm/canonical-decomposition: New file.
85377         Tests for module 'uninorm/decomposition'.
85378         * tests/uninorm/test-decomposition.c: New file.
85379         * modules/uninorm/decomposition-tests: New file.
85381         New module 'uninorm/decomposition'.
85382         * lib/uninorm/decomposition.c: New file.
85383         * modules/uninorm/decomposition: New file.
85385         New module 'uninorm/decomposition-table'.
85386         * lib/uninorm/decomposition-table.h: New file.
85387         * lib/uninorm/decomposition-table.c: New file.
85388         * lib/uninorm/decomposition-table1.h: New file, generated by
85389         gen-uni-tables.
85390         * lib/uninorm/decomposition-table2.h: New file, generated by
85391         gen-uni-tables.
85392         * modules/uninorm/decomposition-table: New file.
85394         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
85395         (UC_DECOMP_*): New enumeration items.
85396         (get_decomposition): New function.
85397         (struct decomp_table): New type.
85398         (output_decomposition, output_decomposition_tables): New functions.
85399         (unicode_composition_exclusions): New variable.
85400         (fill_composition_exclusions, debug_output_composition_tables): New
85401         functions.
85402         (main): Accept one more argument. Invoke fill_composition_exclusions.
85403         Output decomposition and composition tables.
85405         New module 'uninorm/base'.
85406         * lib/uninorm.h: New file.
85407         * lib/unictype.h: Update comment.
85408         * modules/uninorm/base: New file.
85410 2009-02-21  David Lutterkort  <lutter@redhat.com>
85412         Tests for module 'safe-alloc'.
85413         * tests/test-safe-alloc.c: New file.
85414         * modules/safe-alloc-tests: New file.
85416         New module 'safe-alloc'.
85417         * lib/safe-alloc.h: New file.
85418         * lib/safe-alloc.c: New file.
85419         * m4/safe-alloc.m4: New file.
85420         * modules/safe-alloc: New file.
85421         * doc/safe-alloc.texi: New file.
85422         * doc/gnulib.texi: Include it.
85423         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
85424         safe-alloc.
85426 2009-02-18  Bruno Haible  <bruno@clisp.org>
85428         Fix link error on non-glibc systems.
85429         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
85430         variable.
85431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85433 2009-02-18  Jim Meyering  <meyering@redhat.com>
85435         fts: avoid used-uninitialized error due to recent change
85436         * lib/fts.c (fts_read): Guard uses of the new member,
85437         parent->fts_n_dirs_remaining, since it's not relevant for
85438         the parent of a directory specified on the command-line.
85440 2009-02-17  James Youngman  <jay@gnu.org>
85441             Bruno Haible  <bruno@clisp.org>
85443         * m4/include_next.m4: Reformulate comment.
85445 2009-02-16  Jim Meyering  <meyering@redhat.com>
85447         fts: add #if guards so that the fts_lgpl module still builds
85448         * lib/fts.c: Guard just-added hash-table-using parts with
85449         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
85450         Reported by Simon Josefsson.
85452 2009-02-15  Bruno Haible  <bruno@clisp.org>
85454         * modules/array-mergesort-tests: New file.
85455         * tests/test-array-mergesort.c: New file.
85457         New module 'array-mergesort'.
85458         * modules/array-mergesort: New file.
85459         * lib/array-mergesort.h: New file.
85461 2009-02-15  Bruno Haible  <bruno@clisp.org>
85463         Fix 2009-02-07 commit.
85464         * lib/gen-uni-tables.c (output_predicate, output_category,
85465         output_combclass, output_bidi_category, output_decimal_digit,
85466         output_digit, output_numeric, output_mirror, output_scripts,
85467         output_ident_category, output_simple_mapping): Fix format directives.
85468         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
85470 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
85472         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
85473         fixes are available from IBM.
85475 2009-02-13  Jim Meyering  <meyering@redhat.com>
85477         fts: arrange not to stat non-directories in more cases
85478         This makes GNU find (when it doesn't need to stat each file)
85479         *much* more efficient at traversing reiserfs file systems.
85480         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
85481         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
85482         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
85483         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
85484         (leaf_optimization_applies): New function.
85485         (LCO_hash, LCO_compare): New helper functions.
85486         (link_count_optimize_ok): New function.
85487         (fts_stat): Initialize new member (if dir).
85488         (fts_read): Decrement parent's fts_n_dirs_remaining count if
85489         we've just stat'ed a directory.  Skip the stat call when possible.
85490         ---
85491         Note this AFS-related exchange:
85492         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
85493         and note find's pioctl call in find/fstype.c.
85494         But that is necessary only if you want to enable the
85495         optimization for AFS, and for now, I don't.
85497         fts: move a function definition "up" (no semantic change)
85498         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
85499         "up" to precede upcoming use of a related function.
85501 2009-02-11  Jim Meyering  <meyering@redhat.com>
85503         fts: correct internal computation of nlinks (optimization-related)
85504         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
85505         whether the current entry is a directory, so don't test it.
85507 2009-02-10  Bruno Haible  <bruno@clisp.org>
85509         Tests for module 'uniwbrk/ulc-wordbreaks'.
85510         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
85511         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
85512         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
85514         Tests for module 'uniwbrk/u32-wordbreaks'.
85515         * modules/uniwbrk/u32-wordbreaks-tests: New file.
85516         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
85518         Tests for module 'uniwbrk/u16-wordbreaks'.
85519         * modules/uniwbrk/u16-wordbreaks-tests: New file.
85520         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
85522         Tests for module 'uniwbrk/u8-wordbreaks'.
85523         * modules/uniwbrk/u8-wordbreaks-tests: New file.
85524         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
85526 2009-02-10  Bruno Haible  <bruno@clisp.org>
85528         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
85529         property.
85530         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
85531         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
85532         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
85534 2009-02-10  Simon Josefsson  <simon@josefsson.org>
85536         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
85537         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
85539 2009-02-10  Bruno Haible  <bruno@clisp.org>
85541         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
85542         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
85543         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
85544         * lib/unilbrk/u8-possible-linebreaks.c: Update.
85545         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
85546         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
85548 2009-02-09  Simon Josefsson  <simon@josefsson.org>
85550         * lib/sockets.h (gl_fd_to_handle): New function.
85552         * tests/test-sockets.c: Call gl_fd_to_handle.
85554 2009-02-09  Bruno Haible  <bruno@clisp.org>
85556         * doc/havelib.texi: Document the conventions on bi-arch systems.
85558 2009-02-08  Bruno Haible  <bruno@clisp.org>
85560         Document the AC_LIB_LINKFLAGS macro.
85561         * doc/havelib.texi: New file, mostly written on 2005-05-24.
85562         * doc/gnulib.texi: Include it.
85564 2009-02-08  Bruno Haible  <bruno@clisp.org>
85566         Fix wrong order of sections, compared to TOC.
85567         * doc/gnulib.texi: Include relocatable-maint.texi after the
85568         "Regular expressions" node, not before.
85570 2009-02-08  Bruno Haible  <bruno@clisp.org>
85572         Tests for module 'unicase/totitle'.
85573         * modules/unicase/totitle-tests: New file.
85575         Tests for module 'unicase/tolower'.
85576         * modules/unicase/tolower-tests: New file.
85578         Tests for module 'unicase/toupper'.
85579         * modules/unicase/toupper-tests: New file.
85580         * tests/unicase/test-mapping-part1.h: New file.
85581         * tests/unicase/test-mapping-part2.h: New file.
85583         New module 'unicase/totitle'.
85584         * modules/unicase/totitle: New file.
85585         * lib/unicase/totitle.c: New file.
85587         New module 'unicase/tolower'.
85588         * modules/unicase/tolower: New file.
85589         * lib/unicase/tolower.c: New file.
85591         New module 'unicase/toupper'.
85592         * modules/unicase/toupper: New file.
85593         * lib/unicase/toupper.c: New file.
85594         * lib/unicase/simple-mapping.h: New file.
85596         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
85597         (mapping_table): New structure.
85598         (output_simple_mapping): New function.
85599         (main): Invoke output_simple_mapping_test and output_simple_mapping.
85600         * modules/gen-uni-tables (Description): Update.
85601         * lib/unicase/toupper.h: New file, automatically generated by
85602         gen-uni-tables.
85603         * lib/unicase/tolower.h: New file, automatically generated by
85604         gen-uni-tables.
85605         * lib/unicase/totitle.h: New file, automatically generated by
85606         gen-uni-tables.
85607         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
85608         gen-uni-tables.
85609         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
85610         gen-uni-tables.
85611         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
85612         gen-uni-tables.
85614         New module 'unicase/base'.
85615         * modules/unicase/base: New file.
85616         * lib/unicase.h: New file.
85618 2009-02-08  Bruno Haible  <bruno@clisp.org>
85620         New module 'uniwbrk/ulc-wordbreaks'.
85621         * modules/uniwbrk/ulc-wordbreaks: New file.
85622         * lib/uniwbrk/ulc-wordbreaks.c: New file.
85624         New module 'uniwbrk/u32-wordbreaks'.
85625         * modules/uniwbrk/u32-wordbreaks: New file.
85626         * lib/uniwbrk/u32-wordbreaks.c: New file.
85628         New module 'uniwbrk/u16-wordbreaks'.
85629         * modules/uniwbrk/u16-wordbreaks: New file.
85630         * lib/uniwbrk/u16-wordbreaks.c: New file.
85632         New module 'uniwbrk/u8-wordbreaks'.
85633         * modules/uniwbrk/u8-wordbreaks: New file.
85634         * lib/uniwbrk/u8-wordbreaks.c: New file.
85635         * lib/uniwbrk/u-wordbreaks.h: New file.
85637         New module 'uniwbrk/table'.
85638         * modules/uniwbrk/table: New file.
85639         * lib/uniwbrk/wbrktable.h: New file.
85640         * lib/uniwbrk/wbrktable.c: New file.
85642         New module 'uniwbrk/wordbreak-property'.
85643         * modules/uniwbrk/wordbreak-property: New file.
85644         * lib/uniwbrk/wordbreak-property.c: New file.
85646         * lib/gen-uni-tables.c (WBP_*): New enum items.
85647         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
85648         (unicode_org_wbp): New variable.
85649         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
85650         New functions.
85651         (wbp_table): New structure.
85652         (output_wbp, output_wbrk_tables): New functions.
85653         (main): Accept additional argument. Invoke fill_org_wbp,
85654         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
85655         output_wbrk_tables.
85656         * modules/gen-uni-tables (Description): Update.
85657         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
85658         gen-uni-tables.
85660         New module 'uniwbrk/base'.
85661         * modules/uniwbrk/base: New file.
85662         * lib/uniwbrk.h: New file.
85664 2009-02-08  Bruno Haible  <bruno@clisp.org>
85666         Update to Unicode 5.1.0.
85667         * lib/gen-uni-tables.c (is_property_alphabetic): Include
85668         U+2185..U+2188.
85669         (is_property_default_ignorable_code_point): Don't include characters
85670         of category Cc or Cs and not-a-characters.
85671         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
85672         U+0D79, U+109E, U+109F, U+A60C.
85673         * lib/unictype/bidi_of.h: Regenerated.
85674         * lib/unictype/blocks.h: Regenerated.
85675         * lib/unictype/categ_C.h: Regenerated.
85676         * lib/unictype/categ_Cf.h: Regenerated.
85677         * lib/unictype/categ_Cn.h: Regenerated.
85678         * lib/unictype/categ_L.h: Regenerated.
85679         * lib/unictype/categ_Ll.h: Regenerated.
85680         * lib/unictype/categ_Lm.h: Regenerated.
85681         * lib/unictype/categ_Lo.h: Regenerated.
85682         * lib/unictype/categ_Lu.h: Regenerated.
85683         * lib/unictype/categ_M.h: Regenerated.
85684         * lib/unictype/categ_Mc.h: Regenerated.
85685         * lib/unictype/categ_Me.h: Regenerated.
85686         * lib/unictype/categ_Mn.h: Regenerated.
85687         * lib/unictype/categ_N.h: Regenerated.
85688         * lib/unictype/categ_Nd.h: Regenerated.
85689         * lib/unictype/categ_Nl.h: Regenerated.
85690         * lib/unictype/categ_No.h: Regenerated.
85691         * lib/unictype/categ_P.h: Regenerated.
85692         * lib/unictype/categ_Pd.h: Regenerated.
85693         * lib/unictype/categ_Pe.h: Regenerated.
85694         * lib/unictype/categ_Pf.h: Regenerated.
85695         * lib/unictype/categ_Pi.h: Regenerated.
85696         * lib/unictype/categ_Po.h: Regenerated.
85697         * lib/unictype/categ_Ps.h: Regenerated.
85698         * lib/unictype/categ_S.h: Regenerated.
85699         * lib/unictype/categ_Sk.h: Regenerated.
85700         * lib/unictype/categ_Sm.h: Regenerated.
85701         * lib/unictype/categ_So.h: Regenerated.
85702         * lib/unictype/categ_of.h: Regenerated.
85703         * lib/unictype/combining.h: Regenerated.
85704         * lib/unictype/ctype_alnum.h: Regenerated.
85705         * lib/unictype/ctype_alpha.h: Regenerated.
85706         * lib/unictype/ctype_graph.h: Regenerated.
85707         * lib/unictype/ctype_lower.h: Regenerated.
85708         * lib/unictype/ctype_print.h: Regenerated.
85709         * lib/unictype/ctype_punct.h: Regenerated.
85710         * lib/unictype/ctype_upper.h: Regenerated.
85711         * lib/unictype/decdigit.h: Regenerated.
85712         * lib/unictype/digit.h: Regenerated.
85713         * lib/unictype/mirror.h: Regenerated.
85714         * lib/unictype/numeric.h: Regenerated.
85715         * lib/unictype/pr_alphabetic.h: Regenerated.
85716         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
85717         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
85718         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
85719         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
85720         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
85721         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
85722         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
85723         * lib/unictype/pr_combining.h: Regenerated.
85724         * lib/unictype/pr_dash.h: Regenerated.
85725         * lib/unictype/pr_decimal_digit.h: Regenerated.
85726         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
85727         * lib/unictype/pr_deprecated.h: Regenerated.
85728         * lib/unictype/pr_diacritic.h: Regenerated.
85729         * lib/unictype/pr_extender.h: Regenerated.
85730         * lib/unictype/pr_format_control.h: Regenerated.
85731         * lib/unictype/pr_grapheme_base.h: Regenerated.
85732         * lib/unictype/pr_grapheme_extend.h: Regenerated.
85733         * lib/unictype/pr_grapheme_link.h: Regenerated.
85734         * lib/unictype/pr_id_continue.h: Regenerated.
85735         * lib/unictype/pr_id_start.h: Regenerated.
85736         * lib/unictype/pr_ideographic.h: Regenerated.
85737         * lib/unictype/pr_ignorable_control.h: Regenerated.
85738         * lib/unictype/pr_lowercase.h: Regenerated.
85739         * lib/unictype/pr_math.h: Regenerated.
85740         * lib/unictype/pr_numeric.h: Regenerated.
85741         * lib/unictype/pr_other_alphabetic.h: Regenerated.
85742         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
85743         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
85744         * lib/unictype/pr_other_id_continue.h: Regenerated.
85745         * lib/unictype/pr_other_lowercase.h: Regenerated.
85746         * lib/unictype/pr_other_math.h: Regenerated.
85747         * lib/unictype/pr_punctuation.h: Regenerated.
85748         * lib/unictype/pr_sentence_terminal.h: Regenerated.
85749         * lib/unictype/pr_soft_dotted.h: Regenerated.
85750         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
85751         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
85752         * lib/unictype/pr_unified_ideograph.h: Regenerated.
85753         * lib/unictype/pr_uppercase.h: Regenerated.
85754         * lib/unictype/pr_xid_continue.h: Regenerated.
85755         * lib/unictype/pr_xid_start.h: Regenerated.
85756         * lib/unictype/pr_zero_width.h: Regenerated.
85757         * lib/unictype/scripts.h: Regenerated.
85758         * lib/unictype/scripts_byname.gperf: Regenerated.
85759         * lib/unictype/sy_java_ident.h: Regenerated.
85760         * lib/unilbrk/lbrkprop1.h: Regenerated.
85761         * lib/unilbrk/lbrkprop2.h: Regenerated.
85762         * tests/unictype/test-categ_C.c: Regenerated.
85763         * tests/unictype/test-categ_Cf.c: Regenerated.
85764         * tests/unictype/test-categ_Cn.c: Regenerated.
85765         * tests/unictype/test-categ_L.c: Regenerated.
85766         * tests/unictype/test-categ_Ll.c: Regenerated.
85767         * tests/unictype/test-categ_Lm.c: Regenerated.
85768         * tests/unictype/test-categ_Lo.c: Regenerated.
85769         * tests/unictype/test-categ_Lu.c: Regenerated.
85770         * tests/unictype/test-categ_M.c: Regenerated.
85771         * tests/unictype/test-categ_Mc.c: Regenerated.
85772         * tests/unictype/test-categ_Me.c: Regenerated.
85773         * tests/unictype/test-categ_Mn.c: Regenerated.
85774         * tests/unictype/test-categ_N.c: Regenerated.
85775         * tests/unictype/test-categ_Nd.c: Regenerated.
85776         * tests/unictype/test-categ_Nl.c: Regenerated.
85777         * tests/unictype/test-categ_No.c: Regenerated.
85778         * tests/unictype/test-categ_P.c: Regenerated.
85779         * tests/unictype/test-categ_Pd.c: Regenerated.
85780         * tests/unictype/test-categ_Pe.c: Regenerated.
85781         * tests/unictype/test-categ_Pf.c: Regenerated.
85782         * tests/unictype/test-categ_Pi.c: Regenerated.
85783         * tests/unictype/test-categ_Po.c: Regenerated.
85784         * tests/unictype/test-categ_Ps.c: Regenerated.
85785         * tests/unictype/test-categ_S.c: Regenerated.
85786         * tests/unictype/test-categ_Sk.c: Regenerated.
85787         * tests/unictype/test-categ_Sm.c: Regenerated.
85788         * tests/unictype/test-categ_So.c: Regenerated.
85789         * tests/unictype/test-ctype_alnum.c: Regenerated.
85790         * tests/unictype/test-ctype_alpha.c: Regenerated.
85791         * tests/unictype/test-ctype_graph.c: Regenerated.
85792         * tests/unictype/test-ctype_lower.c: Regenerated.
85793         * tests/unictype/test-ctype_print.c: Regenerated.
85794         * tests/unictype/test-ctype_punct.c: Regenerated.
85795         * tests/unictype/test-ctype_upper.c: Regenerated.
85796         * tests/unictype/test-decdigit.h: Regenerated.
85797         * tests/unictype/test-digit.h: Regenerated.
85798         * tests/unictype/test-numeric.h: Regenerated.
85799         * tests/unictype/test-pr_alphabetic.c: Regenerated.
85800         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
85801         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
85802         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
85803         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
85804         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
85805         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
85806         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
85807         * tests/unictype/test-pr_combining.c: Regenerated.
85808         * tests/unictype/test-pr_dash.c: Regenerated.
85809         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
85810         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
85811         * tests/unictype/test-pr_deprecated.c: Regenerated.
85812         * tests/unictype/test-pr_diacritic.c: Regenerated.
85813         * tests/unictype/test-pr_extender.c: Regenerated.
85814         * tests/unictype/test-pr_format_control.c: Regenerated.
85815         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
85816         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
85817         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
85818         * tests/unictype/test-pr_id_continue.c: Regenerated.
85819         * tests/unictype/test-pr_id_start.c: Regenerated.
85820         * tests/unictype/test-pr_ideographic.c: Regenerated.
85821         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
85822         * tests/unictype/test-pr_lowercase.c: Regenerated.
85823         * tests/unictype/test-pr_math.c: Regenerated.
85824         * tests/unictype/test-pr_numeric.c: Regenerated.
85825         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
85826         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
85827         Regenerated.
85828         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
85829         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
85830         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
85831         * tests/unictype/test-pr_other_math.c: Regenerated.
85832         * tests/unictype/test-pr_punctuation.c: Regenerated.
85833         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
85834         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
85835         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
85836         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
85837         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
85838         * tests/unictype/test-pr_uppercase.c: Regenerated.
85839         * tests/unictype/test-pr_xid_continue.c: Regenerated.
85840         * tests/unictype/test-pr_xid_start.c: Regenerated.
85841         * tests/unictype/test-pr_zero_width.c: Regenerated.
85843         Update to Unicode 5.1.0.
85844         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
85845         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
85846         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
85847         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
85848         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
85849         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
85850         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
85851         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
85852         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
85853         (nonspacing_table_ind): Update.
85854         * tests/uniwidth/test-uc_width2.sh: Update expected result.
85856         Update to Unicode 5.1.0.
85857         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
85858         code transform.
85859         * lib/uniname/uniname.c (unicode_character_name,
85860         unicode_name_character): Add the range 0x1Fxxx to the code transform.
85861         * lib/uniname/uninames.h: Regenerated.
85862         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
85864 2009-02-07  Bruno Haible  <bruno@clisp.org>
85866         Merge gen-ctype and gen-lbrk into a single program.
85867         * lib/gen-uni-tables.c: New file, incorporating
85868         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
85869         Add directory prefixes to the names of the generated files.
85870         * lib/unictype/gen-ctype.c: Remove file.
85871         * lib/unilbrk/gen-lbrk.c: Remove file.
85872         * modules/gen-uni-tables: New file.
85873         * modules/unictype/gen-ctype: Remove file.
85874         * modules/unilbrk/gen-lbrk: Remove file.
85876 2009-02-07  Bruno Haible  <bruno@clisp.org>
85878         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
85880         New module 'unistr/u32-strcoll'.
85881         * modules/unistr/u32-strcoll: New file.
85882         * lib/unistr/u32-strcoll.c: New file.
85884         New module 'unistr/u16-strcoll'.
85885         * modules/unistr/u16-strcoll: New file.
85886         * lib/unistr/u16-strcoll.c: New file.
85888         New module 'unistr/u8-strcoll'.
85889         * modules/unistr/u8-strcoll: New file.
85890         * lib/unistr/u8-strcoll.c: New file.
85891         * lib/unistr/u-strcoll.h: New file.
85893 2009-02-07  Bruno Haible  <bruno@clisp.org>
85895         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
85896         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85897         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85898         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
85899         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
85900         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
85902 2009-02-07  Bruno Haible  <bruno@clisp.org>
85904         Make 64-bit clean.
85905         * lib/unictype/gen-ctype.c (output_predicate, output_category,
85906         output_combclass, output_bidi_category, output_decimal_digit,
85907         output_digit, output_numeric, output_mirror, output_scripts,
85908         output_ident_category): Use proper width specifier in format strings.
85910 2009-02-07  Bruno Haible  <bruno@clisp.org>
85912         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
85913         failure behaviour.
85915 2009-02-07  Jim Meyering  <meyering@redhat.com>
85917         regex: avoid compilation failure with upcoming gcc-4.4
85918         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
85919         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
85920         "... error: integer overflow in preprocessor expression".
85922 2009-02-05  Ben Pfaff  <blp@gnu.org>
85924         Fix link errors on Windows when close module is used.
85925         * modules/close: Add $(LIB_CLOSE) to Link section.
85926         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
85927         $(LIB_CLOSE) on Windows.
85929 2009-02-05  Jim Meyering  <meyering@redhat.com>
85931         still avoid unused-parameter warnings, but do it cleanly
85932         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
85933         (get_fs_usage): Cast to void instead.
85934         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
85935         (dev_from_mount_options, read_file_system_list): Cast to void.
85936         Prompted by Bruno Haible.
85938 2009-02-04  Jim Meyering  <meyering@redhat.com>
85940         fsusage.c: correct copyright year
85941         * lib/fsusage.c: Reflect year in which the change is pushed into
85943         avoid misc. warnings
85944         * lib/fsusage.c (UNUSED_PARAM): Define.
85945         (get_fs_usage): Mark parameter "disk" as unused.
85946         * lib/getugroups.c (getgrent): Use "void" in prototype.
85947         * lib/mountlist.c: Mark unused parameters.
85948         (read_file_system_list): Declare a local with "const".
85949         * lib/nanosleep.c (getnow): Declare static.
85950         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
85952         dirfd: set errno upon failure
85953         * lib/dirfd.c: Include <errno.h>.
85954         Set errno to ENOTSUP when returning -1.
85955         * modules/dirfd (Depends-on): Add errno.
85956         Suggested by John Kodis <kodis@comcast.net>.
85958 2009-02-01  Bruno Haible  <bruno@clisp.org>
85960         Don't assume sizeof (long) >= sizeof (void *).
85961         * lib/memcmp.c: Include stdint.h.
85962         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
85963         srcp2 to 'const byte *'.
85964         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
85965         types to uintptr_t.
85966         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
85967         * modules/memcmp (Depends-on): Add stdint.
85968         Reported by Ozkan Sezer <sezeroz@gmail.com>.
85970 2009-01-30  Eric Blake  <ebb9@byu.net>
85972         fix more require-before-expand issues
85973         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
85974         expand, AC_PROG_AWK.
85975         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
85977 2009-01-28  Eric Blake  <ebb9@byu.net>
85979         version-etc: use consistent URL formatting
85980         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
85981         Improve formatting.  Use fputs for string without %.
85983 2009-01-28  Jim Meyering  <meyering@redhat.com>
85985         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
85986         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
85987         "underquoted definition of NAME" from autoconf-2.59.
85989 2009-01-28  Bruno Haible  <bruno@clisp.org>
85991         * doc/gnulib.texi: Add "Obsolete modules" to index.
85993 2009-01-28  Jim Meyering  <meyering@redhat.com>
85995         useless-if-before-free: recognize more variants
85996         * build-aux/useless-if-before-free: Also recognize e.g.,
85997         if (NULL != p) free (p);
85999 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
86001         test-getaddrinfo: skip (don't fail) this test when there's no network
86002         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
86003         on the presumption that it means you lack network access.
86005 2009-01-26  Jim Meyering  <meyering@redhat.com>
86007         fflush: avoid warnings on modern systems
86008         * lib/fflush.c (rpl_fflush): Move declarations of locals,
86009         pos and result, into scopes where they're used.
86011 2009-01-26  Eric Blake  <ebb9@byu.net>
86013         Silence warning reintroduced by recent extensions patch.
86014         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
86015         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
86016         autoconf.
86018         Backport improved autoconf semantics of AC_DEFUN_ONCE.
86019         * m4/00gnulib.m4: New file.
86020         * gnulib-tool (func_get_filelist): Always use it.
86021         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
86022         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
86024 2009-01-25  Bruno Haible  <bruno@clisp.org>
86026         Make test-quotearg work on MacOS X and AIX.
86027         * tests/test-quotearg.sh: New file.
86028         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
86029         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
86030         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
86031         include <libintl.h>.
86032         (fake_locale): Remove variable.
86033         (gettext, dgettext, dcgettext): Remove functions.
86034         (main): Instead of setting a fake locale, set a real locale. Call
86035         textdomain and bindtextdomain.
86036         * modules/quotearg-tests (Files): Add the new files.
86037         (Depends-on): Add gettext, setenv, unsetenv.
86038         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
86039         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
86040         Augment TESTS_ENVIRONMENT.
86042 2009-01-25  Bruno Haible  <bruno@clisp.org>
86044         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
86045         fr_FR.ISO8859-1 locale on MacOS X.
86046         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
86047         ja_JP.eucJP locale on MacOS X.
86048         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
86049         zh_CN.GB18030 locale on MacOS X.
86051 2009-01-25  Bruno Haible  <bruno@clisp.org>
86053         Avoid link errors on MacOS X 10.3.
86054         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
86055         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
86057 2009-01-25  Bruno Haible  <bruno@clisp.org>
86059         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86060         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
86061         * modules/pipe (Files): Remove m4/posix_spawn.m4.
86062         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86063         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
86064         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86065         posix_spawnattr_init, posix_spawnattr_setsigmask,
86066         posix_spawnattr_setflags, posix_spawnattr_destroy.
86068         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86069         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
86070         * modules/execute (Files): Remove m4/posix_spawn.m4.
86071         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86072         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86073         posix_spawnattr_init, posix_spawnattr_setsigmask,
86074         posix_spawnattr_setflags, posix_spawnattr_destroy.
86076 2009-01-25  Bruno Haible  <bruno@clisp.org>
86078         * lib/glthread/threadlib.c: Include <stdlib.h>.
86080 2009-01-25  Bruno Haible  <bruno@clisp.org>
86082         * lib/glthread/threadlib.c (dummy): New declaration.
86084 2009-01-25  Bruno Haible  <bruno@clisp.org>
86086         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
86087         multibyte characters also for the GB18030 encoding. Don't crash when
86088         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
86090 2009-01-25  Bruno Haible  <bruno@clisp.org>
86092         Avoid redefining 'struct random_data' on OSF/1 5.1.
86093         * lib/stdlib.in.h: Include <random.h> if it exists.
86094         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
86095         HAVE_RANDOM_H. Include <random.h> when testing whether
86096         'struct random_data' exists.
86097         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
86099 2009-01-25  Bruno Haible  <bruno@clisp.org>
86101         Don't install charset.alias on MacOS X >= 10.3.
86102         * lib/localcharset.c (DARWIN7): New macro.
86103         (get_charset_aliases): Hardcode the result for Darwin7.
86104         * modules/localcharset (install-exec-local): Don't install
86105         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
86107 2009-01-25  Bruno Haible  <bruno@clisp.org>
86109         Don't install charset.alias on mingw and Cygwin.
86110         * modules/localcharset (install-exec-local): Don't install
86111         charset.alias on mingw and Cygwin, if the file does not yet exist.
86112         The result for these platforms is hardcoded in localcharset.c.
86114 2009-01-25  Bruno Haible  <bruno@clisp.org>
86116         Make it possible again to use AC_GNU_SOURCE together with gnulib.
86117         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
86118         before requiring AC_USE_SYSTEM_EXTENSIONS.
86120 2009-01-25  Jim Meyering  <meyering@redhat.com>
86122         c-strtod: avoid warnings
86123         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
86124         "assignment discards qualifiers from pointer target type" warnings.
86126 2009-01-24  Bruno Haible  <bruno@clisp.org>
86128         Add support for non-UTF-8 locales on MacOS X.
86129         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
86130         canonical encodings. For Darwin 7 and newer, don't map traditional
86131         encodings to UTF-8.
86132         Reported by Vincent Lefevre <vincent@vinc17.org>
86133         at <http://savannah.gnu.org/bugs/?25235>.
86135 2009-01-24  Bruno Haible  <bruno@clisp.org>
86137         * doc/gnulib.texi (Obsolete modules): New section.
86138         Reported by Mike Frysinger <vapier@gentoo.org>.
86140 2009-01-24  Bruno Haible  <bruno@clisp.org>
86142         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
86143         (%.dvi): New rule.
86145 2009-01-24  Bruno Haible  <bruno@clisp.org>
86147         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
86148         Reported by Eric Blake.
86150 2009-01-24  Bruno Haible  <bruno@clisp.org>
86152         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
86153         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
86154         Reported by Gary V. Vaughan <gary@gnu.org>.
86156 2009-01-24  Bruno Haible  <bruno@clisp.org>
86158         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
86160 2009-01-23  Bruno Haible  <bruno@clisp.org>
86162         Make c-strtod, c-strtold usable in libraries.
86163         * lib/c-strtod.c: Include string.h instead of xalloc.h.
86164         (C_STRTOD): Call strdup instead of xstrdup.
86165         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
86166         * modules/c-strtold (Depends-on): Likewise.
86167         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
86168         * NEWS: Mention the change.
86169         Reported by Michael Gold <mgold@ncf.ca>.
86171 2009-01-23  Jim Meyering  <meyering@redhat.com>
86173         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
86174         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
86175         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
86177 2009-01-23  Simon Josefsson  <simon@josefsson.org>
86179         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
86180         GNU CoreUtils.
86181         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
86182         * modules/version-etc (Description): Update.
86184 2009-01-22  Bruno Haible  <bruno@clisp.org>
86186         Cache the C locale object.
86187         * lib/c-strtod.c (c_locale_cache): New variable.
86188         (c_locale): New function.
86189         (C_STRTOD): Use it, and don't call freelocale.
86190         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
86191         Suggested by Paolo Bonzini.
86193 2009-01-21  Bruno Haible  <bruno@clisp.org>
86195         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
86196         conditions other than overflow.
86198 2009-01-21  Bruno Haible  <bruno@clisp.org>
86200         * lib/c-strtod.c: Include errno.h.
86201         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
86202         value from STRTOD_L and STRTOD.
86204 2009-01-21  Bruno Haible  <bruno@clisp.org>
86205         and Jim Meyering  <meyering@redhat.com>
86207         nanosleep: skip configure test (fail it) for apple universal builds
86208         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
86209         universal builds, assume that nanosleep does not work.
86210         * modules/nanosleep (Depends-on): Add multiarch.
86212         mktime: skip configure test (fail it) for apple universal builds
86213         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
86214         universal builds, assume that mktime does not work.
86215         * modules/mktime (Depends-on): Add multiarch.
86217 2009-01-21  Eric Blake  <ebb9@byu.net>
86219         multiarch: avoid expand-before-require warning
86220         * modules/multiarch (configure.ac): Require, rather than expand,
86221         gl_MULTIARCH.
86222         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
86223         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
86224         enforce that all clients require it.  Partial reversion of
86225         2008-12-29 patch.
86227         error: avoid expand-before-require warning
86228         * modules/errno (configure.ac): Require, rather than expand,
86229         gl_HEADER_ERRNO_H.
86230         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
86231         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
86232         enforce that all clients require it.
86234         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
86235         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
86236         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
86237         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
86239 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
86241         Revert:
86242         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86244         regex: do not depend on obsolete modules.
86245         * modules/regex: Remove memcmp and memmove.
86247 2009-01-20  Bruno Haible  <bruno@clisp.org>
86249         Make the 'link' module link on Windows NT 4.
86250         * lib/link.c (_WIN32_WINNT): Don't define.
86251         (CreateHardLinkFuncType): New type.
86252         (CreateHardLinkFunc, initialized): New variables.
86253         (initialize): New function.
86254         (link): Invoke CreateHardLink indirectly through the function pointer.
86256 2009-01-20  Bruno Haible  <bruno@clisp.org>
86258         Fix compilation failure on mingw.
86259         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
86261 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
86263         * doc/c-strtod.texi: Mention a couple of restrictions.
86265 2009-01-20  Jim Meyering  <meyering@redhat.com>
86267         gettimeofday: move more declarations out of functions
86268         * lib/gettimeofday.c: Move extern declarations of tzset and
86269         gmtime out of containing functions.  Prompted by Bruno Haible.
86271 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86273         regex: do not depend on obsolete modules.
86274         * modules/regex: Remove memcmp and memmove.
86276 2009-01-19  Bruno Haible  <bruno@clisp.org>
86278         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86279         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
86280         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86281         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
86282         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
86284 2009-01-19  Bruno Haible  <bruno@clisp.org>
86286         * tests/test-link.c: Include <errno.h>.
86287         (main): Exit with code 77 when a hard link cannot be created due to
86288         the file system.
86289         * tests/test-link.sh: Skip test when a hard link cannot be created due
86290         to the file system.
86291         Suggested by Eric Blake.
86293 2009-01-19  Martin Lambers  <marlam@marlam.de>
86295         * modules/link-tests: New file.
86296         * tests/test-link.sh: New file.
86297         * tests/test-link.c: New file.
86299 2009-01-19  Eric Blake  <ebb9@byu.net>
86301         doc: mention another function added in cygwin 1.7.0
86302         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
86303         Another new function in cygwin 1.7.
86305 2009-01-19  Bruno Haible  <bruno@clisp.org>
86307         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86308         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
86309         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
86310         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86311         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
86312         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
86313         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
86314         * m4/md4.m4 (gl_MD4): Likewise.
86315         * m4/md5.m4 (gl_MD5): Likewise.
86316         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
86317         * m4/sha1.m4 (gl_SHA1): Likewise.
86318         * m4/sha256.m4 (gl_SHA256): Likewise.
86319         * m4/sha512.m4 (gl_SHA512): Likewise.
86321 2009-01-19  Bruno Haible  <bruno@clisp.org>
86323         * modules/uniname/uniname-tests (Depends-on): Add progname.
86324         * tests/uniname/test-uninames.c: Include progname.h.
86325         (main): Call set_program_name.
86327         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
86328         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
86329         (main): Call set_program_name.
86331         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
86332         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
86333         (main): Call set_program_name.
86335         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
86336         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
86337         (main): Call set_program_name.
86339         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
86340         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
86341         (main): Call set_program_name.
86343         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
86344         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
86345         (main): Call set_program_name.
86347         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
86348         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
86349         (main): Call set_program_name.
86351         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
86352         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
86353         (main): Call set_program_name.
86355         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
86356         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
86357         (main): Call set_program_name.
86359 2009-01-19  Eric Blake  <ebb9@byu.net>
86361         test-unistd: test previous patch
86362         * tests/test-unistd.c: Test *_FILENO macros.
86364         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
86365         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86366         Guarantee a definition.
86367         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
86368         * modules/unistd-safer (Depends-on): Add dependency on unistd.
86369         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
86370         * lib/dup-safer.c (STDERR_FILENO): Likewise.
86371         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86372         Likewise.
86373         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
86374         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
86375         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86376         Likewise.
86377         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
86378         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
86379         (STDERR_FILENO): Likewise.
86380         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
86381         (STDERR_FILENO): Likewise.
86382         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
86383         (STDERR_FILENO): Likewise.
86384         Reported by Elbert Pol.
86386 2009-01-19  Eric Blake  <ebb9@byu.net>
86388         doc: mention more functions added in cygwin 1.7.0
86389         * doc/posix-functions/abort.texi (abort): Update wording related
86390         to cygwin.
86391         * doc/posix-functions/daylight.texi (daylight): Likewise.
86392         * doc/posix-functions/optarg.texi (optarg): Likewise.
86393         * doc/posix-functions/optarg.texi (opterr): Likewise.
86394         * doc/posix-functions/optarg.texi (optind): Likewise.
86395         * doc/posix-functions/optarg.texi (optopt): Likewise.
86396         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
86397         worked in 1.5.x, and was withdrawn in 1.7.
86398         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
86399         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
86400         cygwin versions.
86401         * doc/posix-functions/perror.texi (perror): Likewise.
86402         * doc/posix-functions/printf.texi (printf): Likewise.
86403         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
86404         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
86405         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
86406         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
86407         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
86408         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
86409         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
86410         Likewise.
86411         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
86412         Likewise.
86413         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
86414         this function.
86415         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
86416         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
86417         Likewise.
86418         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
86419         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
86420         * doc/posix-functions/confstr.texi (confstr): Likewise.
86421         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
86422         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
86423         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
86424         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
86425         * doc/posix-functions/fputws.texi (fputws): Likewise.
86426         * doc/posix-functions/fwide.texi (fwide): Likewise.
86427         * doc/posix-functions/getwc.texi (getwc): Likewise.
86428         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
86429         * doc/posix-functions/putwc.texi (putwc): Likewise.
86430         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
86431         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
86432         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
86433         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
86434         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
86435         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
86436         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
86437         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
86438         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
86439         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
86440         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
86442 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86444         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
86445         * lib/ioctl.c: Include <sys/ioctl.h>.
86447 2009-01-19  Simon Josefsson  <simon@josefsson.org>
86449         * modules/getdate-tests (Depends-on): Add progname.
86450         * tests/test-getdate.c: Use progname module, to avoid link errors
86451         on non-glibc systems.
86453 2009-01-18  Simon Josefsson  <simon@josefsson.org>
86455         * modules/filenamecat-tests (Depends-on): Add progname.
86456         * modules/fstrcmp-tests (Depends-on): Likewise.
86458         * tests/test-filenamecat.c: Use progname module, to avoid link
86459         errors on non-glibc systems.
86460         * tests/test-fstrcmp.c: Likewise.
86462 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86464         gettimeofday: avoid warning: nested extern declaration of 'localtime'
86465         * lib/gettimeofday.c: Move extern declaration out of function.
86467 2009-01-18  Bruno Haible  <bruno@clisp.org>
86469         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
86470         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
86471         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
86473 2009-01-18  Bruno Haible  <bruno@clisp.org>
86475         * lib/strftime.c (MEMPCPY): Remove unused macro.
86476         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
86478 2009-01-18  Martin Lambers  <marlam@marlam.de>
86480         New module 'link'.
86481         * lib/unistd.in.h (link): New declaration.
86482         * lib/link.c: New file.
86483         * m4/link.m4: New file.
86484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
86485         HAVE_LINK.
86486         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
86487         * modules/link: New file.
86488         * doc/posix-functions/link.texi: Mention the new module.
86490 2009-01-18  Bruno Haible  <bruno@clisp.org>
86492         * tests/test-avltree_list.c (main): Call set_program_name.
86493         * tests/test-avltree_oset.c (main): Likewise.
86494         * tests/test-obstack-printf.c: Include progname.h.
86495         (main): Call set_program_name.
86496         * tests/test-quotearg.c: Include progname.h.
86497         (main): Call set_program_name.
86498         * tests/test-xmemdup0.c: Include progname.h.
86499         (main): Call set_program_name.
86501 2009-01-18  Bruno Haible  <bruno@clisp.org>
86503         New module 'alphasort'.
86504         * lib/dirent.in.h (alphasort): New declaration.
86505         * lib/alphasort.c: New file, from glibc with modifications.
86506         * m4/alphasort.m4: New file.
86507         * modules/alphasort: New file.
86508         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
86509         HAVE_ALPHASORT.
86510         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
86511         HAVE_ALPHASORT.
86512         * doc/posix-functions/alphasort.texi: Mention the new module and the
86513         portability problems.
86515 2009-01-18  Bruno Haible  <bruno@clisp.org>
86517         New module 'scandir'.
86518         * lib/dirent.in.h (scandir): New declaration.
86519         * lib/scandir.c: New file, from glibc with modifications.
86520         * m4/scandir.m4: New file.
86521         * modules/scandir: New file.
86522         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
86523         HAVE_SCANDIR.
86524         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
86525         HAVE_SCANDIR.
86526         * doc/posix-functions/scandir.texi: Mention the new module and the
86527         portability problems.
86529 2009-01-17  Bruno Haible  <bruno@clisp.org>
86531         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
86532         Update documentation.
86533         (func_remove_suffix): Escape all dots in the suffix. Update
86534         documentation.
86535         (func_filter_filelist): Update documentation.
86536         Reported by Ralf Wildenhues.
86538 2009-01-17  Bruno Haible  <bruno@clisp.org>
86540         * modules/dprintf-posix-tests: New file.
86541         * tests/test-dprintf-posix.sh: New file.
86542         * tests/test-dprintf-posix.c: New file.
86544         New modules 'dprintf', 'dprintf-posix'.
86545         * lib/stdio.in.h (dprintf): New declaration.
86546         * lib/dprintf.c: New file.
86547         * m4/dprintf.m4: New file.
86548         * m4/dprintf-posix.m4: New file.
86549         * modules/dprintf: New file.
86550         * modules/dprintf-posix: New file.
86551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
86552         HAVE_DPRINTF, REPLACE_DPRINTF.
86553         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
86554         HAVE_DPRINTF, REPLACE_DPRINTF.
86555         * doc/posix-functions/dprintf.texi: Mention the new modules.
86557 2009-01-17  Bruno Haible  <bruno@clisp.org>
86559         * modules/vdprintf-posix-tests: New file.
86560         * tests/test-vdprintf-posix.sh: New file.
86561         * tests/test-vdprintf-posix.c: New file.
86563         New modules 'vdprintf', 'vdprintf-posix'.
86564         * lib/stdio.in.h (vdprintf): New declaration.
86565         * lib/vdprintf.c: New file.
86566         * m4/vdprintf.m4: New file.
86567         * m4/vdprintf-posix.m4: New file.
86568         * modules/vdprintf: New file.
86569         * modules/vdprintf-posix: New file.
86570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
86571         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86572         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
86573         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86574         * doc/posix-functions/vdprintf.texi: Mention the new modules.
86576 2009-01-17  Bruno Haible  <bruno@clisp.org>
86578         Fix replacement of fopen on mingw.
86579         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
86580         mingw.
86582 2009-01-17  Bruno Haible  <bruno@clisp.org>
86584         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
86585         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
86587 2009-01-17  Bruno Haible  <bruno@clisp.org>
86589         Avoid test-fflush2.sh failure on mingw.
86590         * tests/test-fflush2.c: Include binary-io.h.
86591         (main): Put standard input into binary mode.
86592         * modules/fflush-tests (Depends-on): Add binary-io.
86594 2009-01-17  Bruno Haible  <bruno@clisp.org>
86596         * lib/wchar.in.h: In another particular situation, include only the
86597         system's <wchar.h> file.
86598         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
86599         Reported by Albert Chin-A-Young <china@thewrittenword.com>
86600         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
86602 2009-01-17  Bruno Haible  <bruno@clisp.org>
86604         Support for stripping executables in --enable-relocatable.
86605         * build-aux/install-reloc: Expect one more argument, or an environment
86606         variable RELOC_STRIP_PROG. If set, strip the destination program and
86607         its wrapper.
86608         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
86609         RELOC_STRIP_PROG.
86610         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
86611         to set RELOCATABLE_STRIP.
86612         * NEWS: Mention the new Makefile requirement.
86614 2009-01-17  Bruno Haible  <bruno@clisp.org>
86616         * build-aux/install-reloc: Remove debugging information left over by
86617         C compiler on MacOS X.
86619 2009-01-17  Bruno Haible  <bruno@clisp.org>
86621         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
86622         * lib/progreloc.c (find_executable): Fix type of pointer passed to
86623         _NSGetExecutablePath.
86625 2009-01-16  Jim Meyering  <meyering@redhat.com>
86627         strerror: avoid warnings about discarding "const"
86628         * lib/strerror.c (rpl_strerror): Instead of returning a const
86629         string from each and every "case", use a variable, and add a single
86630         cast after the switch.
86632 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
86634         * lib/arpa_inet.in.h: Add extern "C" block for C++.
86636 2009-01-16  Bruno Haible  <bruno@clisp.org>
86638         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
86639         array initializer syntax that also works in C++ mode.
86640         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86642 2009-01-16  Jim Meyering  <meyering@redhat.com>
86644         poll: suppress a warning
86645         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
86646         to ignore "...unsigned expression < 0 is always false" warnings.
86648 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
86650         poll: remove declarations of unused variables
86651         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
86652         sockbuf and optlen.
86654 2009-01-15  Bruno Haible  <bruno@clisp.org>
86656         Make fflush-after-ungetc POSIX compliant on BSD systems.
86657         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
86658         (clear_ungetc_buffer): Implement also for other systems.
86659         (rpl_fflush): On glibc systems, invoke
86660         clear_ungetc_buffer_preserving_position. Otherwise, invoke
86661         clear_ungetc_buffer after fetching the stream's position, not before.
86663 2009-01-15  Bruno Haible  <bruno@clisp.org>
86665         Make fflush-after-ungetc POSIX compliant on glibc systems.
86666         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
86667         after ungetc.
86668         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
86669         (rpl_fflush): On glibc systems, simply call the system's fflush
86670         function after clearing the ungetc buffer.
86671         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
86672         Instead, lseek only to the end of file, then use the system's fseeko
86673         for the rest. On glibc systems, reset the EOF indicator bit.
86675 2009-01-15  Jim Meyering  <meyering@redhat.com>
86677         openmp.m4: revert quote-adding change, for portability to older autoconf
86678         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
86679         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
86680         Simon Josefsson noticed the problem when using autoconf-2.61.
86682 2009-01-15  Bruno Haible  <bruno@clisp.org>
86684         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
86685         * tests/test-fflush2.c (ASSERT): Always fail.
86686         (main): Add two tests for fflush() after ungetc(), taking into account
86687         the Austin Group's clarification.
86688         Suggested by Eric Blake.
86690 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
86692         mktime.m4: remove K&R-style function prototypes
86693         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
86694         for the Sun C++ compiler.
86696 2009-01-14  Bruno Haible  <bruno@clisp.org>
86698         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
86699         while including <wchar.h>.
86700         * lib/wchar.in.h: In two particular situations on HP-UX, include only
86701         the system's <wchar.h> file.
86702         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86704 2009-01-14  Bruno Haible  <bruno@clisp.org>
86706         * m4/csharp.m4: Don't mention gettext on the serial number line.
86707         * m4/csharpexec.m4: Likewise.
86708         * m4/eaccess.m4: Likewise.
86709         * m4/javaexec.m4: Likewise.
86710         * m4/sig_atomic_t.m4: Likewise.
86711         * m4/tmpdir.m4: Likewise.
86712         * m4/intldir.m4: Bump gettext version.
86713         * m4/lib-ld.m4: Likewise.
86715 2009-01-14  Bruno Haible  <bruno@clisp.org>
86717         * lib/progname.c (set_program_name): Add more comments.
86718         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
86720 2009-01-14  Simon Josefsson  <simon@josefsson.org>
86722         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
86723         were sys/stat.h does not define it.
86725 2009-01-14  Jim Meyering  <meyering@redhat.com>
86727         many *.m4 files: improve m4 quoting
86728         99% of this change was performed by running the following commands:
86729         git ls-files | grep '\.m4$' | xargs perl -pi \
86730           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
86731           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86732           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86733           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
86734         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
86735         The remainder were to add Copyright dates, increment serial numbers,
86736         undo some changes in comments, exclude m4/intl.m4, and add quotes
86737         around the "1" in ",1" where the unusual spacing prohibited the
86738         above regexps from doing the job.  For more details, see
86739         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
86740         * m4/acl.m4: Modified.
86741         * m4/afs.m4: Likewise.
86742         * m4/alloca.m4: Likewise.
86743         * m4/argp.m4: Likewise.
86744         * m4/argz.m4: Likewise.
86745         * m4/atexit.m4: Likewise.
86746         * m4/bison-i18n.m4: Likewise.
86747         * m4/bison.m4: Likewise.
86748         * m4/byteswap.m4: Likewise.
86749         * m4/c-stack.m4: Likewise.
86750         * m4/c-strtod.m4: Likewise.
86751         * m4/calloc.m4: Likewise.
86752         * m4/canonicalize-lgpl.m4: Likewise.
86753         * m4/chown.m4: Likewise.
86754         * m4/clock_time.m4: Likewise.
86755         * m4/codeset.m4: Likewise.
86756         * m4/copy-file.m4: Likewise.
86757         * m4/csharp.m4: Likewise.
86758         * m4/csharpcomp.m4: Likewise.
86759         * m4/csharpexec.m4: Likewise.
86760         * m4/d-ino.m4: Likewise.
86761         * m4/d-type.m4: Likewise.
86762         * m4/dirfd.m4: Likewise.
86763         * m4/double-slash-root.m4: Likewise.
86764         * m4/eaccess.m4: Likewise.
86765         * m4/eealloc.m4: Likewise.
86766         * m4/environ.m4: Likewise.
86767         * m4/errno_h.m4: Likewise.
86768         * m4/euidaccess.m4: Likewise.
86769         * m4/execute.m4: Likewise.
86770         * m4/fatal-signal.m4: Likewise.
86771         * m4/fchdir.m4: Likewise.
86772         * m4/fcntl_h.m4: Likewise.
86773         * m4/fileblocks.m4: Likewise.
86774         * m4/filenamecat.m4: Likewise.
86775         * m4/findprog.m4: Likewise.
86776         * m4/flexmember.m4: Likewise.
86777         * m4/fnmatch.m4: Likewise.
86778         * m4/fopen.m4: Likewise.
86779         * m4/fpending.m4: Likewise.
86780         * m4/fprintf-posix.m4: Likewise.
86781         * m4/free.m4: Likewise.
86782         * m4/frexp.m4: Likewise.
86783         * m4/frexpl.m4: Likewise.
86784         * m4/fsusage.m4: Likewise.
86785         * m4/ftruncate.m4: Likewise.
86786         * m4/gc-camellia.m4: Likewise.
86787         * m4/gc-random.m4: Likewise.
86788         * m4/gc.m4: Likewise.
86789         * m4/getaddrinfo.m4: Likewise.
86790         * m4/getcwd-abort-bug.m4: Likewise.
86791         * m4/getcwd-path-max.m4: Likewise.
86792         * m4/getdate.m4: Likewise.
86793         * m4/getdomainname.m4: Likewise.
86794         * m4/getgroups.m4: Likewise.
86795         * m4/gethostname.m4: Likewise.
86796         * m4/gethrxtime.m4: Likewise.
86797         * m4/getline.m4: Likewise.
86798         * m4/getloadavg.m4: Likewise.
86799         * m4/getndelim2.m4: Likewise.
86800         * m4/getpass.m4: Likewise.
86801         * m4/gettext.m4: Likewise.
86802         * m4/gettime.m4: Likewise.
86803         * m4/gettimeofday.m4: Likewise.
86804         * m4/gnulib-common.m4: Likewise.
86805         * m4/group-member.m4: Likewise.
86806         * m4/host-os.m4: Likewise.
86807         * m4/iconv.m4: Likewise.
86808         * m4/iconv_open.m4: Likewise.
86809         * m4/inet_ntop.m4: Likewise.
86810         * m4/inet_pton.m4: Likewise.
86811         * m4/inline.m4: Likewise.
86812         * m4/intldir.m4: Likewise.
86813         * m4/intlmacosx.m4: Likewise.
86814         * m4/intmax.m4: Likewise.
86815         * m4/intmax_t.m4: Likewise.
86816         * m4/inttypes.m4: Likewise.
86817         * m4/inttypes_h.m4: Likewise.
86818         * m4/inttypes-pri.m4: Likewise.
86819         * m4/isapipe.m4: Likewise.
86820         * m4/isnand.m4: Likewise.
86821         * m4/isnanf.m4: Likewise.
86822         * m4/isnanl.m4: Likewise.
86823         * m4/javacomp.m4: Likewise.
86824         * m4/javaexec.m4: Likewise.
86825         * m4/jm-winsz1.m4: Likewise.
86826         * m4/jm-winsz2.m4: Likewise.
86827         * m4/lchown.m4: Likewise.
86828         * m4/lcmessage.m4: Likewise.
86829         * m4/ldexpl.m4: Likewise.
86830         * m4/lib-ld.m4: Likewise.
86831         * m4/lib-link.m4: Likewise.
86832         * m4/libsigsegv.m4: Likewise.
86833         * m4/link-follow.m4: Likewise.
86834         * m4/localcharset.m4: Likewise.
86835         * m4/locale-fr.m4: Likewise.
86836         * m4/locale-ja.m4: Likewise.
86837         * m4/locale-tr.m4: Likewise.
86838         * m4/locale-zh.m4: Likewise.
86839         * m4/lock.m4: Likewise.
86840         * m4/longlong.m4: Likewise.
86841         * m4/ls-mntd-fs.m4: Likewise.
86842         * m4/lstat.m4: Likewise.
86843         * m4/malloc.m4: Likewise.
86844         * m4/mathl.m4: Likewise.
86845         * m4/mbrtowc.m4: Likewise.
86846         * m4/mbstate_t.m4: Likewise.
86847         * m4/mbswidth.m4: Likewise.
86848         * m4/memchr.m4: Likewise.
86849         * m4/memcmp.m4: Likewise.
86850         * m4/memcpy.m4: Likewise.
86851         * m4/memmem.m4: Likewise.
86852         * m4/memmove.m4: Likewise.
86853         * m4/mempcpy.m4: Likewise.
86854         * m4/memrchr.m4: Likewise.
86855         * m4/memset.m4: Likewise.
86856         * m4/minmax.m4: Likewise.
86857         * m4/mkdir-slash.m4: Likewise.
86858         * m4/mkdtemp.m4: Likewise.
86859         * m4/mktime.m4: Likewise.
86860         * m4/mmap-anon.m4: Likewise.
86861         * m4/mountlist.m4: Likewise.
86862         * m4/nanosleep.m4: Likewise.
86863         * m4/nls.m4: Likewise.
86864         * m4/nocrash.m4: Likewise.
86865         * m4/open.m4: Likewise.
86866         * m4/openat.m4: Likewise.
86867         * m4/openmp.m4: Likewise.
86868         * m4/pathmax.m4: Likewise.
86869         * m4/perl.m4: Likewise.
86870         * m4/physmem.m4: Likewise.
86871         * m4/pipe.m4: Likewise.
86872         * m4/po.m4: Likewise.
86873         * m4/poll.m4: Likewise.
86874         * m4/posixtm.m4: Likewise.
86875         * m4/posixver.m4: Likewise.
86876         * m4/printf-frexp.m4: Likewise.
86877         * m4/printf-frexpl.m4: Likewise.
86878         * m4/printf-posix.m4: Likewise.
86879         * m4/printf-posix-rpl.m4: Likewise.
86880         * m4/printf.m4: Likewise.
86881         * m4/progtest.m4: Likewise.
86882         * m4/putenv.m4: Likewise.
86883         * m4/readline.m4: Likewise.
86884         * m4/readlink.m4: Likewise.
86885         * m4/readutmp.m4: Likewise.
86886         * m4/realloc.m4: Likewise.
86887         * m4/regex.m4: Likewise.
86888         * m4/relocatable.m4: Likewise.
86889         * m4/relocatable-lib.m4: Likewise.
86890         * m4/rename-dest-slash.m4: Likewise.
86891         * m4/rename.m4: Likewise.
86892         * m4/rmdir-errno.m4: Likewise.
86893         * m4/rmdir.m4: Likewise.
86894         * m4/roundf.m4: Likewise.
86895         * m4/roundl.m4: Likewise.
86896         * m4/rpmatch.m4: Likewise.
86897         * m4/save-cwd.m4: Likewise.
86898         * m4/selinux-selinux-h.m4: Likewise.
86899         * m4/setenv.m4: Likewise.
86900         * m4/settime.m4: Likewise.
86901         * m4/sig2str.m4: Likewise.
86902         * m4/sig_atomic_t.m4: Likewise.
86903         * m4/signalblocking.m4: Likewise.
86904         * m4/signbit.m4: Likewise.
86905         * m4/sigpipe.m4: Likewise.
86906         * m4/sockets.m4: Likewise.
86907         * m4/sockpfaf.m4: Likewise.
86908         * m4/st_dm_mode.m4: Likewise.
86909         * m4/stat-time.m4: Likewise.
86910         * m4/stdbool.m4: Likewise.
86911         * m4/stdint.m4: Likewise.
86912         * m4/stdint_h.m4: Likewise.
86913         * m4/stpcpy.m4: Likewise.
86914         * m4/stpncpy.m4: Likewise.
86915         * m4/strcase.m4: Likewise.
86916         * m4/strchrnul.m4: Likewise.
86917         * m4/strcspn.m4: Likewise.
86918         * m4/strdup.m4: Likewise.
86919         * m4/strftime.m4: Likewise.
86920         * m4/strndup.m4: Likewise.
86921         * m4/strnlen.m4: Likewise.
86922         * m4/strpbrk.m4: Likewise.
86923         * m4/strptime.m4: Likewise.
86924         * m4/strsep.m4: Likewise.
86925         * m4/strtod.m4: Likewise.
86926         * m4/strtoimax.m4: Likewise.
86927         * m4/strtok_r.m4: Likewise.
86928         * m4/strtol.m4: Likewise.
86929         * m4/strtoll.m4: Likewise.
86930         * m4/strtoul.m4: Likewise.
86931         * m4/strtoull.m4: Likewise.
86932         * m4/strtoumax.m4: Likewise.
86933         * m4/strverscmp.m4: Likewise.
86934         * m4/threadlib.m4: Likewise.
86935         * m4/timegm.m4: Likewise.
86936         * m4/tm_gmtoff.m4: Likewise.
86937         * m4/tmpdir.m4: Likewise.
86938         * m4/tmpfile.m4: Likewise.
86939         * m4/tzset.m4: Likewise.
86940         * m4/uintmax_t.m4: Likewise.
86941         * m4/unlinkdir.m4: Likewise.
86942         * m4/unlocked-io.m4: Likewise.
86943         * m4/uptime.m4: Likewise.
86944         * m4/userspec.m4: Likewise.
86945         * m4/utimbuf.m4: Likewise.
86946         * m4/utime.m4: Likewise.
86947         * m4/utimes-null.m4: Likewise.
86948         * m4/utimes.m4: Likewise.
86949         * m4/vararrays.m4: Likewise.
86950         * m4/vasnprintf.m4: Likewise.
86951         * m4/vfprintf-posix.m4: Likewise.
86952         * m4/vprintf-posix.m4: Likewise.
86953         * m4/wait-process.m4: Likewise.
86954         * m4/wchar_t.m4: Likewise.
86955         * m4/wint_t.m4: Likewise.
86956         * m4/write-any-file.m4: Likewise.
86957         * m4/yield.m4: Likewise.
86959 2009-01-13  Bruno Haible  <bruno@clisp.org>
86961         Avoid test-copy-file.sh failures when ACL support insufficient.
86962         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
86963         TESTS_ENVIRONMENT.
86964         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
86965         Reported by Jim Meyering.
86967 2009-01-13  Bruno Haible  <bruno@clisp.org>
86969         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
86970         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
86971         * modules/unistdio/u8-printf-parse (Files): Likewise.
86972         * modules/unistdio/u32-printf-parse (Files): Likewise.
86973         * modules/unistdio/ulc-printf-parse (Files): Likewise.
86975 2009-01-13  Simon Josefsson  <simon@josefsson.org>
86977         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
86978         and m4/inttypes_h.m4 too.
86980 2009-01-12  Eric Blake  <ebb9@byu.net>
86982         tests: IRIX 6.2 cc can't compile -0.0 into .data
86983         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
86984         rather than at compile-time.
86985         * tests/test-floorl.c (minus_zero): Likewise.
86986         * tests/test-frexpl.c (minus_zero): Likewise.
86987         * tests/test-isnan.c (minus_zerol): Likewise.
86988         * tests/test-isnanl.h (minus_zero): Likewise.
86989         * tests/test-ldexpl.c (minus_zero): Likewise.
86990         * tests/test-roundl.c (minus_zero): Likewise.
86991         * tests/test-signbit.c (minus_zerol): Likewise.
86992         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86993         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86994         * tests/test-truncl.c (minus_zero): Likewise.
86995         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86996         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86997         Reported by Tom G. Christensen and Nelson H. F. Beebe.
86999 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87001         regex: fix glibc bug 9697
87002         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
87003         handling.
87005 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87007         regex: fix glibc bug 697
87008         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
87009         being NULL also if there are no backreferences.
87011 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87013         regex: merge glibc changes
87014         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
87015         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
87016         re_string_skip_chars, re_string_reconstruct): Likewise.
87017         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
87019 2009-01-07  Jim Meyering  <meyering@redhat.com>
87021         poll: filter through cppi
87022         * lib/poll.c: Indent cpp directives to reflect nesting.
87024 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
87026         poll: don't return uninitialized
87027         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
87029 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
87031         avoid compile failure on AIX 6.1
87032         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
87033         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
87035 2009-01-04  Jim Meyering  <meyering@redhat.com>
87037         remove duplicate inclusion of <stdio.h>
87038         * tests/test-fprintf-posix.c: Likewise.
87039         * tests/test-printf-posix.c: Likewise.
87040         * tests/test-snprintf-posix.c: Likewise.
87041         * tests/test-sprintf-posix.c: Likewise.
87042         * tests/test-vasprintf-posix.c: Likewise.
87043         * tests/test-vfprintf-posix.c: Likewise.
87044         * tests/test-vprintf-posix.c: Likewise.
87045         * tests/test-vsnprintf-posix.c: Likewise.
87046         * tests/test-vsprintf-posix.c: Likewise.
87048 2009-01-03  Jim Meyering  <meyering@redhat.com>
87050         gnulib-tool: fix sed-based filtering
87051         * gnulib-tool (func_filter_filelist): Remove extra backslash
87052         in sed_fff_filter definition.
87054 2009-01-02  Jim Meyering  <meyering@redhat.com>
87056         strftime: avoid compilation failure on Solaris 2.6
87057         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
87058         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
87059         Don't #define mbrlen or mbsinit, since now they're guaranteed to
87060         be available.  Reported by Tom G. Christensen.  Details in
87061         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
87063 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87064             Bruno Haible  <bruno@clisp.org>
87066         Speed up gnulib-tool by doing more string processing through shell
87067         built-ins.
87068         * gnulib-tool (fast_func_append): New variable.
87069         (func_remove_prefix, func_remove_suffix): New functions.
87070         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
87071         (func_filter_filelist): New function.
87072         (func_get_dependencies): Use func_remove_suffix instead of sed.
87073         (func_get_automake_snippet): Use func_filter_filelist instead of a
87074         subshell and sed invocation.
87076 2009-01-01  Bruno Haible  <bruno@clisp.org>
87078         Fix a security bug.
87079         * gnulib-tool (func_import, import, update): Don't allow the characters
87080         '"', '$', '`', '\' in macro arguments that become part of commands that
87081         are evaluated.
87083 2009-01-01  Bruno Haible  <bruno@clisp.org>
87085         * gnulib-tool (func_reset_sigpipe): Add more comments.
87087 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87089         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
87090         func_emit_tests_Makefile_am, func_import): Abort loops early if we
87091         already know the answer.
87093 2009-01-01  Jim Meyering  <meyering@redhat.com>
87095         * lib/version-etc.c (version_etc_va): Update copyright year.
87097 2008-12-30  Bruno Haible  <bruno@clisp.org>
87099         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
87100         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
87101         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
87103 2008-12-29  Eric Blake  <ebb9@byu.net>
87105         multiarch: avoid autoconf AC_REQUIRE bug
87106         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
87107         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
87108         2.63 and older.
87109         Reported by Bruno Haible, and analyzed in
87110         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
87112 2008-12-29  Bruno Haible  <bruno@clisp.org>
87114         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
87115         files in subdirectories correctly.
87116         Reported by Ralf Wildenhues.
87118 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87120         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
87121         rather than 'join FILE -', for Solaris join.
87123 2008-12-29  Bruno Haible  <bruno@clisp.org>
87125         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
87126         quoting.
87127         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87128         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
87129         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
87130         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
87131         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
87132         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
87133         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
87134         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
87135         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
87136         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
87137         * m4/nls.m4 (AM_NLS): Likewise.
87138         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
87139         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
87140         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87141         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
87142         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
87143         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
87144         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
87145         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
87146         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
87147         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
87148         * m4/xsize.m4 (gl_XSIZE): Likewise.
87149         Suggested by Jim Meyering.
87151 2008-11-17  Bruce Korb  <bkorb@gnu.org>
87153         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
87154         * lib/parse-duration.c: use a switch instead of cascading if's.
87156 2008-12-29  Eric Blake  <ebb9@byu.net>
87158         wchar.h: supply WEOF on Irix 5.3
87159         * lib/wchar.in.h (wint_t): Also supply WEOF.
87160         * lib/wctype.in.h (wint_t): Likewise.
87161         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
87162         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
87163         Reported by Tom G. Christensen.
87165 2008-12-26  Bruno Haible  <bruno@clisp.org>
87167         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
87168         i486, i586, i686.
87170 2008-12-26  Bruno Haible  <bruno@clisp.org>
87172         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
87174 2008-12-26  Bruno Haible  <bruno@clisp.org>
87176         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
87177         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
87178         not __STDC_CONSTANT_MACROS.
87179         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87181 2008-12-25  Bruno Haible  <bruno@clisp.org>
87183         Add support for universal builds to vasnprintf.
87184         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
87185         universal builds, guess no.
87186         * modules/vasnprintf-posix (Depends-on): Add multiarch.
87187         * modules/vasprintf-posix (Depends-on): Likewise.
87188         * modules/fprintf-posix (Depends-on): Likewise.
87189         * modules/vfprintf-posix (Depends-on): Likewise.
87190         * modules/snprintf-posix (Depends-on): Likewise.
87191         * modules/vsnprintf-posix (Depends-on): Likewise.
87192         * modules/sprintf-posix (Depends-on): Likewise.
87193         * modules/vsprintf-posix (Depends-on): Likewise.
87194         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87195         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87196         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87197         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87198         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87199         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87200         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87202         Add support for universal builds to <inttypes.h>.
87203         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
87204         _SCNu64_PREFIX): In Apple
87205         universal builds, define directly, using _LP64.
87206         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
87207         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
87208         * modules/inttypes (Depends-on): Add multiarch.
87209         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87211         Add support for universal builds to <stdint.h>.
87212         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
87213         universal builds, define directly, using _LP64.
87214         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
87215         Apple universal builds, don't test for the size and suffix of ptrdiff_t
87216         and size_t.
87217         * modules/stdint (Depends-on): Add multiarch.
87218         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87220         New module 'multiarch'.
87221         * modules/multiarch: New file.
87222         * m4/multiarch.m4: New file.
87224 2008-12-25  Bruno Haible  <bruno@clisp.org>
87226         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
87228 2008-12-25  Bruno Haible  <bruno@clisp.org>
87230         * modules/btowc (License): Relicense under LGPLv2+.
87231         * modules/mbsinit (License): Likewise.
87232         * modules/mbrtowc (License): Likewise.
87233         * modules/wcrtomb (License): Likewise.
87234         * modules/streq (License): Likewise.
87235         Reported by David Lutterkort <lutter@redhat.com>.
87237 2008-12-23  Bruno Haible  <bruno@clisp.org>
87239         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
87241 2008-12-23  Bruno Haible  <bruno@clisp.org>
87243         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
87244         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
87245         GETADDRINFO_LIB, not in LIBS.
87246         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
87247         * modules/canon-host (Link): Likewise.
87248         * NEWS: Mention the change.
87249         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
87250         GETADDRINFO_LIB.
87252 2008-12-22  Bruno Haible  <bruno@clisp.org>
87254         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
87255         * doc/posix-functions/iswalpha_l.texi: Likewise.
87256         * doc/posix-functions/iswblank_l.texi: Likewise.
87257         * doc/posix-functions/iswcntrl_l.texi: Likewise.
87258         * doc/posix-functions/iswctype_l.texi: Likewise.
87259         * doc/posix-functions/iswdigit_l.texi: Likewise.
87260         * doc/posix-functions/iswgraph_l.texi: Likewise.
87261         * doc/posix-functions/iswlower_l.texi: Likewise.
87262         * doc/posix-functions/iswprint_l.texi: Likewise.
87263         * doc/posix-functions/iswpunct_l.texi: Likewise.
87264         * doc/posix-functions/iswspace_l.texi: Likewise.
87265         * doc/posix-functions/iswupper_l.texi: Likewise.
87266         * doc/posix-functions/iswxdigit_l.texi: Likewise.
87267         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
87268         * doc/posix-functions/open_wmemstream.texi: Likewise.
87269         * doc/posix-functions/swscanf.texi: Likewise.
87270         * doc/posix-functions/towctrans_l.texi: Likewise.
87271         * doc/posix-functions/towlower.texi: Likewise.
87272         * doc/posix-functions/towlower_l.texi: Likewise.
87273         * doc/posix-functions/towupper.texi: Likewise.
87274         * doc/posix-functions/towupper_l.texi: Likewise.
87275         * doc/posix-functions/vfwprintf.texi: Likewise.
87276         * doc/posix-functions/vfwscanf.texi: Likewise.
87277         * doc/posix-functions/vswscanf.texi: Likewise.
87278         * doc/posix-functions/vwprintf.texi: Likewise.
87279         * doc/posix-functions/vwscanf.texi: Likewise.
87280         * doc/posix-functions/wcpcpy.texi: Likewise.
87281         * doc/posix-functions/wcpncpy.texi: Likewise.
87282         * doc/posix-functions/wcscasecmp.texi: Likewise.
87283         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
87284         * doc/posix-functions/wcscoll_l.texi: Likewise.
87285         * doc/posix-functions/wcsdup.texi: Likewise.
87286         * doc/posix-functions/wcsncasecmp.texi: Likewise.
87287         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
87288         * doc/posix-functions/wcsnlen.texi: Likewise.
87289         * doc/posix-functions/wcsnrtombs.texi: Likewise.
87290         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
87291         * doc/posix-functions/wctrans_l.texi: Likewise.
87292         * doc/posix-functions/wctype_l.texi: Likewise.
87293         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
87294         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
87295         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
87296         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
87297         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
87298         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
87299         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
87300         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
87301         * doc/glibc-functions/wcschrnul.texi: Likewise.
87302         * doc/glibc-functions/wcsftime_l.texi: Likewise.
87303         * doc/glibc-functions/wcstod_l.texi: Likewise.
87304         * doc/glibc-functions/wcstof_l.texi: Likewise.
87305         * doc/glibc-functions/wcstol_l.texi: Likewise.
87306         * doc/glibc-functions/wcstold_l.texi: Likewise.
87307         * doc/glibc-functions/wcstoll_l.texi: Likewise.
87308         * doc/glibc-functions/wcstoq.texi: Likewise.
87309         * doc/glibc-functions/wcstoul_l.texi: Likewise.
87310         * doc/glibc-functions/wcstoull_l.texi: Likewise.
87311         * doc/glibc-functions/wcstouq.texi: Likewise.
87312         * doc/glibc-functions/wmempcpy.texi: Likewise.
87314 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
87315             Eric Blake  <ebb9@byu.net>
87316             Paolo Bonzini  <bonzini@gnu.org>
87317             Bruno Haible  <bruno@clisp.org>
87319         Make c-stack work on Haiku.
87320         * lib/c-stack.c (SA_ONSTACK): Define fallback.
87321         (c_stack_action): Use SA_ONSTACK flag.
87323 2008-12-22  Bruno Haible  <bruno@clisp.org>
87325         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
87327 2008-12-22  Bruno Haible  <bruno@clisp.org>
87329         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
87330         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
87331         being overridden.
87332         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
87333         New macros.
87334         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
87335         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
87336         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
87337         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
87339 2008-12-22  Bruno Haible  <bruno@clisp.org>
87341         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
87342         from test code.
87344 2008-12-22  Eric Blake  <ebb9@byu.net>
87346         Avoid gcc warnings on cygwin.
87347         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
87348         Avoid unused variable.
87349         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
87350         Likewise.
87352 2008-12-22  Bruno Haible  <bruno@clisp.org>
87354         Remove HAVE_MBRTOWC conditionals.
87355         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
87356         (mbscasecmp): Assume mbrtowc function.
87357         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
87358         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
87359         * lib/mbschr.c: Include mbuiter.h unconditionally.
87360         (mbschr): Assume mbrtowc function.
87361         * lib/mbscspn.c: Include mbuiter.h unconditionally.
87362         (mbscspn): Assume mbrtowc function.
87363         * lib/mbslen.c: Include mbuiter.h unconditionally.
87364         (mbslen): Assume mbrtowc function.
87365         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
87366         (mbsncasecmp): Assume mbrtowc function.
87367         * lib/mbsnlen.c: Include mbiter.h unconditionally.
87368         (mbsnlen): Assume mbrtowc function.
87369         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
87370         (mbspbrk): Assume mbrtowc function.
87371         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
87372         (mbspcasecmp): Assume mbrtowc function.
87373         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
87374         (mbsrchr): Assume mbrtowc function.
87375         * lib/mbssep.c: Include mbuiter.h unconditionally.
87376         (mbssep): Assume mbrtowc function.
87377         * lib/mbsspn.c: Include mbuiter.h unconditionally.
87378         (mbsspn): Assume mbrtowc function.
87379         * lib/mbsstr.c: Include mbuiter.h unconditionally.
87380         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
87381         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
87382         (mbstok_r): Assume mbrtowc function.
87383         * lib/propername.c: Include mbuiter.h unconditionally.
87384         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
87385         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
87386         (trim2): Assume mbrtowc function.
87387         * lib/mbswidth.c (mbsinit): Remove fallback definition.
87388         (mbsnwidth): Assume mbrtowc function.
87389         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
87390         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
87391         fallback definitions.
87392         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
87394 2008-12-22  Bruno Haible  <bruno@clisp.org>
87396         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
87398 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
87400         * modules/regex: Request emulations for the mb*/wc* functions we need.
87401         * m4/regex.m4: Don't look for those functions here.
87402         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
87404 2008-12-22  Bruno Haible  <bruno@clisp.org>
87406         * modules/fnmatch (Depends-on): Remove duplicated dependency.
87408 2008-12-21  Bruno Haible  <bruno@clisp.org>
87410         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
87411         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
87412         (Include): Remove conditionalization.
87413         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
87414         (Include): Remove conditionalization.
87415         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
87416         (Include): Remove conditionalization.
87417         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
87418         * m4/mbfile.m4 (gl_MBFILE): Likewise.
87419         * NEWS: Mention the change.
87420         Reported by Alan Hourihane <alanh@fairlite.co.uk>
87421         via Sergey Poznyakoff <gray@gnu.org.ua>.
87423 2008-12-21  Bruno Haible  <bruno@clisp.org>
87425         * MODULES.html.sh (Extended multibyte and wide character utilities
87426         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
87427         wcrtomb, wcsrtombs.
87428         (Support for systems lacking POSIX:2008): Add accept, bind, close,
87429         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
87430         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
87431         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
87433 2008-12-21  Bruno Haible  <bruno@clisp.org>
87435         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
87437 2008-12-21  Bruno Haible  <bruno@clisp.org>
87439         * modules/wcsnrtombs-tests: New file.
87440         * tests/test-wcsnrtombs1.sh: New file.
87441         * tests/test-wcsnrtombs2.sh: New file.
87442         * tests/test-wcsnrtombs3.sh: New file.
87443         * tests/test-wcsnrtombs4.sh: New file.
87444         * tests/test-wcsnrtombs.c: New file.
87446         New module 'wcsnrtombs'.
87447         * lib/wchar.in.h (wcsnrtombs): New declaration.
87448         * lib/wcsnrtombs.c: New file.
87449         * lib/wcsrtombs-state.c: New file.
87450         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
87451         (internal_state): Remove variable.
87452         * m4/wcsnrtombs.m4: New file.
87453         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
87454         compilation units.
87455         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
87456         HAVE_WCSNRTOMBS.
87457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
87458         HAVE_WCSNRTOMBS.
87459         * modules/wcsnrtombs: New file.
87460         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
87461         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
87463 2008-12-21  Bruno Haible  <bruno@clisp.org>
87465         * modules/wcsrtombs-tests: New file.
87466         * tests/test-wcsrtombs1.sh: New file.
87467         * tests/test-wcsrtombs2.sh: New file.
87468         * tests/test-wcsrtombs3.sh: New file.
87469         * tests/test-wcsrtombs4.sh: New file.
87470         * tests/test-wcsrtombs.c: New file.
87472         New module 'wcsrtombs'.
87473         * lib/wchar.in.h (wcsrtombs): New declaration.
87474         * lib/wcsrtombs.c: New file.
87475         * m4/wcsrtombs.m4: New file.
87476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
87477         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87478         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
87479         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87480         * modules/wcsrtombs: New file.
87481         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
87482         bugs.
87484 2008-12-21  Bruno Haible  <bruno@clisp.org>
87486         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
87487         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
87488         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
87489         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
87490         if not correct.
87491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
87492         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
87493         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87494         m4/locale-zh.m4, m4/codeset.m4.
87495         * doc/posix-functions/wcrtomb.texi: Document the bug.
87497 2008-12-21  Bruno Haible  <bruno@clisp.org>
87499         Work around a btowc() bug on IRIX 6.5.
87500         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
87501         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
87502         REPLACE_WTOBC if not.
87503         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
87504         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
87505         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
87507 2008-12-21  Bruno Haible  <bruno@clisp.org>
87509         * modules/wcrtomb-tests: New file.
87510         * tests/test-wcrtomb.sh: New file.
87511         * tests/test-wcrtomb.c: New file.
87513         New module 'wcrtomb'.
87514         * lib/wchar.in.h (wcrtomb): New declaration.
87515         * lib/wcrtomb.c: New file.
87516         * m4/wcrtomb.m4: New file.
87517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
87518         HAVE_WCRTOMB.
87519         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
87520         HAVE_WCRTOMB.
87521         * modules/wcrtomb: New file.
87522         * doc/posix-functions/wcrtomb.texi: Mention the new module.
87524 2008-12-21  Bruno Haible  <bruno@clisp.org>
87526         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
87527         * modules/mbsrtowcs (Files): Likewise.
87528         * modules/wctob (Files): Likewise.
87529         * modules/c-strcase-tests (Files): Likewise.
87530         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
87531         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
87532         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
87533         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
87534         * modules/vasnprintf-posix-tests (Files): Likewise.
87536 2008-12-21  William Pursell  <bill.pursell@gmail.com>
87538         gitlog-to-changelog: pass all command-line arguments to git-log
87539         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
87540         it is sometimes convenient to filter the commits in various ways.
87541         gitlog-to-changelog only allows --since to specify a start date,
87542         but git-log itself supports many other filtering mechanisms.
87543         At the moment, I want to filter by branch name.  Rather than
87544         adding a --branch option to gitlog-to-changelog, it seems more
87545         flexible to simply pass all options directly to git-log and let
87546         git do the work.  Notice that this effectively makes --since a
87547         redundant option for gitlog-to-changelog, but removing it would
87548         require current usage to change since calls would then require
87549         an additional '--'.
87551 2008-12-21  Bruno Haible  <bruno@clisp.org>
87553         * modules/mbsnrtowcs-tests: New file.
87554         * tests/test-mbsnrtowcs1.sh: New file.
87555         * tests/test-mbsnrtowcs2.sh: New file.
87556         * tests/test-mbsnrtowcs3.sh: New file.
87557         * tests/test-mbsnrtowcs4.sh: New file.
87558         * tests/test-mbsnrtowcs.c: New file.
87560         New module 'mbsnrtowcs'.
87561         * lib/wchar.in.h (mbsnrtowcs): New declaration.
87562         * lib/mbsnrtowcs.c: New file.
87563         * lib/mbsrtowcs-state.c: New file.
87564         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
87565         (internal_state): Remove variable.
87566         * m4/mbsnrtowcs.m4: New file.
87567         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
87568         compilation units.
87569         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
87570         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87571         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
87572         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87573         * modules/mbsnrtowcs: New file.
87574         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
87575         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
87576         portability problem.
87578 2008-12-21  Bruno Haible  <bruno@clisp.org>
87580         Work around mbsrtowcs bug.
87581         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
87582         (gl_FUNC_MBSRTOWCS): Invoke it.
87583         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87584         m4/locale-zh.m4.
87585         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
87587 2008-12-21  Bruno Haible  <bruno@clisp.org>
87589         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
87591 2008-12-21  Bruno Haible  <bruno@clisp.org>
87593         Update doc for AIX.
87594         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
87595         16-bit wchar_t type.
87596         * doc/posix-functions/btowc.texi: Likewise.
87597         * doc/posix-functions/fgetwc.texi: Likewise.
87598         * doc/posix-functions/fgetws.texi: Likewise.
87599         * doc/posix-functions/fputwc.texi: Likewise.
87600         * doc/posix-functions/fputws.texi: Likewise.
87601         * doc/posix-functions/fwide.texi: Likewise.
87602         * doc/posix-functions/fwprintf.texi: Likewise.
87603         * doc/posix-functions/fwscanf.texi: Likewise.
87604         * doc/posix-functions/getwchar.texi: Likewise.
87605         * doc/posix-functions/getwc.texi: Likewise.
87606         * doc/posix-functions/iswalnum.texi: Likewise.
87607         * doc/posix-functions/iswalpha.texi: Likewise.
87608         * doc/posix-functions/iswblank.texi: Likewise.
87609         * doc/posix-functions/iswcntrl.texi: Likewise.
87610         * doc/posix-functions/iswctype.texi: Likewise.
87611         * doc/posix-functions/iswdigit.texi: Likewise.
87612         * doc/posix-functions/iswgraph.texi: Likewise.
87613         * doc/posix-functions/iswlower.texi: Likewise.
87614         * doc/posix-functions/iswprint.texi: Likewise.
87615         * doc/posix-functions/iswpunct.texi: Likewise.
87616         * doc/posix-functions/iswspace.texi: Likewise.
87617         * doc/posix-functions/iswupper.texi: Likewise.
87618         * doc/posix-functions/iswxdigit.texi: Likewise.
87619         * doc/posix-functions/mbrtowc.texi: Likewise.
87620         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87621         * doc/posix-functions/mbstowcs.texi: Likewise.
87622         * doc/posix-functions/mbtowc.texi: Likewise.
87623         * doc/posix-functions/putwchar.texi: Likewise.
87624         * doc/posix-functions/putwc.texi: Likewise.
87625         * doc/posix-functions/swprintf.texi: Likewise.
87626         * doc/posix-functions/tolower.texi: Likewise.
87627         * doc/posix-functions/toupper.texi: Likewise.
87628         * doc/posix-functions/towctrans.texi: Likewise.
87629         * doc/posix-functions/ungetwc.texi: Likewise.
87630         * doc/posix-functions/vswprintf.texi: Likewise.
87631         * doc/posix-functions/wcrtomb.texi: Likewise.
87632         * doc/posix-functions/wcscat.texi: Likewise.
87633         * doc/posix-functions/wcschr.texi: Likewise.
87634         * doc/posix-functions/wcscmp.texi: Likewise.
87635         * doc/posix-functions/wcscoll.texi: Likewise.
87636         * doc/posix-functions/wcscpy.texi: Likewise.
87637         * doc/posix-functions/wcscspn.texi: Likewise.
87638         * doc/posix-functions/wcsftime.texi: Likewise.
87639         * doc/posix-functions/wcslen.texi: Likewise.
87640         * doc/posix-functions/wcsncat.texi: Likewise.
87641         * doc/posix-functions/wcsncmp.texi: Likewise.
87642         * doc/posix-functions/wcsncpy.texi: Likewise.
87643         * doc/posix-functions/wcspbrk.texi: Likewise.
87644         * doc/posix-functions/wcsrchr.texi: Likewise.
87645         * doc/posix-functions/wcsrtombs.texi: Likewise.
87646         * doc/posix-functions/wcsspn.texi: Likewise.
87647         * doc/posix-functions/wcsstr.texi: Likewise.
87648         * doc/posix-functions/wcstod.texi: Likewise.
87649         * doc/posix-functions/wcstof.texi: Likewise.
87650         * doc/posix-functions/wcstoimax.texi: Likewise.
87651         * doc/posix-functions/wcstok.texi: Likewise.
87652         * doc/posix-functions/wcstold.texi: Likewise.
87653         * doc/posix-functions/wcstoll.texi: Likewise.
87654         * doc/posix-functions/wcstol.texi: Likewise.
87655         * doc/posix-functions/wcstombs.texi: Likewise.
87656         * doc/posix-functions/wcstoull.texi: Likewise.
87657         * doc/posix-functions/wcstoul.texi: Likewise.
87658         * doc/posix-functions/wcstoumax.texi: Likewise.
87659         * doc/posix-functions/wcswidth.texi: Likewise.
87660         * doc/posix-functions/wcsxfrm.texi: Likewise.
87661         * doc/posix-functions/wctob.texi: Likewise.
87662         * doc/posix-functions/wctomb.texi: Likewise.
87663         * doc/posix-functions/wctrans.texi: Likewise.
87664         * doc/posix-functions/wctype.texi: Likewise.
87665         * doc/posix-functions/wcwidth.texi: Likewise.
87666         * doc/posix-functions/wmemchr.texi: Likewise.
87667         * doc/posix-functions/wmemcmp.texi: Likewise.
87668         * doc/posix-functions/wmemcpy.texi: Likewise.
87669         * doc/posix-functions/wmemmove.texi: Likewise.
87670         * doc/posix-functions/wmemset.texi: Likewise.
87671         * doc/posix-functions/wprintf.texi: Likewise.
87672         * doc/posix-functions/wscanf.texi: Likewise.
87674 2008-12-21  Bruno Haible  <bruno@clisp.org>
87676         Update doc for HP-UX 11.11.
87677         * doc/posix-functions/btowc.texi: Clarify that the function is missing
87678         in HP-UX version 11.00, not in all versions of HP-UX 11.
87679         * doc/posix-functions/fwide.texi: Likewise.
87680         * doc/posix-functions/fwprintf.texi: Likewise.
87681         * doc/posix-functions/fwscanf.texi: Likewise.
87682         * doc/posix-functions/inet_ntop.texi: Likewise.
87683         * doc/posix-functions/inet_pton.texi: Likewise.
87684         * doc/posix-functions/mbrlen.texi: Likewise.
87685         * doc/posix-functions/mbrtowc.texi: Likewise.
87686         * doc/posix-functions/mbsinit.texi: Likewise.
87687         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87688         * doc/posix-functions/swprintf.texi: Likewise.
87689         * doc/posix-functions/swscanf.texi: Likewise.
87690         * doc/posix-functions/towctrans.texi: Likewise.
87691         * doc/posix-functions/vfwprintf.texi: Likewise.
87692         * doc/posix-functions/vswprintf.texi: Likewise.
87693         * doc/posix-functions/vwprintf.texi: Likewise.
87694         * doc/posix-functions/wcrtomb.texi: Likewise.
87695         * doc/posix-functions/wcsrtombs.texi: Likewise.
87696         * doc/posix-functions/wcsstr.texi: Likewise.
87697         * doc/posix-functions/wctob.texi: Likewise.
87698         * doc/posix-functions/wctrans.texi: Likewise.
87699         * doc/posix-functions/wmemchr.texi: Likewise.
87700         * doc/posix-functions/wmemcmp.texi: Likewise.
87701         * doc/posix-functions/wmemcpy.texi: Likewise.
87702         * doc/posix-functions/wmemmove.texi: Likewise.
87703         * doc/posix-functions/wmemset.texi: Likewise.
87704         * doc/posix-functions/wprintf.texi: Likewise.
87705         * doc/posix-functions/wscanf.texi: Likewise.
87707 2008-12-21  Bruno Haible  <bruno@clisp.org>
87709         Work around a portability problem.
87710         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
87711         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
87713 2008-12-20  Bruno Haible  <bruno@clisp.org>
87715         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
87716         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
87717         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
87718         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
87719         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
87721         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
87722         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
87723         set.
87724         (GNULIB_defined_mbstate_t): New macro.
87725         (mbsinit): Redefine if REPLACE_MBSINIT is set.
87726         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
87727         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
87728         reuses the system's mbrtowc function but works around the bugs.
87729         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
87730         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
87731         macros.
87732         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
87733         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
87734         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
87735         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
87736         REPLACE_MBSINIT if mbsinit needs to be overridden.
87737         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
87738         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87739         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
87740         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87741         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87742         m4/locale-zh.m4.
87743         (Depends): Add mbsinit.
87744         * modules/mbsinit (Depends): Add mbrtowc.
87745         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
87747 2008-12-20  Bruno Haible  <bruno@clisp.org>
87749         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
87750         so that there are no conversion errors on AIX.
87751         * tests/test-mbsrtowcs.c (main): LIkewise.
87753 2008-12-20  Bruno Haible  <bruno@clisp.org>
87755         Work around wctob bug on Solaris <= 9.
87756         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
87757         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
87758         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
87759         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
87760         * modules/wctob (Files): Add m4/locale-fr.m4.
87761         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
87763 2008-12-20  Bruno Haible  <bruno@clisp.org>
87765         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
87766         /dev/null.
87767         * tests/test-select-in.sh: Likewise.
87768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87770 2008-12-20  Bruno Haible  <bruno@clisp.org>
87772         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
87773         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
87774         Cygwin 1.5.x.
87776 2008-12-20  Bruno Haible  <bruno@clisp.org>
87778         Ensure mbstate_t is defined on HP-UX 11.11.
87779         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
87780         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
87781         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
87782         AC_USE_SYSTEM_EXTENSIONS.
87783         * modules/fnmatch (Depends-on): Add extensions.
87784         * modules/mbrlen (Depends-on): Likewise.
87785         * modules/mbrtowc (Depends-on): Likewise.
87786         * modules/mbsinit (Depends-on): Likewise.
87787         * modules/mbsrtowcs (Depends-on): Likewise.
87788         * modules/mbswidth (Depends-on): Likewise.
87789         * modules/quotearg (Depends-on): Likewise.
87790         * modules/strftime (Depends-on): Likewise.
87792 2008-12-20  Bruno Haible  <bruno@clisp.org>
87794         Ensure wctob is declared on IRIX 6.5.
87795         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
87796         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
87797         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
87798         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
87799         of HAVE_WCTOB.
87800         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
87801         HAVE_WCTOB.
87802         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
87804 2008-12-19  Bruno Haible  <bruno@clisp.org>
87806         * modules/mbsrtowcs-tests: New file.
87807         * tests/test-mbsrtowcs1.sh: New file.
87808         * tests/test-mbsrtowcs2.sh: New file.
87809         * tests/test-mbsrtowcs3.sh: New file.
87810         * tests/test-mbsrtowcs4.sh: New file.
87811         * tests/test-mbsrtowcs.c: New file.
87813         New module 'mbsrtowcs'.
87814         * lib/wchar.in.h (mbsrtowcs): New declaration.
87815         * lib/mbsrtowcs.c: New file.
87816         * m4/mbsrtowcs.m4: New file.
87817         * modules/mbsrtowcs: New file.
87818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
87819         HAVE_MBSRTOWCS.
87820         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
87821         HAVE_MBSRTOWCS.
87822         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
87824 2008-12-19  Bruno Haible  <bruno@clisp.org>
87826         New module 'mbrlen'.
87827         * lib/wchar.in.h (mbrlen): New declaration.
87828         * lib/mbrlen.c: New file.
87829         * m4/mbrlen.m4: New file.
87830         * modules/mbrlen: New file.
87831         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
87832         HAVE_MBRLEN.
87833         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
87834         HAVE_MBRLEN.
87835         * doc/posix-functions/mbrlen.texi: Document the new module.
87837 2008-12-19  Bruno Haible  <bruno@clisp.org>
87839         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
87840         * modules/mbrtowc (Depends-on): Add verify.
87841         Suggested by Paul Eggert.
87843 2008-12-18  Bruno Haible  <bruno@clisp.org>
87845         * modules/mbsinit-tests: New file.
87846         * tests/test-mbsinit.sh: New file.
87847         * tests/test-mbsinit.c: New file.
87849 2008-12-18  Bruno Haible  <bruno@clisp.org>
87851         * modules/mbrtowc-tests: New file.
87852         * tests/test-mbrtowc1.sh: New file.
87853         * tests/test-mbrtowc2.sh: New file.
87854         * tests/test-mbrtowc3.sh: New file.
87855         * tests/test-mbrtowc4.sh: New file.
87856         * tests/test-mbrtowc.c: New file.
87858         New module 'mbrtowc'.
87859         * lib/wchar.in.h (mbstate_t): Override when the system does not have
87860         mbsinit and mbrtowc.
87861         (mbrtowc): New declaration.
87862         * lib/mbrtowc.c: New file.
87863         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
87864         * modules/mbrtowc: New file.
87865         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
87866         HAVE_MBRTOWC.
87867         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
87868         HAVE_MBRTOWC.
87869         * doc/posix-functions/mbrtowc.texi: Document the new module.
87871 2008-12-18  Bruno Haible  <bruno@clisp.org>
87873         New module 'wctob'.
87874         * lib/wchar.in.h (wctob): New declaration.
87875         * lib/wctob.c: New file.
87876         * m4/wctob.m4: New file.
87877         * modules/wctob: New file.
87878         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
87879         HAVE_WCTOB.
87880         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
87881         * doc/posix-functions/wctob.texi: Document the new module.
87883 2008-12-18  Bruno Haible  <bruno@clisp.org>
87885         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
87886         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
87888 2008-12-18  Simon Josefsson  <simon@josefsson.org>
87890         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
87891         G. Christensen" <tgc@jupiterrise.com>.
87893         * lib/flock.c: Need to include errno.h.  Reported by "Tom
87894         G. Christensen" <tgc@jupiterrise.com>.
87896         * lib/flock.c: Need to include string.h.  Reported by "Tom
87897         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
87898         <ebb9@byu.net>.
87900 2008-12-18  Bruno Haible  <bruno@clisp.org>
87902         * m4/locale-ja.m4: New file, from GNU gettext.
87904 2008-12-17  Bruno Haible  <bruno@clisp.org>
87906         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
87907         Suggested by Eric Blake.
87909 2008-12-17  Bruno Haible  <bruno@clisp.org>
87911         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
87913 2008-12-17  Bruno Haible  <bruno@clisp.org>
87915         * lib/mbsinit.c: Include verify.h. Verify an assumption.
87916         * modules/mbsinit (Depends-on): Add verify.
87917         Suggested by Paul Eggert.
87919 2008-12-17  Bruno Haible  <bruno@clisp.org>
87921         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
87922         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
87923         gl_FUNC_MBRTOWC.
87924         * m4/mbiter.m4 (gl_MBITER): LIkewise.
87925         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
87926         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
87927         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
87928         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
87929         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
87930         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
87931         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
87932         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
87933         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
87934         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
87935         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
87936         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
87937         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
87938         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
87939         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87940         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
87941         * modules/trim (configure.ac): Likewise.
87943 2008-12-17  Bruno Haible  <bruno@clisp.org>
87945         * modules/btowc-tests: New file.
87946         * tests/test-btowc1.sh: New file.
87947         * tests/test-btowc2.sh: New file.
87948         * tests/test-btowc.c: New file.
87950         New module 'btowc'.
87951         * lib/wchar.in.h (btowc): New declaration.
87952         * lib/btowc.c: New file.
87953         * m4/btowc.m4: New file.
87954         * modules/btowc: New file.
87955         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
87956         HAVE_BTOWC.
87957         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
87958         * doc/posix-functions/btowc.texi: Document the new module.
87960 2008-12-17  Bruno Haible  <bruno@clisp.org>
87962         New module 'mbsinit'.
87963         * lib/wchar.in.h (mbsinit): New declaration.
87964         * lib/mbsinit.c: New file.
87965         * m4/mbsinit.m4: New file.
87966         * modules/mbsinit: New file.
87967         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
87968         HAVE_MBSINIT.
87969         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
87970         HAVE_MBSINIT.
87971         * doc/posix-functions/mbsinit.texi: Document the new module.
87973 2008-12-16  Bruno Haible  <bruno@clisp.org>
87975         * lib/unistd.in.h: Add comment.
87976         * tests/test-environ.c: Don't include <stdlib.h>.
87978 2008-12-16  Bruno Haible  <bruno@clisp.org>
87980         * lib/parse-duration.h (parse_duration): Document return value
87981         convention.
87982         * lib/parse-duration.c: Include specification header first. Add
87983         comments.
87984         (_): Remove macro.
87985         (parse_year_month_day, parse_hour_minute_second): Move side effects
87986         outside of strchr call.
87987         (parse_non_iso8601): Move side effects outside of isspace call.
87988         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
87989         call.
87991 2008-12-16  Bruno Haible  <bruno@clisp.org>
87993         * tests/test-parse-duration.sh: Produce no output when the test
87994         succeeds.
87996 2008-12-16  Bruno Haible  <bruno@clisp.org>
87998         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
87999         expressions.
88001 2008-12-15  Bruno Haible  <bruno@clisp.org>
88003         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
88004         * doc/glibc-functions/flistxattr.texi: Likewise.
88005         * doc/glibc-functions/fopencookie.texi: Likewise.
88006         * doc/glibc-functions/fremovexattr.texi: Likewise.
88007         * doc/glibc-functions/fsetxattr.texi: Likewise.
88008         * doc/glibc-functions/getxattr.texi: Likewise.
88009         * doc/glibc-functions/lgetxattr.texi: Likewise.
88010         * doc/glibc-functions/listxattr.texi: Likewise.
88011         * doc/glibc-functions/llistxattr.texi: Likewise.
88012         * doc/glibc-functions/lremovexattr.texi: Likewise.
88013         * doc/glibc-functions/lsetxattr.texi: Likewise.
88014         * doc/glibc-functions/removexattr.texi: Likewise.
88015         * doc/glibc-functions/setxattr.texi: Likewise.
88016         * doc/posix-functions/open_memstream.texi: Likewise.
88018 2008-12-15  Eric Blake  <ebb9@byu.net>
88020         Update doc for cygwin 1.7.
88021         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
88022         functions.
88023         * doc/posix-functions/fchmodat.texi: Likewise.
88024         * doc/posix-functions/fchownat.texi: Likewise.
88025         * doc/posix-functions/fdopendir.texi: Likewise.
88026         * doc/posix-functions/fmemopen.texi: Likewise.
88027         * doc/posix-functions/freeaddrinfo.texi: Likewise.
88028         * doc/posix-functions/fstatat.texi: Likewise.
88029         * doc/posix-functions/futimens.texi: Likewise.
88030         * doc/posix-functions/gai_strerror.texi: Likewise.
88031         * doc/posix-functions/getaddrinfo.texi: Likewise.
88032         * doc/posix-functions/getnameinfo.texi: Likewise.
88033         * doc/posix-functions/if_freenameindex.texi: Likewise.
88034         * doc/posix-functions/if_indextoname.texi: Likewise.
88035         * doc/posix-functions/if_nameindex.texi: Likewise.
88036         * doc/posix-functions/if_nametoindex.texi: Likewise.
88037         * doc/posix-functions/insque.texi: Likewise.
88038         * doc/posix-functions/linkat.texi: Likewise.
88039         * doc/posix-functions/llrint.texi: Likewise.
88040         * doc/posix-functions/llrintf.texi: Likewise.
88041         * doc/posix-functions/llrintl.texi: Likewise.
88042         * doc/posix-functions/lockf.texi: Likewise.
88043         * doc/posix-functions/lrintl.texi: Likewise.
88044         * doc/posix-functions/mkdirat.texi: Likewise.
88045         * doc/posix-functions/mkfifoat.texi: Likewise.
88046         * doc/posix-functions/mknodat.texi: Likewise.
88047         * doc/posix-functions/mq_close.texi: Likewise.
88048         * doc/posix-functions/mq_getattr.texi: Likewise.
88049         * doc/posix-functions/mq_notify.texi: Likewise.
88050         * doc/posix-functions/mq_open.texi: Likewise.
88051         * doc/posix-functions/mq_receive.texi: Likewise.
88052         * doc/posix-functions/mq_send.texi: Likewise.
88053         * doc/posix-functions/mq_setattr.texi: Likewise.
88054         * doc/posix-functions/mq_timedreceive.texi: Likewise.
88055         * doc/posix-functions/mq_timedsend.texi: Likewise.
88056         * doc/posix-functions/mq_unlink.texi: Likewise.
88057         * doc/posix-functions/open_memstream.texi: Likewise.
88058         * doc/posix-functions/openat.texi: Likewise.
88059         * doc/posix-functions/posix_fadvise.texi: Likewise.
88060         * doc/posix-functions/posix_fallocate.texi: Likewise.
88061         * doc/posix-functions/posix_madvise.texi: Likewise.
88062         * doc/posix-functions/posix_memalign.texi: Likewise.
88063         * doc/posix-functions/posix_openpt.texi: Likewise.
88064         * doc/posix-functions/readlinkat.texi: Likewise.
88065         * doc/posix-functions/remque.texi: Likewise.
88066         * doc/posix-functions/renameat.texi: Likewise.
88067         * doc/posix-functions/rintl.texi: Likewise.
88068         * doc/posix-functions/sem_unlink.texi: Likewise.
88069         * doc/posix-functions/shm_open.texi: Likewise.
88070         * doc/posix-functions/shm_unlink.texi: Likewise.
88071         * doc/posix-functions/signgam.texi: Likewise.
88072         * doc/posix-functions/sigset.texi: Likewise.
88073         * doc/posix-functions/stpcpy.texi: Likewise.
88074         * doc/posix-functions/stpncpy.texi: Likewise.
88075         * doc/posix-functions/strerror.texi: Likewise.
88076         * doc/posix-functions/strtod.texi: Likewise.
88077         * doc/posix-functions/symlinkat.texi: Likewise.
88078         * doc/posix-functions/unlinkat.texi: Likewise.
88079         * doc/posix-functions/utimensat.texi: Likewise.
88080         * doc/glibc-functions/bindresvport.texi: Likewise.
88081         * doc/glibc-functions/dn_expand.texi: Likewise.
88082         * doc/glibc-functions/exp10.texi: Likewise.
88083         * doc/glibc-functions/exp10f.texi: Likewise.
88084         * doc/glibc-functions/fgetxattr.texi: Likewise.
88085         * doc/glibc-functions/flistxattr.texi: Likewise.
88086         * doc/glibc-functions/fopencookie.texi: Likewise.
88087         * doc/glibc-functions/freeifaddrs.texi: Likewise.
88088         * doc/glibc-functions/fremovexattr.texi: Likewise.
88089         * doc/glibc-functions/fsetxattr.texi: Likewise.
88090         * doc/glibc-functions/getifaddrs.texi: Likewise.
88091         * doc/glibc-functions/getxattr.texi: Likewise.
88092         * doc/glibc-functions/lgetxattr.texi: Likewise.
88093         * doc/glibc-functions/listxattr.texi: Likewise.
88094         * doc/glibc-functions/llistxattr.texi: Likewise.
88095         * doc/glibc-functions/lremovexattr.texi: Likewise.
88096         * doc/glibc-functions/lsetxattr.texi: Likewise.
88097         * doc/glibc-functions/pow10.texi: Likewise.
88098         * doc/glibc-functions/pow10f.texi: Likewise.
88099         * doc/glibc-functions/rcmd_af.texi: Likewise.
88100         * doc/glibc-functions/removexattr.texi: Likewise.
88101         * doc/glibc-functions/res_init.texi: Likewise.
88102         * doc/glibc-functions/res_mkquery.texi: Likewise.
88103         * doc/glibc-functions/res_query.texi: Likewise.
88104         * doc/glibc-functions/res_querydomain.texi: Likewise.
88105         * doc/glibc-functions/res_send.texi: Likewise.
88106         * doc/glibc-functions/rresvport_af.texi: Likewise.
88107         * doc/glibc-functions/setxattr.texi: Likewise.
88108         * doc/glibc-functions/strcasestr.texi: Likewise.
88110 2008-12-15  Bruno Haible  <bruno@clisp.org>
88112         Fix compilation error on OSF/1 4.0.
88113         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
88114         <sys/time.h>, simply delegate to the system header.
88115         Reported by Daniel Richard G. <oss@teragram.com>.
88117 2008-12-15  Bruno Haible  <bruno@clisp.org>
88119         * doc/posix-functions/openat.texi: Mention the 'openat' module.
88120         * doc/posix-functions/fchmodat.texi: Likewise.
88121         * doc/posix-functions/fchownat.texi: Likewise.
88122         * doc/posix-functions/fdopendir.texi: Likewise.
88123         * doc/posix-functions/fstatat.texi: Likewise.
88124         * doc/posix-functions/mkdirat.texi: Likewise.
88125         * doc/posix-functions/unlinkat.texi: Likewise.
88127 2008-12-14  Bruno Haible  <bruno@clisp.org>
88129         Update doc for POSIX:2008.
88130         * doc/posix-functions/faccessat.texi: New file.
88131         * doc/posix-functions/fchmodat.texi: New file.
88132         * doc/posix-functions/fchownat.texi: New file.
88133         * doc/posix-functions/fdopendir.texi: New file.
88134         * doc/posix-functions/fstatat.texi: New file.
88135         * doc/posix-functions/futimens.texi: New file.
88136         * doc/posix-functions/linkat.texi: New file.
88137         * doc/posix-functions/mkdirat.texi: New file.
88138         * doc/posix-functions/mkfifoat.texi: New file.
88139         * doc/posix-functions/mknodat.texi: New file.
88140         * doc/posix-functions/open_wmemstream.texi: New file.
88141         * doc/posix-functions/openat.texi: New file.
88142         * doc/posix-functions/psiginfo.texi: New file.
88143         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
88144         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
88145         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
88146         * doc/posix-functions/readlinkat.texi: New file.
88147         * doc/posix-functions/renameat.texi: New file.
88148         * doc/posix-functions/strerror_l.texi: New file.
88149         * doc/posix-functions/symlinkat.texi: New file.
88150         * doc/posix-functions/unlinkat.texi: New file.
88151         * doc/posix-functions/utimensat.texi: New file.
88152         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88154 2008-12-14  Bruno Haible  <bruno@clisp.org>
88156         Update doc for POSIX:2008.
88157         * doc/posix-functions/alphasort.texi: Renamed from
88158         doc/glibc-functions/alphasort.texi.
88159         * doc/posix-functions/dirfd.texi: Renamed from
88160         doc/glibc-functions/dirfd.texi.
88161         * doc/posix-functions/dprintf.texi: Renamed from
88162         doc/glibc-functions/dprintf.texi.
88163         * doc/posix-functions/duplocale.texi: Renamed from
88164         doc/glibc-functions/duplocale.texi.
88165         * doc/posix-functions/fexecve.texi: Renamed from
88166         doc/glibc-functions/fexecve.texi.
88167         * doc/posix-functions/fmemopen.texi: Renamed from
88168         doc/glibc-functions/fmemopen.texi.
88169         * doc/posix-functions/freelocale.texi: Renamed from
88170         doc/glibc-functions/freelocale.texi.
88171         * doc/posix-functions/getdate_err.texi: Renamed from
88172         doc/glibc-functions/getdate_err.texi.
88173         * doc/posix-functions/isalnum_l.texi: Renamed from
88174         doc/glibc-functions/isalnum_l.texi.
88175         * doc/posix-functions/isalpha_l.texi: Renamed from
88176         doc/glibc-functions/isalpha_l.texi.
88177         * doc/posix-functions/isblank_l.texi: Renamed from
88178         doc/glibc-functions/isblank_l.texi.
88179         * doc/posix-functions/iscntrl_l.texi: Renamed from
88180         doc/glibc-functions/iscntrl_l.texi.
88181         * doc/posix-functions/isdigit_l.texi: Renamed from
88182         doc/glibc-functions/isdigit_l.texi.
88183         * doc/posix-functions/isgraph_l.texi: Renamed from
88184         doc/glibc-functions/isgraph_l.texi.
88185         * doc/posix-functions/islower_l.texi: Renamed from
88186         doc/glibc-functions/islower_l.texi.
88187         * doc/posix-functions/isprint_l.texi: Renamed from
88188         doc/glibc-functions/isprint_l.texi.
88189         * doc/posix-functions/ispunct_l.texi: Renamed from
88190         doc/glibc-functions/ispunct_l.texi.
88191         * doc/posix-functions/isspace_l.texi: Renamed from
88192         doc/glibc-functions/isspace_l.texi.
88193         * doc/posix-functions/isupper_l.texi: Renamed from
88194         doc/glibc-functions/isupper_l.texi.
88195         * doc/posix-functions/iswalnum_l.texi: Renamed from
88196         doc/glibc-functions/iswalnum_l.texi.
88197         * doc/posix-functions/iswalpha_l.texi: Renamed from
88198         doc/glibc-functions/iswalpha_l.texi.
88199         * doc/posix-functions/iswblank_l.texi: Renamed from
88200         doc/glibc-functions/iswblank_l.texi.
88201         * doc/posix-functions/iswcntrl_l.texi: Renamed from
88202         doc/glibc-functions/iswcntrl_l.texi.
88203         * doc/posix-functions/iswctype_l.texi: Renamed from
88204         doc/glibc-functions/iswctype_l.texi.
88205         * doc/posix-functions/iswdigit_l.texi: Renamed from
88206         doc/glibc-functions/iswdigit_l.texi.
88207         * doc/posix-functions/iswgraph_l.texi: Renamed from
88208         doc/glibc-functions/iswgraph_l.texi.
88209         * doc/posix-functions/iswlower_l.texi: Renamed from
88210         doc/glibc-functions/iswlower_l.texi.
88211         * doc/posix-functions/iswprint_l.texi: Renamed from
88212         doc/glibc-functions/iswprint_l.texi.
88213         * doc/posix-functions/iswpunct_l.texi: Renamed from
88214         doc/glibc-functions/iswpunct_l.texi.
88215         * doc/posix-functions/iswspace_l.texi: Renamed from
88216         doc/glibc-functions/iswspace_l.texi.
88217         * doc/posix-functions/iswupper_l.texi: Renamed from
88218         doc/glibc-functions/iswupper_l.texi.
88219         * doc/posix-functions/iswxdigit_l.texi: Renamed from
88220         doc/glibc-functions/iswxdigit_l.texi.
88221         * doc/posix-functions/isxdigit_l.texi: Renamed from
88222         doc/glibc-functions/isxdigit_l.texi.
88223         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
88224         doc/glibc-functions/mbsnrtowcs.texi.
88225         * doc/posix-functions/mkdtemp.texi: Renamed from
88226         doc/glibc-functions/mkdtemp.texi.
88227         * doc/posix-functions/newlocale.texi: Renamed from
88228         doc/glibc-functions/newlocale.texi.
88229         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
88230         doc/glibc-functions/nl_langinfo_l.texi.
88231         * doc/posix-functions/open_memstream.texi: Renamed from
88232         doc/glibc-functions/open_memstream.texi.
88233         * doc/posix-functions/opterr.texi: Renamed from
88234         doc/glibc-functions/opterr.texi.
88235         * doc/posix-functions/optind.texi: Renamed from
88236         doc/glibc-functions/optind.texi.
88237         * doc/posix-functions/optopt.texi: Renamed from
88238         doc/glibc-functions/optopt.texi.
88239         * doc/posix-functions/psignal.texi: Renamed from
88240         doc/glibc-functions/psignal.texi.
88241         * doc/posix-functions/scandir.texi: Renamed from
88242         doc/glibc-functions/scandir.texi.
88243         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
88244         doc/glibc-functions/sched_get_priority_min.texi.
88245         * doc/posix-functions/signgam.texi: Renamed from
88246         doc/glibc-functions/signgam.texi.
88247         * doc/posix-functions/stpcpy.texi: Renamed from
88248         doc/glibc-functions/stpcpy.texi.
88249         * doc/posix-functions/stpncpy.texi: Renamed from
88250         doc/glibc-functions/stpncpy.texi.
88251         * doc/posix-functions/strcasecmp_l.texi: Renamed from
88252         doc/glibc-functions/strcasecmp_l.texi.
88253         * doc/posix-functions/strcoll_l.texi: Renamed from
88254         doc/glibc-functions/strcoll_l.texi.
88255         * doc/posix-functions/strfmon_l.texi: Renamed from
88256         doc/glibc-functions/strfmon_l.texi.
88257         * doc/posix-functions/strftime_l.texi: Renamed from
88258         doc/glibc-functions/strftime_l.texi.
88259         * doc/posix-functions/strncasecmp_l.texi: Renamed from
88260         doc/glibc-functions/strncasecmp_l.texi.
88261         * doc/posix-functions/strndup.texi: Renamed from
88262         doc/glibc-functions/strndup.texi.
88263         * doc/posix-functions/strnlen.texi: Renamed from
88264         doc/glibc-functions/strnlen.texi.
88265         * doc/posix-functions/strsignal.texi: Renamed from
88266         doc/glibc-functions/strsignal.texi.
88267         * doc/posix-functions/strxfrm_l.texi: Renamed from
88268         doc/glibc-functions/strxfrm_l.texi.
88269         * doc/posix-functions/timer_gettime.texi: Renamed from
88270         doc/glibc-functions/timer_gettime.texi.
88271         * doc/posix-functions/tolower_l.texi: Renamed from
88272         doc/glibc-functions/tolower_l.texi.
88273         * doc/posix-functions/toupper_l.texi: Renamed from
88274         doc/glibc-functions/toupper_l.texi.
88275         * doc/posix-functions/towctrans_l.texi: Renamed from
88276         doc/glibc-functions/towctrans_l.texi.
88277         * doc/posix-functions/towlower_l.texi: Renamed from
88278         doc/glibc-functions/towlower_l.texi.
88279         * doc/posix-functions/towupper_l.texi: Renamed from
88280         doc/glibc-functions/towupper_l.texi.
88281         * doc/posix-functions/uselocale.texi: Renamed from
88282         doc/glibc-functions/uselocale.texi.
88283         * doc/posix-functions/vdprintf.texi: Renamed from
88284         doc/glibc-functions/vdprintf.texi.
88285         * doc/posix-functions/wcpcpy.texi:
88286         Renamed from doc/glibc-functions/wcpcpy.texi.
88287         * doc/posix-functions/wcpncpy.texi: Renamed from
88288         doc/glibc-functions/wcpncpy.texi.
88289         * doc/posix-functions/wcscasecmp.texi: Renamed from
88290         doc/glibc-functions/wcscasecmp.texi.
88291         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
88292         doc/glibc-functions/wcscasecmp_l.texi.
88293         * doc/posix-functions/wcscoll_l.texi: Renamed from
88294         doc/glibc-functions/wcscoll_l.texi.
88295         * doc/posix-functions/wcsdup.texi: Renamed from
88296         doc/glibc-functions/wcsdup.texi.
88297         * doc/posix-functions/wcsncasecmp.texi: Renamed from
88298         doc/glibc-functions/wcsncasecmp.texi.
88299         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
88300         doc/glibc-functions/wcsncasecmp_l.texi.
88301         * doc/posix-functions/wcsnlen.texi: Renamed from
88302         doc/glibc-functions/wcsnlen.texi.
88303         * doc/posix-functions/wcsnrtombs.texi: Renamed from
88304         doc/glibc-functions/wcsnrtombs.texi.
88305         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
88306         doc/glibc-functions/wcsxfrm_l.texi.
88307         * doc/posix-functions/wctrans_l.texi: Renamed from
88308         doc/glibc-functions/wctrans_l.texi.
88309         * doc/posix-functions/wctype_l.texi: Renamed from
88310         doc/glibc-functions/wctype_l.texi.
88311         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88312         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
88313         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
88314         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
88315         these subsections.
88316         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
88317         Remove sections.
88319 2008-12-14  Bruno Haible  <bruno@clisp.org>
88321         Update doc for POSIX:2008.
88322         * doc/posix-functions/*.texi: Update URL of POSIX specification.
88324 2008-12-14  Bruno Haible  <bruno@clisp.org>
88326         Update doc for POSIX:2008.
88327         * doc/pastposix-functions/bcmp.texi: Renamed from
88328         doc/posix-functions/bcmp.texi.
88329         * doc/pastposix-functions/bcopy.texi: Renamed from
88330         doc/posix-functions/bcopy.texi.
88331         * doc/pastposix-functions/bsd_signal.texi: Renamed from
88332         doc/posix-functions/bsd_signal.texi.
88333         * doc/pastposix-functions/bzero.texi: Renamed from
88334         doc/posix-functions/bzero.texi.
88335         * doc/pastposix-functions/ecvt.texi: Renamed from
88336         doc/posix-functions/ecvt.texi.
88337         * doc/pastposix-functions/fcvt.texi: Renamed from
88338         doc/posix-functions/fcvt.texi.
88339         * doc/pastposix-functions/ftime.texi: Renamed from
88340         doc/posix-functions/ftime.texi.
88341         * doc/pastposix-functions/gcvt.texi: Renamed from
88342         doc/posix-functions/gcvt.texi.
88343         * doc/pastposix-functions/getcontext.texi: Renamed from
88344         doc/posix-functions/getcontext.texi.
88345         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
88346         doc/posix-functions/gethostbyaddr.texi.
88347         * doc/pastposix-functions/gethostbyname.texi: Renamed from
88348         doc/posix-functions/gethostbyname.texi.
88349         * doc/pastposix-functions/getwd.texi: Renamed from
88350         doc/posix-functions/getwd.texi.
88351         * doc/pastposix-functions/h_errno.texi: Renamed from
88352         doc/posix-functions/h_errno.texi.
88353         * doc/pastposix-functions/index.texi: Renamed from
88354         doc/posix-functions/index.texi.
88355         * doc/pastposix-functions/makecontext.texi: Renamed from
88356         doc/posix-functions/makecontext.texi.
88357         * doc/pastposix-functions/mktemp.texi: Renamed from
88358         doc/posix-functions/mktemp.texi.
88359         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
88360         doc/posix-functions/pthread_attr_getstackaddr.texi.
88361         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
88362         doc/posix-functions/pthread_attr_setstackaddr.texi.
88363         * doc/pastposix-functions/rindex.texi: Renamed from
88364         doc/posix-functions/rindex.texi.
88365         * doc/pastposix-functions/scalb.texi: Renamed from
88366         doc/posix-functions/scalb.texi.
88367         * doc/pastposix-functions/setcontext.texi: Renamed from
88368         doc/posix-functions/setcontext.texi.
88369         * doc/pastposix-functions/swapcontext.texi: Renamed from
88370         doc/posix-functions/swapcontext.texi.
88371         * doc/pastposix-functions/ualarm.texi: Renamed from
88372         doc/posix-functions/ualarm.texi.
88373         * doc/pastposix-functions/usleep.texi: Renamed from
88374         doc/posix-functions/usleep.texi.
88375         * doc/pastposix-functions/vfork.texi: Renamed from
88376         doc/posix-functions/vfork.texi.
88377         * doc/pastposix-functions/wcswcs.texi: Renamed from
88378         doc/posix-functions/wcswcs.texi.
88379         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
88380         (Function Substitutes): Update.
88382 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88384         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
88385         m4/strerror.m4.
88387 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88388             Bruno Haible  <bruno@clisp.org>
88390         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
88392 2008-12-13  Bruno Haible  <bruno@clisp.org>
88394         * modules/strtoull (Depends-on): Remove unistd.
88396 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88398         * modules/strtoull (Depends-on): Add stdlib.
88400 2008-12-11  Simon Josefsson  <simon@josefsson.org>
88402         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
88404 2008-12-10  Jim Meyering  <meyering@redhat.com>
88406         gl_ASSERT: don't say assertions are disabled when they're not
88407         * m4/assert.m4 (gl_ASSERT): Do not make configure report
88408         "checking whether to enable assertions... no", when they are in
88409         fact enabled.  This is solely a bug in the output of configure.
88410         In spite of saying "no", NDEBUG was not defined in that case.
88411         Also, as noted by Eric Blake, leave assertions enabled upon
88412         --enable-assert=INVALID.
88414 2008-12-10  Bruno Haible  <bruno@clisp.org>
88416         Change MODULES.html to refer to POSIX:2008 where possible.
88417         * MODULES.html.sh (POSIX2008_URL): New variable.
88418         (posix_headers): Remove sys/timeb, ucontext.
88419         (posix2001_headers): New variable.
88420         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
88421         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
88422         index, makecontext, mktemp, pthread_attr_getstackaddr,
88423         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
88424         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
88425         (posix2001_functions): New variable.
88426         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
88427         otherwise.
88429 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88431         add missing include to parse-duration.c
88432         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
88433         * modules/parse-duration (Depends-on): Add xalloc.
88435         fix sed script reading maint.mk
88436         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
88437         (syntax-check-rules): Use it.
88439 2008-12-09  Bruno Haible  <bruno@clisp.org>
88441         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
88442         MacOS X 10.4/PowerPC.
88443         Reported by Simon Josefsson.
88445 2008-12-08  Jim Meyering  <meyering@redhat.com>
88447         work around mingw's lack of some S_IF definitions
88448         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
88449         Reported by Simon Josefsson.
88451 2008-12-08  Bruno Haible  <bruno@clisp.org>
88453         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
88454         applied to variables. Needed on MacOS X 10.4/PowerPC.
88455         Reported by Simon Josefsson.
88457 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
88458         and Eric Blake  <ebb9@byu.net>
88460         assert: honor --enable-assert
88461         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
88462         order to honor --enable-assert, rather than treating it as a
88463         synonym for --disable-assert.
88465 2008-12-08  Jim Meyering  <meyering@redhat.com>
88467         * lib/posixtm.c: Remove now-useless declaration of mktime.
88469         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
88471 2008-12-07  Bruno Haible  <bruno@clisp.org>
88473         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
88474         test_once): Mark functions as static.
88475         * tests/test-tls.c (test_tls): Likewise.
88477 2008-12-07  Bruno Haible  <bruno@clisp.org>
88479         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
88480         iconv_register_autodetect.
88482 2008-12-07  Jim Meyering  <meyering@redhat.com>
88484         posixtm.c: avoid a warning
88485         * lib/posixtm.c (posixtime): Don't initialize tm0.
88486         It's no longer needed to placate gcc4's -Wuninitialized,
88487         and the attempt to placate would elicit a new warning.
88489         unicodeio.c: mark unused parameters
88490         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88491         (fallback_failure_callback): Likewise.
88493 2008-12-07  Bruno Haible  <bruno@clisp.org>
88495         * gnulib-tool (func_create_testdir): When building the tests
88496         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
88497         Reported by Simon Josefsson.
88499 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88501         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
88503 2008-12-06  Bruno Haible  <bruno@clisp.org>
88505         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
88506         Suggested by Eric Blake.
88508 2008-12-06  Bruno Haible  <bruno@clisp.org>
88510         Fix a c-stack test failure on MacOS X.
88511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
88512         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
88513         handler for SIGBUS as well.
88514         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
88515         install a signal handler for SIGBUS as well.
88516         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
88518 2008-12-06  Bruno Haible  <bruno@clisp.org>
88520         Advocacy documentation.
88521         * doc/gnulib-intro.texi (Benefits): New section.
88522         * doc/gnulib.texi: Update.
88524 2008-12-06  Bruno Haible  <bruno@clisp.org>
88526         Document the 'manywarnings' module.
88527         * doc/manywarnings.texi: New file.
88528         * doc/gnulib.texi: Include it.
88530 2008-12-05  Eric Blake  <ebb9@byu.net>
88532         tests: silence some gcc warnings
88533         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
88534         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
88535         type mismatches.
88537 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88538             Bruno Haible  <bruno@clisp.org>
88540         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
88542 2008-11-29  Jim Meyering  <meyering@redhat.com>
88544         unicodeio.c: mark unused parameters
88545         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88546         (fallback_failure_callback): Likewise.
88548         fts: fix a thinko
88549         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
88550         (set_stat_type): Return S_IF*-valued "type" directly.
88551         Prompted by James Youngman's spotting a related bug.
88552         Confirmed by further testing through find.
88554         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
88555         * lib/fts.c (D_TYPE): Define.
88556         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
88557         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
88558         (s_ifmt_shift_bits): New function.
88559         (set_stat_type): New function.
88560         (fts_build): When not calling fts_stat, call set_stat_type
88561         to propagate dirent.d_type info to fts_read caller.
88562         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
88563         fts_statp->st_mode type information may be valid.
88565 2008-11-28  Simon Josefsson  <simon@josefsson.org>
88567         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
88568         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
88569         <sds@gnu.org>.
88571 2008-11-20  Bruno Haible  <bruno@clisp.org>
88573         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
88574         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
88575         INCLUDE_NEXT.
88576         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
88577         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
88578         * modules/math (Makefile.am): Substitute
88579         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
88580         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88582 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
88583             Bruno Haible  <bruno@clisp.org>
88585         * lib/stdint.in.h: Define all type macros so that their expansion is
88586         a single typedef'ed token. Fixes a compilation failure in Boost which
88587         does "using ::int8_t;".
88589 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88591         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
88592         gl_MANYWARN_ALL_GCC.
88593         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
88594         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
88595         * modules/manywarnings: New file.
88596         * MODULES.html.sh: Mention manywarnings module.
88598 2008-11-18  Bruno Haible  <bruno@clisp.org>
88600         * doc/gnulib-tool.texi (Unit tests): New section.
88602 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88604         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
88605         paths like 'lib/po/foo.po'.
88607 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88609         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
88610         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
88612 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88614         * m4/warnings.m4: Use CPPFLAGS to really check whether the
88615         parameter works.
88617 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88619         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
88621 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88623         * modules/parse-duration-tests: New file.
88624         * tests/test-parse-duration.sh: New file.
88625         * tests/test-parse-duration.c: New file.
88627         New module 'parse-duration'.
88628         * lib/parse-duration.h: New file.
88629         * lib/parse-duration.c: New file.
88630         * modules/parse-duration: New file.
88632 2008-11-17  Bruno Haible  <bruno@clisp.org>
88634         * tests/test-select-out.sh: Comment out the first pipe test.
88635         Reported by Simon Josefsson.
88637 2008-11-17  Bruno Haible  <bruno@clisp.org>
88639         * modules/getaddrinfo (Depends-on): Add servent, hostent.
88640         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
88641         gl_HOSTENT.
88643 2008-11-17  Bruno Haible  <bruno@clisp.org>
88645         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
88646         -lnetwork and -lnet. Needed for Haiku and BeOS.
88648 2008-11-16  Bruno Haible  <bruno@clisp.org>
88650         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
88652 2008-11-16  Bruno Haible  <bruno@clisp.org>
88654         Avoid test failure on Haiku.
88655         * tests/test-fsync.c: Include <errno.h>.
88656         (main): Don't require that fsync (0) fails.
88658 2008-11-15  Bruno Haible  <bruno@clisp.org>
88660         New module 'hostent'.
88661         * modules/hostent: New file.
88662         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
88664 2008-11-15  Bruno Haible  <bruno@clisp.org>
88666         New module 'servent'.
88667         * modules/servent: New file.
88668         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
88670 2008-11-15  Bruno Haible  <bruno@clisp.org>
88672         Avoid generating same test program with two different rules.
88673         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
88674         test-frexp to test-frexp-nolibm.
88675         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
88676         test-frexpl to test-frexpl-nolibm.
88678 2008-11-15  Bruno Haible  <bruno@clisp.org>
88680         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
88681         $(FREXPL_LIBM).
88683 2008-11-15  Bruno Haible  <bruno@clisp.org>
88685         * lib/netdb.in.h: Activate the definitions also when the system's
88686         <netdb.h> has 'struct addrinfo'.
88687         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
88688         EAI_OVERFLOW or AI_NUMERICSERV.
88689         * doc/posix-headers/netdb.texi: Document the problem.
88691 2008-11-15  Bruno Haible  <bruno@clisp.org>
88693         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
88695         Make the 'sched' module work on platforms where <sched.h> exists but
88696         is incomplete (such as Haiku).
88697         * lib/sched.in.h; Include the system's <sched.h> if it exists.
88698         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
88699         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
88700         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
88701         HAVE_STRUCT_SCHED_PARAM.
88702         * modules/sched (Depends-on): Add include_next.
88703         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
88704         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
88705         * doc/posix-headers/sched.texi: Document the issue.
88707 2008-11-13  Jim Meyering  <meyering@redhat.com>
88709         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
88710         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
88711         test would fail due to the difference in the Report bugs to ...
88712         line.  The expected address is empty, "<>", while the actual
88713         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
88715 2008-11-12  Bruno Haible  <bruno@clisp.org>
88717         lstat: don't compile lstat.c on systems lacking lstat
88718         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
88719         which don't have lstat; this is handled by lib/sys_stat.in.h already.
88720         Reported by Daniel P. Berrange via Jim Meyering.
88722 2008-11-12  Jim Meyering  <meyering@redhat.com>
88724         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
88726 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88728         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
88729         instead.
88731 2008-11-12  Bruno Haible  <bruno@clisp.org>
88733         * lib/unicodeio.c: Include unistr.h.
88734         (utf8_wctomb): Remove function.
88735         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
88737 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88739         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
88740         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
88741         <bruno@clisp.org>.
88742         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
88744 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88746         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
88747         * doc/gnulib.texi: Add section for warnings.
88749 2008-11-11  Bruno Haible  <bruno@clisp.org>
88751         * lib/sockets.h: Add a comment.
88753 2008-11-11  Karl Berry  <karl@gnu.org>
88755         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
88757 2008-11-11  Eric Blake  <ebb9@byu.net>
88759         fdl.texi: avoid git symlinks
88760         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
88762 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88764         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
88766 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88768         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
88769         (gl_WARN_ADD): Substitute $2 if literal.
88771 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88773         * m4/warning.m4: Remove.
88775 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88777         * m4/warnings.m4: Almost complete rewrite. :-)
88779 2008-11-10  Simon Josefsson  <simon@josefsson.org>
88781         * modules/warnings: New module.
88782         * m4/warnings.m4: New file.
88783         * MODULES.html.sh: Mention warnings module.
88784         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
88785         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88787 2008-11-10  Eric Blake  <ebb9@byu.net>
88789         fdl.texi: make a symlink to the latest version
88790         * doc/standards.texi: Revert today's earlier change.
88791         * doc/fdl-1.2.texi: Rename from old fdl.texi...
88792         * doc/fdl.texi: ...and replace this with a symlink to the newer
88793         fdl-1.3.texi.
88795 2008-11-10  Bruno Haible  <bruno@clisp.org>
88797         * tests/test-select-fd.c (main): Accept the result file name as fourth
88798         argument.
88799         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
88800         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
88802 2008-11-10  Bruno Haible  <bruno@clisp.org>
88804         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
88805         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
88806         as autoconf-substituted macros.
88807         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
88808         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
88809         gl_NETDB_H_DEFAULTS. Set these variables.
88810         * modules/netdb (Makefile.am): Substitute these variables.
88812 2008-11-10  Eric Blake  <ebb9@byu.net>
88814         standards.texi: include correct file for FDL 1.3
88815         * doc/standards.texi (GNU Free Documentation License): Change
88816         include file to pull in FDL 1.3, not 1.2.
88818         fdl.texi: revert accidental change to license
88819         * doc/fdl.texi: This is FDL 1.2, not 1.3.
88821 2008-11-10  Bruno Haible  <bruno@clisp.org>
88823         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
88824         cross-compiling guesses also when the native compile gives no result.
88826 2008-11-10  Bruno Haible  <bruno@clisp.org>
88828         * lib/spawni.c (__spawni): Force variable into the stack.
88830 2008-11-10  Bruno Haible  <bruno@clisp.org>
88832         Add support for Haiku.
88833         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
88834         glibc and BeOS, but also on Haiku.
88835         * lib/fpurge.c (fpurge): Likewise.
88836         * lib/freadable.c (freadable): Likewise.
88837         * lib/freadahead.c (freadahead): Likewise.
88838         * lib/freading.c (freading): Likewise.
88839         * lib/freadptr.c (freadptr): Likewise.
88840         * lib/freadseek.c (freadptrinc): Likewise.
88841         * lib/fseeko.c (rpl_fseeko): Likewise.
88842         * lib/fseterr.c (fseterr): Likewise.
88843         * lib/fwritable.c (fwritable): Likewise.
88844         * lib/fwriting.c (fwriting): Likewise.
88845         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
88847 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88849         * lib/config.charset: Treat Haiku like BeOS.
88851 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88853         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
88854         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
88856 2008-11-08  Bruno Haible  <bruno@clisp.org>
88858         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
88859         AC_CACHE_CHECK.
88861 2008-11-08  Bruno Haible  <bruno@clisp.org>
88863         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
88865 2008-11-08  Bruno Haible  <bruno@clisp.org>
88867         * tests/test-select-fd.c: New file.
88868         * tests/test-select-in.sh: New file.
88869         * tests/test-select-out.sh: New file.
88870         * tests/test-select-stdin.c: New file.
88871         * modules/select-tests (Files): Add the new files.
88872         (Depends-on): Add gettimeofday.
88873         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
88874         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
88875         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
88877 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
88878             Bruno Haible  <bruno@clisp.org>
88880         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
88882 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
88884         * build-aux/pmccabe2html: Added support for C++ source files.
88886 2008-11-05  Ben Pfaff  <blp@gnu.org>
88888         Fix lib/close.c build on Windows.
88889         * modules/close (Files): Add lib/w32sock.h.
88891 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
88893         Accept Bison's NEWS format.
88894         * build-aux/announce-gen (print_news_deltas): Tweak
88895         $re_prefix.
88897 2008-11-04  Bruno Haible  <bruno@clisp.org>
88899         * modules/random_r (Maintainer): Add glibc.
88901 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88903         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
88904         by karl@freefriends.org (Karl Berry).
88905         * doc/alloca.texi: Likewise.
88906         * doc/c-ctype.texi: Likewise.
88907         * doc/c-strcase.texi: Likewise.
88908         * doc/c-strcaseeq.texi: Likewise.
88909         * doc/c-strcasestr.texi: Likewise.
88910         * doc/c-strstr.texi: Likewise.
88911         * doc/c-strtod.texi: Likewise.
88912         * doc/c-strtold.texi: Likewise.
88913         * doc/ctime.texi: Likewise.
88914         * doc/error.texi: Likewise.
88915         * doc/fdl.texi: Likewise.
88916         * doc/gcd.texi: Likewise.
88917         * doc/getdate.texi: Likewise.
88918         * doc/gnulib-intro.texi: Likewise.
88919         * doc/gnulib-tool.texi: Likewise.
88920         * doc/gnulib.texi: Likewise.
88921         * doc/inet_ntoa.texi: Likewise.
88922         * doc/maintain.texi: Likewise.
88923         * doc/make-stds.texi: Likewise.
88924         * doc/quote.texi: Likewise.
88925         * doc/regexprops-generic.texi: Likewise.
88926         * doc/standards.texi: Likewise.
88927         * doc/verify.texi: Likewise.
88928         * doc/visibility.texi: Likewise.
88929         * doc/gnulib.texi (GNU Free Documentation License): Include
88930         fdl-1.3.texi instead of fdl.texi.
88932 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88934         * doc/fdl-1.3.texi: New file, from
88935         <http://www.gnu.org/licenses/fdl-1.3.texi>.
88936         * modules/fdl-1.3: Add.
88937         * MODULES.html.sh: Add fdl-1.3.
88939 2008-11-03  Bruno Haible  <bruno@clisp.org>
88941         Make determination of absolute name of header file work with AIX xlc.
88942         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
88943         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
88944         preprocessing.
88945         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
88946         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
88948 2008-11-03  Simon Josefsson  <simon@josefsson.org>
88950         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
88951         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
88952         <ludo@gnu.org>.
88954 2008-11-02  Bruno Haible  <bruno@clisp.org>
88956         Mark 'strpbrk' obsolete.
88957         * modules/strpbrk (Status, Notice): New sections.
88958         * modules/strtok_r (Depends-on): Add strpbrk.
88960 2008-11-02  Bruno Haible  <bruno@clisp.org>
88962         Mark 'strdup' obsolete.
88963         * modules/strdup (Status, Notice): New sections.
88964         * modules/findprog (Depends-on): Add strdup.
88965         * modules/getaddrinfo (Depends-on): Likewise.
88966         * modules/localename (Depends-on): Likewise.
88967         * modules/relocatable-lib (Depends-on): Likewise.
88968         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
88969         * modules/relocatable-prog (Depends-on): Likewise.
88970         * modules/trim (Depends-on): Likewise.
88971         * modules/unictype/gen-ctype (Depends-on): Likewise.
88972         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88974 2008-11-02  Bruno Haible  <bruno@clisp.org>
88976         Mark 'strcspn' obsolete.
88977         * modules/strcspn (Status, Notice): New sections.
88979 2008-11-02  Bruno Haible  <bruno@clisp.org>
88981         Mark 'rmdir' obsolete.
88982         * modules/rmdir (Status, Notice): New sections.
88983         * modules/clean-temp (Depends-on): Add rmdir.
88984         * modules/openat (Depends-on): Likewise.
88986 2008-11-02  Bruno Haible  <bruno@clisp.org>
88988         Mark 'raise' obsolete.
88989         * modules/raise (Status, Notice): New sections.
88990         (Include): Specify <signal.h>.
88991         * modules/stdio (Depends-on): Add raise.
88992         * modules/write (Depends-on): Likewise.
88994 2008-11-02  Bruno Haible  <bruno@clisp.org>
88996         Mark 'memset' obsolete.
88997         * modules/memset (Status, Notice): New sections.
88999 2008-11-02  Bruno Haible  <bruno@clisp.org>
89001         Mark 'memmove' obsolete.
89002         * modules/memmove (Status, Notice): New sections.
89003         * modules/argp (Depends-on): Add memmove.
89004         * modules/argz (Depends-on): Likewise.
89005         * modules/canonicalize (Depends-on): Likewise.
89006         * modules/canonicalize-lgpl (Depends-on): Likewise.
89007         * modules/fts (Depends-on): Likewise.
89008         * modules/getcwd (Depends-on): Likewise.
89009         * modules/human (Depends-on): Likewise.
89010         * modules/regex (Depends-on): Likewise.
89011         * modules/striconveh (Depends-on): Likewise.
89012         * modules/trim (Depends-on): Likewise.
89013         * modules/unistr/u8-move (Depends-on): Likewise.
89014         * modules/unistr/u16-move (Depends-on): Likewise.
89015         * modules/unistr/u32-move (Depends-on): Likewise.
89017 2008-11-02  Bruno Haible  <bruno@clisp.org>
89019         Mark 'memcpy' obsolete.
89020         * modules/memcpy (Status, Notice): New sections.
89022 2008-11-02  Bruno Haible  <bruno@clisp.org>
89024         Mark 'memcmp' obsolete.
89025         * modules/memcmp (Status, Notice): New sections.
89026         * modules/argmatch (Depends-on): Add memchr.
89027         * modules/backupfile (Depends-on): Likewise.
89028         * modules/c-strcasestr (Depends-on): Likewise.
89029         * modules/crypto/des (Depends-on): Likewise.
89030         * modules/csharpcomp (Depends-on): Likewise.
89031         * modules/fnmatch (Depends-on): Likewise.
89032         * modules/git-merge-changelog (Depends-on): Likewise.
89033         * modules/isnand (Depends-on): Likewise.
89034         * modules/isnand-nolibm (Depends-on): Likewise.
89035         * modules/isnanf (Depends-on): Likewise.
89036         * modules/isnanf-nolibm (Depends-on): Likewise.
89037         * modules/isnanl (Depends-on): Likewise.
89038         * modules/isnanl-nolibm (Depends-on): Likewise.
89039         * modules/mbchar (Depends-on): Likewise.
89040         * modules/memcoll (Depends-on): Likewise.
89041         * modules/quotearg (Depends-on): Likewise.
89042         * modules/regex (Depends-on): Likewise.
89043         * modules/relocatable-prog (Depends-on): Likewise.
89044         * modules/same (Depends-on): Likewise.
89045         * modules/signbit (Depends-on): Likewise.
89046         * modules/strcasestr-simple (Depends-on): Likewise.
89047         * modules/unictype/gen-ctype (Depends-on): Likewise.
89048         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89049         * modules/uniname/uniname (Depends-on): Likewise.
89050         * modules/unistr/u8-cmp (Depends-on): Likewise.
89052 2008-11-02  Bruno Haible  <bruno@clisp.org>
89054         Mark 'memchr' obsolete.
89055         * modules/memchr (Status, Notice): New sections.
89056         * modules/argp (Depends-on): Add memchr.
89057         * modules/base64 (Depends-on): Likewise.
89058         * modules/c-strcasestr (Depends-on): Likewise.
89059         * modules/chdir-long (Depends-on): Likewise.
89060         * modules/fnmatch (Depends-on): Likewise.
89061         * modules/getsubopt (Depends-on): Likewise.
89062         * modules/git-merge-changelog (Depends-on): Likewise.
89063         * modules/glob (Depends-on): Likewise.
89064         * modules/strcasestr-simple (Depends-on): Likewise.
89065         * modules/strnlen (Depends-on): Likewise.
89067 2008-11-02  Bruno Haible  <bruno@clisp.org>
89069         Mark 'atexit' obsolete.
89070         * modules/atexit (Status, Notice): New sections.
89071         * modules/chdir-long (Depends-on): Add atexit.
89072         * modules/wait-process (Depends-on): Likewise.
89074 2008-11-02  Bruno Haible  <bruno@clisp.org>
89076         * gnulib-tool: New option --with-obsolete.
89077         (func_usage): Document it.
89078         (func_modules_transitive_closure): Drop obsolete dependencies if
89079         incobsolete is not true.
89080         (func_import): Read and save the incobsolete variable to the cache.
89082 2008-11-02  Bruno Haible  <bruno@clisp.org>
89084         * modules/TEMPLATE-EXTENDED: New field 'Status'.
89085         * gnulib-tool: New option --extract-status.
89086         (func_usage): Document it.
89087         (sed_extract_prog): Recognize it.
89088         (func_get_status): New function.
89090 2008-10-30  Simon Josefsson  <simon@josefsson.org>
89092         * modules/sockets (License): Change from LGPL to LGPLv2+.
89094 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89096         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
89098 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89100         * MODULES.html.sh (Support for systems lacking POSIX:2001):
89101         Mention times and sys_times.
89102         * modules/sys_times, modules/sys_times-tests: New modules.
89103         * modules/times, modules/times-tests: Likewise
89104         * m4/sys_times_h.m4: New file.
89105         * lib/sys_times.in.h: Likewise
89106         * lib/times.c: Likewise.
89107         * tests/test-sys_times.c: Likewise.
89108         * tests/test-times.c: Likewise.
89109         * doc/posix-headers/sys_times.texi: Update.
89110         * doc/posix-functions/times.texi: Update.
89112 2008-10-28  Jim Meyering  <meyering@redhat.com>
89114         * modules/tempname (Depends-on): Add lstat.
89116         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
89118 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89120         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
89121         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
89122         using idiom used elsewhere in gnulib.
89124 2008-10-27  Jim Meyering  <meyering@redhat.com>
89126         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
89128 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89130         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
89131         TESTS_ENVIRONMENT, for shell scripts that needs to call built
89132         programs.
89133         * tests/test-argp-2.sh: Use $EXEEXT when needed.
89135 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89137         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
89139 2008-10-27  Bruno Haible  <bruno@clisp.org>
89141         * tests/test-lstat.c: Include <stdio.h>.
89143 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89145         * modules/lstat-tests: New module.
89146         * tests/test-lstat.c: New file.
89148 2008-10-26  Jim Meyering  <meyering@redhat.com>
89150         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
89152 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89153             Bruno Haible  <bruno@clisp.org>
89155         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
89156         * modules/configmake (Include): Add a note that the include must come
89157         after all system headers.
89158         * lib/javaversion.c: Include configmake.h after all other includes.
89160 2008-10-26  Bruno Haible  <bruno@clisp.org>
89162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
89163         HAVE_STRUCT_RANDOM_DATA to 1.
89164         (gl_STDLIB_H): Simplify.
89166 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89168         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
89169         substitute HAVE_STRUCT_RANDOM_DATA.
89170         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
89171         random_data.
89172         * modules/stdlib (Makefile.am): Substitute
89173         HAVE_STRUCT_RANDOM_DATA.
89175 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89177         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
89178         * doc/gnulib-intro.texi (Copyright): Likewise.
89180 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89182         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
89183         findings.
89185 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
89186             Bruno Haible  <bruno@clisp.org>
89188         * lib/unistd.in.h: Include <winsock2.h>.
89189         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
89190         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
89191         Provide dummy declarations.
89192         (gethostname): Override.
89193         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
89194         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
89195         gl_PREREQ_SYS_H_WINSOCK2.
89196         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
89197         * doc/posix-functions/gethostname.texi: More details.
89199 2008-10-25  Bruno Haible  <bruno@clisp.org>
89201         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89202         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
89203         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
89205         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
89206         here ...
89207         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
89208         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
89209         gl_UNISTD_H_DEFAULTS.
89211 2008-10-25  Eric Blake  <ebb9@byu.net>
89213         signbit: avoid spurious compiler failure
89214         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
89215         declarations inside function.
89217 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89218             Bruno Haible  <bruno@clisp.org>
89220         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
89221         * modules/random_r (Depends-on): Add stdint.
89223 2008-10-24  Bruno Haible  <bruno@clisp.org>
89225         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
89226         Eggert.
89227         * modules/strerror (License): Likewise.
89229 2008-10-24  Jim Meyering  <meyering@redhat.com>
89231         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
89232         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
89234 2008-10-24  Eric Blake  <ebb9@byu.net>
89236         getgroups: fix compilation when getgroups is available
89237         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
89238         but with <config.h> override of getgroups disabled.
89240 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89242         * doc/gnulib.texi (Header files): Add note about C++ problems.
89243         Explained by Bruno Haible <bruno@clisp.org>.
89245 2008-10-23  Bruno Haible  <bruno@clisp.org>
89247         Define a dummy SA_NODEFER macro on Interix.
89248         * lib/signal.in.h (SA_NODEFER): Define fallback.
89249         Reported by Aleksey Cheusov <cheusov@tut.by> via
89250         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
89252 2008-10-23  Bruno Haible  <bruno@clisp.org>
89254         * modules/freadahead (License): Change to LGPLv2+.
89255         Suggested by Simon Josefsson.
89257 2008-10-23  Jim Meyering  <meyering@redhat.com>
89259         random_r: new module
89260         * modules/random_r: New file.
89261         * m4/random_r.m4: New file.
89262         * lib/random_r.c: New file, from glibc.
89263         * modules/random_r-tests: New file.
89264         * tests/test-random_r.c: New file.
89265         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
89266          Declare.
89267         (RAND_MAX): Define.
89268         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
89269         * modules/stdlib: Substitute them, too.
89270         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
89271         * doc/glibc-functions/initstate_r.texi: Mention the new module.
89272         * doc/glibc-functions/random_r.texi: Likewise.
89273         * doc/glibc-functions/setstate_r.texi: Likewise.
89274         * doc/glibc-functions/srandom_r.texi: Likewise.
89275         * config/srclist.txt: Mention it.
89277 2008-10-23  David Lutterkort  <lutter@redhat.com>
89279         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
89280         link requirement
89282 2008-10-23  Jim Meyering  <meyering@redhat.com>
89284         selinux-h: mark parameters of stub functions as intentionally unused
89285         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
89286         * lib/se-context.in.h: Likewise.
89288 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89290         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
89292 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89294         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
89296 2008-10-22  Eric Blake  <ebb9@byu.net>
89298         glthread/thread: avoid compiler warning
89299         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
89300         Add unreachable abort to silence compiler.
89302 2008-10-22  Eric Blake  <ebb9@byu.net>
89304         netdb: also supply struct addrinfo for cygwin 1.5.x
89305         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
89306         older cygwin.
89307         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
89308         cygwin.
89309         * doc/posix-headers/netdb.texi (netdb.h): Document this.
89311 2008-10-22  Bruno Haible  <bruno@clisp.org>
89313         * users.txt: Update entry about pspp.
89315 2008-10-21  Bruno Haible  <bruno@clisp.org>
89317         Simplification.
89318         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
89319         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
89321         Simplification.
89322         * lib/ioctl.c (ioctl): Don't undefine.
89323         * lib/socket.c (socket): Don't undefine.
89325         Remove unused module indicator macros.
89326         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
89327         GNULIB_$1 as a C macro.
89329         * doc/posix-functions/close.texi: Undo last change.
89330         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
89331         Windows platforms.
89333 2008-10-21  Bruno Haible  <bruno@clisp.org>
89335         Add gethostname() declaration to <unistd.h>.
89336         * lib/unistd.in.h (gethostname): New declaration.
89337         * lib/gethostname.c: Include <unistd.h>.
89338         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
89339         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
89340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
89341         and HAVE_GETHOSTNAME.
89342         * modules/gethostname (Depends-on): Add unistd.
89343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89344         (Include): Specify <unistd.h>.
89345         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
89346         HAVE_GETHOSTNAME.
89347         * tests/test-gethostname.c: Include <unistd.h> first.
89349 2008-10-21  Bruno Haible  <bruno@clisp.org>
89351         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
89352         * modules/select-tests (Depends-on): Likewise.
89353         Reported by Simon Josefsson.
89355 2008-10-21  Simon Josefsson  <simon@josefsson.org>
89357         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
89358         * lib/accept.c: New file, based on winsock.c.
89359         * lib/bind.c: New file, based on winsock.c.
89360         * lib/connect.c: New file, based on winsock.c.
89361         * lib/getpeername.c: New file, based on winsock.c.
89362         * lib/getsockname.c: New file, based on winsock.c.
89363         * lib/getsockopt.c: New file, based on winsock.c.
89364         * lib/ioctl.c: New file, based on winsock.c.
89365         * lib/listen.c: New file, based on winsock.c.
89366         * lib/recv.c: New file, based on winsock.c.
89367         * lib/recvfrom.c: New file, based on winsock.c.
89368         * lib/send.c: New file, based on winsock.c.
89369         * lib/sendto.c: New file, based on winsock.c.
89370         * lib/setsockopt.c: New file, based on winsock.c.
89371         * lib/shutdown.c: New file, based on winsock.c.
89372         * lib/socket.c: New file, based on winsock.c.
89373         * lib/w32sock.h: New file, based on winsock.c.
89374         * lib/winsock.c: Remove file.
89375         * modules/accept: Likewise.
89376         * modules/bind: Likewise.
89377         * modules/connect: Likewise.
89378         * modules/getpeername: Likewise.
89379         * modules/getsockname: Likewise.
89380         * modules/getsockopt: Likewise.
89381         * modules/ioctl: Likewise.
89382         * modules/listen: Likewise.
89383         * modules/recv: Likewise.
89384         * modules/recvfrom: Likewise.
89385         * modules/send: Likewise.
89386         * modules/sendto: Likewise.
89387         * modules/setsockopt: Likewise.
89388         * modules/shutdown: Likewise.
89389         * modules/socket: Use socket.c instead of winsock.c.
89390         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
89391         * doc/posix-functions/accept.texi: Doc fix.
89392         * doc/posix-functions/bind.texi: Doc fix.
89393         * doc/posix-functions/close.texi: Doc fix.
89394         * doc/posix-functions/connect.texi: Doc fix.
89395         * doc/posix-functions/getpeername.texi: Doc fix.
89396         * doc/posix-functions/getsockname.texi: Doc fix.
89397         * doc/posix-functions/getsockopt.texi: Doc fix.
89398         * doc/posix-functions/ioctl.texi: Doc fix.
89399         * doc/posix-functions/listen.texi: Doc fix.
89400         * doc/posix-functions/recv.texi: Doc fix.
89401         * doc/posix-functions/recvfrom.texi: Doc fix.
89402         * doc/posix-functions/send.texi: Doc fix.
89403         * doc/posix-functions/sendto.texi: Doc fix.
89404         * doc/posix-functions/setsockopt.texi: Doc fix.
89405         * doc/posix-functions/shutdown.texi: Doc fix.
89406         * doc/posix-functions/socket.texi: Doc fix.
89408 2008-10-20  Bruno Haible  <bruno@clisp.org>
89410         Take into account the role of SIGABRT_COMPAT on Windows 2008.
89411         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
89412         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
89413         as an alias for SIGABRT.
89414         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
89415         (sigaction): Map it to SIGABRT.
89416         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
89418 2008-10-20  Bruno Haible  <bruno@clisp.org>
89420         * lib/fts.c: Don't include lstat.h.
89421         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
89423         Move the lstat() declaration to <sys/stat.h>.
89424         * lib/lstat.h: Remove file.
89425         * lib/sys_stat.in.h: Add special invocation convention.
89426         (lstat): New declaration.
89427         * lib/lstat.c (orig_lstat): New function.
89428         (rpl_lstat): Use orig_lstat instead of lstat.
89429         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
89430         AC_C_INLINE. Set REPLACE_LSTAT.
89431         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
89432         and REPLACE_LSTAT.
89433         * modules/lstat (Files): Remove lib/lstat.h.
89434         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89435         (Include): Specify <sys/stat.h> instead of lstat.h.
89436         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
89437         REPLACE_LSTAT.
89438         * NEWS: Mention the change.
89440 2008-10-20  Bruno Haible  <bruno@clisp.org>
89442         * modules/posix_spawn-tests: New file.
89443         * tests/test-posix_spawn3.c: New file.
89445 2008-10-20  Bruno Haible  <bruno@clisp.org>
89447         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
89448         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89449         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
89450         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89451         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
89453 2008-10-20  Bruno Haible  <bruno@clisp.org>
89455         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
89456         of posix_spawn on AIX 5.3.
89458 2008-10-20  Bruno Haible  <bruno@clisp.org>
89460         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
89462 2008-10-20  Bruno Haible  <bruno@clisp.org>
89464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
89465         of AC_LANG_PROGRAM.
89467 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89469         * lib/netdb.in.h: Don't define GNU specific constants until they
89470         are supported or needed.  Reported by Bruno Haible
89471         <bruno@clisp.org>.
89473 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89475         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
89477 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89479         * lib/getaddrinfo.h: Remove file.
89480         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
89481         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
89482         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
89483         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
89484         * modules/netdb: Substitute GNULIB_GETADDRINFO.
89485         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
89486         * tests/test-getaddrinfo.c: Likewise.
89487         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
89488         * NEWS: Mention change.
89490 2008-10-19  Bruno Haible  <bruno@clisp.org>
89492         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
89494 2008-10-19  Bruno Haible  <bruno@clisp.org>
89496         * lib/wait-process.c: Include simply <sys/wait.h>.
89497         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
89498         WIFSTOPPED): Remove fallback definitions.
89499         * modules/wait-process (Depends-on): Add sys_wait.
89501         New module 'sys_wait'.
89502         * modules/sys_wait: New file.
89503         * lib/sys_wait.in.h: New file, partially copied from
89504         lib/wait-process.c.
89505         * m4/sys_wait_h.m4: New file.
89506         * doc/posix-headers/sys_wait.texi: Mention the new module.
89508 2008-10-19  Bruno Haible  <bruno@clisp.org>
89510         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
89512 2008-10-19  Bruno Haible  <bruno@clisp.org>
89514         Assume that waitpid() fills an 'int' status, not a 'union wait'.
89515         * lib/wait-process.c (WAIT_T): Remove type.
89516         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
89517         (wait_subprocess): Update.
89519 2008-10-19  Bruno Haible  <bruno@clisp.org>
89521         New module 'atoll'.
89522         * modules/atoll: New file.
89523         * lib/stdlib.in.h (atoll): New declaration.
89524         * lib/atoll.c: New file, from glibc with modifications.
89525         * m4/atoll.m4: New file.
89526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
89527         HAVE_ATOLL.
89528         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
89529         * doc/posix-functions/atoll.texi: Mention the new module.
89531 2008-10-19  Bruno Haible  <bruno@clisp.org>
89533         Add strtoull() declaration to <stdlib.h>.
89534         * lib/stdlib.in.h (strtoull): New declaration.
89535         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89536         Set HAVE_STRTOULL.
89537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
89538         HAVE_STRTOULL.
89539         * modules/strtoull (Depends-on): Add stdlib.
89540         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89541         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
89542         HAVE_STRTOULL.
89544 2008-10-19  Bruno Haible  <bruno@clisp.org>
89546         Add strtoll() declaration to <stdlib.h>.
89547         * lib/stdlib.in.h (strtoll): New declaration.
89548         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89549         Set HAVE_STRTOLL.
89550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
89551         HAVE_STRTOLL.
89552         * modules/strtoll (Depends-on): Add stdlib.
89553         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89554         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
89556 2008-10-19  Bruno Haible  <bruno@clisp.org>
89558         * modules/bcopy (Depends-on): Add strings.
89559         (Include): Specify <strings.h>.
89561 2008-10-19  Bruno Haible  <bruno@clisp.org>
89563         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
89565 2008-10-19  Bruno Haible  <bruno@clisp.org>
89567         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
89568         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
89569         mingw.
89571 2008-10-19  Bruno Haible  <bruno@clisp.org>
89573         * lib/atanl.c: Don't include isnanl.h.
89574         * lib/cosl.c: Likewise.
89575         * lib/ldexpl.c: Likewise.
89576         * lib/logl.c: Likewise.
89577         * lib/sinl.c: Likewise.
89578         * lib/sqrtl.c: Likewise.
89579         * lib/tanl.c: Likewise.
89581         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
89582         * lib/isnanf.h: Remove file.
89583         * lib/isnand.h: Remove file.
89584         * lib/isnanl.h: Remove file.
89585         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
89586         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
89587         macros.
89588         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
89589         HAVE_ISNANF, don't define it as a C macro.
89590         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
89591         HAVE_ISNAND, don't define it as a C macro.
89592         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
89593         HAVE_ISNANL, don't define it as a C macro.
89594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
89595         HAVE_ISNAN[FDL].
89596         * modules/isnanf (Files): Remove lib/isnanf.h.
89597         (Depends-on): Add math.
89598         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89599         (Include): Specify <math.h> instead of isnanf.h.
89600         * modules/isnand (Files): Remove lib/isnand.h.
89601         (Depends-on): Add math.
89602         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89603         (Include): Specify <math.h> instead of isnand.h.
89604         * modules/isnanl (Files): Remove lib/isnanl.h.
89605         (Depends-on): Add math.
89606         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89607         (Include): Specify <math.h> instead of isnanl.h.
89608         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
89609         HAVE_ISNAN[FDL].
89610         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
89611         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
89612         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
89613         * NEWS: Mention the change.
89615 2008-10-18  Bruno Haible  <bruno@clisp.org>
89617         Add getusershell(), setusershell(), endusershell() declarations to
89618         <unistd.h>.
89619         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
89620         declarations.
89621         * lib/getusershell.c: Include unistd.h.
89622         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
89623         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89624         HAVE_GETUSERSHELL.
89625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
89626         and HAVE_GETUSERSHELL.
89627         * modules/getusershell (Depends-on): Add unistd, extensions.
89628         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89629         (Include): Specify <unistd.h>.
89630         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
89631         HAVE_GETUSERSHELL.
89633 2008-10-18  Bruno Haible  <bruno@clisp.org>
89635         Add a getloadavg() declaration to <stdlib.h>.
89636         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
89637         getloadavg declaration.
89638         (getloadavg): New declaration.
89639         * lib/getloadavg.c: Include <stdlib.h> first.
89640         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
89641         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
89642         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
89643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
89644         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89645         * modules/getloadavg (Depends-on): Add stdlib, extensions.
89646         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89647         (Include): Specify <stdlib.h>.
89648         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
89649         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89651 2008-10-18  Bruno Haible  <bruno@clisp.org>
89653         * lib/dirchownmod.c: Don't include lchmod.h.
89655         Move the lchmod() declaration to <sys/stat.h>.
89656         * lib/lchmod.h: Remove file.
89657         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
89658         (lchmod): New declaration, moved here from lib/lchown.h.
89659         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
89660         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
89661         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
89662         and HAVE_LCHMOD.
89663         * modules/lchmod (Files): Remove lib/lchmod.h.
89664         (Depends-on): Add sys_stat, extensions.
89665         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89666         (Include): Specify <sys/stat.h> instead of lchmod.h.
89667         * modules/sys_stat (Depends-on): Add link-warning.
89668         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
89669         definition of GL_LINK_WARNING.
89670         * NEWS: Mention the change.
89672 2008-10-18  Bruno Haible  <bruno@clisp.org>
89674         * lib/fchdir.c: Don't include dirfd.h.
89675         * lib/fts.c: Likewise.
89676         * lib/getcwd.c: Likewise.
89677         * lib/glob.c: Likewise.
89679         Move the dirfd() declaration to <dirent.h>.
89680         * lib/dirfd.h: Remove file.
89681         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
89682         (dirfd): New declaration.
89683         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
89684         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
89685         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
89686         HAVE_DECL_DIRFD.
89687         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
89688         HAVE_DECL_DIRFD.
89689         * modules/dirfd (Files): Remove lib/dirfd.h.
89690         (Depends-on): Add dirent, extensions.
89691         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
89692         (Include): Specify <dirent.h> instead of dirfd.h.
89693         * modules/dirent (Depends-on): Add link-warning.
89694         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
89695         definition of GL_LINK_WARNING.
89696         * NEWS: Mention the change.
89698 2008-10-18  Bruno Haible  <bruno@clisp.org>
89700         Move the euidaccess() declaration to <unistd.h>.
89701         * lib/euidaccess.h: Remove file.
89702         * lib/unistd.in.h (euidaccess): New declaration.
89703         * lib/euidaccess.c: Don't include euidaccess.h.
89704         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
89705         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
89706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
89707         and HAVE_EUIDACCESS.
89708         * modules/euidaccess (Files): Remove lib/euidaccess.h.
89709         (Depends-on): Add unistd.
89710         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89711         (Include): Specify <unistd.h> instead of euidaccess.h.
89712         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
89713         HAVE_EUIDACCESS.
89714         * NEWS: Mention the change.
89716 2008-10-18  Bruno Haible  <bruno@clisp.org>
89718         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
89720         Move the getdomainname() declaration to <unistd.h>.
89721         * lib/getdomainname.h: Remove file.
89722         * lib/unistd.in.h (getdomainname): New declaration.
89723         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
89724         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
89725         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89726         HAVE_GETDOMAINNAME.
89727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89728         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
89729         * modules/getdomainname (Files): Remove lib/getdomainname.h.
89730         (Depends-on): Add unistd, extensions.
89731         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89732         (Includes): Specify <unistd.h> instead of getdomainname.h.
89733         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
89734         HAVE_GETDOMAINNAME.
89735         * NEWS: Mention the change.
89737 2008-10-18  Bruno Haible  <bruno@clisp.org>
89739         * modules/dirent: New file.
89740         * m4/dirent_h.m4: New file.
89741         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
89742         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
89743         * modules/fchdir (Files): Remove lib/dirent.in.h.
89744         (Depends-on): Add dirent.
89745         (Makefile.am): Move rules to modules/dirent.
89746         * doc/posix-headers/dirent.texi: Mention the new module.
89748 2008-10-18  Bruno Haible  <bruno@clisp.org>
89750         Avoid -Wunused-parameter warnings in public gnulib header files.
89751         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
89752         macro.
89753         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
89755 2008-10-18  Bruno Haible  <bruno@clisp.org>
89757         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
89758         * doc/glibc-functions/error.texi: Mention the module 'error'.
89759         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
89760         * doc/glibc-functions/getdomainname.texi: Mention the module
89761         'getdomainname'.
89762         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
89763         * doc/glibc-functions/getpagesize.texi: Mention the module
89764         'getpagesize'.
89765         * doc/glibc-functions/getusershell.texi: Mention the module
89766         'getusershell'.
89767         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
89768         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
89769         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
89770         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
89771         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
89772         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
89773         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
89774         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
89775         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
89776         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
89777         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
89778         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
89779         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
89780         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
89782 2008-10-17  Bruno Haible  <bruno@clisp.org>
89784         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
89785         HP-UX and IRIX, use -0.0L.
89786         * tests/test-ceill.c (minus_zero): Likewise.
89787         * tests/test-floorl.c (minus_zero): Likewise.
89788         * tests/test-frexpl.c (minus_zero): Likewise.
89789         * tests/test-isnan.c (minus_zerol): Likewise.
89790         * tests/test-isnanl.h (minus_zero): Likewise.
89791         * tests/test-ldexpl.c (minus_zero): Likewise.
89792         * tests/test-roundl.c (minus_zero): Likewise.
89793         * tests/test-signbit.c (minus_zerol): Likewise.
89794         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
89795         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
89796         * tests/test-truncl.c (minus_zero): Likewise.
89797         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
89798         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
89799         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
89800         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
89802 2008-10-17  Bruno Haible  <bruno@clisp.org>
89804         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
89805         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
89806         that it gets activated only for gcc >= 3.0.
89807         * lib/dirent.in.h: Likewise.
89808         * lib/errno.in.h: Likewise.
89809         * lib/fcntl.in.h: Likewise.
89810         * lib/float.in.h: Likewise.
89811         * lib/iconv.in.h: Likewise.
89812         * lib/inttypes.in.h: Likewise.
89813         * lib/locale.in.h: Likewise.
89814         * lib/math.in.h: Likewise.
89815         * lib/netdb.in.h: Likewise.
89816         * lib/netinet_in.in.h: Likewise.
89817         * lib/search.in.h: Likewise.
89818         * lib/signal.in.h: Likewise.
89819         * lib/spawn.in.h: Likewise.
89820         * lib/stdarg.in.h: Likewise.
89821         * lib/stdint.in.h: Likewise.
89822         * lib/stdio.in.h: Likewise.
89823         * lib/stdlib.in.h: Likewise.
89824         * lib/string.in.h: Likewise.
89825         * lib/strings.in.h: Likewise.
89826         * lib/sys_file.in.h: Likewise.
89827         * lib/sys_ioctl.in.h: Likewise.
89828         * lib/sys_select.in.h: Likewise.
89829         * lib/sys_socket.in.h: Likewise.
89830         * lib/sys_stat.in.h: Likewise.
89831         * lib/sys_time.in.h: Likewise.
89832         * lib/sysexits.in.h: Likewise.
89833         * lib/time.in.h: Likewise.
89834         * lib/unistd.in.h: Likewise.
89835         * lib/wchar.in.h: Likewise.
89836         * lib/wctype.in.h: Likewise.
89837         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89839 2008-10-17  Jim Meyering  <meyering@redhat.com>
89841         ignore-value: don't depend on inline module
89842         * modules/ignore-value (Depends-on): Remove 'inline'.
89843         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
89844         Suggestion from Bruno Haible.
89846 2008-10-17  Bruno Haible  <bruno@clisp.org>
89848         New implementation of condition variables for Win32.
89849         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
89850         (gl_linked_waitqueue_t): New type.
89851         (gl_cond_t): Use it.
89852         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
89853         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
89854         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
89855         (glthread_cond_init_func, glthread_cond_wait_func,
89856         glthread_cond_timedwait_func, glthread_cond_signal_func,
89857         glthread_cond_broadcast_func, glthread_cond_destroy_func):
89858         Reimplemented on the basis of gl_linked_waitqueue_t.
89859         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
89860         gl_waitqueue_t.
89861         (gl_rwlock_t): Update.
89862         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
89864 2008-10-17  Simon Josefsson  <simon@josefsson.org>
89866         * modules/recvfrom (Depends-on): Add dependency on getpeername.
89867         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89869 2008-10-17  Jim Meyering  <meyering@redhat.com>
89871         ignore-value: new module
89872         * modules/ignore-value: New file.
89873         * lib/ignore-value.h: New file.
89874         * MODULES.html.sh (Compiler warning management): New section,
89875         just for this module.  More to come.
89877 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89879         open-safer.c: avoid 'signed and unsigned in conditional...' warning
89880         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
89881         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
89883 2008-10-16  Jim Meyering  <meyering@redhat.com>
89885         openat-die.c: avoid 'no previous prototype' warning
89886         * lib/openat-die.c: Include "openat.h".
89887         Reported by Reuben Thomas <rrt@sc3d.org>.
89889 2008-10-16  Simon Josefsson  <simon@josefsson.org>
89891         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
89892         * lib/netdb.in.h: Fix typo.
89893         Reported by Bruno Haible  <bruno@clisp.org>
89895         * lib/netdb.in.h: Include sys/socket.h for platforms without
89896         netdb.h, to get structures like hostent on MinGW.
89897         * modules/netdb (Depends-on): Add sys_socket.
89899 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89901         * modules/netdb, modules/netdb-tests: New file.
89902         * m4/netdb_h.m4: New file.
89903         * lib/netdb.in.h: Add, currently just an empty file pending
89904         definitions.
89905         * tests/test-netdb.c: New file.
89906         * doc/posix-headers/netdb.texi: Mention that we replace it if
89907         needed.
89908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89909         netdb.
89911 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89913         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
89914         with code.
89916 2008-10-13  Bruno Haible  <bruno@clisp.org>
89918         * lib/glthread/cond.c (glthread_cond_wait_func,
89919         glthread_cond_timedwait_func): Add a comment.
89921 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89923         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
89924         * tests/test-select.c: Likewise,
89926 2008-10-13  Bruno Haible  <bruno@clisp.org>
89928         * lib/glthread/cond.c (glthread_cond_wait_func,
89929         glthread_cond_timedwait_func): Fix variable name.
89930         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89932 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
89934         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
89935         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
89936         struct sockaddr.sa_len.
89937         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
89939 2008-10-13  Simon Josefsson  <simon@josefsson.org>
89941         * build-aux/pmccabe2html: Add css and css_url parameters.
89943 2008-10-12  Bruno Haible  <bruno@clisp.org>
89945         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
89946         calling aclx_get.
89947         Reported by Rainer Tammer <tammer@tammer.net>.
89949 2008-10-12  Bruno Haible  <bruno@clisp.org>
89951         Use msvcrt aware primitives for creation/termination of Win32 threads.
89952         * lib/glthread/thread.c: Include <process.h>.
89953         (glthread_create_func): Use _beginthreadex instead of CreateThread.
89954         (wrapper_func): Update signature.
89955         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
89957 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89958             Bruno Haible  <bruno@clisp.org>
89960         Provide a Win32 implementation of the 'cond' module.
89961         * lib/glthread/cond.h [USE_WIN32]: New implementation.
89962         * lib/glthread/cond.c (glthread_cond_init_func,
89963         glthread_cond_wait_func, glthread_cond_timedwait_func,
89964         glthread_cond_signal_func, glthread_cond_broadcast_func,
89965         glthread_cond_destroy_func) [USE_WIN32]: New functions.
89966         * modules/cond (Dependencies): Add gettimeofday.
89968 2008-10-11  Bruno Haible  <bruno@clisp.org>
89970         Make sleep work on older versions of mingw.
89971         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
89972         only whether it exists.
89973         * doc/posix-functions/sleep.texi: Mention the problem with older
89974         versions of mingw.
89976 2008-10-11  Bruno Haible  <bruno@clisp.org>
89978         New module 'shutdown'.
89979         * modules/shutdown: New file.
89980         * lib/sys_socket.in.h (shutdown): New declaration.
89981         * lib/winsock.c (shutdown): New function.
89982         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
89983         GNULIB_SHUTDOWN.
89984         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
89985         * doc/posix-functions/shutdown.texi: Document the new module.
89987 2008-10-11  Jim Meyering  <meyering@redhat.com>
89989         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
89991 2008-10-11  Bruno Haible  <bruno@clisp.org>
89993         New module 'fclose'.
89994         * modules/fclose: New file.
89995         * lib/stdio.in.h (fclose): New declaration.
89996         * lib/fclose.c: New file.
89997         * m4/fclose.m4: New file.
89998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
89999         REPLACE_FCLOSE.
90000         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
90001         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
90002         REPLACE_FCLOSE.
90003         * modules/close (Depends-on): fclose.
90004         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
90006 2008-10-11  Bruno Haible  <bruno@clisp.org>
90008         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
90009         set errno and don't call _close.
90011 2008-10-10  Bruno Haible  <bruno@clisp.org>
90013         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
90014         ACL, not afterwards. Fixes test failure on Cygwin.
90016 2008-10-09  Ben Pfaff  <blp@gnu.org>
90018         * build-aux/announce-gen: Fix gnulib version related part of usage
90019         message.  Die with a useful error message if no tarballs are
90020         found.
90022 2008-10-10  Jim Meyering  <meyering@redhat.com>
90024         bootstrap: use git's --depth=N option only if it's supported
90025         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
90026         recognize the --depth option.  Reported by Pádraig Brady.
90028 2008-10-09  Bruno Haible  <bruno@clisp.org>
90030         New module 'ioctl'.
90031         * modules/ioctl: New file.
90032         * lib/sys_socket.in.h (ioctl): Remove declaration.
90033         * lib/winsock.c: Include <sys/ioctl.h>.
90034         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
90035         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90036         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
90037         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
90038         * doc/posix-functions/ioctl.texi: Mention the new module.
90040 2008-10-09  Bruno Haible  <bruno@clisp.org>
90042         New module 'sys_ioctl'.
90043         * lib/sys_ioctl.in.h: New file.
90044         * m4/sys_ioctl_h.m4: New file.
90045         * modules/sys_ioctl: New file.
90046         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
90048 2008-10-09  Bruno Haible  <bruno@clisp.org>
90050         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
90051         * lib/winsock.c: Include <stdarg.h>.
90052         (rpl_ioctl): Change to second argument 'int' and then varargs.
90054 2008-10-09  Bruno Haible  <bruno@clisp.org>
90056         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
90057         when the sys_socket module is present and the system has <winsock2.h>.
90059 2008-10-09  Bruno Haible  <bruno@clisp.org>
90061         * doc/posix-functions/close.texi: Mention module 'close' instead of
90062         module 'sys_socket'.
90064 2008-10-09  Bruno Haible  <bruno@clisp.org>
90066         * doc/glibc-headers/sys_ioctl.texi: New file.
90067         * doc/gnulib.texi: Include it.
90069 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90070             Bruno Haible  <bruno@clisp.org>
90072         Combine the two replacements of 'close'.
90073         * lib/sys_socket.in.h (close): Define to a reminder to include
90074         <unistd.h>.
90075         (_gl_close_fd_maybe_socket): New declaration.
90076         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
90077         * lib/winsock.c (close): Remove undefinition.
90078         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
90079         needed for the gnulib module 'close'.
90080         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
90081         define to an error symbol or to a warning, if suitable.
90082         * lib/close.c: Include <sys/socket.h>.
90083         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
90084         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
90085         UNISTD_H_HAVE_WINSOCK2_H.
90086         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
90087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90088         UNISTD_H_HAVE_WINSOCK2_H.
90089         * modules/sys_socket (Files): Add m4/unistd_h.m4.
90090         (configure.ac): Set a module indicator.
90091         (Makefile.am): Substitute GNULIB_CLOSE.
90092         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
90093         * modules/poll-tests (Depends-on): Add close.
90094         * modules/select-tests (Depends-on): Likewise.
90096 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90097             Bruno Haible  <bruno@clisp.org>
90099         New module 'close'.
90100         * modules/close: New file.
90101         * lib/unistd.in.h (close): Move declaration out of the
90102         FCHDIR_REPLACEMENT scope.
90103         (_gl_unregister_fd): New declaration.
90104         * lib/close.c: New file.
90105         * lib/fchdir.c (rpl_close): Remove function.
90106         * m4/close.m4: New file.
90107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90108         close.
90109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
90110         REPLACE_CLOSE.
90111         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
90112         REPLACE_CLOSE.
90113         * modules/fchdir (Depends-on): Add close.
90115 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90116             Bruno Haible  <bruno@clisp.org>
90118         * lib/fcntl.in.h (open): Simplify conditionals.
90119         (_gl_register_fd): New declaration.
90120         * lib/fchdir.c (rpl_open): Remove function.
90121         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
90122         also.
90123         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
90124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90125         open.
90127 2008-10-09  Jim Meyering  <meyering@redhat.com>
90129         GNUmakefile: use the more name-space-friendly "_version"
90130         * top/GNUmakefile (_dummy): Update.
90131         (_version): Rename from "version".
90133 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90134             Bruno Haible  <bruno@clisp.org>
90136         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
90137         rpl_close.
90138         (_gl_register_fd): New function, extracted from rpl_open.
90139         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
90140         (rpl_open, rpl_opendir): Use _gl_register_fd.
90142 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90144         Fix organization of 'open' replacement.
90145         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
90146         (gl_FUNC_OPEN): Use it.
90147         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
90149 2008-10-08  Bruno Haible  <bruno@clisp.org>
90151         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
90153 2008-10-08  Simon Josefsson  <simon@josefsson.org>
90155         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
90156         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
90157         listen).
90159 2008-10-08  Eric Blake  <ebb9@byu.net>
90161         GNUmakefile: add 'make version' target
90162         * top/GNUmakefile (_curr-ver): Split version update rules...
90163         (version): ...into a target.
90165 2008-10-07  Bruno Haible  <bruno@clisp.org>
90167         Use a more portable replacement expression for -0.0L.
90168         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
90169         instead of -0.0L. Fix m4 quotation.
90171         * tests/test-signbit.c: Include <float.h>.
90172         (minus_zero): New variable.
90173         (test_signbitl): Use minus_zero instead of -zero.
90174         * modules/signbit-tests (Depends-on): Add float.
90176         * tests/test-ceill.c: Include <float.h>.
90177         (zero): Remove variable.
90178         (minus_zero): New variable.
90179         (main): Use minus_zero instead of -zero.
90180         * modules/ceill-tests (Depends-on): Add float.
90182         * tests/test-floorl.c: Include <float.h>.
90183         (zero): Remove variable.
90184         (minus_zero): New variable.
90185         (main): Use minus_zero instead of -zero.
90186         * modules/floorl-tests (Depends-on): Add float.
90188         * tests/test-roundl.c: Include <float.h>.
90189         (zero): Remove variable.
90190         (minus_zero): New variable.
90191         (main): Use minus_zero instead of -zero.
90192         * modules/roundl-tests (Depends-on): Add float.
90194         * tests/test-truncl.c: Include <float.h>.
90195         (zero): Remove variable.
90196         (minus_zero): New variable.
90197         (main): Use minus_zero instead of -zero.
90198         * modules/truncl-tests (Depends-on): Add float.
90200         * tests/test-frexpl.c (zero): Remove variable.
90201         (minus_zero): New variable.
90202         (main): Use minus_zero instead of -zero.
90203         * modules/frexpl-tests (Depends-on): Add float.
90205         * tests/test-isnan.c (zerol): Remove variable.
90206         (minus_zerol): New variable.
90207         (test_long_double): Use minus_zerol instead of -zerol.
90208         * modules/isnan-tests (Depends-on): Add float.
90210         * tests/test-isnanl.h (zero): Remove variable.
90211         (minus_zero): New variable.
90212         (main): Use minus_zero instead of -zero.
90213         * modules/isnanl-nolibm-tests (Depends-on): Add float.
90214         * modules/isnanl-tests (Depends-on): Add float.
90216         * tests/test-ldexpl.c (zero): Remove variable.
90217         (minus_zero): New variable.
90218         (main): Use minus_zero instead of -zero.
90219         * modules/ldexpl-tests (Depends-on): Add float.
90221         * tests/test-snprintf-posix.h (zerol): Remove variable.
90222         (minus_zerol): New variable.
90223         (test_function): Use minus_zerol instead of -zerol.
90224         * modules/snprintf-posix-tests (Depends-on): Add float.
90225         * modules/vsnprintf-posix-tests (Depends-on): Add float.
90227         * tests/test-sprintf-posix.h (zerol): Remove variable.
90228         (minus_zerol): New variable.
90229         (test_function): Use minus_zerol instead of -zerol.
90230         * modules/sprintf-posix-tests (Depends-on): Add float.
90231         * modules/vsprintf-posix-tests (Depends-on): Add float.
90233         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
90234         (minus_zerol): New variable.
90235         (test_function): Use minus_zerol instead of -zerol.
90236         * modules/vasnprintf-posix-tests (Depends-on): Add float.
90238         * tests/test-vasprintf-posix.c (zerol): Remove variable.
90239         (minus_zerol): New variable.
90240         (test_function): Use minus_zerol instead of -zerol.
90241         * modules/vasprintf-posix-tests (Depends-on): Add float.
90243 2008-10-07  Simon Josefsson  <simon@josefsson.org>
90245         * MODULES.html.sh (Support for building documentation): Mention
90246         pmccabe2html.  Sort entries.
90248         Add pmccabe2html module, from gnupdf.
90249         * build-aux/pmccabe.css: New file.
90250         * build-aux/pmccabe2html: New file.
90251         * m4/pmccabe2html.m4: New file.
90252         * modules/pmccabe2html: New file.
90254 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
90256         flock: new module
90257         * MODULES.html.sh: Add to list of modules.
90258         * lib/flock.c: flock implementation for Windows and Unix systems
90259         which have fcntl.
90260         * doc/glibc-functions/flock.texi: Update documentation.
90261         * lib/sys_file.in.h: <sys/file.h> header file.
90262         * m4/flock.m4: M4 macros.
90263         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
90264         * modules/flock: flock module.
90265         * modules/flock-tests: flock tests module.
90266         * modules/sys_file: sys/file.h module.
90267         * tests/test-flock.c: test suite for flock.
90269 2008-10-06  Jim Meyering  <meyering@redhat.com>
90271         bootstrap: check for LT_INIT more portably still ;-)
90272         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
90273         Spotted by Bruno Haible.
90275 2008-10-06  Eric Blake  <ebb9@byu.net>
90277         test-signbit: avoid tripping Irix cc bug on -0.0L
90278         * tests/test-signbit.c (minus_zerol): Delete, and replace with
90279         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
90280         entire testsuite consistent and avoids an Irix 6.2 bug.
90282 2008-10-05  Bruno Haible  <bruno@clisp.org>
90283             Jim Meyering  <jim@meyering.net>
90285         Add an option for ignoring EPIPE during close_stdout.
90286         * lib/closeout.h: Include <stdbool.h>.
90287         (close_stdout_set_ignore_EPIPE): New declaration.
90288         * lib/closeout.c: Include <stdbool.h>.
90289         (ignore_EPIPE): New variable.
90290         (close_stdout_set_ignore_EPIPE): New function.
90291         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
90292         * lib/close-stream.c (close_stream): Mention the possible EPIPE
90293         failure.
90294         * modules/closeout (Depends-on): Add stdbool.
90296 2008-10-05  Bruno Haible  <bruno@clisp.org>
90298         * modules/accept: New file.
90299         * modules/bind: New file.
90300         * modules/connect: New file.
90301         * modules/getpeername: New file.
90302         * modules/getsockname: New file.
90303         * modules/getsockopt: New file.
90304         * modules/listen: New file.
90305         * modules/recv: New file.
90306         * modules/recvfrom: New file.
90307         * modules/send: New file.
90308         * modules/sendto: New file.
90309         * modules/setsockopt: New file.
90310         * modules/socket: New file.
90311         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
90312         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
90313         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
90314         the particular module is requested. Add a link warning when the
90315         particular module is not requested.
90316         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
90317         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
90318         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
90319         the particular module is requested.
90320         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
90321         gl_SYS_SOCKET_H_DEFAULTS): New macros.
90322         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
90323         * modules/sys_socket (Depends-on): Add link-warning.
90324         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
90325         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
90326         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
90327         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
90328         GL_LINK_WARNING.
90329         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
90330         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
90331         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
90332         * doc/posix-functions/getpeername.texi: Mention the new module
90333         'getpeername'.
90334         * doc/posix-functions/getsockname.texi: Mention the new module
90335         'getsockname'.
90336         * doc/posix-functions/getsockopt.texi: Mention the new module
90337         'getsockopt'.
90338         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
90339         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
90340         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
90341         * doc/posix-functions/send.texi: Mention the new module 'send'.
90342         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
90343         * doc/posix-functions/setsockopt.texi: Mention the new module
90344         'setsockopt'.
90345         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
90346         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
90347         listen, connect, accept.
90348         * modules/select-tests (Depends-on): Likewise.
90350 2008-10-05  Bruno Haible  <bruno@clisp.org>
90352         * lib/winsock.c (strerror): Remove unused #undef.
90353         (rpl_close): Remove unused local variable.
90355         * modules/sys_socket (Depends-on); Add errno.
90357 2008-10-05  Bruno Haible  <bruno@clisp.org>
90359         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
90360         (select): Add a link warning when the 'select' module is not used.
90361         * modules/sys_select (Depends-on): Add link-warning.
90362         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
90363         Suggested by Paolo Bonzini.
90365 2008-10-05  Jim Meyering  <meyering@redhat.com>
90367         bootstrap: check for LT_INIT more portably
90368         * build-aux/bootstrap: Avoid using grep -E, since it's not
90369         portable enough.  Suggestion from Bruno Haible.
90371 2008-10-05  Bruno Haible  <bruno@clisp.org>
90373         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
90374         as being fixed by gnulib.
90376 2008-10-05  Bruno Haible  <bruno@clisp.org>
90378         * modules/select-tests: New file, mostly copied from
90379         modules/sys_select-tests.
90380         * tests/test-select.c: New file, mostly copied from
90381         tests/test-sys_select.c.
90382         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
90383         * modules/sys_select-tests (Depends-on): Remove all dependencies.
90384         (Makefile.am): Remove test_sys_select_LDADD.
90386         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
90387         to an undefined symbol, for an error message.
90388         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
90389         (gl_SYS_SELECT_H_DEFAULTS): New macro.
90390         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
90391         winsock-select.c here.
90392         * modules/sys_select (Files): Remove lib/winsock-select.c.
90393         (Depends-on): Remove alloca.
90394         (Makefile.am): Substitute GNULIB_SELECT.
90395         * modules/select: New file.
90396         * doc/posix-functions/select.texi: Update.
90398 2008-10-05  Bruno Haible  <bruno@clisp.org>
90400         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
90401         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
90402         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
90403         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
90404         getdtablesize.
90405         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
90406         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
90408 2008-10-05  Bruno Haible  <bruno@clisp.org>
90410         * modules/getdtablesize-tests: New file.
90411         * tests/test-getdtablesize.c: New file.
90413         New module 'getdtablesize'.
90414         * lib/unistd.in.h (getdtablesize): New declaration.
90415         * lib/getdtablesize.c: New file.
90416         * m4/getdtablesize.m4: New file.
90417         * modules/getdtablesize: New file.
90418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90419         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
90420         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
90421         HAVE_GETDTABLESIZE.
90422         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
90424 2008-10-05  Bruno Haible  <bruno@clisp.org>
90426         * modules/sched (Makefile.am): Fix typo.
90427         Reported by Simon Josefsson.
90429 2008-10-05  Jim Meyering  <meyering@redhat.com>
90431         bootstrap: check for LT_INIT, too
90432         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
90433         are deprecated.  Suggestion from Ralf Wildenhues.
90435 2008-10-05  Bruno Haible  <bruno@clisp.org>
90437         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
90438         overriding them by ours.
90439         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
90441 2008-10-05  Jim Meyering  <meyering@redhat.com>
90443         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
90444         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
90445         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
90447 2008-10-04  Bruno Haible  <bruno@clisp.org>
90449         * modules/dup2 (License): Change to LGPLv2+.
90450         * modules/sleep (License): Likewise.
90451         * modules/perror (License): Likewise.
90452         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
90453         Blake.
90454         * modules/signal (License): Likewise.
90455         * modules/sigprocmask (License): Likewise.
90456         * modules/raise (License): Change to LGPLv2+, with approval by Jim
90457         Meyering.
90459 2008-10-04  Bruno Haible  <bruno@clisp.org>
90461         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
90462         Reported by Rainer Tammer <tammer@tammer.net>.
90464 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
90465             Bruno Haible  <bruno@clisp.org>
90467         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
90468         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
90469         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
90471 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
90473         filevercmp: new module
90474         * lib/filevercmp.h: New function filevercmp comparing version strings.
90475         * lib/filevercmp.c: Implementation of filevercmp function.
90476         * modules/filevercmp: Module metadata.
90477         * tests/test-filevercmp.c: Unit test for new module.
90478         * modules/filevercmp-tests: Unit test metadata.
90479         * MODULES.html.sh: Add filevercmp module.
90481 2008-10-03  Bruno Haible  <bruno@clisp.org>
90483         * lib/c-ctype.h: Add comment.
90484         Reported by Jim Meyering.
90486 2008-10-02  Bruno Haible  <bruno@clisp.org>
90488         * modules/posix_spawn-internal (Depends-on): Add 'open'.
90490 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90492         * build-aux/bootstrap: Allow renaming bootstrap, and change the
90493         name of bootstrap.conf accordingly.
90495 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90497         * build-aux/bootstrap: Install git-merge-changelog configuration
90498         items into .gitconfig if needed.
90500 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90502         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
90503         git repository, and initialize/update it accordingly.
90505 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
90507         * modules/fsync-tests: New file.
90508         * tests/test-fsync.c: New file.
90510         New module 'fsync'.
90511         * lib/fsync.c: New file.
90512         * m4/fsync.m4: New file.
90513         * modules/fsync: New file.
90514         * lib/unistd.in.h (fsync): New declaration.
90515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
90516         GNULIB_FSYNC and HAVE_FSYNC.
90517         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
90518         * MODULES.html.sh (posix_functions): Add fsync.
90519         * doc/posix-functions/fsync.texi: Mention the new module.
90521 2008-10-02  Jim Meyering  <meyering@redhat.com>
90523         fts.c: sync with similar code from coreutils' remove.c
90524         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
90525         Guard also with "#if defined __linux__", since for now at least,
90526         this code is Linux-kernel-specific.
90528 2008-10-02  Jim Meyering  <meyering@redhat.com>
90530         fts: bug fixes
90531         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
90532         Include <sys/vfs.h>, not <sys/statfs.h>.
90534         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
90535         Include <sys/vfs.h>, not <sys/statfs.h>.
90537 2008-10-01  Bruno Haible  <bruno@clisp.org>
90539         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
90540         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
90541         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
90542         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
90543         * doc/posix-functions/posix_spawnp.texi: Likewise.
90544         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
90545         whether posix_spawn actually works.
90546         * m4/pipe.m4 (gl_PIPE): Likewise.
90547         * modules/execute (Files): Add m4/posix_spawn.m4.
90548         * modules/pipe (Files): Add m4/posix_spawn.m4.
90549         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
90551 2008-10-01  Jim Meyering  <meyering@redhat.com>
90553         remove trailing spaces
90554         * NEWS: Likewise.
90555         * lib/poll.c (poll): Likewise.
90556         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
90557         * lib/winsock.c (rpl_close): Likewise.
90558         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
90559         * modules/yield: Likewise.
90560         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
90561         * tests/test-sys_select.c (connect_to_socket): Likewise.
90563         fts.c: adjust a new interface to be more generally useful
90564         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
90565         (fts_build): Adjust caller.
90567 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90569         * modules/cond-tests: New file.
90570         * tests/test-cond.c: New file.
90572 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90573             Bruno Haible  <bruno@clisp.org>
90575         * modules/cond (Dependencies): Add errno, time.
90576         * lib/glthread/cond.h: Include <time.h>.
90577         (gl_cond_define, gl_cond_define_initialized): Use the same definition
90578         across platforms.
90580 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90581             Bruno Haible  <bruno@clisp.org>
90583         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
90585 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90586             Bruno Haible  <bruno@clisp.org>
90588         * modules/tls-tests (Depends-on): Add thread, yield.
90589         (configure.ac): Remove all checks.
90590         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
90591         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90592         gl_thread_self): Remove definitions. Include glthread/thread.h and
90593         glthread/yield.h instead.
90594         (test_tls): Pass an additional NULL argument to gl_thread_join.
90596 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90597             Bruno Haible  <bruno@clisp.org>
90599         * modules/lock-tests (Depends-on): Add thread, yield.
90600         (configure.ac): Remove all checks.
90601         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
90602         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90603         gl_thread_self): Remove definitions. Include glthread/thread.h and
90604         glthread/yield.h instead.
90605         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
90606         additional NULL argument to gl_thread_join.
90608 2008-09-30  Bruno Haible  <bruno@clisp.org>
90610         Fix the Win32 implementation of the 'thread' module.
90611         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
90612         pointer type.
90613         (gl_thread_self): Invoke gl_thread_self_func.
90614         (gl_thread_self_func): New declaration.
90615         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
90616         (do_init_self_key, init_self_key): New functions.
90617         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
90618         Remove some fields.
90619         (running_threads, running_lock): Remove variables.
90620         (get_current_thread_handle): New function.
90621         (gl_thread_self_func, wrapper_func, glthread_create_func,
90622         glthread_join_func, gl_thread_exit_func): Largely rewritten and
90623         simplified.
90625 2008-09-30  Bruno Haible  <bruno@clisp.org>
90627         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
90628         files.
90630 2008-09-30  Jim Meyering  <meyering@redhat.com>
90632         fts.m4: correct the test for statfs.f_type
90633         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
90634         when checking for statfs.f_type.
90636 2008-09-15  Simon Josefsson  <simon@josefsson.org>
90638         tests: avoid some compiler warnings
90639         * tests/test-memchr.c (main): Pass NULL indirectly.
90640         * tests/test-getdate.c (main): Remove unused variable 'ret'.
90642 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
90644         getdate.y: disallow countable dayshifts like "4 yesterday ago"
90645         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
90646         exactly specified dayshifts.
90647         (dayshift): New rule.
90648         (rel): Add dayshift.
90649         (relative_time_table) [tomorrow, yesterday, today, now]:
90650         Use tDAY_SHIFT in place of tDAY_UNIT.
90651         * tests/test-getdate.c: Add tests for now-disallowed countable
90652         dayshifts, e.g., "4 yesterday ago".
90654 2008-09-29  Bruno Haible  <bruno@clisp.org>
90656         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
90657         * tests/test-posix_spawn1.in.sh: Renamed from
90658         tests/test-posix_spawn.in.sh.
90659         * tests/test-posix_spawn2.c: New file.
90660         * tests/test-posix_spawn2.in.sh: New file.
90661         * modules/posix_spawnp-tests (Files): Update.
90662         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
90664 2008-09-29  Bruno Haible  <bruno@clisp.org>
90666         Propagate effects of putenv/setenv/unsetenv to child processes.
90667         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
90668         * lib/pipe.c (create_pipe): Likewise.
90670 2008-09-29  Bruno Haible  <bruno@clisp.org>
90672         Enable use of shell scripts as executables in mingw.
90673         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
90674         run the program as a shell script.
90675         * lib/pipe.c (create_pipe): Likewise.
90676         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
90677         resulting array.
90679 2008-09-29  Eric Blake  <ebb9@byu.net>
90681         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
90683 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
90685         * doc/posix-functions/accept.texi: Update mingw problems.
90686         * doc/posix-functions/bind.texi: Update mingw problems.
90687         * doc/posix-functions/close.texi: Update mingw problems.
90688         * doc/posix-functions/connect.texi: Update mingw problems.
90689         * doc/posix-functions/getpeername.texi: Update mingw problems.
90690         * doc/posix-functions/getsockname.texi: Update mingw problems.
90691         * doc/posix-functions/getsockopt.texi: Update mingw problems.
90692         * doc/posix-functions/ioctl.texi: Update mingw problems.
90693         * doc/posix-functions/listen.texi: Update mingw problems.
90694         * doc/posix-functions/recv.texi: Update mingw problems.
90695         * doc/posix-functions/recvfrom.texi: Update mingw problems.
90696         * doc/posix-functions/select.texi: Update mingw problems.
90697         * doc/posix-functions/send.texi: Update mingw problems.
90698         * doc/posix-functions/sendto.texi: Update mingw problems.
90699         * doc/posix-functions/setsockopt.texi: Update mingw problems.
90700         * doc/posix-functions/socket.texi: Update mingw problems.
90702 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
90703             Bruno Haible  <bruno@clisp.org>
90705         * lib/sys_select.in.h: Include sys/time.h.
90706         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
90707         * modules/sys_select: Depend on sys_time.
90708         * tests/test-sys_select.c: Test that sys/select.h defines struct
90709         timeval fully.
90711 2008-09-29  Bruno Haible  <bruno@clisp.org>
90713         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
90714         * lib/sys_select.in.h: Likewise.
90716 2008-09-29  Bruno Haible  <bruno@clisp.org>
90718         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
90720 2008-09-29  Bruno Haible  <bruno@clisp.org>
90722         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
90723         Set LIBSOCKET instead of augmenting LIBS.
90724         * modules/sockets (Link): New section.
90725         * modules/sockets-tests (test_sockets_LDADD): New variable.
90726         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
90727         * modules/poll-tests (test_poll_LDADD): New variable.
90728         * NEWS: Document the change.
90730 2008-09-29  Bruno Haible  <bruno@clisp.org>
90732         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
90733         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
90734         ARPA_INET_H directly.
90735         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90737 2008-09-28  Bruno Haible  <bruno@clisp.org>
90739         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
90740         from gl_HEADER_SYS_SOCKET.
90741         (gl_HEADER_SYS_SOCKET): Invoke it.
90742         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
90744 2008-09-28  Bruno Haible  <bruno@clisp.org>
90746         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
90747         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
90748         Needed on OSF/1 4.0.
90750 2008-09-28  Bruno Haible  <bruno@clisp.org>
90752         Override open more carefully.
90753         * lib/open.c (orig_open): New function.
90754         (rpl_open): Use orig_open instead of open.
90755         * lib/fcntl.in.h: Add special invocation convention.
90756         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
90757         (gl_FUNC_OPEN): Invoke it.
90759         Override freopen more carefully.
90760         * lib/freopen.c (orig_freopen): New function.
90761         (rpl_freopen): Use orig_freopen instead of freopen.
90762         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
90763         (gl_FUNC_FREOPEN): Invoke it.
90765         Override fopen more carefully.
90766         * lib/fopen.c (orig_fopen): New function.
90767         (rpl_fopen): Use orig_fopen instead of fopen.
90768         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
90769         (gl_FUNC_FOPEN): Invoke it.
90770         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
90772 2008-09-28  Bruno Haible  <bruno@clisp.org>
90774         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
90775         SIGPIPE.
90777 2008-09-28  Bruno Haible  <bruno@clisp.org>
90779         * tests/test-sigaction.c (handler, main): Disable the check whether
90780         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
90781         glibc systems with LinuxThreads.
90783 2008-09-28  Bruno Haible  <bruno@clisp.org>
90785         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
90787         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
90788         with AIX xlc.
90789         * lib/fcntl.in.h (open): Likewise.
90790         Reported by Rainer Tammer <tammer@tammer.net>.
90792 2008-09-28  Bruno Haible  <bruno@clisp.org>
90794         * modules/posix_spawnp-tests: New file.
90795         * tests/test-posix_spawn.c: New file.
90796         * tests/test-posix_spawn.in.sh: New file.
90798         New module 'posix_spawnp'.
90799         * modules/posix_spawnp: New file.
90800         * lib/spawnp.c: New file, from GNU libc with modifications.
90801         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
90803         New module 'posix_spawn'.
90804         * modules/posix_spawn: New file.
90805         * lib/spawn.c: New file, from GNU libc with modifications.
90806         * doc/posix-functions/posix_spawn.texi: Mention the new module.
90808         New module 'posix_spawnattr_destroy'.
90809         * modules/posix_spawnattr_destroy: New file.
90810         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
90811         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
90812         module.
90814         New module 'posix_spawnattr_setsigmask'.
90815         * modules/posix_spawnattr_setsigmask: New file.
90816         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
90817         modifications.
90818         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
90819         new module.
90821         New module 'posix_spawnattr_getsigmask'.
90822         * modules/posix_spawnattr_getsigmask: New file.
90823         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
90824         modifications.
90825         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
90826         new module.
90828         New module 'posix_spawnattr_setsigdefault'.
90829         * modules/posix_spawnattr_setsigdefault: New file.
90830         * lib/spawnattr_setdefault.c: New file, from GNU libc with
90831         modifications.
90832         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
90833         new module.
90835         New module 'posix_spawnattr_getsigdefault'.
90836         * modules/posix_spawnattr_getsigdefault: New file.
90837         * lib/spawnattr_getdefault.c: New file, from GNU libc with
90838         modifications.
90839         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
90840         new module.
90842         New module 'posix_spawnattr_setschedpolicy'.
90843         * modules/posix_spawnattr_setschedpolicy: New file.
90844         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
90845         modifications.
90846         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
90847         new module.
90849         New module 'posix_spawnattr_getschedpolicy'.
90850         * modules/posix_spawnattr_getschedpolicy: New file.
90851         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
90852         modifications.
90853         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
90854         new module.
90856         New module 'posix_spawnattr_setschedparam'.
90857         * modules/posix_spawnattr_setschedparam: New file.
90858         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
90859         modifications.
90860         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
90861         new module.
90863         New module 'posix_spawnattr_getschedparam'.
90864         * modules/posix_spawnattr_getschedparam: New file.
90865         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
90866         modifications.
90867         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
90868         new module.
90870         New module 'posix_spawnattr_setpgroup'.
90871         * modules/posix_spawnattr_setpgroup: New file.
90872         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
90873         modifications.
90874         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
90875         module.
90877         New module 'posix_spawnattr_getpgroup'.
90878         * modules/posix_spawnattr_getpgroup: New file.
90879         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
90880         modifications.
90881         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
90882         module.
90884         New module 'posix_spawnattr_setflags'.
90885         * modules/posix_spawnattr_setflags: New file.
90886         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
90887         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
90888         module.
90890         New module 'posix_spawnattr_getflags'.
90891         * modules/posix_spawnattr_getflags: New file.
90892         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
90893         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
90894         module.
90896         New module 'posix_spawnattr_init'.
90897         * modules/posix_spawnattr_init: New file.
90898         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
90899         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
90900         module.
90902         New module 'posix_spawn_file_actions_destroy'.
90903         * modules/posix_spawn_file_actions_destroy: New file.
90904         * lib/spawn_faction_destroy.c: New file, from GNU libc with
90905         modifications.
90906         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
90907         the new module.
90909         New module 'posix_spawn_file_actions_addopen'.
90910         * modules/posix_spawn_file_actions_addopen: New file.
90911         * lib/spawn_faction_addopen.c: New file, from GNU libc with
90912         modifications.
90913         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
90914         the new module.
90916         New module 'posix_spawn_file_actions_adddup2'.
90917         * modules/posix_spawn_file_actions_adddup2: New file.
90918         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
90919         modifications.
90920         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
90921         the new module.
90923         New module 'posix_spawn_file_actions_addclose'.
90924         * modules/posix_spawn_file_actions_addclose: New file.
90925         * lib/spawn_faction_addclose.c: New file, from GNU libc with
90926         modifications.
90927         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
90928         the new module.
90930         New module 'posix_spawn_file_actions_init'.
90931         * modules/posix_spawn_file_actions_init: New file.
90932         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
90933         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
90934         new module.
90936         New module 'posix_spawn-internal'.
90937         * modules/posix_spawn-internal: New file.
90938         * lib/spawn_int.h: New file, from GNU libc with modifications.
90939         * lib/spawni.c: New file, from GNU libc with modifications.
90940         * m4/posix_spawn.m4: New file.
90942         New module 'spawn'.
90943         * modules/spawn: New file.
90944         * lib/spawn.in.h: New file, from GNU libc with modifications.
90945         * m4/spawn_h.m4: New file.
90946         * doc/posix-headers/spawn.texi: Mention the new module.
90948 2008-09-28  Bruno Haible  <bruno@clisp.org>
90950         * modules/sched-tests: New file.
90951         * tests/test-sched.c: New file.
90953         New module 'sched'.
90954         * modules/sched: New file.
90955         * lib/sched.in.h: New file.
90956         * m4/sched_h.m4: New file.
90957         * doc/posix-headers/sched.texi: Mention the new module.
90959 2008-09-27  Eric Blake  <ebb9@byu.net>
90961         Fix previous patch, and tweak references to $0.
90962         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
90963         (func_version, func_gnulib_dir): Don't call this program
90964         gnulib-tool.
90965         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
90966         with using $0 in function.
90967         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
90968         (func_fatal_error): Reuse the name the user invoked us with.
90970 2008-09-27  Bruno Haible  <bruno@clisp.org>
90972         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
90973         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
90974         (gl_ICONV_H): Not here.
90975         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
90976         instead of assigning ICONV_H directly.
90978         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
90979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
90980         WCHAR_H directly.
90982 2008-09-27  Bruno Haible  <bruno@clisp.org>
90984         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
90985         * modules/arpa_inet (Depends-on): Add link-warning.
90986         (Makefile.am): Insert the definition of GL_LINK-WARNING.
90987         * modules/unistd (Makefile.am): Likewise.
90989 2008-09-26  Bruno Haible  <bruno@clisp.org>
90991         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
90992         variables.
90993         (func_version): Essentially copied from gnulib-tool.
90994         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
90995         func_readlink): Copied from gnulib-tool.
90997 2008-09-26  Bruno Haible  <bruno@clisp.org>
90999         * gnulib-tool (func_version): Change directory to $gnulib_dir before
91000         invoking git-version-gen.
91002 2008-09-26  Bruno Haible  <bruno@clisp.org>
91004         * posix-modules: Update to directory names changed on 2008-01-19.
91005         Remove commas in output before splitting into words. No more need to
91006         avoid 'ftruncate' since 2007-02-19.
91008 2008-09-26  Bruno Haible  <bruno@clisp.org>
91010         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
91012 2008-09-26  Bruno Haible  <bruno@clisp.org>
91014         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
91015         * modules/fwriteerror (Depends-on): Add errno.
91017 2008-09-26  Bruno Haible  <bruno@clisp.org>
91019         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
91020         * tests/test-vc-list-files-cvs.sh: Likewise.
91022 2008-09-26  Bruno Haible  <bruno@clisp.org>
91024         * doc/posix-headers/sys_resource.texi: Reorder items.
91026 2008-09-26  Jim Meyering  <meyering@redhat.com>
91028         fts: tweak inode comparison function
91029         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
91030         inode numbers, as documented.
91032         fts: sort dirent entries on inode number before traversing
91033         This avoids a quadratic, seek-related performance penalty when
91034         operating on a directory containing many entries (measurable at 10k;
91035         3.5 hours at 2 million entries with a cold cache) on certain types
91036         of file systems, including ext3 and ext4, but not tmpfs.
91037         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
91038         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
91039         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
91040         (fs_handles_readdir_ordered_dirents_efficiently): New function.
91041         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
91042         (fts_build): Set the stat.st_ino member from D_INO.
91043         If it is likely to be useful, sort dirent entries on inode number.
91045         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
91046         and the struct statfs.f_type member.
91047         * modules/fts (Depends-on): Add d-ino.
91049 2008-09-26  Bruno Haible  <bruno@clisp.org>
91051         * modules/sigpipe-die (Depends-on): Add sigpipe.
91053         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
91054         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
91055         and GNULIB_STDIO_H_SIGPIPE are set.
91056         * lib/stdio-write.c: New file.
91057         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
91058         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91059         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91060         REPLACE_STDIO_WRITE_FUNCS.
91061         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
91062         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91063         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91064         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91065         * modules/stdio (Files): Add lib/stdio-write.c.
91066         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
91067         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91068         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91069         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91070         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
91071         REPLACE_FPRINTF_POSIX.
91072         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
91073         REPLACE_PRINTF_POSIX.
91074         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
91075         REPLACE_VFPRINTF_POSIX.
91076         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
91077         REPLACE_VPRINTF_POSIX.
91078         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
91079         SIGPIPE issue.
91080         * doc/posix-functions/fputc.texi: Likewise.
91081         * doc/posix-functions/fputs.texi: Likewise.
91082         * doc/posix-functions/fwrite.texi: Likewise.
91083         * doc/posix-functions/printf.texi: Likewise.
91084         * doc/posix-functions/putc.texi: Likewise.
91085         * doc/posix-functions/putchar.texi: Likewise.
91086         * doc/posix-functions/puts.texi: Likewise.
91087         * doc/posix-functions/vfprintf.texi: Likewise.
91088         * doc/posix-functions/vprintf.texi: Likewise.
91090         * modules/safe-write (Depends-on): Add write.
91092         * modules/sigpipe-tests: New file.
91093         * tests/test-sigpipe.c: New file.
91094         * tests/test-sigpipe.sh: New file.
91096         * modules/write: New file.
91097         * lib/unistd.in.h: Include <sys/types.h>.
91098         (write): New declaration.
91099         * lib/write.c: New file.
91100         * m4/write.m4: New file.
91101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91102         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
91103         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
91104         GNULIB_WRITE, REPLACE_WRITE.
91105         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
91106         and the SIGPIPE issue.
91108         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
91109         (raise): New declaration.
91110         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
91111         (ext_signal): New function.
91112         (rpl_raise): New function.
91113         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
91114         GNULIB_SIGNAL_H_SIGPIPE.
91115         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
91116         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
91118         * modules/sigpipe: New file.
91119         * m4/sigpipe.m4: New file.
91121 2008-09-25  Derek Price  <derek@ximbiot.com>
91122             Bruno Haible  <bruno@clisp.org>
91124         * gnulib-tool (func_import): Report all license incompatibilities, not
91125         just the first one.
91127 2008-09-25  Bruno Haible  <bruno@clisp.org>
91129         * gnulib-tool (func_import): When computing the edits, consider not
91130         only the Makefile.ams that exist but also those that will be generated.
91132 2008-09-25  Simon Josefsson  <simon@josefsson.org>
91134         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
91135         fixes gnulib-tool --test warning about duplicate dependency.
91137 2008-09-25  Bruno Haible  <bruno@clisp.org>
91139         * gnulib-tool: Don't ask the user to perform edits in the generated
91140         Makefile.ams.
91141         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
91142         apply to the Makefile.am being generated.
91143         (func_emit_tests_Makefile_am): Execute edits that apply to the
91144         Makefile.am being generated.
91145         (func_import): Setup list of Makefile.am edits before emitting the
91146         Makefile.ams, not at the end.
91147         (func_create_testdir): Update.
91148         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91150 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91152         * gnulib-tool (func_import): Store the --tests-base option in the
91153         comment in gnulib-cache.m4.
91155 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
91157         * NEWS: Document increased portability that sys_select now provides.
91159         * lib/sys_select.in.h: Install select wrapper.
91160         * lib/sys_socket.in.h: Use more descriptive name when there is no
91161         select wrapper.
91162         * lib/winsock-select.c: New.
91163         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
91164         Require gl_HEADER_SYS_SOCKET.
91165         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
91166         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
91167         * tests/test-sys_select.c: Add functional tests.
91169 2008-09-24  Eric Blake  <ebb9@byu.net>
91171         open, fopen: close fd leak in last patch
91172         * lib/open.c (rpl_open): Close fd before returning error.
91173         * lib/fopen.c (rpl_fopen): Close fd before returning error.
91174         * doc/posix-functions/open.texi (open): Document that Irix also
91175         has the bug.
91176         * doc/posix-functions/fopen.texi (fopen): Likewise.
91177         Reported by Paolo Bonzini.
91179 2008-09-24  Bruno Haible  <bruno@clisp.org>
91181         Ensure that a filename ending in a slash cannot be used to access a
91182         non-directory.
91183         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
91184         to check whether it's really a directory.
91185         * lib/fopen.c: Include fcntl.h, unistd.h.
91186         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
91187         and fdopen().
91188         * modules/fopen (Depends-on): Add unistd.
91189         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
91190         * tests/test-fopen.c (main): Likewise.
91191         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
91192         * doc/posix-functions/fopen.texi: Likewise.
91193         Reported by Eric Blake.
91195 2008-09-23  Eric Blake  <ebb9@byu.net>
91197         c-stack: avoid compiler optimizations when provoking overflow
91198         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
91199         recursion harder to optimize, to ensure a stack overflow occurs.
91200         * tests/test-c-stack.c (recurse): Likewise.
91201         Borrowed from libsigsegv.
91203         c-stack: work around Irix sigaltstack bug
91204         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
91205         whether sigaltstack uses wrong end of stack_t (copied in part from
91206         libsigsegv).
91207         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
91208         Irix bug, without requiring an over-allocation.
91209         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
91210         bug.
91212         fopen: document mingw bug on directories
91213         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
91214         not allowing a stream visiting a directory, even though reading
91215         from such a stream is not portable.
91217 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91219         * lib/poll.c: Rewrite.
91220         * modules/poll: Depend on alloca.
91222 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91224         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
91225         instead define prototypes for a full set of wrappers.  Ensure
91226         that Cygwin does not use the compatibility code, which is only
91227         for MinGW.
91228         * lib/winsock.c: New.
91229         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
91230         * modules/sys_socket: Add lib/winsock.c.
91232         * modules/poll-tests: Add errno and perror.
91233         * tests/test-poll.c: Use ioctl, not ioctlsocket.
91235 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91237         * tests/test-poll.c: Downgrade minimum needed Winsock version.
91239 2008-09-23  Bruno Haible  <bruno@clisp.org>
91241         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
91242         * doc/glibc-functions/*: Likewise.
91244 2008-09-23  Simon Josefsson  <simon@josefsson.org>
91246         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
91247         success.
91249 2008-09-22  Eric Blake  <ebb9@byu.net>
91250             Bruno Haible  <bruno@clisp.org>
91252         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
91253         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
91254         supply %A but mishandle pseudo-NaN.
91255         Reported by Simon Josefsson.
91257 2008-09-21  Bruno Haible  <bruno@clisp.org>
91259         * tests/test-lock.c (main): Tweak skip message.
91260         * tests/test-tls.c (main): Likewise.
91262 2008-09-21  Bruno Haible  <bruno@clisp.org>
91264         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
91265         whether 'struct sigaction' has sa_sigaction here...
91266         (gl_PREREQ_SIG_HANDLER_H): ... not here.
91267         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
91269 2008-09-21  Bruno Haible  <bruno@clisp.org>
91271         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
91272         section.
91273         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
91274         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
91275         the new section.
91276         (Support for obsolete systems lacking POSIX:2001): New section.
91277         (String handling <string.h>): Move strdup to the new section.
91278         Suggested by Simon Josefsson and Paolo Bonzini.
91280 2008-09-21  Bruno Haible  <bruno@clisp.org>
91282         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
91283         exponents in %e and %g results on 'long double'. Needed for mingw's
91284         improved *printf functions.
91285         * tests/test-vasprintf-posix.c (test_function): Likewise.
91286         * tests/test-snprintf-posix.h (test_function): Likewise.
91287         * tests/test-sprintf-posix.h (test_function): Likewise.
91288         Reported by Eric Blake.
91290 2008-09-21  Bruno Haible  <bruno@clisp.org>
91292         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
91293         * tests/test-sprintf-posix.h (test_function): Likewise.
91295 2008-09-21  Bruno Haible  <bruno@clisp.org>
91297         * modules/getpass (Depends-on): Add strdup-posix.
91299         New module 'strdup-posix'.
91300         * modules/strdup-posix: New file.
91301         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
91302         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
91303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91304         REPLACE_STRDUP.
91305         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
91306         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
91307         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91308         strdup-posix.
91310         * modules/strdup (Depends-on): Remove malloc-posix.
91312 2008-09-20  Bruno Haible  <bruno@clisp.org>
91314         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
91315         Wildenhues.
91317 2008-09-20  Bruno Haible  <bruno@clisp.org>
91319         Ensure that wint_t gets defined on IRIX 5.3.
91320         * lib/wchar.in.h (wint_t): Define if not defined by the system.
91321         * lib/wctype.in.h (wint_t): Likewise.
91322         (__wctype_wint_t): Remove type.
91323         (isw*): Use wint_t instead of __wctype_wint_t.
91324         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
91325         * modules/wchar (Files): Add m4/wint_t.m4.
91326         (Makefile.am): Substitute HAVE_WINT_T.
91327         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
91328         * tests/test-wctype.c: Check that wint_t is defined.
91329         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
91330         * doc/posix-headers/wctype.texi: Likewise.
91331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
91333 2008-09-18  Bruno Haible  <bruno@clisp.org>
91335         * gnulib-tool (func_exit): Update comment.
91337 2008-09-18  Simon Josefsson  <simon@josefsson.org>
91339         * modules/getaddrinfo (Depends-on): Remove strdup, this module
91340         assumes strdup exists and does not depend on strdup to return
91341         ENOMEM on out of memory conditions.
91343 2008-09-18  Bruno Haible  <bruno@clisp.org>
91345         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
91346         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
91347         digits for the exponent.
91349 2008-09-18  Jim Meyering  <meyering@redhat.com>
91350             Bruno Haible  <bruno@clisp.org>
91352         * lib/vasnprintf.c (decimal_point_char): Define also if
91353         NEED_PRINTF_INFINITE_LONG_DOUBLE.
91355 2008-09-16  Bruno Haible  <bruno@clisp.org>
91356         and Eric Blake  <ebb9@byu.net>
91358         vasnprintf: support Irix 5.3
91359         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
91360         that mishandle long double infinity.
91361         Reported by Tom G. Christensen.
91363 2008-09-16  Bruno Haible  <bruno@clisp.org>
91365         * doc/glibc-functions/scandir.texi: Mention the function is missing on
91366         Solaris 9.
91367         * doc/glibc-functions/alphasort.texi: Likewise.
91368         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
91370 2008-09-16  Jim Meyering  <meyering@redhat.com>
91372         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
91373         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
91374         a umask modification leak out of a subshell.  Otherwise, the
91375         opensolaris /bin/sh would be accepted and thus cause unwarranted
91376         failures in the coreutils test suite.
91378 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
91380         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
91381         to succeed.
91383 2008-09-16  Jim Meyering  <meyering@redhat.com>
91385         avoid spurious test failure when library is built without ACL support
91386         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
91387         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
91388         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
91389         * tests/test-copy-acl.sh: Likewise.
91391 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91393         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
91394         based on character occurrence counts.
91396 2008-09-15  Eric Blake  <ebb9@byu.net>
91398         tests: avoid some compiler warnings
91399         * tests/test-memchr.c (main): Pass NULL indirectly.
91400         * tests/test-closein.c (main): Avoid unused variable.
91402 2008-09-15  Bruno Haible  <bruno@clisp.org>
91404         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
91405         are missing on OpenBSD 4.0 individually.
91406         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91408 2008-09-15  Bruno Haible  <bruno@clisp.org>
91410         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
91411         * doc/posix-functions/strerror.texi: Mention also Cygwin.
91412         * doc/posix-functions/perror.texi: Likewise.
91413         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
91414         is missing.
91415         Reported by Eric Blake.
91417         * lib/errno.in.h: Use replacement values >= 2000.
91418         Reported by Eric Blake.
91420 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91422         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
91423         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
91424         limit.
91425         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
91426         compareseq was aborted.
91428 2008-09-14  Bruno Haible  <bruno@clisp.org>
91430         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
91431         yvec_edit_count.
91432         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
91433         (fstrcmp_bounded): Simplify result computation accordingly.
91435 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91437         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
91438         (fstrcmp): Define in terms of fstrcmp_bounded.
91439         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
91440         lower_bound argument.
91441         Return quickly if the result is certainly < lower_bound.
91442         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
91444 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91446         * lib/diffseq.h (EARLY_ABORT): New macro.
91447         (compareseq): Change return type to bool. Return true when EARLY_ABORT
91448         evaluates to true.
91450 2008-09-14  Bruno Haible  <bruno@clisp.org>
91452         * modules/perror-tests: New file.
91453         * tests/test-perror.sh: New file.
91454         * tests/test-perror.c: New file.
91456         New module 'perror'.
91457         * lib/stdio.in.h (perror): New declaration.
91458         * lib/perror.c: New file.
91459         * m4/perror.m4: New file.
91460         * modules/perror: New file.
91461         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
91462         * doc/posix-functions/perror.texi: Mention the perror module.
91463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
91464         REPLACE_PERROR.
91465         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
91466         REPLACE_PERROR.
91468 2008-09-14  Bruno Haible  <bruno@clisp.org>
91470         * modules/stdio (Makefile.am): Reorder to match the order in
91471         lib/stdio.in.h.
91472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
91474 2008-09-13  Bruno Haible  <bruno@clisp.org>
91476         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
91478 2008-09-13  Bruno Haible  <bruno@clisp.org>
91480         Extend strerror to cover the added errno values.
91481         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
91482         (rpl_strerror): Provide error messages for the added errno values and
91483         for the WSA* values.
91484         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
91485         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
91486         strerror.
91487         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
91488         * modules/strerror (Depends-on): Add errno.
91489         * doc/posix-functions/strerror.texi: Document the change.
91490         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
91491         and EOVERFLOW.
91493 2008-09-13  Bruno Haible  <bruno@clisp.org>
91495         * modules/EOVERFLOW: Remove file.
91496         * m4/eoverflow.m4: Remove file.
91497         * modules/EOVERFLOW-tests: Remove file.
91498         * tests/test-EOVERFLOW.c: Remove file.
91499         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
91500         * modules/ftell (Depends-on): Likewise.
91501         * modules/getdelim (Depends-on): Likewise.
91502         * modules/getugroups (Depends-on): Likewise.
91503         * modules/poll (Depends-on): Likewise.
91504         * modules/snprintf (Depends-on): Likewise.
91505         * modules/sprintf-posix (Depends-on): Likewise.
91506         * modules/vasnprintf (Depends-on): Likewise.
91507         * modules/vasprintf (Depends-on): Likewise.
91508         * modules/vfprintf-posix (Depends-on): Likewise.
91509         * modules/vsnprintf (Depends-on): Likewise.
91510         * modules/vsprintf-posix (Depends-on): Likewise.
91511         * modules/xvasprintf (Depends-on): Likewise.
91512         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91513         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
91514         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
91515         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
91516         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91517         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
91518         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
91519         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
91520         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91521         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
91522         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
91523         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
91524         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91525         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
91526         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
91527         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
91528         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91529         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
91530         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
91531         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
91532         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91533         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
91534         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
91535         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
91536         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
91537         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91538         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
91539         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
91540         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
91541         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
91542         * MODULES.html.sh: Remove EOVERFLOW.
91543         * NEWS: Mention the change.
91545 2008-09-13  Bruno Haible  <bruno@clisp.org>
91547         * modules/errno-tests: New file.
91548         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
91550         * lib/errno.in.h: New file.
91551         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
91552         * modules/errno: New file.
91553         * doc/posix-headers/errno.texi: Update documentation.
91554         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
91556 2008-09-13  Bruno Haible  <bruno@clisp.org>
91558         * tests/test-poll.c: Use #if for native Windows, rather than testing
91559         __MSVCRT__.
91561 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91562             Bruno Haible  <bruno@clisp.org>
91564         * lib/glob.c: Don't include <pwd.h> on native Windows.
91565         (WINDOWS32): New macro.
91566         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
91568 2008-09-13  Bruno Haible  <bruno@clisp.org>
91570         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
91571         (ETIMEDOUT): Remove macro.
91572         (glthread_cond_timedwait_multithreaded): New declaration.
91573         (glthread_cond_timedwait): Use it.
91574         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
91575         (glthread_cond_timedwait_multithreaded): New function.
91577 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91579         * modules/poll-tests: Do not check for io.h.
91580         * tests/test-poll.c: Check for __MSVCRT__ instead.
91582 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91584         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
91585         * modules/poll-tests: Add inet_pton, stdbool, sockets.
91586         * tests/test-poll.c: Use them.  Use _pipe on Windows.
91588 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91590         * modules/poll-tests: New.
91591         * tests/test-poll.c: New.
91593 2008-09-12  Eric Blake  <ebb9@byu.net>
91595         frexp: test for NetBSD failure on -0.0
91596         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
91597         not all, bugs from NetBSD 3.0 have been fixed.
91598         * doc/posix-functions/frexp.texi (frexp): Document bug.
91599         Reported by Thomas Klausner.
91601         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
91602         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
91603         literal -0.0.
91604         Reported by Jonathan C. Patschke <jp@centtech.com>.
91606 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91608         * lib/glthread/cond.h: Use dummy implementation also if
91609         USE_WIN32_THREADS.
91611 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91613         * modules/fnmatch-posix (License): Change to LGPLv2+.
91614         * modules/fnmatch-gnu (License): Likewise.
91616 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91618         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
91620 2008-09-11  Jim Meyering  <meyering@redhat.com>
91622         * users.txt: Add gtk-vnc.
91624 2008-09-08  Simon Josefsson  <simon@josefsson.org>
91626         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
91627         rotate amounts.
91629         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
91630         required for 16-bit and 8-bit rotates.
91631         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
91632         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
91633         UINT8_MAX instead of hard-coded constants.
91634         Suggested by Paul Eggert.
91636 2008-09-07  Bruno Haible  <bruno@clisp.org>
91638         * tests/test-striconveh.c (main): Check behaviour when converting from
91639         UTF-7.
91641         Make striconveh work better with stateful encodings.
91642         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
91643         that iconv does not increment the inptr when returning -1/EINVAL.
91645 2008-09-07  Bruno Haible  <bruno@clisp.org>
91647         * build-aux/config.rpath: Update according to libtool-2.2.6.
91648         * build-aux/config.libpath: Likewise.
91650 2008-09-06  Bruno Haible  <bruno@clisp.org>
91652         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
91653         * lib/freadptr.c (freadptr): Likewise.
91654         * lib/freadseek.c (freadptrinc): Likewise.
91655         Reported by Simon Josefsson.
91657 2008-09-06  Bruno Haible  <bruno@clisp.org>
91659         * modules/freadptr (License): Change to LGPLv2+.
91660         * modules/freadseek (License): Likewise.
91661         Suggested by Eric Blake.
91663         * modules/memchr2 (License): Change to LGPLv2+.
91664         Approved by Eric Blake.
91666 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91667             Bruno Haible  <bruno@clisp.org>
91669         Make gnulib-tool work with native 'sed' on AIX.
91670         * gnulib-tool (sed_noop): New variable.
91671         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
91672         func_add_or_update, func_create_testdir): Use it to initialize sed
91673         script variables.
91674         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91676 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
91677             Bruno Haible  <bruno@clisp.org>
91679         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
91680         also works after #include directives.
91682 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
91684         getdate.y: reject an out-of-range timezone value
91685         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
91686         the range [-24...+24].  When specified with only one or two digits,
91687         * tests/test-getdate.c: Tests for the fix.
91688         * doc/getdate.texi: Document this change.
91690 2008-09-03  Bruno Haible  <bruno@clisp.org>
91692         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
91694 2008-09-02  Simon Josefsson  <simon@josefsson.org>
91696         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
91697         <bruce.korb@gmail.com> with ideas from Ben Pfaff
91698         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
91699         Blake <ebb9@byu.net>.
91701         * tests/test-bitrotate.c: Add more test vectors.
91703 2008-09-02  Eric Blake  <ebb9@byu.net>
91705         vasnprintf-posix: handle large precision via %.*d
91706         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
91707         when handling it ourselves.
91708         * tests/test-vasnprintf-posix.c (test_function): Add test.
91709         * tests/test-snprintf-posix.h (test_function): Likewise.
91710         * tests/test-sprintf-posix.h (test_function): Likewise.
91711         * tests/test-vasprintf-posix.c (test_function): Likewise.
91712         Reported by Alain Guibert.
91714 2008-09-01  Eric Blake  <ebb9@byu.net>
91716         c-stack: make configure-time check more robust
91717         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
91718         successful sigaction call.
91719         Reported by Tom G. Christensen.
91721 2008-09-01  Bruno Haible  <bruno@clisp.org>
91723         New module 'findprog-lgpl'.
91724         * modules/findprog-lgpl: New file.
91725         * lib/findprog-lgpl.c: New file.
91726         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
91727         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
91728         to decide whether to use strdup or xstrdup, concatenated_filename or
91729         xconcatenated_filename.
91731 2008-09-01  Bruno Haible  <bruno@clisp.org>
91733         Split module 'concat-filename' into 'concat-filename' (LGPL) and
91734         'xconcat-filename' (GPL).
91735         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
91736         (License): Change to LGPLv2+.
91737         * modules/xconcat-filename: New file.
91738         * lib/concat-filename.h (concatenated_filename): Change specification.
91739         (xconcatenated_filename): New declaration.
91740         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
91741         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
91742         memory situations.
91743         * lib/xconcat-filename.c: New file.
91744         * NEWS: Mention the change.
91745         * lib/findprog.c: Include concat-filename.h, not filename.h.
91746         (find_in_path): Use xconcatenated_filename instead of
91747         concatenated_filename.
91748         * lib/javacomp.c: Include concat-filename.h, not filename.h.
91749         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91750         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91751         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91752         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
91753         instead of concatenated_filename.
91754         * lib/javaexec.c: Include concat-filename.h, not filename.h.
91755         (execute_java_class): Use xconcatenated_filename instead of
91756         concatenated_filename.
91757         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
91758         * modules/javacomp (Depends-on): Likewise.
91759         * modules/javaexec (Depends-on): Likewise.
91761 2008-09-01  Bruno Haible  <bruno@clisp.org>
91763         Split module 'filename' into 'filename' and 'concat-filename'.
91764         * modules/filename: Keep only lib/filename.h.
91765         (License): Change to LGPLv2+.
91766         * modules/concat-filename: New file, extracted from modules/filename.
91767         * lib/filename.h (concatenated_filename): Remove declaration.
91768         * lib/concat-filename.h: New file, extracted from lib/filename.h.
91769         * lib/concat-filename.c: Include concat-filename.h.
91770         * NEWS: Mention the change.
91772 2008-09-01  Simon Josefsson  <simon@josefsson.org>
91774         * lib/bitrotate.h (rotl8, rotr8): Add.
91776         * modules/bitrotate (configure.ac): Need
91777         AC_REQUIRE([AC_C_INLINE]).
91778         (Description): Mention stdint.h.  Reported by Bruno Haible
91779         <bruno@clisp.org>.
91781         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
91782         Paolo Bonzini <bonzini@gnu.org>.
91784 2008-08-31  Bruno Haible  <bruno@clisp.org>
91786         Assume Solaris specific bi-arch conventions on Solaris systems.
91787         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
91788         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
91789         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
91790         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
91791         like acl_libdirstem.
91792         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
91793         acl_libdirstem.
91794         * NEWS: Mention the change.
91795         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
91797 2008-08-31  Jim Meyering  <meyering@redhat.com>
91799         * lib/strftime.h: Add comments describing the two added arguments.
91801         remove duplicate #include directives
91802         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
91803         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
91805 2008-08-31  Bruno Haible  <bruno@clisp.org>
91807         New module 'sigpipe-die'.
91808         * modules/sigpipe-die: New file.
91809         * lib/sigpipe-die.h: New file.
91810         * lib/sigpipe-die.c: New file.
91811         * MODULES.html.sh (Signal handling): Add sigpipe-die.
91813 2008-08-31  Bruno Haible  <bruno@clisp.org>
91815         Don't override previously installed signal handlers.
91816         * lib/fatal-signal.c (saved_sigactions): New variable.
91817         (uninstall_handlers): Reset the signal to the saved handler, not
91818         to SIG_DFL (except when ignored).
91819         (install_handlers): Save the previous handlers.
91821 2008-08-30  Bruno Haible  <bruno@clisp.org>
91823         * gnulib-tool (func_reset_sigpipe): New function.
91824         (func_get_automake_snippet, func_modules_transitive_closure,
91825         func_import): Invoke it before a join command that reads from stdin,
91826         to avoid "echo: write error: Broken pipe" error messages on stderr.
91827         Reported by Sam Steingold <sds@gnu.org>.
91829 2008-08-30  Bruno Haible  <bruno@clisp.org>
91831         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
91832         Code copied from m4/open.m4.
91833         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
91834         access and the filename ends in a slash. Code copied from lib/open.c.
91835         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
91836         * tests/test-fopen.c (main): Check against bug with trailing slash.
91838 2008-08-29  Bruno Haible  <bruno@clisp.org>
91840         Avoid some "gcc -pedantic" warnings.
91841         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
91842         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
91843         * lib/dirent.in.h: Likewise.
91844         * lib/fcntl.in.h: Likewise.
91845         * lib/float.in.h: Likewise.
91846         * lib/iconv.in.h: Likewise.
91847         * lib/inttypes.in.h: Likewise.
91848         * lib/locale.in.h: Likewise.
91849         * lib/math.in.h: Likewise.
91850         * lib/netinet_in.in.h: Likewise.
91851         * lib/search.in.h: Likewise.
91852         * lib/signal.in.h: Likewise.
91853         * lib/stdarg.in.h: Likewise.
91854         * lib/stdint.in.h: Likewise.
91855         * lib/stdio.in.h: Likewise.
91856         * lib/stdlib.in.h: Likewise.
91857         * lib/string.in.h: Likewise.
91858         * lib/strings.in.h: Likewise.
91859         * lib/sys_select.in.h: Likewise.
91860         * lib/sys_socket.in.h: Likewise.
91861         * lib/sys_stat.in.h: Likewise.
91862         * lib/sys_time.in.h: Likewise.
91863         * lib/sysexits.in.h: Likewise.
91864         * lib/time.in.h: Likewise.
91865         * lib/unistd.in.h: Likewise.
91866         * lib/wchar.in.h: Likewise.
91867         * lib/wctype.in.h: Likewise.
91868         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
91869         * modules/fchdir (Makefile.am): Likewise.
91870         * modules/fcntl (Makefile.am): Likewise.
91871         * modules/float (Makefile.am): Likewise.
91872         * modules/iconv_open (Makefile.am): Likewise.
91873         * modules/inttypes (Makefile.am): Likewise.
91874         * modules/locale (Makefile.am): Likewise.
91875         * modules/math (Makefile.am): Likewise.
91876         * modules/netinet_in (Makefile.am): Likewise.
91877         * modules/search (Makefile.am): Likewise.
91878         * modules/signal (Makefile.am): Likewise.
91879         * modules/stdarg (Makefile.am): Likewise.
91880         * modules/stdint (Makefile.am): Likewise.
91881         * modules/stdio (Makefile.am): Likewise.
91882         * modules/stdlib (Makefile.am): Likewise.
91883         * modules/string (Makefile.am): Likewise.
91884         * modules/strings (Makefile.am): Likewise.
91885         * modules/sys_select (Makefile.am): Likewise.
91886         * modules/sys_socket (Makefile.am): Likewise.
91887         * modules/sys_stat (Makefile.am): Likewise.
91888         * modules/sys_time (Makefile.am): Likewise.
91889         * modules/sysexits (Makefile.am): Likewise.
91890         * modules/time (Makefile.am): Likewise.
91891         * modules/unistd (Makefile.am): Likewise.
91892         * modules/wchar (Makefile.am): Likewise.
91893         * modules/wctype (Makefile.am): Likewise.
91894         Reported by Reuben Thomas <rrt@sc3d.org>.
91896 2008-08-29  Bruno Haible  <bruno@clisp.org>
91898         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
91899         any more.
91901 2008-08-29  Simon Josefsson  <simon@josefsson.org>
91903         * MODULES.html.sh (Misc): Add bitrotate.
91905         * modules/bitrotate: New file.
91907         * lib/bitrotate.h: New file.
91909         * modules/bitrotate-tests: New file.
91911         * tests/test-bitrotate.c: New file.
91913         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
91914         on the bitrotate module.
91916         * lib/arctwo.c: Use new bitrotate module.
91918 2008-08-29  Jim Meyering  <meyering@redhat.com>
91920         bootstrap: merge changes from coreutils
91921         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
91922         of copied files.  Remove a kludge, now that this is fixed.
91923         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
91924         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
91925         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
91927 2008-08-29  Bruno Haible  <bruno@clisp.org>
91929         * MODULES.html.sh: Remove --cvs-urls option.
91931 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
91933         maint.mk: adjust to file name change
91934         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
91936 2008-08-28  Jim Meyering  <meyering@redhat.com>
91938         * modules/getndelim2 (License): Relicense to LGPLv2+.
91939         Approved by Richard Stallman for the version of 1995, and by
91940         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
91942 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
91944         * lib/getdelim.c (flockfile, funlockfile): Make all of them
91945         dummy if one is not available.  Do not touch them if
91946         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
91947         (getc_maybe_unlocked): New.
91948         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
91950 2008-08-26  Eric Blake  <ebb9@byu.net>
91952         doc/INSTALL: resync from autoconf
91953         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
91954         (INSTALL_PRELUDE): Delete; this is done more efficiently by
91955         moving...
91956         * install.texi [!autoconf]: ...here.  Resync from autoconf.
91957         * INSTALL: Regenerate.
91958         * INSTALL.ISO: New file.
91959         * INSTALL.UTF-8: Likewise.
91961 2008-08-26  Jim Meyering  <meyering@redhat.com>
91963         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
91964         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
91965         these definitions conditional, so that they may be overridden, too.
91967 2008-08-26  Bruno Haible  <bruno@clisp.org>
91969         Generate INSTALL file variants with prettier quotes.
91970         * doc/Makefile (INSTALL_PRELUDE): New macro.
91971         (INSTALL): Use it.
91972         (INSTALL.ISO, INSTALL.UTF-8): New rules.
91974 2008-08-26  Bruno Haible  <bruno@clisp.org>
91976         Run makeinfo in an English locale.
91977         * doc/Makefile (MAKEINFO): New variable.
91979 2008-08-26  Bruno Haible  <bruno@clisp.org>
91981         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
91982         Suggested by Eric Blake.
91984 2008-08-25  Bruno Haible  <bruno@clisp.org>
91986         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
91988 2008-08-25  Eric Blake  <ebb9@byu.net>
91990         c-stack: test that stack overflow can be caught
91991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
91992         that platform allows handling stack overflow; at least OS/2 EMX
91993         has sigaltstack, but crashes before transferring control to
91994         handler on stack overflow.
91995         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
91996         check for HAVE_STACK_OVERFLOW_HANDLING.
91997         Reported by Elbert Pol.
91999 2008-08-25  Bruno Haible  <bruno@clisp.org>
92001         * doc/posix-functions/strftime.texi: Fix description of strftime
92002         module.
92004 2008-08-24  Bruno Haible  <bruno@clisp.org>
92006         * tests/uniwidth/test-uc_width2.c: New file.
92007         * tests/uniwidth/test-uc_width2.sh: New file.
92008         * modules/uniwidth/width-tests (Files): Add the new files.
92009         (TESTS): Add uniwidth/test-uc_width2.sh.
92010         (TESTS_ENVIRONMENT): New variable.
92011         (check_PROGRAMS): Add test-uc_width2.
92012         (test_uc_width2_SOURCES): New variable.
92014         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
92015         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
92016         not 0x00AB.
92017         Reported by Alexander V. Lukyanov <lav@netis.ru>.
92019 2008-08-22  Eric Blake  <ebb9@byu.net>
92021         test-lock, test-tls: mention why a test is skipped
92022         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
92023         skipped.
92024         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
92026         count-one-bits: relax license
92027         * modules/count-one-bits (License): Relicense to LGPLv2+.
92028         Suggested by Ludovic Courtès, approved by Ben Pfaff.
92030 2008-08-22  Andreas Schwab  <schwab@suse.de>
92032         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
92033         Remove spurious space in assignment.
92035 2008-08-21  Simon Josefsson  <simon@josefsson.org>
92037         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
92038         Paul Eggert <eggert@CS.UCLA.EDU>.
92040 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
92042         * modules/gettext: Add m4/threadlib.m4.
92044 2008-08-19  Eric Blake  <ebb9@byu.net>
92046         test-c-stack: fix compilation failure on FreeBSD 5.0
92047         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
92048         headers before <sys/resource.h>.
92049         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
92050         the bug.
92051         Reported by Nelson H. F. Beebe.
92053         strverscmp: migrate from "strverscmp.h" to <string.h>
92054         * modules/string (Makefile.am): Add new hooks.
92055         * modules/strverscmp (Files): Remove strverscmp.h.
92056         (Depends-on): Add string.
92057         (configure.ac): Add indicator.
92058         (Include): Mention new header.
92059         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
92060         defaults.
92061         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
92062         results.
92063         * lib/strverscmp.h: Delete.
92064         * lib/string.in.h (strverscmp): Provide declaration, when needed.
92065         * tests/test-strverscmp.c (includes): Adjust client.
92066         * lib/check-version.c (includes): Likewise.
92067         * NEWS: Document the change.
92069         strverscmp: add unit test
92070         * modules/strverscmp-tests: New file.
92071         * tests/test-strverscmp.c: Likewise.
92073 2008-08-19  Simon Josefsson  <simon@josefsson.org>
92075         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
92076         regarding Windows crypto stuff, from Mono.
92078 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
92080         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
92081         if present, for intel RND.  Return error on failures.
92083 2008-08-18  Ben Pfaff  <blp@gnu.org>
92085         gitlog-to-changelog: give better diagnostic for failed pipe-open
92086         * build-aux/gitlog-to-changelog: Improve error message: suggest
92087         that the version of Git may be too old.
92089 2008-08-18  Simon Josefsson  <simon@josefsson.org>
92091         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
92092         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
92094 2008-08-18  Bruno Haible  <bruno@clisp.org>
92096         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
92097         pthread_in_use().
92099 2008-08-18  Bruno Haible  <bruno@clisp.org>
92101         * lib/glthread/threadlib.c: Include <pthread.h>.
92103 2008-08-18  Bruno Haible  <bruno@clisp.org>
92105         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
92106         glthread_recursive_lock_* macros.
92107         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
92108         Fix syntax error.
92110 2008-08-18  Bruno Haible  <bruno@clisp.org>
92112         * lib/glthread/thread.c: Avoid forcing a context switch right after
92113         thread creation.
92115 2008-08-17  Bruno Haible  <bruno@clisp.org>
92117         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
92118         * lib/glthread/thread.h: Provide Win32 specific implementation.
92119         * modules/thread (Files): Add lib/glthread/thread.c.
92120         (Depends-on): Add lock.
92121         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
92123 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92125         New module 'yield'.
92126         * modules/yield: New file.
92127         * lib/glthread/yield.h: New file.
92128         * m4/yield.m4: New file.
92129         * MODULES.html.sh (Multithreading): Add yield.
92131 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92133         New module 'thread'.
92134         * modules/thread: New file.
92135         * lib/glthread/thread.h: New file.
92136         * m4/thread.m4: New file.
92137         * MODULES.html.sh (Multithreading): Add thread.
92139 2008-08-17  Bruno Haible  <bruno@clisp.org>
92141         * lib/glthread/lock.h: Include <stdlib.h> always.
92142         * lib/glthread/tls.h: Likewise.
92143         * lib/glthread/cond.h: Likewise.
92145 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92147         New module 'cond'.
92148         * modules/cond: New file.
92149         * lib/glthread/cond.h: New file.
92150         * lib/glthread/cond.c: New file.
92151         * m4/cond.m4: New file.
92152         * MODULES.html.sh (Multithreading): Add cond.
92154 2008-08-16  Eric Blake  <ebb9@byu.net>
92156         c-stack: fix regression on Irix 5.3 from 2008-06-21
92157         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
92158         sa_sigaction...
92159         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
92160         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
92161         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
92162         * modules/signal (Makefile.am): Use the value.
92163         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
92164         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
92165         * doc/posix-headers/signal.texi (signal.h): Document this
92166         portability issue.
92167         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
92168         Reported by Tom G. Christensen.
92170 2008-08-17  Bruno Haible  <bruno@clisp.org>
92172         New module 'threadlib'.
92173         * modules/threadlib: New file.
92174         * lib/glthread/threadlib.c: New file, extracted from
92175         lib/glthread/lock.c.
92176         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
92177         functions.
92178         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
92179         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
92180         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
92181         macros.
92182         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
92183         (gl_DISABLE_THREADS): Remove macro.
92184         * modules/lock (Files): Remove build-aux/config.rpath.
92185         (Depends-on): Remove havelib. Add threadlib.
92186         (configure.ac-early): Remove section.
92187         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
92188         * modules/tls (Depends-on): Remove lock. Add threadlib.
92189         (Link): New section, copied from threadlib.
92190         * MODULES.html.sh (Multithreading): Add threadlib.
92192 2008-08-14  Bruno Haible  <bruno@clisp.org>
92194         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
92195         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
92196         glthread_rwlock_unlock, glthread_rwlock_destroy,
92197         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
92198         glthread_recursive_lock_destroy): Define as macros always.
92199         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
92200         glthread_lock_lock.
92201         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
92202         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
92203         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
92204         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
92205         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
92206         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
92207         (glthread_recursive_lock_lock_func): Renamed from
92208         glthread_recursive_lock_lock.
92209         (glthread_recursive_lock_unlock_func): Renamed from
92210         glthread_recursive_lock_unlock.
92211         (glthread_recursive_lock_destroy_func): Renamed from
92212         glthread_recursive_lock_destroy.
92214 2008-08-14  Bruno Haible  <bruno@clisp.org>
92216         * lib/glthread/lock.h: Renamed from lib/lock.h.
92217         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
92218         * lib/glthread/tls.h: Renamed from lib/tls.h.
92219         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
92220         * lib/fstrcmp.c: Update includes.
92221         * lib/strsignal.c: Update includes.
92222         * modules/lock (Files, Makefile.am): Update.
92223         (Include): Change to "glthread/lock.h".
92224         * modules/tls (Files, Makefile.am): Update.
92225         (Include): Change to "glthread/tls.h".
92226         * tests/test-lock.c: Update includes.
92227         * tests/test-tls.c: Update includes.
92228         * NEWS: Mention the renamed header files.
92230 2008-08-11  Jim Meyering  <meyering@redhat.com>
92232         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
92234 2008-08-11  Eric Blake  <ebb9@byu.net>
92236         test-c-stack: avoid C99-ism
92237         * tests/test-c-stack.c (main): Fix whitespace, move declaration
92238         before statement.
92239         Reported by Alain Guibert.
92241 2008-08-10  Jim Meyering  <meyering@redhat.com>
92243         ensure that return value of uinttostr et al are not ignored
92244         * lib/inttostr.h (__GNUC_PREREQ): Define.
92245         (__attribute_warn_unused_result__): Define.
92246         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
92248 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
92250         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
92251         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
92253 2008-08-07  Jim Meyering  <meyering@redhat.com>
92255         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
92257         * modules/mkstemp (License): Relicense under LGPLv2+.
92258         * modules/tempname (License): Likewise.
92260 2008-08-06  Bruno Haible  <bruno@clisp.org>
92262         * lib/poll.c (poll): Further micro-optimization.
92264 2008-08-06  Jim Meyering  <meyering@redhat.com>
92266         inet_pton.c: use locale-independent tolower
92267         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
92268         (inet_pton6): Use c_tolower rather than tolower.
92269         * modules/inet_pton (Depends-on): Add c-ctype.
92271 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
92273         * lib/poll.c (poll): Avoid division when timeout is 0, cache
92274         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
92276 2008-08-06  Jim Meyering  <meyering@redhat.com>
92278         * modules/inet_pton (License): Relicense under LGPLv2+.
92280 2008-08-03  Bruno Haible  <bruno@clisp.org>
92282         Additional non-aborting API for lock and tls.
92283         * lib/lock.h: Include <errno.h>.
92284         (glthread_lock_init): New macro/function.
92285         (gl_lock_init): Define as wrapper around glthread_lock_init.
92286         (glthread_lock_lock): New macro/function.
92287         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
92288         (glthread_lock_unlock): New macro/function.
92289         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
92290         (glthread_lock_destroy): New macro/function.
92291         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
92292         (glthread_rwlock_init): New macro/function.
92293         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
92294         (glthread_rwlock_rdlock): New macro/function.
92295         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
92296         (glthread_rwlock_wrlock): New macro/function.
92297         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
92298         (glthread_rwlock_unlock): New macro/function.
92299         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
92300         (glthread_rwlock_destroy): New macro/function.
92301         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
92302         (glthread_recursive_lock_init): New macro/function.
92303         (gl_recursive_lock_init): Define as wrapper around
92304         glthread_recursive_lock_init.
92305         (glthread_recursive_lock_lock): New macro/function.
92306         (gl_recursive_lock_lock): Define as wrapper around
92307         glthread_recursive_lock_lock.
92308         (glthread_recursive_lock_unlock): New macro/function.
92309         (gl_recursive_lock_unlock): Define as wrapper around
92310         glthread_recursive_lock_unlock.
92311         (glthread_recursive_lock_destroy): New macro/function.
92312         (gl_recursive_lock_destroy): Define as wrapper around
92313         glthread_recursive_lock_destroy.
92314         (glthread_once): New macro/function.
92315         (gl_once): Define as wrapper around glthread_once.
92316         Update function declarations.
92317         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
92318         glthread_rwlock_init. Return error code.
92319         (glthread_rwlock_rdlock_multithreaded): Renamed from
92320         glthread_rwlock_rdlock. Return error code.
92321         (glthread_rwlock_wrlock_multithreaded): Renamed from
92322         glthread_rwlock_wrlock. Return error code.
92323         (glthread_rwlock_unlock_multithreaded): Renamed from
92324         glthread_rwlock_unlock. Return error code.
92325         (glthread_rwlock_destroy_multithreaded): Renamed from
92326         glthread_rwlock_destroy. Return error code.
92327         (glthread_recursive_lock_init_multithreaded): Renamed from
92328         glthread_recursive_lock_init. Return error code.
92329         (glthread_recursive_lock_lock_multithreaded): Renamed from
92330         glthread_recursive_lock_lock. Return error code.
92331         (glthread_recursive_lock_unlock_multithreaded): Renamed from
92332         glthread_recursive_lock_unlock. Return error code.
92333         (glthread_recursive_lock_destroy_multithreaded): Renamed from
92334         glthread_recursive_lock_destroy. Return error code.
92335         (glthread_once_call): Make static.
92336         (glthread_once_multithreaded): Renamed from glthread_once.
92337         * lib/tls.h: Include <errno.h>.
92338         (glthread_tls_key_init): New macro/function.
92339         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
92340         (glthread_tls_set): New macro/function.
92341         (gl_tls_set): Define as wrapper around glthread_tls_set.
92342         (glthread_tls_key_destroy): New macro/function.
92343         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
92344         Update function declarations.
92345         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
92346         glthread_tls_get.
92347         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
92349 2008-08-04  Eric Blake  <ebb9@byu.net>
92351         gnumakefile: use space, not TAB, outside of targets
92352         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
92354 2008-08-02  Jim Meyering  <meyering@redhat.com>
92356         getdate.y: avoid locale-dependent date parsing failure
92357         In Turkish locales, getdate would fail to recognize keywords
92358         containing a lowercase "i".  The solution is not to rely on
92359         locale-sensitive case-conversion.
92360         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
92361         (lookup_word): Use c_toupper in place of toupper.
92362         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
92363         Reported by Vefa Bicakci <bicave@superonline.com> in
92364         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
92365         * modules/getdate (Depends-on): Add c-ctype.
92367 2008-08-02  Bruno Haible  <bruno@clisp.org>
92369         * gnulib-tool (func_import): When updating or creating a .gitignore
92370         file, prepend each added line with a slash, and ignore leading slashes
92371         from the existing lines.
92372         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92374 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92376         Portability fix for GNU make 3.79.1.
92377         * top/GNUmakefile: Avoid 'else COND', which older GNU make
92378         versions do not understand.
92380 2008-08-01  Bruno Haible  <bruno@clisp.org>
92382         Work around bug of HP-UX 10.20 cc with -0.0 literal.
92383         * tests/test-isnanf.h (zero): New variable.
92384         (main): Avoid literal -0.0f.
92385         * tests/test-isnand.h (zero): New variable.
92386         (main): Avoid literal -0.0.
92387         * tests/test-isnanl.h (zero): New variable.
92388         (main): Avoid literal -0.0L.
92389         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
92390         (test_float, test_double, test_long_double): Avoid literals -0.0f,
92391         -0.0, -0.0L.
92392         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
92393         (test_signbitd): Avoid literal -0.0.
92394         (test_signbitl): Avoid literal -0.0L.
92395         * tests/test-ceilf1.c (zero): New variable.
92396         (main): Avoid literal -0.0f.
92397         * tests/test-ceill.c (zero): New variable.
92398         (main): Avoid literal -0.0L.
92399         * tests/test-floorf1.c (zero): New variable.
92400         (main): Avoid literal -0.0f.
92401         * tests/test-floorl.c (zero): New variable.
92402         (main): Avoid literal -0.0L.
92403         * tests/test-roundf1.c (zero): New variable.
92404         (main): Avoid literal -0.0f.
92405         * tests/test-round1.c (zero): New variable.
92406         (main): Avoid literal -0.0.
92407         * tests/test-roundl.c (zero): New variable.
92408         (main): Avoid literal -0.0L.
92409         * tests/test-truncf1.c (zero): New variable.
92410         (main): Avoid literal -0.0f.
92411         * tests/test-trunc1.c (zero): New variable.
92412         (main): Avoid literal -0.0.
92413         * tests/test-truncl.c (zero): New variable.
92414         (main): Avoid literal -0.0L.
92415         * tests/test-frexp.c (zero): New variable.
92416         (main): Avoid literal -0.0.
92417         * tests/test-frexpl.c (zero): New variable.
92418         (main): Avoid literal -0.0L.
92419         * tests/test-ldexpl.c (zero): New variable.
92420         (main): Avoid literal -0.0L.
92421         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92422         (zerod, zerol): New variables.
92423         (test_function): Avoid literals -0.0, -0.0L.
92424         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92425         (zerod, zerol): New variables.
92426         (test_function): Avoid literals -0.0, -0.0L.
92427         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92428         (zerod, zerol): New variables.
92429         (test_function): Avoid literals -0.0, -0.0L.
92430         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92431         (zerod, zerol): New variables.
92432         (test_function): Avoid literals -0.0, -0.0L.
92433         * tests/test-strtod.c (zero): New variable.
92434         (main): Avoid literal -0.0.
92435         Reported by Jonathan C. Patschke <jp@centtech.com>.
92437 2008-07-31  Jim Meyering  <meyering@redhat.com>
92439         sha256.h: correct definition of SHA224_DIGEST_SIZE
92440         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
92441         Reported by Paulie Pena IV <paulie4@gmail.com>.
92442         Define as 224 / 8, rather than as a literal.
92443         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
92444         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
92445         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
92447 2008-07-31  Bruno Haible  <bruno@clisp.org>
92449         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
92450         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
92451         Reported by Jonathan Patschke <jp@centtech.com>.
92453 2008-07-31  Bruno Haible  <bruno@clisp.org>
92455         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
92456         Reported by Paolo Bonzini <bonzini@gnu.org>.
92458 2008-07-30  Eric Blake  <ebb9@byu.net>
92460         test-strtod: allow compilation without -lm
92461         * tests/test-strtod.c (main): Avoid link dependence on fabs.
92462         Reported by Dennis Clarke <blastwave@gmail.com>.
92464 2008-07-28  Jim Meyering  <meyering@redhat.com>
92466         bootstrap: work also when there are no .po files in po/
92467         * build-aux/bootstrap (update_po_files): Complete the change
92468         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
92470 2008-07-27  Jim Meyering  <meyering@redhat.com>
92472         * users.txt: Add zile.
92474 2008-07-26  Ben Pfaff  <blp@gnu.org>
92476         Add missing dependencies on new m4/exponent[fdl].m4 files.
92477         * modules/isnanf-nolibm: Add m4/exponentf.m4.
92478         * modules/isnand-nolibm: Add m4/exponentd.m4.
92479         * modules/isnanl-nolibm: Add m4/exponentl.m4.
92480         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
92481         m4/isnan[fdl].m4, because the macros actually used moved.
92482         Reported by Jim Meyering.
92484 2008-07-14  Ben Pfaff  <blp@gnu.org>
92486         Add isinf module.
92487         * lib/isinf.c: New file.
92488         * lib/math.in.h: Define isinf macro if we have decided to replace
92489         it.
92490         * m4/isinf.m4: New file.
92491         * m4/math_h.m4: Initialize and substitute variables for isinf
92492         module.
92493         * modules/isinf: New file.
92494         * modules/isinf-tests: New file.
92495         * modules/math: Add substitutions for new module.
92496         * tests/test-isinf.c: New file.
92497         * doc/posix-functions/isinf.texi: Mention new module.
92498         * MODULES.html.sh: Mention new module.
92500 2008-07-14  Ben Pfaff  <blp@gnu.org>
92502         Factor out some macros for use by additional modules.
92503         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
92504         exponentf.m4.
92505         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
92506         exponentd.m4.
92507         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
92508         file exponentl.m4.
92509         * m4/exponentf.m4: New file.
92510         * m4/exponentd.m4: New file.
92511         * m4/exponentl.m4: New file.
92512         * modules/isnanf: Use new file m4/exponentf.m4.
92513         * modules/isnand: Use new file m4/exponentd.m4.
92514         * modules/isnanl: Use new file m4/exponentl.m4.
92516 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
92518         mktime.c: normalize tp->tm_isdst value to -1/0/1.
92519         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
92520         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
92521         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
92523         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
92524         readlink on platforms without PATH_MAX.
92526 2008-07-21  Eric Blake  <ebb9@byu.net>
92528         Warn, not fail, on stale version.
92529         * top/GNUmakefile (_curr-ver): Tone down previous patch.
92531         Don't allow installation with stale devel version number.
92532         * top/GNUmakefile (_is-install-target): New macro.
92533         (_curr-ver): Forbid installation with stale version number.
92535 2008-07-20  Bruno Haible  <bruno@clisp.org>
92537         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
92538         TESTS_ENVIRONMENT.
92539         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
92541 2008-07-20  Bruno Haible  <bruno@clisp.org>
92543         * lib/c-stack.h (c_stack_action): Add documentation.
92544         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
92546 2008-07-20  Bruno Haible  <bruno@clisp.org>
92548         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
92549         * modules/readlink (License): Likewise.
92551 2008-07-17  Eric Blake  <ebb9@byu.net>
92553         * modules/c-stack (Link): Fix typo.
92555         Make c-stack use libsigsegv, when available.
92556         * modules/c-stack (Depends-on): Add libsigsegv.
92557         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
92558         needed.
92559         * lib/c-stack.c (SIGSTKSZ): Define fallback.
92560         (segv_handler, overflow_handler, c_stack_action)
92561         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
92562         implementation when libsigsegv is available, but only when using
92563         the library is necessary.
92564         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
92565         comment, explaining why XSI check fails on Linux.
92566         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
92567         * tests/test-c-stack2.sh: Tweak skip message.
92568         * NEWS: Document new link-time requirements.
92570 2008-07-16  Eric Blake  <ebb9@byu.net>
92572         c-stack: Expose false positives when not using libsigsegv.
92573         * modules/c-stack-tests (Files): Expand test.
92574         * tests/test-c-stack.c (main): Add means to conditionally trigger
92575         non-overflow SIGSEGV.
92576         * tests/test-c-stack2.sh: New file.
92578 2008-07-14  Bruno Haible  <bruno@clisp.org>
92580         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
92581         Reported by Eric Blake.
92583 2008-07-14  Sam Steingold  <sds@gnu.org>
92584             Bruno Haible  <bruno@clisp.org>
92586         New module libsigsegv.
92587         * modules/libsigsegv: New file.
92588         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
92589         modifications.
92590         * MODULES.html.sh (Signal handling): New section.
92592 2008-07-14  Bruno Haible  <bruno@clisp.org>
92594         * modules/unictype/ctype-* (Description): Add the word "function".
92595         Improves the resulting doc in MODULES.html.
92597 2008-07-12  Ben Pfaff  <blp@gnu.org>
92599         Add longlong module.
92600         * modules/longlong: New file.
92602 2008-07-12  Bruno Haible  <bruno@clisp.org>
92604         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
92605         to empty.
92607 2008-07-10  Ben Pfaff  <blp@gnu.org>
92609         Add isnan module.
92610         * doc/posix-functions/isnan.texi: Mention new module.
92611         * lib/math.in.h: Define isnan macro if we have decided to replace
92612         it.
92613         * m4/isnan.m4: New file.
92614         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
92615         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
92616         also.
92617         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
92618         redundancy.
92619         * m4/math_h.m4: Initialize and substitute variables for isnan
92620         module.
92621         * modules/isnan: New file.
92622         * modules/isnan-tests: New file.
92623         * modules/math: Add substitutions for new module.
92624         * tests/test-isnan.c: New file.
92625         * MODULES.html.sh: Mention new module.
92627 2008-07-10  Ben Pfaff  <blp@gnu.org>
92629         Add isnanf module.
92630         * lib/isnanf.m4: New file.
92631         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
92632         (gl_HAVE_ISNANF_IN_LIBM): New macro.
92633         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
92634         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
92635         * modules/isnanf: New file.
92636         * modules/isnanf-tests: New file.
92637         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
92638         files.
92639         * tests/test-isnanf-nolibm.c: factored most of its contents into
92640         new file tests/test-isnanf.h.
92641         * tests/test-isnanf.h: New file.
92642         * tests/test-isnanf.c: New file.
92643         * MODULES.html.sh: Mention new module.
92644         * doc/glibc-functions/isnanf.texi: Mention new module.
92646 2008-07-10  Ben Pfaff  <blp@gnu.org>
92648         Add isnand module.
92649         * lib/isnand.h: New file.
92650         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
92651         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
92652         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
92653         functionality also.
92654         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
92655         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
92656         (gl_HAVE_ISNAND_IN_LIBM): New macro.
92657         * modules/isnand: New file.
92658         * modules/isnand-tests: New file.
92659         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
92660         files.
92661         * tests/test-isnand-nolibm.c: factored most of its contents into
92662         new file tests/test-isnand.h.
92663         * tests/test-isnand.h: New file.
92664         * tests/test-isnand.c: New file.
92665         * MODULES.html.sh: Mention new module.
92667 2008-07-10  Ben Pfaff  <blp@gnu.org>
92669         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
92670         * lib/isnand.h: Rename lib/isnand-nolibm.h.
92671         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
92672         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
92673         * modules/isnanf-nolibm: Update references to renamed files.
92674         * modules/isnand-nolibm: Likewise.
92675         * modules/isnanf-nolibm-tests: Likewise.
92676         * modules/isnand-nolibm-tests: Likewise.
92677         * lib/frexp.c: Likewise.
92678         * lib/isfinite.c: Likewise.
92679         * lib/signbitd.c: Likewise.
92680         * lib/signbitf.c: Likewise.
92681         * lib/vasnprintf.c: Likewise.
92682         * tests/test-ceilf1.c: Likewise.
92683         * tests/test-ceilf2.c: Likewise.
92684         * tests/test-floorf1.c: Likewise.
92685         * tests/test-floorf2.c: Likewise.
92686         * tests/test-frexp.c: Likewise.
92687         * tests/test-round1.c: Likewise.
92688         * tests/test-round2.c: Likewise.
92689         * tests/test-roundf1.c: Likewise.
92690         * tests/test-strtod.c: Likewise.
92691         * tests/test-trunc1.c: Likewise.
92692         * tests/test-trunc2.c: Likewise.
92693         * tests/test-truncf1.c: Likewise.
92694         * tests/test-truncf2.c: Likewise.
92695         * NEWS: Mention the renamed header files.
92697 2008-07-11  Jim Meyering  <meyering@redhat.com>
92699         vc-list-files: make the last-resort awk code more portable
92700         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
92701         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
92702         does not support it.
92704 2008-07-10  Eric Blake  <ebb9@byu.net>
92706         Work with tar's bootstrap.
92707         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
92708         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
92709         an m4 comment.
92711 2008-07-09  Jim Meyering  <meyering@redhat.com>
92713         posix-shell.m4: fix typo that made this test malfunction
92714         * m4/posix-shell.m4: Remove capitalization in variable name.
92716 2008-07-08  Bruno Haible  <bruno@clisp.org>
92718         * m4/onceonly.m4: Update comments.
92719         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92721 2008-07-04  Jim Meyering  <meyering@redhat.com>
92723         * users.txt: Add vc-dwim.
92724         (bison, coreutils): Use the gitweb URL.
92726 2008-07-03  Jim Meyering  <meyering@redhat.com>
92728         * users.txt: Add libffcall.  From Sam Steingold.
92730 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
92732         getdate.y: do not ignore TZ with relative day, month or year offset
92733         * lib/getdate.y (get_date): Move the tz-handling block to follow the
92734         relative-date-handling, since otherwise, the latter would clobber the
92735         sole output (an updated Start value) of the tz-handling block.
92736         * tests/test-getdate.c: Tests for the fix
92738 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92740         Recognize 'foo_LIBRARIES += libgnu.a'.
92741         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
92742         makefile snippet has already specified an installation location,
92743         also using '+='.
92745 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
92747         getdate.y: factor out common actions
92748         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
92749         Use them in place of open-coded actions.
92751 2008-07-01  Simon Josefsson  <simon@josefsson.org>
92753         Add self-test for getdate module.
92754         * modules/getdate-tests: New file.
92755         * tests/test-getdate.c: New file.
92757 2008-06-29  Bruno Haible  <bruno@clisp.org>
92759         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
92760         .gitignore.
92761         Reported by Sylvain Beucler <beuc@beuc.net>.
92763 2008-06-29  Bruno Haible  <bruno@clisp.org>
92765         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
92766         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
92768 2008-06-29  Bruno Haible  <bruno@clisp.org>
92770         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
92771         EXTRA_DIST.
92772         Reported by Sylvain Beucler <beuc@beuc.net>.
92774 2008-06-26  Jim Meyering  <meyering@redhat.com>
92776         make several modules depend on the "open" module
92777         This provides slightly increased consistency when opening-for-write
92778         the name of a non-directory spelled with a trailing slash.
92779         * modules/chdir-safer: Likewise.
92780         * modules/chown: Likewise.
92781         * modules/clean-temp: Likewise.
92782         * modules/copy-file: Likewise.
92783         * modules/fchdir: Likewise.
92784         * modules/fcntl-safer: Likewise.
92785         * modules/pipe: Likewise.
92786         * modules/utime: Likewise.
92787         Prompted by Eric Blake and Bruno Haible.
92789 2008-06-24  Andreas Schwab  <schwab@suse.de>
92791         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
92792         literals can be used as initializers for global variables.
92794 2008-06-23  Eric Blake  <ebb9@byu.net>
92796         Make gnulib-cache.m4 easier to diff.
92797         * gnulib-tool (func_import): Allow newlines when reading cached
92798         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
92800 2008-06-23  Bruno Haible  <bruno@clisp.org>
92802         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
92803         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
92804         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
92805         m4/signalblocking.m4.
92806         (gl_PREREQ_SIGACTION): Don't invoke it.
92807         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
92808         gl_PREREQ_SIG_HANDLER_H.
92809         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92810         Don't check for sigaction here.
92812 2008-06-23  Bruno Haible  <bruno@clisp.org>
92814         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
92815         (install_handlers): Don't set the SA_RESETHAND flag.
92817 2008-06-23  Bruno Haible  <bruno@clisp.org>
92819         * m4/sigaction.m4: Comment fixes.
92820         * lib/signal.in.h: Likewise.
92822 2008-06-23  Eric Blake  <ebb9@byu.net>
92824         Fix typo.
92825         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
92827         Avoid SA_ namespace.
92828         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
92829         Reported by Ralf Wildenhues.
92831         Avoid test failure due to SA_RESTORER.
92832         * tests/test-sigaction.c (SA_MASK): New macro.
92833         (main): Avoid failing due to extension flags being set.
92834         Reported by Jim Meyering.
92836         Revert use of sig-handler.h in sigprocmask.c.
92837         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
92838         it requires the existence of struct sigaction.
92839         * lib/sigprocmask.c (handler_t): Restore typedef.
92840         (rpl_signal, old_handlers): Use local type.
92842 2008-06-22  Bruno Haible  <bruno@clisp.org>
92844         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
92845         conditionally.
92846         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92848 2008-06-22  Bruno Haible  <bruno@clisp.org>
92850         * doc/posix-functions/siginterrupt.texi: Move note.
92852         * lib/signal.in.h (SA_RESTART): New macro.
92853         * lib/sigaction.c: Update comment.
92855         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
92857         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
92858         (gl_PREREQ_SIGPROCMASK): Invoke it.
92859         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
92861         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
92863         * lib/sigprocmask.c: Update a comment.
92865 2008-06-21  Eric Blake  <ebb9@byu.net>
92867         Use sigaction module rather than signal().
92868         * modules/c-stack (Depends-on): Add sigaction.
92869         * modules/fatal-signal (Depends-on): Likewise.
92870         * modules/nanosleep (Depends-on): Likewise.
92871         * modules/sigprocmask (Files): Add sig-handler.h.
92872         * modules/sigaction (Files): Likewise.
92873         * lib/sig-handler.h (get_handler): New file, suggested by Paul
92874         Eggert.
92875         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
92876         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
92877         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
92878         (init_fatal_signals): Likewise.
92879         * lib/nanosleep.c (rpl_nanosleep): Likewise.
92880         (siginterrupt): Delete fallback.
92881         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
92882         instead.
92883         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
92884         siginterrupt.
92886         New module sigaction, for mingw.
92887         * modules/sigaction: New module...
92888         * modules/sigaction-tests: ...and its test.
92889         * m4/sigaction.m4: New file.
92890         * lib/sigaction.c: Likewise.
92891         * tests/test-sigaction.c: Likewise.
92892         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
92893         * modules/signal (Makefile.am): Likewise.
92894         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
92895         needed.
92896         * doc/posix-headers/signal.texi (signal.h): Mention provided
92897         types.
92898         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
92899         that sigaction is preferable.
92900         * doc/posix-functions/sigaction.texi (sigaction): Mention new
92901         module.
92902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92903         sigaction.
92905         Improve robustness of sigprocmask by overriding signal.
92906         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
92907         is in use.
92908         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
92909         (SIGKILL, SIGSTOP): Provide fallbacks.
92910         (rpl_signal): Implement.
92911         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
92912         signal can be called inside handlers.
92914         Fix nanosleep module on mingw.
92915         * modules/nanosleep (Depends-on): Add sys_select.
92916         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
92918         Fix licensing of sigprocmask.
92919         * modules/raise (License): Relicense as LGPL.
92921 2008-06-21  Bruno Haible  <bruno@clisp.org>
92923         * lib/propername.c (proper_name_utf8): Don't use the transliterated
92924         result if it contains question marks.
92925         Reported by Michael Geng <linux@michaelgeng.de>.
92927 2008-06-19  Bruno Haible  <bruno@clisp.org>
92929         Fix CVS-ism.
92930         * doc/gnulib.texi: Include updated-stamp.texi.
92931         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
92932         (updated-stamp.texi): New rule.
92933         (gnulib.info): Depend on it.
92934         * doc/.gitignore: Add updated-stamp.texi.
92935         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
92937 2008-06-19  Bruno Haible  <bruno@clisp.org>
92939         * doc/Makefile (gnulib.info): Update and simplify dependencies.
92940         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92942 2008-06-19  Eric Blake  <ebb9@byu.net>
92944         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
92945         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
92946         Reported by Stepan Kasal.
92948 2008-06-18  Bruno Haible  <bruno@clisp.org>
92950         * lib/fatal-signal.c (init_fatal_signals): Add comment.
92951         Reported by Eric Blake.
92953 2008-06-18  Eric Blake  <ebb9@byu.net>
92955         Work around cygwin 1.5.25 strsignal bug.
92956         * tests/test-strsignal.c: Allow for const char *.
92957         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
92959 2008-06-18  Simon Josefsson  <simon@josefsson.org>
92961         * users.txt: Update URL to article and add author/date
92962         information.
92964 2008-06-17  Bruno Haible  <bruno@clisp.org>
92966         New macro gl_DISABLE_THREADS.
92967         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
92968         if the user did not pass --enable-threads or --disable-threads option.
92969         (gl_DISABLE_THREADS): New macro.
92970         Reported by Eric Blake <ebb9@byu.net>.
92972 2008-06-17  Bruno Haible  <bruno@clisp.org>
92974         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
92975         when the macro ignores it.
92976         Based on a patch by Eric Blake <ebb9@byu.net>.
92978 2008-06-17  Bruno Haible  <bruno@clisp.org>
92980         * modules/tls (License): Change to LGPLv2+.
92981         Reported by Eric Blake.
92983 2008-06-17  Eric Blake  <ebb9@byu.net>
92985         Simplify c-stack prerequisites.
92986         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
92987         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
92988         no longer requires <ucontext.h> to exist.  Optimize setrlimit
92989         check.
92990         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
92991         <sys/resource.h>.
92993         Move c-stack test into testsuite.
92994         * modules/c-stack-tests: New file.
92995         * lib/c-stack.c [DEBUG]: Move test program...
92996         * tests/test-c-stack.c: ...into this new file.  Skip rather than
92997         fail test if sigaltstack is lacking.
92998         * tests/test-c-stack.sh: New driver file.
93000 2008-06-16  Eric Blake  <ebb9@byu.net>
93002         Use raise module consistently.
93003         * modules/fatal-signal (Depends-on): Add raise.
93004         * modules/sigprocmask (Depends-on): Likewise.
93005         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
93006         * lib/sigprocmask.c (sigprocmask): Likewise.
93007         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93008         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
93010         Fix compliance bug in sigpending.
93011         * lib/sigprocmask.c (sigpending): Return pending array via
93012         parameter, not return value.
93014 2008-06-14  Eric Blake  <ebb9@byu.net>
93016         Improve obstack-printf test code.
93017         * tests/test-obstack-printf.c (test_function): Fix comment, and
93018         simplify usage of obstack_* in macros.  Add a test for coverage.
93019         Reported by Bruno Haible.
93021 2008-06-14  Bruno Haible  <bruno@clisp.org>
93023         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
93024         array size as a constant, not as a const variable.
93025         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
93026         AC_USE_SYSTEM_EXTENSIONS.
93027         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
93028         Test whether the obstack_printf function actually exists.
93029         * modules/obstack-printf (Depends-on): Add extensions.
93030         (Include): Remove obstack.h.
93031         * modules/obstack-printf-posix (Depends-on): Add extensions.
93032         (Include): Remove obstack.h.
93034 2008-06-13  Eric Blake  <ebb9@byu.net>
93036         Add obstack-printf and obstack-printf-posix modules.
93037         * modules/obstack-printf: New file.
93038         * modules/obstack-printf-posix: Likewise.
93039         * MODULES.html.sh (Misc): Mention them.
93040         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
93041         Likewise.
93042         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
93043         Likewise.
93044         * modules/stdio (Makefile.am): Accomodate new modules.
93045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
93046         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
93047         Declare.
93048         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
93049         functions.
93050         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
93051         (gl_REPLACE_OBSTACK_PRINTF): New macros
93052         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
93053         * tests/test-obstack-printf.c: New file.
93054         * modules/obstack-printf-tests: Likewise.
93055         * modules/obstack-printf-posix-tests: Likewise.
93057 2008-06-11  Bruno Haible  <bruno@clisp.org>
93059         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
93060         * lib/open.c: Include errno.h.
93061         (open): Fail when attempting to write to a file that has a trailing
93062         slash.
93063         * tests/test-open.c (main): Test against trailing slash bug.
93064         * doc/posix-functions/open.texi: Mention the trailing slash bug.
93066 2008-06-10  Bruno Haible  <bruno@clisp.org>
93068         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
93069         for $? to work inside the trap command, with various /bin/sh-s.
93070         * tests/test-vc-list-files-cvs.sh: Likewise.
93072 2008-06-10  Bruno Haible  <bruno@clisp.org>
93074         * lib/acl-internal.h: Don't include gettext.h here.
93075         * lib/set-mode-acl.c: Include gettext.h here.
93076         * lib/copy-acl.c: Likewise.
93078 2008-06-10  Bruno Haible  <bruno@clisp.org>
93080         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
93081         * lib/wait-process.c (wait_subprocess): Likewise.
93082         * lib/execute.h (execute): Add termsigp argument.
93083         * lib/execute.c (execute): Likewise.
93084         * lib/csharpcomp.c (compile_csharp_using_pnet,
93085         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
93086         * lib/csharpexec.c (execute_csharp_using_pnet,
93087         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
93088         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
93089         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
93090         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
93091         is_jikes_present): Update.
93092         * lib/javaexec.c (execute_java_class): Update.
93093         * lib/javaversion.c (execute_and_read_line): Update.
93094         * NEWS: Document the changes.
93095         Reported by Eric Blake.
93097 2008-06-10  Eric Blake  <ebb9@byu.net>
93099         Add missing include.
93100         * tests/test-strstr.c (includes): Add <signal.h>.
93101         * tests/test-strcasestr.c (includes): Likewise.
93102         * tests/test-memmem.c (includes): Likewise.
93104 2008-06-10  Bruno Haible  <bruno@clisp.org>
93106         * lib/wait-process.c (wait_subprocess): Add an assertion.
93108 2008-06-10  Bruno Haible  <bruno@clisp.org>
93110         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
93112 2008-06-10  Bruno Haible  <bruno@clisp.org>
93114         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
93115         using alarm().
93116         * tests/test-strcasestr.c (main): Likewise.
93117         * tests/test-strstr.c (main): Likewise.
93119 2008-06-09  Bruno Haible  <bruno@clisp.org>
93121         Work around the Solaris 10 ACE ACLs ABI change.
93122         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
93123         declare if ACL_NO_TRIVIAL is present.
93124         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
93125         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
93126         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
93127         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
93128         define if ACL_NO_TRIVIAL is present.
93129         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
93130         and use the current ABI.
93131         (file_has_acl): Use same #if condition as elsewhere.
93132         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
93133         in use, and use the current ABI.
93134         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
93135         Reported by Jim Meyering.
93137 2008-06-09  Eric Blake  <ebb9@byu.net>
93139         Work around environments that (stupidly) ignore SIGALRM.
93140         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
93141         before using alarm().
93142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93143         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93144         Reported by Ian Beckwith <ianb@erislabs.net>.
93146         Produce autobuild blurb earlier in log.
93147         * modules/autobuild (configure.ac-early): Move AB_INIT here.
93149 2008-06-09  Jim Meyering  <meyering@redhat.com>
93150         and Ondřej Vašík  <ovasik@redhat.com>
93152         utimens.c: correct kernel bug work-around
93153         Ondřej Vašík found that the invalid return value of 280 indicates
93154         failure, not success, and the kernel bug we're trying to work
93155         around affects not just the utimensat call, but also the fallback
93156         futimens call.
93157         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
93158         not success.
93159         [HAVE_FUTIMENS]: Use the same work-around, here.
93161 2008-06-09  Jim Meyering  <meyering@redhat.com>
93163         add more guards around definition of ACE_-related code
93164         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
93165         ALLOW and ACE_OWNER are also defined.
93167 2008-06-08  Bruno Haible  <bruno@clisp.org>
93169         * lib/acl-internal.h: Add me as co-author.
93170         * lib/file-has-acl.c: Likewise.
93171         * lib/set-mode-acl.c: Likewise.
93172         * lib/copy-acl.c: Likewise.
93174 2008-06-08  Bruno Haible  <bruno@clisp.org>
93176         Add support for AIX ACLs.
93177         * lib/acl-internal.h (acl_nontrivial): New declaration.
93178         * lib/file-has-acl.c (acl_nontrivial): New function.
93179         (file_has_acl): Add implementation using AIX 4 ACL API.
93180         * lib/set-mode-acl.c (qset_acl): Likewise.
93181         * lib/copy-acl.c (qcopy_acl): Likewise.
93183 2008-06-08  Bruno Haible  <bruno@clisp.org>
93185         Add support for HP-UX ACLs.
93186         * lib/acl-internal.h (acl_nontrivial): New declaration.
93187         * lib/file-has-acl.c (acl_nontrivial): New function.
93188         (file_has_acl): Add implementation using HP-UX 11 ACL API.
93189         * lib/set-mode-acl.c (qset_acl): Likewise.
93190         * lib/copy-acl.c (qcopy_acl): Likewise.
93192 2008-06-08  Bruno Haible  <bruno@clisp.org>
93194         Add support for Cygwin ACLs.
93195         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
93196         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
93197         the chmod_or_fchmod call.
93198         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
93200 2008-06-08  Bruno Haible  <bruno@clisp.org>
93202         Fix bug with setuid modes in Solaris 10+ code.
93203         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
93204         succeeded, when the mode contains some special bits.
93206 2008-06-08  Bruno Haible  <bruno@clisp.org>
93208         Add support for Solaris 7..10 ACLs.
93209         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
93210         declarations.
93211         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
93212         functions.
93213         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
93214         * lib/set-mode-acl.c (qset_acl): Likewise.
93215         * lib/copy-acl.c (qcopy_acl): Likewise.
93217 2008-06-08  Bruno Haible  <bruno@clisp.org>
93219         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
93220         declaration.
93221         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
93222         (acl_access_nontrivial): Remove MacOS X case.
93223         (file_has_acl): Use acl_extended_nontrivial.
93224         * lib/copy-acl.c (qcopy_acl): Likewise.
93226 2008-06-08  Bruno Haible  <bruno@clisp.org>
93228         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
93230 2008-06-08  Jim Meyering  <meyering@redhat.com>
93232         * modules/acl (Maintainer): Add Bruno Haible.
93234 2008-06-07  Bruno Haible  <bruno@clisp.org>
93236         Improve support for Tru64 ACLs.
93237         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
93238         ACL on OSF/1.
93240 2008-06-07  Bruno Haible  <bruno@clisp.org>
93242         Add support for MacOS X ACLs.
93243         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
93244         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
93245         * lib/set-mode-acl.c (qset_acl): Likewise.
93246         * lib/copy-acl.c (qcopy_acl): Likewise.
93248 2008-06-07  Bruno Haible  <bruno@clisp.org>
93250         Fix memory leak introduced on 2008-05-22.
93251         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
93252         use.
93254 2008-06-07  Bruno Haible  <bruno@clisp.org>
93256         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
93257         to construct an empty ACL.
93259 2008-06-07  Bruno Haible  <bruno@clisp.org>
93261         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
93262         precisely.
93263         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
93265 2008-06-07  Bruno Haible  <bruno@clisp.org>
93267         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
93268         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
93270 2008-06-07  Bruno Haible  <bruno@clisp.org>
93272         * doc/posix-functions/_setjmp.texi: Explain the use of this function
93273         regardless of POSIX.
93274         * doc/posix-functions/_longjmp.texi: Likewise.
93275         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
93276         SystemV platform in this case.
93278 2008-06-06  Eric Blake  <ebb9@byu.net>
93280         Document abort() bugs.
93281         * doc/posix-functions/abort.texi (abort): Mention anomalies.
93283         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
93284         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
93285         sigsetjmp.
93286         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
93287         siglongjmp, but only as a macro.
93288         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
93289         is obsolete.
93290         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
93292         Tweak documentation to cover cygwin argz bugs.
93293         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
93294         argz bug fix; no code change needed since no cygwin releases
93295         occurred between the last fix and the bug being tested.
93296         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
93297         module and recently fixed cygwin bugs.
93298         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
93299         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
93300         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
93301         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
93302         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
93303         Likewise.
93304         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
93305         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
93306         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
93307         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
93308         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
93309         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
93310         Likewise.
93312         Avoid gcc warning on cygwin.
93313         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
93314         !ACL_NO_TRIVIAL]: Avoid unused variable.
93316 2008-06-05  Eric Blake  <ebb9@byu.net>
93318         Be tolerant of UNKNOWN version in gnulib-tool test dir.
93319         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
93320         git-version-gen fails to come up with a version.
93321         Reported by Simon Josefsson.
93323 2008-06-05  Jim Meyering  <meyering@redhat.com>
93324             Paul Eggert  <eggert@cs.ucla.edu>
93326         utimens.c: work around a probable Linux kernel bug
93327         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
93328         appears to be a kernel bug that causes utimensat to return 280
93329         instead of 0, indicating success.
93331 2008-06-04  Bruno Haible  <bruno@clisp.org>
93333         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
93334         2008-06-01 commit.
93336 2008-06-04  Bruno Haible  <bruno@clisp.org>
93338         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
93339         * lib/file-has-acl.c (acl_access_nontrivial): New function.
93340         (file_has_acl): Use it. Save errno afterwards.
93341         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
93343 2008-06-03  Bruno Haible  <bruno@clisp.org>
93345         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
93346         draft code. Simplify #ifs.
93347         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
93348         Put Solaris code after POSIX-draft code. Fix comments regarding
93349         Solaris 10, HP-UX. Mention Cygwin.
93350         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
93352 2008-06-03  Eric Blake  <ebb9@byu.net>
93354         Provide fallback for older kernels.
93355         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
93356         Provide runtime fallback if kernel lacks support.
93357         Reported by Mike Frysinger.
93359 2008-06-02  Bruno Haible  <bruno@clisp.org>
93361         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
93362         it exists.
93364 2008-06-02  Bruno Haible  <bruno@clisp.org>
93366         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
93367         * lib/copy-acl.c (qcopy_acl): Update comment.
93369 2008-06-02  Bruno Haible  <bruno@clisp.org>
93371         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
93372         like ACL APIs.
93374 2008-06-02  Bruno Haible  <bruno@clisp.org>
93376         * tests/test-file-has-acl.sh: Use different code for Cygwin.
93377         * tests/test-set-mode-acl.sh: Likewise.
93378         * tests/test-copy-acl.sh: Likewise.
93379         * tests/test-copy-file.sh: Likewise.
93381 2008-06-02  Bruno Haible  <bruno@clisp.org>
93383         * tests/test-file-has-acl.sh: Remove unused code.
93385 2008-06-01  Bruno Haible  <bruno@clisp.org>
93387         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
93388         (copy_acl): Just a wrapper around qcopy_acl that emits the error
93389         messages.
93390         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
93392 2008-06-01  Bruno Haible  <bruno@clisp.org>
93394         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
93395         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
93396         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
93397         APIs.
93398         * modules/acl-tests (configure.ac): Remove tests now contained in
93399         m4/acl.m4.
93401 2008-06-02  Jim Meyering  <meyering@redhat.com>
93403         announce-gen: use a better key-server host name
93404         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
93405         it may be more consistently reliable.  Suggested by Werner Koch
93406         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
93408 2008-06-01  Bruno Haible  <bruno@clisp.org>
93410         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
93411         Reported by Voroskoi Andras <voroskoi@gmail.com>.
93413 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
93415         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
93417 2008-06-01  Bruno Haible  <bruno@clisp.org>
93419         New ACL tests.
93420         * tests/test-file-has-acl.sh: New file.
93421         * tests/test-file-has-acl.c: New file.
93422         * tests/test-set-mode-acl.sh: New file.
93423         * tests/test-set-mode-acl.c: New file.
93424         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
93425         * tests/test-copy-acl.c: New file.
93426         * modules/acl-tests: New file, based on modules/copy-file-tests.
93427         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
93428         (Depends-on): Add acl-tests.
93429         (configure.ac): Remove checks.
93430         (Makefile.am): Don't create test-sameacls program here any more.
93432 2008-06-01  Bruno Haible  <bruno@clisp.org>
93434         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
93435         * tests/test-sameacls.c: Include progname.h.
93436         (main): Invoke set_program_name. Portability fixes for MacOS X,
93437         Solaris, HP-UX.
93439 2008-06-01  Bruno Haible  <bruno@clisp.org>
93441         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
93442         function.
93443         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
93445 2008-06-01  Bruno Haible  <bruno@clisp.org>
93447         * modules/rpmatch (Depends-on): Add strdup.
93449 2008-06-01  Bruno Haible  <bruno@clisp.org>
93451         * lib/pipe.c: Include unistd-safer.h.
93452         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
93453         * modules/pipe (Depends-on): Add unistd-safer.
93455 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93457         * modules/autobuild (configure.ac): Call AB_INIT.
93459 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93461         * tests/test-getaddrinfo.c: Don't print debug messages by default.
93462         Suggested by Bruno Haible <bruno@clisp.org>.
93464 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93466         * tests/test-base64.c: Cast size_t to unsigned long when invoking
93467         printf.  Use %lu instead of %d.  Reported by Bruno Haible
93468         <bruno@clisp.org>.
93470 2008-05-29  Eric Blake  <ebb9@byu.net>
93472         Prefer new POSIX 200x interfaces over futimesat.
93473         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
93474         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
93475         when available.
93476         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
93478 2008-05-28  Bruno Haible  <bruno@clisp.org>
93480         * modules/stpcpy (License): Change to LGPLv2+.
93481         Requested by David Lutterkort <dlutter@redhat.com>.
93483 2008-05-27  Bruno Haible  <bruno@clisp.org>
93485         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
93486         current mingw.
93487         Reported by Jose E. Marchesi <jemarch@gnu.org>.
93489 2008-05-27  Bruno Haible  <bruno@clisp.org>
93491         * modules/iconv_open (Link): New section, from module 'iconv'.
93492         * modules/striconv (Link): Likewise.
93493         * modules/striconveh (Link): Likewise.
93494         * modules/xstriconv (Link): Likewise.
93495         * modules/unicodeio (Link): Likewise.
93496         * modules/propername (Link): Likewise.
93497         Reported by Jim Meyering.
93499 2008-05-26  Jim Meyering  <meyering@redhat.com>
93501         sha256: do not artificially restrict buffer length to be < 2^32
93502         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
93503         uint32_t to size_t.
93504         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
93505         to match.
93507         avoid unaligned access errors, e.g., on sparc
93508         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
93509         direct access through a possibly-unaligned uint64* pointer.
93510         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
93511         direct access through a possibly-unaligned uint32* pointer.
93512         Prompted by this patch from Tom "spot" Callaway:
93513         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
93515         sha512.c: fix typo in comment
93516         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
93518 2008-05-25  Bruno Haible  <bruno@clisp.org>
93520         * lib/set-mode-acl.c: Renamed from lib/acl.c.
93521         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
93522         (Makefile.am): Update lib_SOURCES.
93524 2008-05-25  Bruno Haible  <bruno@clisp.org>
93526         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
93528 2008-05-25  Jim Meyering  <meyering@redhat.com>
93530         useless-if-before-free: freed expr may have white-space differences
93531         * build-aux/useless-if-before-free: Recognize cases in which the
93532         freed expression differs from the tested one in embedded white
93533         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
93534         $1 was used, so we can't make any regexp shy.  Improved tests now
93535         detect this.
93537         useless-if-before-free: accept white space in the expression.
93538         * build-aux/useless-if-before-free: For now, any white space
93539         in the expression must be identical in the free argument.
93541         useless-if-before-free: efficiency tweak
93542         * build-aux/useless-if-before-free: Make the expression-matching
93543         regexp "shy".
93544         Make the *outer* regexp shy, not the expr-matching one.
93546         update code-in-comment to accept cast of free arg
93547         * build-aux/useless-if-before-free: Update regexp.
93549 2008-05-25  Bruno Haible  <bruno@clisp.org>
93551         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
93552         * modules/copy-file-tests (Files, Makefile.am): Update.
93553         * tests/test-copy-file.c (func_test_copy): Update.
93555 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
93557         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
93559 2008-05-23  Bruno Haible  <bruno@clisp.org>
93561         Improve support for ACLs on OSF/1.
93562         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
93563         Remove fallback for unknown flavors of ACLs.
93565 2008-05-22  Bruno Haible  <bruno@clisp.org>
93567         Add support for ACLs on OSF/1.
93568         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
93569         replacements.
93570         (acl_free_text): New macro fallback.
93571         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
93572         acl_free.
93573         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
93574         acl_free_text function. Require AC_C_INLINE.
93576 2008-05-22  Bruno Haible  <bruno@clisp.org>
93578         Make copy_acl work on MacOS X 10.5.
93579         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
93580         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
93581         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
93582         If MODE_INSIDE_ACL, don't assume that every system has the same text
93583         representation for ACLs as FreeBSD.
93584         * lib/copy-acl.c (copy_acl): Add support for platforms with
93585         !MODE_INSIDE_ACL.
93586         * lib/file-has-acl.c (file_has_acl): Likewise.
93587         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
93588         FreeBSD, MacOS X, or IRIX, respectively.
93590 2008-05-22  Bruno Haible  <bruno@clisp.org>
93592         * lib/acl.h: Don't include <sys/acl.h>.
93593         (GETACLCNT): Move fallback to lib/acl-internal.h.
93594         * lib/acl-internal.h: Include <sys/acl.h> here.
93595         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
93597 2008-05-22  Bruno Haible  <bruno@clisp.org>
93599         Split off copy_acl function to separate file.
93600         * lib/copy-acl.c: New file, extracted from lib/acl.c.
93601         * lib/acl.c (copy_acl): Moved function to separate file.
93602         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
93603         * modules/acl (Files): Add lib/copy-acl.c.
93604         (Makefiles.am): Augment lib_SOURCES.
93606 2008-05-22  Bruno Haible  <bruno@clisp.org>
93608         * modules/copy-file-tests: New file.
93609         * tests/test-copy-file.sh: New file.
93610         * tests/test-copy-file.c: New file.
93611         * tests/test-copy-file-sameacls.c: New file.
93613 2008-05-22  Eric Blake  <ebb9@byu.net>
93615         Avoid gcc warning.
93616         * tests/test-memcmp.c (main): Pass NULL indirectly.
93618 2008-05-21  Bruno Haible  <bruno@clisp.org>
93620         Add reference doc about ACLs.
93621         * doc/acl-resources.txt: New file.
93622         * doc/acl-cygwin.txt: New file.
93624 2008-05-21  Bruno Haible  <bruno@clisp.org>
93626         Avoid one more warning from gcc.
93627         * lib/vasnprintf.c (IF_LINT): Update comments.
93628         (VASNPRINTF): Use it also for the 'prefix' array initializer.
93630 2008-05-21  Jim Meyering  <meyering@redhat.com>
93632         avoid a warning from gcc
93633         * lib/vasnprintf.c (IF_LINT): Define.
93634         (scale10_round_decimal_long_double):
93635         Use it to avoid a "may be used uninitialized" warning.
93636         (scale10_round_decimal_double): Likewise.
93638 2008-05-21  Simon Josefsson  <simon@josefsson.org>
93640         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
93641         declared.
93643 2008-05-20  Bruno Haible  <bruno@clisp.org>
93645         * tests/test-memcmp.c (main): Test also the sign of the result. Test
93646         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
93648 2008-05-20  Simon Josefsson  <simon@josefsson.org>
93650         * modules/memcmp-tests: New file.
93651         * tests/test-memcmp.c: New file.
93653 2008-05-19  Bruno Haible  <bruno@clisp.org>
93655         * modules/propername (Notice, configure.ac): Put quoted "..." into
93656         --keyword option.
93657         * lib/propername.h: Update comments accordingly.
93658         Reported by Eric Blake.
93660 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
93662         * modules/getpass-gnu (Depends-on): Add fseeko.
93664 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93666         * modules/base64-tests: New file.
93668 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
93670         * lib/base64.c (base64_decode_ctx): If a decode context structure
93671         was passed in use it to ignore newlines.  If a context structure
93672         was _not_ passed in, continue to treat newlines as garbage (this
93673         is the historical behavior).  Formerly base64_decode.
93674         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93675         takes a decode context structure.
93676         * lib/base64.h (base64_decode): Macro for four-argument calls.
93677         (base64_decode_alloc): Likewise.
93678         * lib/base64.c (base64_decode_ctx): If a decode context structure
93679         was passed in use it to ignore newlines.  If a context structure
93680         was _not_ passed in, continue to treat newlines as garbage (this
93681         is the historical behavior).  Formerly base64_decode.
93682         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93683         takes a decode context structure.
93684         * lib/base64.h (base64_decode): Macro for four-argument calls.
93685         (base64_decode_alloc): Likewise.
93687 2008-05-19  Jim Meyering  <meyering@redhat.com>
93689         avoid a warning from gcc
93690         * lib/trim.c (IF_LINT): Define.
93691         (trim2): Use it to avoid a "may be used uninitialized" warning.
93693         Fix doc typo.
93694         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
93696 2008-05-19  Bruno Haible  <bruno@clisp.org>
93698         * doc/glibc-functions/getpass.texi: Document limits of other
93699         implementations.
93701 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93702             Bruno Haible <bruno@clisp.org>
93704         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
93706 2008-05-18  Bruno Haible  <bruno@clisp.org>
93708         * modules/propername: New file, from GNU gettext.
93709         * lib/propername.h: New file, from GNU gettext.
93710         * lib/propername.c: New file, from GNU gettext.
93711         * MODULES.html.sh (Internationalization functions): Add propername.
93713 2008-05-16  Jim Meyering  <meyering@redhat.com>
93714             Bruno Haible  <bruno@clisp.org>
93716         Avoid some warnings from "gcc -Wshadow".
93717         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
93719 2008-05-15  Eric Blake  <ebb9@byu.net>
93721         Extend previous patch to cygwin 1.7.0.
93722         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
93723         fast implementation in cygwin >= 1.7.0.
93724         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93725         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93727 2008-05-15  Bruno Haible  <bruno@clisp.org>
93729         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
93730         implementation in glibc >= 2.9.
93731         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93732         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93734 2008-05-15  Bruno Haible  <bruno@clisp.org>
93736         * MODULES.html.sh (Internationalization functions): Remove linebreak.
93737         (Unicode string functions): Add unilbrk/*.
93738         Reported by Karl Berry.
93740 2008-05-15  Eric Blake  <ebb9@byu.net>
93742         Fix violation of <stdbool.h> replacement in regex.
93743         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
93744         * lib/regexec.c (re_search_internal): Likewise.
93745         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
93747 2008-05-15  Jim Meyering  <meyering@redhat.com>
93749         avoid distracting test output when git or cvs is not found
93750         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
93751         * tests/test-vc-list-files-git.sh: Likewise.
93753 2008-05-15  Eric Blake  <ebb9@byu.net>
93755         Glibc finally accepted the memmem speedup code, bugzilla #5514.
93756         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
93757         glibc version.
93758         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
93759         * doc/posix-functions/strstr.texi (strstr): Likewise.
93760         * lib/str-two-way.h (MAX): Sychronize with glibc.
93762 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
93764         * lib/regcomp.c (optimize_utf8): Add a note on why we test
93765         opr.ctx_type.
93766         (calc_first): Initialize constraint field.
93767         (duplicate_node_closure): Use it instead of special casing ANCHORS.
93768         Fix grammar.
93769         (duplicate_node): Merge constraint field for all node types.
93770         (calc_eclosure_iter): Look at constraint field for all node types.
93771         * lib/regex_internal.c (create_cd_newstate): Don't look at
93772         opr.ctx_type.
93774 2008-05-14  Bruno Haible  <bruno@clisp.org>
93776         Help GCC to do better code generation.
93777         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
93778         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
93779         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
93780         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
93781         Declare with attribute 'malloc' if supported.
93783 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
93785         use "echo STR|wc -c" rather than unportable "expr length STR"
93786         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
93787         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
93789 2008-05-14  Jim Meyering  <meyering@redhat.com>
93791         use dd ibs=$n count=1 ... rather than less-portable head -c$n
93792         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
93793         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
93794         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
93795         via Collin Lasse.
93797 2008-05-14  Eric Blake  <ebb9@byu.net>
93799         Avoid quadratic growth in gl_LIBSOURCES.
93800         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
93801         Suggested by Bruno Haible.
93803         Test xmemdup0.
93804         * modules/xmemdup0-tests: New file.
93805         * tests/test-xmemdup0.c: Likewise.
93807 2008-05-13  Eric Blake  <ebb9@byu.net>
93809         Split xmemdup0 into its own module.
93810         * modules/xmemdup0: New file.
93811         * lib/xmemdup0.h: Likewise.
93812         * lib/xmemdup0.c: Likewise.
93813         * MODULES.html.sh (Memory management functions): Add xmemdup0.
93814         * lib/xalloc.h (xmemdup0): Remove.
93815         * lib/xmalloc.c (xmemdup0): Likewise.
93817 2008-05-13  Eric Blake  <ebb9@byu.net>
93818             Bruno Haible  <bruno@clisp.org>
93820         Reduce number of forks required during autoconf.
93821         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
93822         and gl_LIBSOURCES_DIR.
93823         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
93824         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
93825         m4_syscmd per file.
93826         <m4_foreach_w>: Move...
93827         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
93829 2008-05-13  Eric Blake  <ebb9@byu.net>
93831         * gnulib-tool: Fix various comment typos.
93833 2008-05-12  Bruno Haible  <bruno@clisp.org>
93835         Tailor the linebreaking algorithm.
93836         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
93838 2008-05-12  Bruno Haible  <bruno@clisp.org>
93840         Update to Unicode 5.0.0.
93841         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93842         LBP_JV, LBP_JT. Redistribute values.
93843         (unilbrk_table): Change size.
93844         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
93845         Unicode TR#14 rev. 22.
93846         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93847         LBP_JV, LBP_JT. Redistribute values.
93848         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
93849         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
93850         Update.
93851         * lib/unilbrk/lbrkprop1.h: Regenerated.
93852         * lib/unilbrk/lbrkprop2.h: Regenerated.
93853         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
93854         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
93855         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
93856         Likewise.
93857         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
93858         Likewise.
93859         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
93860         result.
93861         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
93862         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
93863         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
93864         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
93865         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
93866         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
93868 2008-05-11  Bruno Haible  <bruno@clisp.org>
93870         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
93872 2008-05-11  Bruno Haible  <bruno@clisp.org>
93874         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
93875         * modules/unilbrk/gen-lbrk: New file.
93877 2008-05-11  Bruno Haible  <bruno@clisp.org>
93879         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
93880         * m4/sha512.m4 (gl_SHA512): Likewise.
93882 2008-05-11  Jim Meyering  <meyering@redhat.com>
93884         New modules: crypto/sha256, crypto/sha512 (from coreutils)
93885         * modules/crypto/sha256: New file.
93886         * modules/crypto/sha512: Likewise.
93887         * lib/sha256.c: Likewise.
93888         * lib/sha256.h: Likewise.
93889         * lib/sha512.c: Likewise.
93890         * lib/sha512.h: Likewise.
93891         * lib/u64.h: Likewise.
93892         * m4/sha256.m4: Likewise.
93893         * m4/sha512.m4: Likewise.
93894         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
93896 2008-05-10  Bruno Haible  <bruno@clisp.org>
93898         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
93899         (Input/Output <stdio.h>): Add xprintf.
93900         (Signal handling <signal.h>): Add strsignal.
93901         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
93902         (Core language properties): Add func.
93903         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
93904         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
93905         strings.
93906         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
93907         (Input/output): New section.
93908         (File system functions): Add openat-die, stat-macros.
93909         (Networking functions): Add sockets.
93910         (Unicode string functions): Add unictype/*.
93911         (Support for building libraries and executables): Add gperf.
93912         (Support for building documentation): Add agpl-3.0.
93913         (Misc): Add nocrash.
93915 2008-05-10  Bruno Haible  <bruno@clisp.org>
93917         * modules/unictype/gen-ctype: New file.
93919 2008-05-10  Jim Meyering  <meyering@redhat.com>
93921         Make chdir-safer.c more efficient on a system with no symlinks.
93922         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
93923         also if ELOOP is zero.  Suggested by Bruno Haible.
93925         Make chdir-safer.c slightly safer.
93926         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
93927         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
93929         Avoid compile failure on systems without ELOOP (like mingw).
93930         * lib/chdir-safer.c (ELOOP): Define if not already defined.
93931         Reported by Bruno Haible.
93933 2008-05-10  Bruno Haible  <bruno@clisp.org>
93935         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
93936         (is_utf8_encoding): Use a case-insensitive comparison.
93937         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
93938         streq.
93940 2008-05-10  Bruno Haible  <bruno@clisp.org>
93942         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
93943         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
93944         * lib/unilbrk/ulc-common.h (iconv_string_length,
93945         iconv_string_keeping_offsets): Remove declarations.
93946         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
93947         Don't include <iconv.h>, streq.h, xsize.h.
93948         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
93949         conversion.
93950         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
93951         <iconv.h>, streq.h, xsize.h.
93952         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
93953         conversion.
93954         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
93955         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
93956         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
93957         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
93959 2008-05-10  Bruno Haible  <bruno@clisp.org>
93961         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
93962         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
93964         * modules/unilbrk/u32-width-linebreaks-tests: New file.
93965         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
93967         * modules/unilbrk/u16-width-linebreaks-tests: New file.
93968         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
93970         * modules/unilbrk/u8-width-linebreaks-tests: New file.
93971         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
93973         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
93974         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
93976         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
93977         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
93979         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
93980         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
93982         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
93983         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
93985 2008-05-10  Bruno Haible  <bruno@clisp.org>
93987         Split up 'linebreak' module.
93988         * lib/unilbrk.h: New file, based on lib/linebreak.h.
93989         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
93990         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
93991         modifications.
93992         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
93993         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
93994         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
93995         lib/linebreak.c.
93996         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
93997         lib/linebreak.c.
93998         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
93999         lib/linebreak.c.
94000         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
94001         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
94002         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
94003         lib/linebreak.c.
94004         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
94005         lib/linebreak.c.
94006         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
94007         lib/linebreak.c.
94008         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
94009         lib/linebreak.c.
94010         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
94011         lib/linebreak.c.
94012         * modules/unilbrk/base: New file.
94013         * modules/unilbrk/tables: New file.
94014         * modules/unilbrk/u8-possible-linebreaks: New file.
94015         * modules/unilbrk/u16-possible-linebreaks: New file.
94016         * modules/unilbrk/u32-possible-linebreaks: New file.
94017         * modules/unilbrk/ulc-common: New file.
94018         * modules/unilbrk/ulc-possible-linebreaks: New file.
94019         * modules/unilbrk/u8-width-linebreaks: New file.
94020         * modules/unilbrk/u16-width-linebreaks: New file.
94021         * modules/unilbrk/u32-width-linebreaks: New file.
94022         * modules/unilbrk/ulc-width-linebreaks: New file.
94023         * lib/linebreak.h: Remove file.
94024         * lib/linebreak.c: Remove file.
94025         * m4/linebreak.m4: Remove file.
94026         * modules/linebreak: Remove file.
94027         * NEWS: Mention the changes.
94029 2008-05-09  Eric Blake  <ebb9@byu.net>
94031         Add xmemdup0.
94032         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
94033         implementation.
94034         * lib/xmalloc.c (xmemdup0): New C implementation.
94036 2008-05-08  Bruno Haible  <bruno@clisp.org>
94038         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
94040 2008-05-07  Eric Blake  <ebb9@byu.net>
94042         Support cross-compilation of <wctype.h>.
94043         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
94044         AC_CACHE_CHECK.
94046 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
94048         * build-aux/vc-list-files: Add support for bzr.
94050 2008-05-03  Jim Meyering  <meyering@redhat.com>
94052         avoid failed assertion with tight malloc
94053         * tests/test-getndelim2.c: Correct an off-by-one assertion.
94055 2008-05-03  Simon Josefsson  <simon@josefsson.org>
94057         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
94058         are needed from arpa/inet.h.
94059         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
94060         Reported by Bruno Haible.
94062 2008-05-02  Jim Meyering  <meyering@redhat.com>
94064         avoid compilation error on FreeBSD 6
94065         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
94067 2008-05-01  Jim Meyering  <meyering@redhat.com>
94069         useless-if-before-free: correct --help's exit status description
94070         * build-aux/useless-if-before-free (usage): Like grep, exit 0
94071         for one or more matches, etc.  Reported by Bruno Haible.
94073         vc-list-files: make the stand-alone gnulib test work
94074         * modules/vc-list-files-tests (configure.ac):
94075         Define and AC_SUBST abs_aux_dir.
94076         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
94077         $(abs_top_srcdir) to each script and having each of them
94078         duplicate the work of setting PATH, set PATH here, using
94079         the new variable, abs_aux_dir instead.
94080         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
94081         * tests/test-vc-list-files-git.sh: Likewise.
94082         Reported by Bruno Haible.
94084 2008-05-01  Bruno Haible  <bruno@clisp.org>
94086         * lib/getndelim2.c (getndelim2): Fix newsize computation during
94087         reallocation. Rename 'done' to 'found_delimiter'.
94089 2008-05-01  Jim Meyering  <meyering@redhat.com>
94091         vc-list-files: accommodate /bin/sh like the one from Solaris 10
94092         * build-aux/vc-list-files: Use `...`, not $(...).
94094 2008-04-30  Jim Meyering  <meyering@redhat.com>
94096         add tests for vc-list-files
94097         * modules/vc-list-files-tests: New module.
94098         * tests/test-vc-list-files-cvs.sh: New file.
94099         * tests/test-vc-list-files-git.sh: New file.
94101         avoid a warning from gcc
94102         * lib/getndelim2.c (IF_LINT): Define.
94103         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
94105         vc-list-files: work properly with build-aux/cvsu, too
94106         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
94107         to all cvs-based clauses.
94109         vc-list-files: work properly in the CVS+awk case, too
94110         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
94112         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
94113         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
94114         take more than one file argument, so .  Add quotes, just in case $dir
94115         ever contains a shell meta-character.  Prompted by Soren Hansen in
94116         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
94118 2008-04-29  Eric Blake  <ebb9@byu.net>
94120         Optimize getndelim2 to use block operations when possible.
94121         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
94122         freadseek, and memchr2.
94123         * lib/getndelim2.c (getndelim2): Use them for block reads.
94125 2008-04-29  Bruno Haible  <bruno@clisp.org>
94127         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
94128         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94129         * modules/inet_ntop (Depends-on): Add extensions.
94130         * modules/inet_pton (Depends-on): Likewise.
94131         Reported by Simon Josefsson.
94133 2008-04-29  Jim Meyering  <meyering@redhat.com>
94135         When the is more than one match in a block, match all of them.
94136         * build-aux/useless-if-before-free: Iterate through each block
94137         until there are no more matches.
94139         Fix broken useless-if-before-free script.
94140         * build-aux/useless-if-before-free: Fix typo: missing "?" after
94141         the expression to match cast of argument to free-like function.
94143 2008-04-29  Eric Blake  <ebb9@byu.net>
94145         Use new header.
94146         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
94148 2008-04-29  Jim Meyering  <meyering@redhat.com>
94150         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
94151         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
94152         by gnulib to exist and to declare e.g., inet_ntop.
94153         Don't include "inet_ntop.h", now removed.
94155         * m4/arpa_inet_h.m4: Remove trailing blanks.
94157 2008-04-29  Eric Blake  <ebb9@byu.net>
94159         Silence valgrind on safe reads beyond potential array bounds.
94160         * lib/rawmemchr.valgrind: New file.
94161         * lib/strchrnul.valgrind: Likewise.
94162         * modules/rawmemchr (Files): Distribute new file.
94163         * modules/strchrnul (Files): Likewise.
94164         Suggested by Bruno Haible.
94166 2008-04-29  Bruno Haible  <bruno@clisp.org>
94168         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
94169         (inet_ntop, inet_pton): Change portability warning's wording.
94170         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
94171         Invoke gl_CHECK_NEXT_HEADERS.
94172         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
94173         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
94174         set ARPA_INET_H.
94175         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94176         * modules/arpa_inet (Description): No longer only for systems that
94177         lack it.
94178         (Depends-on): Add include_next.
94179         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
94180         HAVE_ARPA_INET_H.
94182 2008-04-29  Jim Meyering  <meyering@redhat.com>
94184         * modules/mkdir (License): Re-license as LGPLv2+.
94186 2008-04-29  Bruno Haible  <bruno@clisp.org>
94188         * modules/rawmemchr (Maintainer): Set to Eric.
94189         * modules/strchrnul (Maintainer): Likewise.
94191 2008-04-29  Simon Josefsson  <simon@josefsson.org>
94193         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
94194         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
94196         * modules/arpa_inet (arpa/inet.h): Use them.
94198 2008-04-28  Eric Blake  <ebb9@byu.net>
94200         Test getndelim2.
94201         * modules/getndelim2-tests: New file.
94202         * tests/test-getndelim2.c: Likewise.
94203         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
94204         stream.
94205         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
94207         * MODULES.html.sh: Document new module.
94209 2008-04-20  Bruno Haible  <bruno@clisp.org>
94211         * lib/c-stack.c (die): Use raise.
94212         * modules/c-stack (Depends-on): Add raise.
94214 2008-04-28  Bruno Haible  <bruno@clisp.org>
94216         Expect rpmatch to be declared.
94217         * lib/yesno.c (rpmatch): Remove declaration.
94219         Declare rpmatch.
94220         * lib/stdlib.in.h (rpmatch): New declaration.
94221         * lib/rpmatch.c: Include <stdlib.h> first.
94222         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
94223         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
94224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
94225         HAVE_RPMATCH.
94226         * modules/rpmatch (Depends-on): Add stdlib, extensions.
94227         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
94228         (Include): Set to <stdlib.h>.
94229         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
94230         HAVE_RPMATCH.
94231         * NEWS: Document the change.
94233 2008-04-28  Bruno Haible  <bruno@clisp.org>
94235         Change rpmatch to use nl_langinfo when appropriate.
94236         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
94237         (N_): New macro.
94238         (localized_pattern): New function/macro.
94239         (try): Remove match, nomatch arguments. Copy the pattern into safe
94240         memory before caching it.
94241         (rpmatch): Use localized_pattern. Add translator comments.
94242         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
94243         Suggested by Eric Blake.
94244         * modules/rpmatch (Depends-on): Add stdbool.
94246 2008-04-28  Eric Blake  <ebb9@byu.net>
94248         Add rawmemchr module, matching glibc.
94249         * modules/string (Makefile.am): New indicator.
94250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
94251         * lib/string.in.h (rawmemchr): Declare when appropriate.
94252         * modules/rawmemchr: New file.
94253         * m4/rawmemchr.m4: Likewise.
94254         * lib/rawmemchr.c: Likewise.
94255         * modules/rawmemchr-tests: Likewise.
94256         * tests/test-rawmemchr.c: Likewise.
94257         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
94258         module.
94259         * modules/strchrnul (Depends-on): Add rawmemchr.
94260         * lib/strchrnul.c (strchrnul): Optimize a corner case.
94262         Whitespace cleanup.
94263         * tests/test-strchrnul.c: Reindent.
94264         * lib/strchrnul.c: Likewise.
94266         Optimize and test strchrnul.
94267         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
94268         * modules/strchrnul-tests: New file.
94269         * tests/test-strchrnul.c: Likewise.
94271         Remove intprops dependency.
94272         * modules/memchr (Depends-on): Remove intprops.
94273         * modules/memrchr (Depends-on): Likewise.
94274         * modules/memchr2 (Depends-on): Likewise.
94275         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
94276         * lib/memrchr.c (__memrchr): Likewise.
94277         * lib/memrchr2.c (memchr2): Likewise.
94278         Reported by Simon Josefsson.
94280 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94282         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
94283         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94285 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94287         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
94289         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
94291         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
94293         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
94294         declarations.
94295         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
94297         * m4/inet_pton.m4: Don't check for header files.
94299         * m4/inet_ntop.m4: Don't check for header files.
94301 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94303         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
94304         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
94305         trigger for cygwin).
94306         Reported by Bruno Haible  <bruno@clisp.org>.
94308 2008-04-28  Bruno Haible  <bruno@clisp.org>
94310         * doc/posix-functions/strdup.texi: Mention mingw problem.
94312 2008-04-27  Bruno Haible  <bruno@clisp.org>
94314         * modules/stat-time-tests (Depends-on): Add sleep.
94315         * tests/test-stat-time.c (force_unlink): New function.
94316         (cleanup): Use it.
94317         (test_mtime): Remove the ctime related tests.
94318         (test_ctime): New function, containing the ctime related tests.
94319         (main): Call test_ctime, except on native Windows platforms.
94321 2008-04-27  Bruno Haible  <bruno@clisp.org>
94323         * lib/rpmatch.c (rpmatch): Add some comments.
94324         Reported by James Youngman <jay@gnu.org>.
94326 2008-04-27  Bruno Haible  <bruno@clisp.org>
94328         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
94329         quiet NaNs.
94331 2008-04-27  Bruno Haible  <bruno@clisp.org>
94333         Make test-yesno.sh work on mingw.
94334         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
94335         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
94336         (main): Set stdin to binary mode.
94337         * modules/yesno-tests (Depends-on): Add binary-io.
94339 2008-04-27  Bruno Haible  <bruno@clisp.org>
94341         Fix 'isfinite' on x86, x86_64, ia64 platforms.
94342         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
94343         argument that lie outside the IEEE 854 domain.
94344         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
94345         (gl_ISFINITE): Use it.
94346         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
94348 2008-04-27  Bruno Haible  <bruno@clisp.org>
94350         Allow local renaming in config.h.
94351         * lib/memrchr.c (memrchr): Don't undefine outside libc.
94353 2008-04-27  Bruno Haible  <bruno@clisp.org>
94355         * lib/memchr.c (__memchr): Change type of 'i'.
94356         * lib/memchr2.c (memchr2): Likewise.
94358 2008-04-26  Eric Blake  <ebb9@byu.net>
94359         and Bruno Haible  <bruno@clisp.org>
94361         Optimize and test memrchr.
94362         * modules/memrchr (Depends-on): Add intprops.
94363         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
94364         * modules/memrchr-tests: New file.
94365         * tests/test-memrchr.c: New file.
94367 2008-04-26  Bruno Haible  <bruno@clisp.org>
94369         Add tentative support for DragonFly BSD.
94370         * lib/stdio-impl.h: Add macros for DragonFly BSD.
94371         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
94372         fp.
94373         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94374         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
94375         * lib/fpurge.c (fpurge): Likewise.
94376         * lib/freadable.c (freaadable): Likewise.
94377         * lib/freadahead.c (freadahead): Likewise.
94378         * lib/freading.c (freading): Likewise.
94379         * lib/freadptr.c (freadptr): Likewise.
94380         * lib/freadseek.c (freadptrinc): Likewise.
94381         * lib/fseeko.c (fseeko): Likewise.
94382         * lib/fseterr.c (fseterr): Likewise.
94383         * lib/fwritable.c (fwritable): Likewise.
94384         * lib/fwriting.c (fwriting): Likewise.
94386 2008-04-26  Bruno Haible  <bruno@clisp.org>
94388         * lib/stdio-impl.h: New file.
94389         * lib/fbufmode.c: Include stdio-impl.h.
94390         (fbufmode): Use fp_, remove redundant #defines.
94391         * lib/fflush.c: Include stdio-impl.h.
94392         (clear_ungetc_buffer): Remove redundant #defines.
94393         * lib/fpurge.c: Include stdio-impl.h.
94394         (fpurge): Remove redundant #defines.
94395         * lib/freadable.c: Include stdio-impl.h.
94396         (freadable): Remove redundant #defines.
94397         * lib/freadahead.c: Include stdio-impl.h.
94398         (freadahead): Remove redundant #defines.
94399         * lib/freading.c: Include stdio-impl.h.
94400         (freading): Remove redundant #defines.
94401         * lib/freadptr.c: Include stdio-impl.h.
94402         (freadptr): Remove redundant #defines.
94403         * lib/freadseek.c: Include stdio-impl.h.
94404         (freadptrinc): Remove redundant #defines.
94405         * lib/fseeko.c: Include stdio-impl.h.
94406         (rpl_fseeko): Remove redundant #defines.
94407         * lib/fseterr.c: Include stdio-impl.h.
94408         (fseterr): Remove redundant #defines.
94409         * lib/fwritable.c: Include stdio-impl.h.
94410         (fwritable: Remove redundant #defines.
94411         * lib/fwriting.c: Include stdio-impl.h.
94412         (fwriting): Remove redundant #defines.
94413         * modules/fbufmode (Files): Add lib/stdio-impl.h.
94414         * modules/fflush (Files): Likewise.
94415         * modules/fpurge (Files): Likewise.
94416         * modules/freadable (Files): Likewise.
94417         * modules/freadahead (Files): Likewise.
94418         * modules/freading (Files): Likewise.
94419         * modules/freadptr (Files): Likewise.
94420         * modules/freadseek (Files): Likewise.
94421         * modules/fseeko (Files): Likewise.
94422         * modules/fseterr (Files): Likewise.
94423         * modules/fwritable (Files): Likewise.
94424         * modules/fwriting (Files): Likewise.
94426 2008-04-26  Bruno Haible  <bruno@clisp.org>
94428         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94429         restore_seek_optimization, update_fpos_cache): New functions, extracted
94430         from rpl_fflush.
94431         (rpl_fflush): Use them.
94432         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
94433         (gl_REPLACE_FFLUSH): Use it.
94435 2008-04-26  Bruno Haible  <bruno@clisp.org>
94437         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
94438         on Solaris.
94439         * tests/test-xstrtoimax.sh: Likewise.
94440         * tests/test-xstrtoumax.sh: Likewise.
94441         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94443 2008-04-26  Bruno Haible  <bruno@clisp.org>
94445         * modules/memchr-tests: New file.
94446         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
94448 2008-04-26  Eric Blake  <ebb9@byu.net>
94449             Bruno Haible  <bruno@clisp.org>
94451         * lib/memchr.c: Include intprops.h.
94452         (__memchr): Optimize parallel detection of matching bytes. Rename local
94453         variables. Add explanatory comments.
94455 2008-04-26  Bruno Haible  <bruno@clisp.org>
94457         Fix module 'memchr', broken since 2000-10-28.
94458         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
94460 2008-04-26  Bruno Haible  <bruno@clisp.org>
94462         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
94463         comments.
94465 2008-04-25  Eric Blake  <ebb9@byu.net>
94467         Use native fstatat on cygwin 1.7.0.
94468         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
94469         first.
94471 2008-04-23  Eric Blake  <ebb9@byu.net>
94473         Improve memchr2 performance.
94474         * lib/memchr2.c (memchr2): Further optimize parallel detection of
94475         NUL bytes.
94476         * modules/memchr2 (Depends-on): Use intprops.h.
94478 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94480         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
94481         an inline function instead of a CPP macro.  Patch by Ben Pfaff
94482         <blp@cs.stanford.edu>.
94484 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94486         * lib/arpa_inet.in.h: New file.
94488         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
94489         (Makefile.am): Sed in substitute header file.
94491         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
94492         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
94494         * modules/inet_ntop (configure.ac): Use
94495         gl_ARPA_INET_MODULE_INDICATOR.
94497         * modules/inet_pton (configure.ac): Use
94498         gl_ARPA_INET_MODULE_INDICATOR.
94500 2008-04-22  Jim Meyering  <meyering@redhat.com>
94502         * modules/verify (License): Re-license as LGPLv2+.
94504 2008-04-22  Simon Josefsson  <simon@josefsson.org>
94506         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
94507         parameter to void* as per POSIX standard (MinGW uses char*).
94509 2008-04-21  Bruno Haible  <bruno@clisp.org>
94511         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
94512         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
94513         Define to replacements if REPLACE_ISWCNTRL is 1.
94514         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
94515         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
94516         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
94517         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
94518         what it fixes.
94519         * doc/posix-functions/iswalpha.texi: Likewise.
94520         * doc/posix-functions/iswblank.texi: Likewise.
94521         * doc/posix-functions/iswcntrl.texi: Likewise.
94522         * doc/posix-functions/iswdigit.texi: Likewise.
94523         * doc/posix-functions/iswgraph.texi: Likewise.
94524         * doc/posix-functions/iswlower.texi: Likewise.
94525         * doc/posix-functions/iswprint.texi: Likewise.
94526         * doc/posix-functions/iswpunct.texi: Likewise.
94527         * doc/posix-functions/iswspace.texi: Likewise.
94528         * doc/posix-functions/iswupper.texi: Likewise.
94529         * doc/posix-functions/iswxdigit.texi: Likewise.
94530         Reported by Alain Guibert.
94532 2008-04-21  Bruno Haible  <bruno@clisp.org>
94534         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
94535         Patch by Alain Guibert.
94537 2008-04-21  Bruno Haible  <bruno@clisp.org>
94539         Fix test failures on mingw.
94540         * tests/test-xstrtol.c (print_no_progname): New function.
94541         (main): Install it in error_print_progname hook.
94542         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
94543         * tests/test-xstrtoimax.sh: Likewise.
94544         * tests/test-xstrtoumax.sh: Likewise.
94546 2008-04-21  Bruno Haible  <bruno@clisp.org>
94548         Fix test failure on mingw.
94549         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
94551 2008-04-21  Bruno Haible  <bruno@clisp.org>
94553         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
94554         Actually assign a value.
94556 2008-04-20  Bruno Haible  <bruno@clisp.org>
94558         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
94559         take 2.
94560         * lib/canonicalize.c (canonicalize_file_name): Elide if the
94561         'canonicalize-lgpl' module is also used.
94562         * lib/canonicalize-lgpl.c: Undo last change.
94563         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
94565 2008-04-20  Bruno Haible  <bruno@clisp.org>
94567         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
94568         config.h. Provide _mkdir based fallback for mingw.
94569         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
94570         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
94571         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
94572         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
94573         rather than defining mkdir in config.h.
94574         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
94575         (gl_SYS_STAT_H_DEFAULTS): New macro.
94576         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
94577         HAVE_IO_H any more.
94578         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
94579         HAVE_DECL_MKDIR and HAVE_IO_H.
94581 2008-04-20  Bruno Haible  <bruno@clisp.org>
94583         * lib/isapipe.c: Port to native Windows platforms.
94585 2008-04-20  Bruno Haible  <bruno@clisp.org>
94587         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
94589 2008-04-21  Eric Blake  <ebb9@byu.net>
94591         Work around preprocessors that don't handle UINTMAX_MAX.
94592         * lib/memchr2.c (memchr2): Avoid embedded #if.
94593         Reported by Alain Guibert, fix suggested by Bruno Haible.
94595 2008-04-21  Simon Josefsson  <simon@josefsson.org>
94597         * doc/posix-functions/strftime.texi (strftime): Explain better
94598         Windows incompatibility.  Suggested by Micah Cowan
94599         <micah@cowan.name>.
94601 2008-04-20  Bruno Haible  <bruno@clisp.org>
94603         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
94604         unistr/u8-mblen.
94606 2008-04-20  Bruno Haible  <bruno@clisp.org>
94608         Fix test failure on platforms with non-GNU iconv.
94609         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
94610         (U_TO_U8): Use it, rather than u16_to_u8.
94611         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
94612         units at the end of the input string.
94613         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
94615 2008-04-20  Bruno Haible  <bruno@clisp.org>
94617         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
94618         when the resulting length is 0.
94619         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
94621 2008-04-20  Bruno Haible  <bruno@clisp.org>
94623         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
94624         works.
94625         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
94627 2008-04-20  Bruno Haible  <bruno@clisp.org>
94629         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
94630         * modules/tsearch-tests (configure.ac): Test for initstate function.
94632 2008-04-20  Bruno Haible  <bruno@clisp.org>
94634         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
94635         for nlink_t if missing.
94636         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
94638 2008-04-19  Bruno Haible  <bruno@clisp.org>
94640         Work around snprintf bug on Linux libc5.
94641         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
94642         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94643         gl_SNPRINTF_SIZE1.
94644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94645         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
94646         that test failed.
94647         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
94648         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
94649         * modules/snprintf (Files): Add m4/printf.m4.
94650         * modules/vsnprintf (Files): Likewise.
94651         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
94652         * doc/posix-functions/vsnprintf.texi: Likewise.
94654 2008-04-19  Bruno Haible  <bruno@clisp.org>
94656         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
94657         from 0.0058 to less than 10^-7.
94659 2008-04-19  Bruno Haible  <bruno@clisp.org>
94661         Fix rounding when a precision is given.
94662         * lib/vasnprintf.c (is_borderline): New function.
94663         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
94664         9...9x.
94665         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
94666         %e, %g.
94667         * tests/test-vasprintf-posix.c (test_function): Likewise.
94668         * tests/test-snprintf-posix.h (test_function): Likewise.
94669         * tests/test-sprintf-posix.h (test_function): Likewise.
94670         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
94671         * tests/test-printf-posix.h (test_function): Likewise.
94672         * tests/test-printf-posix.output: Update.
94673         Reported by John Darrington <john@darrington.wattle.id.au> via
94674         Ben Pfaff <blp@cs.stanford.edu>.
94676 2008-04-18  Simon Josefsson  <simon@josefsson.org>
94678         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
94679         Suggested by Bruno Haible <bruno@clisp.org>.
94681 2008-04-17  Bruno Haible  <bruno@clisp.org>
94683         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
94684         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
94685         implementation.
94686         Patch by Bruce Merry <bmerry@gmail.com>.
94688 2008-04-17  Simon Josefsson  <simon@josefsson.org>
94690         * doc/posix-functions/strftime.texi (strftime): Mention that %e
94691         doesn't work under Windows.
94693 2008-04-16  Bruno Haible  <bruno@clisp.org>
94695         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
94696         New macros.
94697         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
94698         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
94699         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
94700         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
94701         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
94702         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
94703         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
94704         macros.
94705         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
94706         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
94707         Northern Sotho, Uighur.
94709 2008-04-16  Bruno Haible  <bruno@clisp.org>
94711         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
94712         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
94713         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
94714         Reported by Daniel Bergström <daniel@octocode.com>.
94716 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
94717             Bruno Haible  <bruno@clisp.org>
94719         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
94720         function.
94721         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
94722         New functions, mostly extracted from gl_locale_name_default.
94723         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
94725 2008-04-16  Eric Blake  <ebb9@byu.net>
94727         Adjust strtod detection to catch glibc 2.7 bug.
94728         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
94729         Reported by John Gatewood Ham.
94731 2008-04-16  Bruno Haible  <bruno@clisp.org>
94733         Add tentative support for Linux libc5.
94734         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
94735         * lib/fpurge.c (fpurge): Likewise.
94736         * lib/freadable.c (freadable): Likewise.
94737         * lib/freadahead.c (freadahead): Likewise.
94738         * lib/freading.c (freading): Likewise.
94739         * lib/freadptr.c (freadptr): Likewise.
94740         * lib/freadseek.c (freadptrinc): Likewise.
94741         * lib/fseeko.c (rpl_fseeko): Likewise.
94742         * lib/fseterr.c (fseterr): Likewise.
94743         * lib/fwritable.c (fwritable): Likewise.
94744         * lib/fwriting.c (fwriting): Likewise.
94745         Reported by Alain Guibert <alguibert+bts@free.fr>.
94747 2008-04-15  Bruno Haible  <bruno@clisp.org>
94749         * modules/mathl (configure.ac): Define module indicator.
94751 2008-04-15  Bruno Haible  <bruno@clisp.org>
94753         * lib/logl.c (logl): Remove unused variables.
94755 2008-04-15  Bruno Haible  <bruno@clisp.org>
94757         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
94758         fails.
94760 2008-04-15  Bruno Haible  <bruno@clisp.org>
94762         * lib/trim.c (trim2): Fix argument of isspace() macro.
94764 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
94766         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
94767         to 0.
94768         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
94770 2008-04-14  Bruno Haible  <bruno@clisp.org>
94772         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
94773         AC_LANG_PROGRAM argument.
94774         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
94775         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
94776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
94777         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
94778         * m4/math_h.m4 (gl_MATH_H): Likewise.
94779         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
94780         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94781         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
94782         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
94783         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
94784         * m4/regex.m4 (gl_REGEX): Likewise.
94785         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
94786         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
94787         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94788         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
94789         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
94790         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94791         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
94792         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
94794 2008-04-14  Jim Meyering  <meyering@redhat.com>
94796         test-strtod: fix typos: s/abs/fabs/
94797         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
94799 2008-04-13  Bruno Haible  <bruno@clisp.org>
94801         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
94802         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
94803         module is also used and while not building the reloc-wrapper.
94805 2008-04-13  Bruno Haible  <bruno@clisp.org>
94807         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
94809 2008-04-13  Bruno Haible  <bruno@clisp.org>
94811         Fix AIX compilation failure introduced on 2008-04-02.
94812         * tests/test-frexp.c (exp): Undefine before redefining.
94813         * tests/test-frexpl.c (exp): Likewise.
94815 2008-04-13  Bruno Haible  <bruno@clisp.org>
94817         Work around a HP-UX stdio bug.
94818         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
94819         * tests/test-ftello.c (main): Likewise.
94820         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
94821         * doc/posix-functions/ftello.texi: Likewise.
94823 2008-04-13  Bruno Haible  <bruno@clisp.org>
94825         Make test-signbit pass on HP-UX/hppa.
94826         * tests/test-signbit.c (minus_zerol): New variable.
94827         (test_signbitl): Use it.
94829 2008-04-13  Bruno Haible  <bruno@clisp.org>
94831         Make truncl work on OSF/1 4.0.
94832         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
94833         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94834         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
94836         HAVE_DECL_TRUNCL.
94837         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
94838         HAVE_DECL_TRUNCL.
94839         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
94841 2008-04-13  Bruno Haible  <bruno@clisp.org>
94843         * lib/unictype.h: Remove trailing comma from enumeration definitions.
94845 2008-04-13  Bruno Haible  <bruno@clisp.org>
94847         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
94848         expression, so as to avoid HP-UX 11 cc compiler bug.
94850 2008-04-13  Bruno Haible  <bruno@clisp.org>
94852         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
94854 2008-04-13  Bruno Haible  <bruno@clisp.org>
94856         * lib/git-merge-changelog.c: Remove empty declaration outside of
94857         functions.
94859 2008-04-13  Bruno Haible  <bruno@clisp.org>
94861         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
94863 2008-04-13  Bruno Haible  <bruno@clisp.org>
94865         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
94866         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
94867         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
94868         also if it exists but lacks definitions of the SHUT_* macros.
94869         * modules/sys_socket (Description): Update.
94870         Reported by Elbert Pol <e.pol@chello.nl>.
94872 2008-04-13  Bruno Haible  <bruno@clisp.org>
94874         * lib/localcharset.c (OS2): Don't redefine if already defined.
94875         Reported by Elbert Pol <e.pol@chello.nl>.
94877 2008-04-13  Bruno Haible  <bruno@clisp.org>
94879         * lib/binary-io.h [__EMX__]: Include <io.h>.
94880         Reported by Elbert Pol <e.pol@chello.nl>.
94882 2008-04-12  Bruno Haible  <bruno@clisp.org>
94884         * lib/fpucw.h: Enable the definitions also for x86_64.
94885         Needed for NetBSD/x86_64.
94886         Reported by Thomas Klausner <tk@giga.or.at>.
94888 2008-04-12  Bruno Haible  <bruno@clisp.org>
94890         * tests/test-strtod.c: Include isnand.h.
94891         (main): Use isnand instead of isnan.
94892         Reported by Jim Meyering.
94894 2008-04-12  Bruno Haible  <bruno@clisp.org>
94896         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
94897         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
94899 2008-04-12  Jim Meyering  <meyering@redhat.com>
94901         * m4/math_h.m4 (gl_MATH_H): Fix typos.
94903 2008-04-12  Bruno Haible  <bruno@clisp.org>
94905         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
94906         Reported by Elbert Pol <e.pol@chello.nl>.
94908 2008-04-12  Eric Blake  <ebb9@byu.net>
94910         Work around Solaris 10 math.h bug.
94911         * m4/math_h.m4 (gl_MATH_H): Check for bug.
94912         (gl_MATH_H_DEFAULTS): Set up default.
94913         * modules/math (Makefile.am): Replace new indicators.
94914         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
94915         * tests/test-math.c (main): Test this.
94916         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
94917         * doc/posix-headers/math.texi (math.h): Mention bug.
94918         Reported by Nelson H. F. Beebe and Jim Meyering.
94920 2008-04-11  Bruno Haible  <bruno@clisp.org>
94922         Adapt to future versions of Apple GCC.
94923         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
94924         Reported by Peter O'Gorman <peter@pogma.com>.
94926 2008-04-11  Bruno Haible  <bruno@clisp.org>
94928         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
94930 2008-04-11  Bruno Haible  <bruno@clisp.org>
94932         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
94934         * modules/getaddrinfo-tests (Makefile.am): Define
94935         test_getaddrinfo_LDADD.
94937 2008-04-11  Bruno Haible  <bruno@clisp.org>
94939         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
94940         (init): Fix syntax error.
94941         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
94942         is declared.
94944 2008-04-11  Bruno Haible  <bruno@clisp.org>
94946         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
94947         * modules/glob (Depends-on): Add stdbool.
94949 2008-04-11  Bruno Haible  <bruno@clisp.org>
94951         * lib/trim.c: Include <string.h>.
94953 2008-04-11  Eric Blake  <ebb9@byu.net>
94955         Avoid compile failure on OS/2.
94956         * lib/regex_internal.h (internal_function): Disable optimization
94957         on OS/2 (__EMX__), where it caused compiler error.
94958         Reported by Elbert Pol.
94960 2008-04-11  Bruno Haible  <bruno@clisp.org>
94962         Flush the standard error stream before aborting. Needed on mingw.
94963         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
94964         * tests/test-array_list.c (ASSERT): Likewise.
94965         * tests/test-array_oset.c (ASSERT): Likewise.
94966         * tests/test-avltree_list.c (ASSERT): Likewise.
94967         * tests/test-avltree_oset.c (ASSERT): Likewise.
94968         * tests/test-avltreehash_list.c (ASSERT): Likewise.
94969         * tests/test-binary-io.c (ASSERT): Likewise.
94970         * tests/test-byteswap.c (ASSERT): Likewise.
94971         * tests/test-c-ctype.c (ASSERT): Likewise.
94972         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
94973         * tests/test-c-strcasestr.c (ASSERT): Likewise.
94974         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
94975         * tests/test-c-strstr.c (ASSERT): Likewise.
94976         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
94977         * tests/test-canonicalize.c (ASSERT): Likewise.
94978         * tests/test-carray_list.c (ASSERT): Likewise.
94979         * tests/test-ceilf1.c (ASSERT): Likewise.
94980         * tests/test-ceilf2.c (ASSERT): Likewise.
94981         * tests/test-ceill.c (ASSERT): Likewise.
94982         * tests/test-count-one-bits.c (ASSERT): Likewise.
94983         * tests/test-fbufmode.c (ASSERT): Likewise.
94984         * tests/test-fflush2.c (ASSERT): Likewise.
94985         * tests/test-floorf1.c (ASSERT): Likewise.
94986         * tests/test-floorf2.c (ASSERT): Likewise.
94987         * tests/test-floorl.c (ASSERT): Likewise.
94988         * tests/test-fopen.c (ASSERT): Likewise.
94989         * tests/test-fpending.c (ASSERT): Likewise.
94990         * tests/test-fprintf-posix.c (ASSERT): Likewise.
94991         * tests/test-fpurge.c (ASSERT): Likewise.
94992         * tests/test-freadable.c (ASSERT): Likewise.
94993         * tests/test-freadahead.c (ASSERT): Likewise.
94994         * tests/test-freading.c (ASSERT): Likewise.
94995         * tests/test-freadptr.c (ASSERT): Likewise.
94996         * tests/test-freadptr2.c (ASSERT): Likewise.
94997         * tests/test-freadseek.c (ASSERT): Likewise.
94998         * tests/test-freopen.c (ASSERT): Likewise.
94999         * tests/test-frexp.c (ASSERT): Likewise.
95000         * tests/test-frexpl.c (ASSERT): Likewise.
95001         * tests/test-fseek.c (ASSERT): Likewise.
95002         * tests/test-fseeko.c (ASSERT): Likewise.
95003         * tests/test-fstrcmp.c (ASSERT): Likewise.
95004         * tests/test-ftell.c (ASSERT): Likewise.
95005         * tests/test-ftello.c (ASSERT): Likewise.
95006         * tests/test-func.c (ASSERT): Likewise.
95007         * tests/test-fwritable.c (ASSERT): Likewise.
95008         * tests/test-fwriting.c (ASSERT): Likewise.
95009         * tests/test-getdelim.c (ASSERT): Likewise.
95010         * tests/test-getline.c (ASSERT): Likewise.
95011         * tests/test-i-ring.c (ASSERT): Likewise.
95012         * tests/test-iconv-utf.c (ASSERT): Likewise.
95013         * tests/test-iconv.c (ASSERT): Likewise.
95014         * tests/test-isfinite.c (ASSERT): Likewise.
95015         * tests/test-isnand.c (ASSERT): Likewise.
95016         * tests/test-isnanf.c (ASSERT): Likewise.
95017         * tests/test-isnanl.h (ASSERT): Likewise.
95018         * tests/test-ldexpl.c (ASSERT): Likewise.
95019         * tests/test-linked_list.c (ASSERT): Likewise.
95020         * tests/test-linkedhash_list.c (ASSERT): Likewise.
95021         * tests/test-localename.c (ASSERT): Likewise.
95022         * tests/test-lseek.c (ASSERT): Likewise.
95023         * tests/test-mbscasecmp.c (ASSERT): Likewise.
95024         * tests/test-mbscasestr1.c (ASSERT): Likewise.
95025         * tests/test-mbscasestr2.c (ASSERT): Likewise.
95026         * tests/test-mbscasestr3.c (ASSERT): Likewise.
95027         * tests/test-mbscasestr4.c (ASSERT): Likewise.
95028         * tests/test-mbschr.c (ASSERT): Likewise.
95029         * tests/test-mbscspn.c (ASSERT): Likewise.
95030         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
95031         * tests/test-mbspbrk.c (ASSERT): Likewise.
95032         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
95033         * tests/test-mbsrchr.c (ASSERT): Likewise.
95034         * tests/test-mbsspn.c (ASSERT): Likewise.
95035         * tests/test-mbsstr1.c (ASSERT): Likewise.
95036         * tests/test-mbsstr2.c (ASSERT): Likewise.
95037         * tests/test-mbsstr3.c (ASSERT): Likewise.
95038         * tests/test-memchr2.c (ASSERT): Likewise.
95039         * tests/test-memmem.c (ASSERT): Likewise.
95040         * tests/test-open.c (ASSERT): Likewise.
95041         * tests/test-printf-frexp.c (ASSERT): Likewise.
95042         * tests/test-printf-frexpl.c (ASSERT): Likewise.
95043         * tests/test-printf-posix.c (ASSERT): Likewise.
95044         * tests/test-quotearg.c (ASSERT): Likewise.
95045         * tests/test-rbtree_list.c (ASSERT): Likewise.
95046         * tests/test-rbtree_oset.c (ASSERT): Likewise.
95047         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
95048         * tests/test-round1.c (ASSERT): Likewise.
95049         * tests/test-roundf1.c (ASSERT): Likewise.
95050         * tests/test-roundl.c (ASSERT): Likewise.
95051         * tests/test-signbit.c (ASSERT): Likewise.
95052         * tests/test-sleep.c (ASSERT): Likewise.
95053         * tests/test-snprintf-posix.c (ASSERT): Likewise.
95054         * tests/test-snprintf.c (ASSERT): Likewise.
95055         * tests/test-sprintf-posix.c (ASSERT): Likewise.
95056         * tests/test-stat-time.c (ASSERT): Likewise.
95057         * tests/test-strcasestr.c (ASSERT): Likewise.
95058         * tests/test-strerror.c (ASSERT): Likewise.
95059         * tests/test-striconv.c (ASSERT): Likewise.
95060         * tests/test-striconveh.c (ASSERT): Likewise.
95061         * tests/test-striconveha.c (ASSERT): Likewise.
95062         * tests/test-strsignal.c (ASSERT): Likewise.
95063         * tests/test-strstr.c (ASSERT): Likewise.
95064         * tests/test-strtod.c (ASSERT): Likewise.
95065         * tests/test-trunc1.c (ASSERT): Likewise.
95066         * tests/test-trunc2.c (ASSERT): Likewise.
95067         * tests/test-truncf1.c (ASSERT): Likewise.
95068         * tests/test-truncf2.c (ASSERT): Likewise.
95069         * tests/test-truncl.c (ASSERT): Likewise.
95070         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
95071         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
95072         * tests/test-vasnprintf.c (ASSERT): Likewise.
95073         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
95074         * tests/test-vasprintf.c (ASSERT): Likewise.
95075         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
95076         * tests/test-vprintf-posix.c (ASSERT): Likewise.
95077         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
95078         * tests/test-vsnprintf.c (ASSERT): Likewise.
95079         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
95080         * tests/test-wcwidth.c (ASSERT): Likewise.
95081         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
95082         * tests/test-xprintf-posix.c (ASSERT): Likewise.
95083         * tests/test-xvasprintf.c (ASSERT): Likewise.
95084         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
95085         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
95086         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
95087         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
95088         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
95089         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
95090         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
95091         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
95092         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
95093         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
95094         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
95095         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
95096         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
95097         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
95098         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
95099         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
95100         * tests/unictype/test-block_list.c (ASSERT): Likewise.
95101         * tests/unictype/test-block_of.c (ASSERT): Likewise.
95102         * tests/unictype/test-block_test.c (ASSERT): Likewise.
95103         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
95104         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
95105         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
95106         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
95107         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
95108         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
95109         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
95110         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
95111         * tests/unictype/test-combining.c (ASSERT): Likewise.
95112         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
95113         * tests/unictype/test-digit.c (ASSERT): Likewise.
95114         * tests/unictype/test-mirror.c (ASSERT): Likewise.
95115         * tests/unictype/test-numeric.c (ASSERT): Likewise.
95116         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
95117         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
95118         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
95119         * tests/unictype/test-scripts.c (ASSERT): Likewise.
95120         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
95121         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
95122         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
95123         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
95124         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
95125         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
95126         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
95127         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
95128         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
95129         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
95130         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
95131         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
95132         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
95133         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
95134         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
95135         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
95136         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
95137         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
95138         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
95139         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
95140         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
95141         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
95142         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
95143         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
95144         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
95145         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
95146         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
95147         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
95148         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
95149         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
95150         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
95151         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
95152         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
95153         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
95154         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
95155         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
95156         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
95157         Reported by Eric Blake.
95159 2008-04-11  Bruno Haible  <bruno@clisp.org>
95161         * lib/wchar.in.h: Tweak comment.
95163 2008-04-11  Bruno Haible  <bruno@clisp.org>
95165         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
95166         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
95167         gl_COMMON.
95168         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
95170 2008-04-11  Bruno Haible  <bruno@clisp.org>
95172         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
95174 2008-04-11  Simon Josefsson  <simon@josefsson.org>
95176         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
95177         of attempting to use non-existing /dev/*random.  Based on patch
95178         from Adam Strzelecki <ono@java.pl> in
95179         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
95181 2008-04-08  Bruno Haible  <bruno@clisp.org>
95183         Add tentative support for emx+gcc.
95184         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
95185         * lib/fpurge.c (fpurge): Likewise.
95186         * lib/freadable.c (freadable): Likewise.
95187         * lib/freadahead.c (freadahead): Likewise.
95188         * lib/freading.c (freading): Likewise.
95189         * lib/freadptr.c (freadptr): Likewise.
95190         * lib/freadseek.c (freadptrinc): Likewise.
95191         * lib/fseeko.c (rpl_fseeko): Likewise.
95192         * lib/fseterr.c (fseterr): Likewise.
95193         * lib/fwritable.c (fwritable): Likewise.
95194         * lib/fwriting.c (fwriting): Likewise.
95195         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
95197 2008-04-09  Eric Blake  <ebb9@byu.net>
95199         Avoid some autoconf warnings.
95200         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
95201         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
95202         * m4/afs.m4 (gl_AFS): Likewise.
95203         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
95204         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
95205         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95206         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
95207         (gl_INTEGER_TYPE_SUFFIX): Likewise.
95208         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
95209         (AC_CHECK_DECLS_ONCE): Likewise.
95210         Rename file...
95211         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
95212         gnulib-tool requires autoconf 2.59 or better.
95213         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
95215 2008-04-08  Eric Blake  <ebb9@byu.net>
95217         Use 'git describe --match' if present (added in git 1.5.5).
95218         * build-aux/git-version-gen: Limit result to tags that match 'v*'
95219         if possible.
95221 2008-04-08  Bruno Haible  <bruno@clisp.org>
95223         Add tentative support for OpenServer.
95224         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
95225         _ptr, _cnt.
95226         * lib/fpurge.c (fpurge): Likewise.
95227         * lib/freadable.c (freadable): Likewise.
95228         * lib/freadahead.c (freadahead): Likewise.
95229         * lib/freading.c (freading): Likewise.
95230         * lib/freadptr.c (freadptr): Likewise.
95231         * lib/freadseek.c (freadptrinc): Likewise.
95232         * lib/fseeko.c (rpl_fseeko): Likewise.
95233         * lib/fseterr.c (fseterr): Likewise.
95234         * lib/fwritable.c (fwritable): Likewise.
95235         * lib/fwriting.c (fwriting): Likewise.
95236         Reported by Roger Cornelius <rac@tenzing.org> and
95237         Brian K. White <brian@aljex.com>.
95239 2008-04-06  Jim Meyering  <meyering@redhat.com>
95241         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
95243 2008-04-06  Bruno Haible  <bruno@clisp.org>
95245         Avoid possible error with non-ASCII bytes in UTF-8 locales.
95246         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
95247         * tests/test-printf-posix.sh: Likewise.
95248         * tests/test-vfprintf-posix.sh: Likewise.
95249         * tests/test-vprintf-posix.sh: Likewise.
95250         * tests/test-xprintf-posix.sh: Likewise.
95252 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95254         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
95255         hide error from 'ls', needed on OS/2.
95256         Report by Elbert Pol <elbert.pol@gmail.com>.
95258 2008-04-04  Eric Blake  <ebb9@byu.net>
95260         Make test-fseeko.c failures meaningful.
95261         * tests/test-fseeko.c: Print line number on failure.
95262         * tests/test-fseek.c: Likewise.
95263         Reported by Nelson H. F. Beebe.
95265         Improve strtod bug detection check.
95266         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
95267         required for Solaris 10.
95268         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
95270 2008-04-04  Bruno Haible  <bruno@clisp.org>
95272         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
95273         by m4/setenv.m4.
95275 2008-04-03  Eric Blake  <ebb9@byu.net>
95277         Ensure sane .version contents.
95278         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
95279         version string.
95280         * build-aux/git-version-gen: Improve documentation.
95282         Make GNU make output nicer.
95283         * top/GNUmakefile [!_have-Makefile]: Add dependency on
95284         MAKECMDGOALS to enforce message for all command line targets.  Set
95285         srcdir for use in maint.mk.
95287         Another maintainer tweak.
95288         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
95289         a target that regenerates version.
95291 2008-04-03  Jim Meyering  <meyering@redhat.com>
95293         vc-list-files: don't cause coreutils "make po-check" failure
95294         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
95296 2008-04-03  Eric Blake  <ebb9@byu.net>
95298         Allow VPATH usage of vc-list-files.
95299         * build-aux/vc-list-files (scriptversion): Add timestamp.
95300         (options): Add --help, --version, -C.
95301         (CVS): Support installed cvsu.
95303 2008-04-02  Bruno Haible  <bruno@clisp.org>
95305         Avoid some "statement with no effect" warnings from gcc.
95306         * tests/test-wctype.c (main): Explicitly ignore unused values.
95307         Reported by Jim Meyering.
95309 2008-04-02  Jim Meyering  <meyering@redhat.com>
95311         Avoid some warnings from "gcc -Wshadow".
95312         * tests/test-frexp.c (exp): Define to a different identifier.
95313         * tests/test-frexpl.c (exp): Likewise.
95315 2008-04-03  Jim Meyering  <meyering@redhat.com>
95317         bootstrap: remove dangling *.[ch] symlinks from lib
95318         * build-aux/bootstrap [dangling symlink removal]: Move find's
95319         -depth option to precede all others, to avoid a warning.
95320         Remove *.[ch] files too, and from "$source_base" (usually lib/).
95322 2008-04-02  Bruno Haible  <bruno@clisp.org>
95324         Avoid some warnings from "gcc -Wshadow".
95325         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
95326         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
95327         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
95328         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
95329         Reported by Jim Meyering.
95331 2008-04-01  Bruno Haible  <bruno@clisp.org>
95333         Fix test to work on IRIX 6.5 with cc.
95334         * tests/test-math.c (numeric_equal): New function.
95335         (main): Use it.
95337 2008-04-01  Bruno Haible  <bruno@clisp.org>
95339         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
95341 2008-04-01  Bruno Haible  <bruno@clisp.org>
95343         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
95344         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95345         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
95346         (Depends-on): Remove math.
95348         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
95349         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95350         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
95351         (Depends-on): Remove math.
95353         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
95354         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95355         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
95356         (Depends-on): Remove math.
95357         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
95358         (Depends-on): Remove math.
95360         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
95361         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95362         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
95363         (Depends-on): Remove math.
95364         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
95365         (Depends-on): Remove math.
95367         * tests/test-round1.c: Include nan.h.
95368         (main): Use NaNd instead of NAN.
95369         * modules/round-tests (Files): Add tests/nan.h.
95371         * tests/test-trunc1.c: Include nan.h.
95372         (main): Use NaNd instead of NAN.
95373         * modules/trunc-tests (Files): Add tests/nan.h.
95375         * tests/test-roundf1.c: Include nan.h.
95376         (main): Use NaNf instead of NAN.
95377         * modules/roundf-tests (Files): Add tests/nan.h.
95379         * tests/test-truncf1.c: Include nan.h.
95380         (main): Use NaNf instead of NAN.
95381         * modules/truncf-tests (Files): Add tests/nan.h.
95383         * tests/test-ceilf1.c: Include nan.h.
95384         (main): Use NaNf instead of NAN.
95385         * modules/ceilf-tests (Files): Add tests/nan.h.
95387         * tests/test-floorf1.c: Include nan.h.
95388         (main): Use NaNf instead of NAN.
95389         * modules/floorf-tests (Files): Add tests/nan.h.
95391         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
95392         (main): Use NaNf instead of NAN.
95393         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
95395         * tests/test-isnand.c: Include nan.h instead of <math.h>.
95396         (main): Use NaNd instead of NAN.
95397         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
95399         * tests/test-frexp.c: Include nan.h.
95400         (main): Use NaNd instead of NAN.
95401         * modules/frexp-tests (Files): Add tests/nan.h.
95403         * lib/isnan.c: Don't include <math.h>.
95404         (FUNC): Don't use NAN macro.
95405         * modules/isnand-nolibm (Depends-on): Remove math.
95406         * modules/isnanf-nolibm (Depends-on): Remove math.
95407         * modules/isnanl (Depends-on): Remove math.
95408         * modules/isnanl-nolibm (Depends-on): Remove math.
95410         * tests/nan.h: New file.
95412 2008-04-01  Eric Blake  <ebb9@byu.net>
95414         Fix typos.
95415         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
95416         values to be the right type.
95418         For now, cater to gnulib strtod inaccuracies.
95419         * tests/test-strtod.c (main): Allow 1-ulp error on expected
95420         fractional results.  While not as nice from a QoI perspective, it
95421         is a quicker patch than correctly implementing decimal to binary
95422         rounding.
95424 2008-03-31  Eric Blake  <ebb9@byu.net>
95426         Guarantee a definition of NAN.
95427         * lib/math.in.h (NAN): Define if missing.
95428         * tests/test-math.c (main): Test it.
95429         * doc/posix-headers/math.texi (math.h): Document this.
95430         * lib/isnan.c (rpl_isnand): Use it.
95431         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
95432         * tests/test-floorf1.c (NaN): Likewise.
95433         * tests/test-frexp.c (NaN): Likewise.
95434         * tests/test-isnand.c (NaN): Likewise.
95435         * tests/test-isnanf.c (NaN): Likewise.
95436         * tests/test-round1.c (NaN): Likewise.
95437         * tests/test-roundf1.c (NaN): Likewise.
95438         * tests/test-snprintf-posix.h (NaN): Likewise.
95439         * tests/test-sprintf-posix.h (NaN): Likewise.
95440         * tests/test-trunc1.c (NaN): Likewise.
95441         * tests/test-truncf1.c (NaN): Likewise.
95442         * tests/test-vasnprintf-posix.c (NaN): Likewise.
95443         * tests/test-vasprintf-posix.c (NaN): Likewise.
95444         * modules/isnand-nolibm (Depends-on): Add math.
95445         * modules/isnanf-nolibm (Depends-on): Likewise.
95446         * modules/isnanl (Depends-on): Likewise.
95447         * modules/isnanl-nolibm (Depends-on): Likewise.
95448         * modules/snprintf-posix-tests (Depends-on): Likewise.
95449         * modules/sprintf-posix-tests (Depends-on): Likewise.
95450         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
95451         * modules/vsprintf-posix-tests (Depends-on): Likewise.
95452         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
95453         * modules/vasprintf-posix-tests (Depends-on): Likewise.
95455 2008-03-31  Bruno Haible  <bruno@clisp.org>
95457         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
95458         * doc/posix-functions/strtod.texi: Likewise.
95460 2008-03-31  Bruno Haible  <bruno@clisp.org>
95462         * tests/test-strtod.c (main): Don't use C99 syntax.
95464 2008-03-31  Bruno Haible  <bruno@clisp.org>
95466         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
95467         Reported by Eric Blake.
95469 2008-03-31  Jim Meyering  <meyering@redhat.com>
95471         Don't compare actual signbit return values.
95472         * tests/test-strtod.c (main): Rather, compare only their
95473         zero/non-zero nature.
95475 2008-03-31  Eric Blake  <ebb9@byu.net>
95477         More strtod documentation.
95478         * doc/posix-functions/strtod.texi (strtod): Interpret more test
95479         failures as distinct bugs.
95481 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
95483         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
95484         Problem reported by Erik Benada in
95485         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
95487 2008-03-30  Bruno Haible  <bruno@clisp.org>
95489         * tests/test-strtod.c: Add comments about which assertion fails on which
95490         platform.
95491         * doc/posix-functions/strtod.texi: Add info about many more platforms.
95493 2008-03-30  Eric Blake  <ebb9@byu.net>
95495         Test signbit behavior on zeros.
95496         * tests/test-signbit.c (test_signbitf): Add tests for zero.
95497         (test_signbitd, test_signbitl): Likewise.
95499         More strtod touchups.
95500         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
95501         sign of negative underflow, for now.  Use .5, not .1.
95502         * doc/posix-functions/strtod.texi (strtod): Mention these
95503         limitations.
95504         Reported by Jim Meyering.
95506 2008-03-30  Bruno Haible  <bruno@clisp.org>
95508         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
95509         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
95511 2008-03-30  Bruno Haible  <bruno@clisp.org>
95513         Avoid failure when attempting to return empty iconv results on some
95514         platforms.
95515         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
95516         allocation, don't report ENOMEM when the resulting string is empty.
95518 2008-03-30  Bruno Haible  <bruno@clisp.org>
95520         Fix buffer overrun.
95521         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
95522         Don't consider the width for tmp_length. Check count against tmp_length
95523         before doing the padding. Ensure enough allocation during padding.
95525 2008-03-30  Eric Blake  <ebb9@byu.net>
95527         strtod touchups.
95528         * lib/strtod.c (strtod): Avoid compiler warnings.
95529         Reported by Jim Meyering.
95531 2008-03-30  Bruno Haible  <bruno@clisp.org>
95533         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
95534         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
95535         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
95536         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
95537         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
95538         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
95539         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
95540         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
95542         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
95543         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
95544         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
95545         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
95546         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
95547         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
95548         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
95549         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
95551         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
95552         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
95553         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
95554         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
95555         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
95556         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
95557         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
95558         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
95560         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
95561         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
95563         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
95564         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
95566         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
95567         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
95569         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
95570         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
95571         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
95573         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
95574         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
95575         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
95577         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
95578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
95579         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
95581         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
95582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
95583         * modules/vasprintf (Depends-on): Add EOVERFLOW.
95585         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
95586         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
95587         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
95588         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
95589         (Depends-on): Add EOVERFLOW.
95590         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
95591         (Depends-on): Add EOVERFLOW.
95592         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95593         (Depends-on): Add EOVERFLOW.
95594         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95595         (Depends-on): Add EOVERFLOW.
95596         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95597         (Depends-on): Add EOVERFLOW.
95598         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95599         (Depends-on): Add EOVERFLOW.
95600         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95601         (Depends-on): Add EOVERFLOW.
95602         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95603         (Depends-on): Add EOVERFLOW.
95605         * lib/sprintf.c (EOVERFLOW): Remove fallback.
95606         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
95607         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
95609         * lib/snprintf.c (EOVERFLOW): Remove fallback.
95610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
95611         * modules/snprintf (Depends-on): Add EOVERFLOW.
95613         * lib/poll.c (EOVERFLOW): Remove fallback.
95614         * modules/poll (Depends-on): Add EOVERFLOW.
95616         * lib/getugroups.c (EOVERFLOW): Remove fallback.
95617         * modules/getugroups (Depends-on): Add EOVERFLOW.
95619         * lib/getdelim.c (EOVERFLOW): Remove fallback.
95620         * modules/getdelim (Depends-on): Add EOVERFLOW.
95622         * lib/ftell.c (EOVERFLOW): Remove fallback.
95623         * modules/ftell (Depends-on): Add EOVERFLOW.
95625         * lib/fprintf.c (EOVERFLOW): Remove fallback.
95626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
95627         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
95629         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
95631         * modules/EOVERFLOW-tests: New file.
95632         * tests/test-EOVERFLOW.c: New file.
95634         * modules/EOVERFLOW: New file.
95635         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
95637 2008-03-30  Bruno Haible  <bruno@clisp.org>
95639         Fix bug introduced on 2007-06-10.
95640         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
95641         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
95643 2008-03-30  Bruno Haible  <bruno@clisp.org>
95645         Improve freadseek's efficiency after ungetc.
95646         * lib/freadseek.c: Include freadahead.h.
95647         (freadptrinc): New function, extracted from freadseek.
95648         (freadseek): Use it in a loop. Use freadahead to determine the number
95649         of loop iterations.
95650         * modules/freadseek (Depends-on): Add freadahead.
95651         (configure.ac): Require AC_C_INLINE.
95653 2008-03-30  Bruno Haible  <bruno@clisp.org>
95655         * lib/freadseek.c (freadseek): Don't ignore the return value of
95656         freadptr.
95658 2008-03-29  Eric Blake  <ebb9@byu.net>
95660         Add hex float support.
95661         * modules/strtod (Depends-on): Add c-ctype.
95662         (Link): Mention POW_LIB.
95663         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
95664         whitespace between 'e' and exponent.
95665         * tests/test-strtod.c (main): Enable hex float tests.
95666         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
95667         now provides.
95669         Document various strtod bugs, with some fixes.
95670         * doc/posix-functions/strtod.texi (strtod): Document bugs with
95671         "-0x", "inf", "nan", and hex constants.
95672         * doc/posix-functions/atof.texi (atof): Likewise.
95673         * modules/stdlib (Makefile.am): Support strtod.
95674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
95675         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
95676         detect additional strtod bugs.
95677         * lib/stdlib.in.h (rpl_strtod): Add declarations.
95678         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
95679         bool where appropriate.  Parse 'inf' and 'nan'.
95680         * tests/test-strtod.c: New file.
95681         * modules/strtod (Depends-on): Add stdbool, stdlib.
95682         (configure.ac): Turn on module indicator.
95683         * modules/strtod-tests: New module.
95685 2008-03-29  Eric Blake  <ebb9@byu.net>
95687         Fix ftell on mingw.
95688         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
95689         * modules/ftell-tests (Depends-on): Add binary-io.
95690         * modules/ftello-tests (Depends-on): Likewise.
95691         * tests/test-ftell.c (main): Enhance test to cover behavior after
95692         ungetc.  Enforce binary mode.
95693         * tests/test-ftello.c (main): Likewise.
95695         Pass test-freadseek on cygwin.
95696         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
95697         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
95698         ungetc buffer.
95700         * tests/test-fflush2.c (main): Fix typo.
95702 2008-03-29  Bruno Haible  <bruno@clisp.org>
95704         * tests/test-fflush2.c (main): Temporarily disable the contents of
95705         this test.
95706         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
95707         Reported by Eric Blake.
95709 2008-03-28  Simon Josefsson  <simon@josefsson.org>
95711         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
95712         (GC_SHA224_DIGEST_SIZE): Add.
95714         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
95715         (gc_hash_digest_length): Likewise.
95716         (gc_hash_buffer): Likewise.
95718 2008-03-25  Bruno Haible  <bruno@clisp.org>
95720         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
95721         detail which gettext release to use.
95722         Reported by Simon Josefsson.
95724 2008-03-26  Jim Meyering  <meyering@redhat.com>
95726         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
95727         * modules/gnumakefile (clean-GNUmakefile): Also, use
95728         test ... && ... || : syntax rather than if-then ... fi.
95730         gnumakefile: Don't double-quote-expand $(VPATH) value.
95731         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
95733 2008-03-24  Eric Blake  <ebb9@byu.net>
95735         Alter GNUmakefile to install into top directory.
95736         * modules/maintainer-makefile: Split, and add dependency...
95737         * modules/gnumakefile: to this new module.
95738         * build-aux/GNUmakefile: Move...
95739         * top/GNUmakefile: ...here.
95740         * build-aux/maint.mk: Move...
95741         * top/maint.mk: ...here.
95742         * MODULES.html.sh (Support for maintaining...): Document new
95743         module.
95745 2008-03-23  Bruno Haible  <bruno@clisp.org>
95747         * gnulib-tool: New options --vc-files, --no-vc-files.
95748         (func_usage): Document them.
95749         (vc_files): New variable.
95750         (func_import): Consider vc_files.
95751         (func_create_testdir): Set vc_files to empty.
95752         Suggested by Jim Meyering and Karl Berry.
95754 2008-03-23  Bruno Haible  <bruno@clisp.org>
95756         Fix regex compilation error on HP-UX 11.
95757         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
95758         * modules/regex (Files): Add m4/mbstate_t.m4.
95759         Reported by Ton Voon <ton.voon@altinity.com>.
95761 2008-03-23  Bruno Haible  <bruno@clisp.org>
95763         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
95765 2008-03-23  Eric Blake  <ebb9@byu.net>
95766             Bruno Haible  <bruno@clisp.org>
95768         Install files from top/ in the destination directory.
95769         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
95770         augmentation also for the files from top/.
95771         (func_import, func_create_testdir): Rewrite file names:
95772         top/filename -> filename.
95774 2008-03-23  Bruno Haible  <bruno@clisp.org>
95776         Tweak "gnulib --version" output.
95777         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
95779 2008-03-23  Bruno Haible  <bruno@clisp.org>
95781         Tweak "gnulib --version" output.
95782         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
95783         rather than contents of ChangeLog, when possible.
95785 2008-03-21  Eric Blake  <ebb9@byu.net>
95787         More --version tweaks.
95788         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
95789         date of last ChangeLog entry.
95791 2008-03-21  Jim Meyering  <meyering@redhat.com>
95793         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
95795 2008-03-20  Eric Blake  <ebb9@byu.net>
95797         VPATH fix.
95798         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
95800 2008-03-20  Simon Josefsson  <simon@josefsson.org>
95802         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
95803         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
95805 2008-03-20  Eric Blake  <ebb9@byu.net>
95807         Sync GNUmakefile with coreutils.
95808         * build-aux/GNUmakefile (have-Makefile): Rename...
95809         (_have-Makefile): ...to this, for namespace consideration.
95810         (GNUmakefile.cfg): Include, if present.
95811         (_autoreconf): Define a default.
95812         (_is-dist-target): New rule for rebuilds to pick up intra-release
95813         version.
95814         (maint-cfg.mk): Rename...
95815         (cfg.mk): ...to this.
95817 2008-03-18  Jim Meyering  <meyering@redhat.com>
95819         New script and module: mktempd
95820         * MODULES.html.sh (maint+release support): Add mktempd.
95821         * build-aux/mktempd: New file.
95822         * modules/mktempd: New file.
95824 2008-03-15  Jim Meyering  <meyering@redhat.com>
95826         Undo last change.
95827         * lib/sha1.c, lib/md5.c: 63 != ~63.
95828         Reported by Andreas Schwab.
95830         sha1.c, md5.c: Hoist a redundant expression.
95831         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
95832         "ctx->buflen" only once, before calling *_process_block.
95833         * lib/md5.c (md5_process_bytes): Likewise.
95835 2008-03-14  Eric Blake  <ebb9@byu.net>
95837         Bump copyright year in files generated by gnulib-tool.
95838         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
95839         gnulib-tool, rather than hard-coding it.
95841         Fix 'gnulib-tool --version' output to work with git.
95842         * gnulib-tool (func_gnulib_dir): New function, extracted from...
95843         (startup): ...here.
95844         (func_version): Use it to invoke git-version-gen, rather than
95845         relying on CVS keyword expansion.  Modernize wording.
95846         (cvsdatestamp, last_checkin_date, version): Kill unused
95847         variables.
95849 2008-03-12  Jim Meyering  <meyering@redhat.com>
95851         Recognize optional cast of the argument to free.
95852         * build-aux/useless-if-before-free: Update regexps.
95854         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
95856 2008-03-11  Bruno Haible  <bruno@clisp.org>
95858         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
95859         by a single package.
95860         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
95861         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
95862         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
95863         Reported by Sam Steingold <sds@gnu.org>.
95865 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
95867         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
95868         repositories.
95870 2008-03-11  Bruno Haible  <bruno@clisp.org>
95872         Avoid conflicts between local macro definitions.
95873         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
95874         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
95876 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
95877             Bruno Haible  <bruno@clisp.org>
95879         Make va_copy work with some version of xlc on AIX 5.1.
95880         * lib/stdarg.in.h: New file.
95881         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
95882         On AIX, use a <stdarg.h> file substitute.
95883         * modules/stdarg (Files): Add lib/stdarg.in.h.
95884         (Depends-on): Add include_next.
95885         (Makefile.am): Build a stdarg.h substitute if requested.
95886         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
95888 2008-03-10  Bruno Haible  <bruno@clisp.org>
95890         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
95891         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95892         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95894 2008-03-10  Bruno Haible  <bruno@clisp.org>
95896         * modules/stdlib (Depends-on): Add include_next, remove
95897         absolute-header.
95899 2008-03-09  Bruno Haible  <bruno@clisp.org>
95901         * lib/freadahead.h (freadahead): Document more precisely.
95902         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
95903         the sum of both buffer sizes.
95904         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
95905         * NEWS: Document the change.
95907 2008-03-09  Bruno Haible  <bruno@clisp.org>
95909         Extend freadptr to return also the buffer size.
95910         * lib/freadptr.h (freadptr): Add sizep argument.
95911         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
95912         (freadptr): Add sizep argument. Determine buffer size like freadahead
95913         does.
95914         * tests/test-freadptr.c: Don't include freadahead.h.
95915         (main): Adapt for new calling convention of freadptr.
95916         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
95917         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
95918         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
95919         tests/test-freadptr2.sh.
95920         (Depends): Remove freadahead.
95921         (TESTS): Add test-freadptr2.sh.
95922         (check_PROGRAMS): Add test-freadptr2.
95924 2008-03-09  Bruno Haible  <bruno@clisp.org>
95926         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
95927         Report and solution by Simon Josefsson.
95929 2008-03-06  Bruno Haible  <bruno@clisp.org>
95931         Make fflush after ungetc work on BSD platforms.
95932         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
95933         * tests/test-fflush2.c: New file.
95934         * tests/test-fflush2.sh: New file.
95935         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
95936         tests/test-fflush2.c.
95937         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
95938         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
95940 2008-03-06  Eric Blake  <ebb9@byu.net>
95942         Likewise for ftello.
95943         * modules/ftello (Dependencies): Add extensions.
95944         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
95946 2008-03-06  Bruno Haible  <bruno@clisp.org>
95948         * modules/fseeko (Dependencies): Add extensions.
95949         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
95950         Needed on glibc systems.
95952 2008-03-06  Bruno Haible  <bruno@clisp.org>
95954         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
95955         email address.
95956         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95958 2008-03-06  Bruno Haible  <bruno@clisp.org>
95960         * users.txt: Add libgnupdf.
95962 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
95964         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
95965         (Header File Substitutes, Function Substitutes,
95966         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
95967         (Build robot for gnulib): Fix typo.
95969 2008-03-06  Bruno Haible  <bruno@clisp.org>
95971         * doc/gnulib-tool.texi (VCS Issues): Small updates.
95972         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95974 2008-03-06  Bruno Haible  <bruno@clisp.org>
95976         * doc/func.texi: New file, extracted from doc/gnulib.texi.
95977         * doc/gnulib.texi: Include it.
95979 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95981         * modules/func (License): Change license to unlimited; there was
95982         no LGPL parts in the module anyway.
95984 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95986         * modules/__func__: Renamed to modules/func.
95987         * modules/__func__-tests: Renamed to modules/func-tests.
95988         * tests/test-__func__.c: Renamed to tests/test-func.c.
95989         * m4/__func__.m4: Renamed to m4/func.m4.
95990         * doc/gnulib.texi (__func__): Section renamed to func.
95991         Suggested by Eric Blake <ebb9@byu.net>.
95993 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95995         * doc/gnulib.texi (__func__): Use C99 terminology when talking
95996         about __func__.  Make example self-contained.  Suggested by Eric
95997         Blake <ebb9@byu.net>.
95999         * tests/test-__func__.c (main): Avoid extraneous () around __func.
96000         Suggested by Eric Blake <ebb9@byu.net>.
96002 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96004         * modules/__func__: New file.
96005         * modules/__func__-tests: New file.
96006         * tests/test-__func__.c: New file.
96007         * m4/__func__.m4: New file.
96008         * doc/gnulib.texi (__func__): Document __func__ module.
96010 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96012         * modules/byteswap (License): Re-license as LGPLv2+.
96014 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96016         * doc/Makefile: Add pdf target.
96018 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96020         * modules/inline (License): Use 'unlimited', since there are only
96021         *.m4 files in this module.
96023 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96024             Bruno Haible  <bruno@clisp.org>
96026         Add support for HP C 7.1 on OpenVMS 8.3.
96027         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
96029 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96031         Update VMS specifics.
96032         * lib/getopt.c [VMS]: Remove include of unixlib.h.
96034 2008-03-02  Jim Meyering  <meyering@redhat.com>
96036         Remove the last dependency on the "free" module.
96037         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
96038         Reported by Bob Proulx.
96040         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
96042         Remove useless "if" tests before free.  Deprecate "free" module.
96043         * doc/posix-functions/free.texi: Mention that this
96044         module is no longer useful.
96045         * modules/free (Notice): Say this module is obsolete.
96046         * modules/readutmp (Depends-on): Remove free.
96047         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
96048         * lib/putenv.c (putenv): Likewise.
96049         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
96050         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
96051         * tests/test-c-strcasestr.c (main): Likewise.
96052         * tests/test-c-strstr.c (main): Likewise.
96053         * tests/test-mbscasestr1.c (main): Likewise.
96054         * tests/test-mbscasestr2.c (main): Likewise.
96055         * tests/test-mbsstr1.c (main): Likewise.
96056         * tests/test-mbsstr2.c (main): Likewise.
96057         * tests/test-memmem.c (main): Likewise.
96058         * tests/test-strcasestr.c (main): Likewise.
96059         * tests/test-striconv.c (main): Likewise.
96060         * tests/test-striconveh.c (main): Likewise.
96061         * tests/test-striconveha.c (main): Likewise.
96062         * tests/test-strstr.c (main): Likewise.
96064         * build-aux/git-version-gen: Adjust a comment and the Usage string.
96066         bootstrap: sync from coreutils again
96067         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
96069 2008-03-01  Jim Meyering  <meyering@redhat.com>
96071         bootstrap: sync from coreutils
96072         * build-aux/bootstrap (update_po_files): Copy a .po file into place
96073         also when the target doesn't exist.
96075 2008-03-01  Eric Blake  <ebb9@byu.net>
96077         Fix bugs in last patch.
96078         * lib/memchr2.c (memchr2): Fix typo.
96079         * tests/test-memchr2.c: Test previous bug, and don't use GNU
96080         extension.
96081         Reported by Bruce Korb.
96083         New module 'memchr2'.
96084         * modules/memchr2: New file.
96085         * modules/memchr2-tests: Likewise.
96086         * lib/memchr2.h: Likewise.
96087         * lib/memchr2.c: Likewise, based on memchr.c.
96088         * tests/test-memchr2.c: New test.
96089         * MODULES.html.sh (String handling): Add memchr2.
96091 2008-02-29  Bruno Haible  <bruno@clisp.org>
96093         * modules/freadseek-tests: New file.
96094         * tests/test-freadseek.sh: New file.
96095         * tests/test-freadseek.c: New file.
96097         New module 'freadseek'.
96098         * modules/freadseek: New file.
96099         * lib/freadseek.h: New file.
96100         * lib/freadseek.c: New file.
96101         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
96103 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
96105         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
96106         wydawca.
96108         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
96109         program_invocation_name and program_invocation_short_name are
96110         present.
96112 2008-02-28  Bruno Haible  <bruno@clisp.org>
96114         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
96115         * tests/test-freadptr.sh: Also test non-seekable stdin.
96117 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
96119         * build-aux/bootstrap (source_base, m4_base)
96120         (doc_base, tests_base): New variables.
96121         (gnulib_tool_options): Do not hardcode base directories, use
96122         the above variables instead.
96124 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
96126         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
96128 2008-02-28  Bruno Haible  <bruno@clisp.org>
96130         * modules/freadptr-tests: New file.
96131         * tests/test-freadptr.sh: New file.
96132         * tests/test-freadptr.c: New file.
96134         New module 'freadptr'.
96135         * modules/freadptr: New file.
96136         * lib/freadptr.h: New file.
96137         * lib/freadptr.c: New file.
96138         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
96140 2008-02-26  Karl Berry  <karl@freefriends.org>
96142         Sync from Libtool:
96143         * libltdl/argz.c (argz_add, argz_count): New functions.
96144         * libltdl/argz.in.h: Declare them.
96145         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
96147 2008-02-22  Bruno Haible  <bruno@clisp.org>
96149         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
96150         is a pointer type.  Needed for HP-UX 10.
96151         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
96152         * doc/posix-functions/gmtime_r.texi: Likewise.
96153         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96155 2008-02-24  Bruno Haible  <bruno@clisp.org>
96157         * modules/environ-tests: New file.
96158         * tests/test-environ.c: New file.
96160         New module 'environ'.
96161         * modules/environ: New file.
96162         * lib/unistd.in.h (environ): New declaration.
96163         * m4/environ.m4: New file.
96164         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
96165         after use.
96166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
96167         HAVE_DECL_ENVIRON.
96168         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
96169         HAVE_DECL_ENVIRON.
96170         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
96171         wrong claim that 'environ' is missing on some systems.
96172         * modules/execute (Depends-on): Add environ.
96173         * lib/execute.c (environ): Remove fallback declaration.
96174         * modules/pipe (Depends-on): Add environ.
96175         * lib/pipe.c (environ): Remove fallback declaration.
96176         * modules/setenv (Depends-on): Add environ.
96177         * lib/setenv.c (environ): Remove fallback declaration.
96178         * modules/unsetenv (Depends-on): Add environ.
96179         * lib/unsetenv.c (environ): Remove fallback declaration.
96180         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
96181         m4/environ.m4.
96182         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
96183         (gl_PREREQ_UNSETENV): Likewise.
96185 2008-02-24  Bruno Haible  <bruno@clisp.org>
96187         * doc/posix-functions/environ.texi: Document the MacOS X problem.
96189 2008-02-20  Bob Proulx  <bob@proulx.com>
96191         Enable use of older two part flavor 'git describe'.
96192         * build-aux/git-version-gen: If using the older two part flavor of
96193         git version then recreate the third part now present in the
96194         newer three part flavor of git describe.
96196 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
96198         * lib/fts.c (fts_build): Typo correction to comment.
96200 2008-02-17  Bruno Haible  <bruno@clisp.org>
96202         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
96203         generating no-op conflicts.
96205 2008-02-17  Bruno Haible  <bruno@clisp.org>
96207         Speed up by 10%.
96208         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
96209         result_entries, rather than an index-based loop.
96211 2008-02-17  Bruno Haible  <bruno@clisp.org>
96213         Speed up by 25%.
96214         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
96215         'hashcode_cached'.
96216         (entry_create): New function.
96217         (entry_hashcode): Use the cached hashcode if possible.
96218         (read_changelog_file, try_split_merged_entry): Use entry_create.
96220 2008-02-17  Bruno Haible  <bruno@clisp.org>
96222         Speed up from O(n^2) to O(n) for long ChangeLog files.
96223         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
96224         (read_changelog_file): Change implementation of entries_reversed list
96225         to rbtreehash.
96226         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
96228 2008-02-17  Bruno Haible  <bruno@clisp.org>
96230         New option --split-merged-entry.
96231         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
96232         (find_paragraph_end, try_split_merged_entry): New functions.
96233         (long_options): Add option --split-merged-entry.
96234         (usage): Document option --split-merged-entry.
96235         (main): Implement option --split-merged-entry.
96236         Reported by Eric Blake.
96238 2008-02-17  Bruno Haible  <bruno@clisp.org>
96240         * lib/git-merge-changelog.c: Include c-strstr.h.
96241         (main): Support the "git pull --rebase" situation.
96242         * modules/git-merge-changelog (Depends-on): Add c-strstr.
96243         Reported by Eric Blake.
96245 2008-02-16  Eric Blake  <ebb9@byu.net>
96247         Avoid doubling \ in common case of "c-maybe" quoting style.
96248         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
96249         eliding outer quotes.
96250         * lib/quotearg.h: Document this.
96251         * tests/test-quotearg.c (result_strings, inputs, results_g)
96252         (flag_results, locale_results): Test it by adding a new string to
96253         each test group.
96254         (compare_strings): Test new string.
96256 2008-02-13  Eric Blake  <ebb9@byu.net>
96258         Avoid trigraph quoting in default output.
96259         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
96260         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
96261         unless explicitly requested.
96262         * tests/test-quotearg.c (flag_results, main): Add additional tests.
96264 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
96266         Don't rely on signed integer overflowing to negative value.
96267         * lib/getugroups.c (getugroups): Include <limits.h>.
96268         Instead, compare against INT_MAX, and increment only if the test passes.
96270 2008-02-13  Jim Meyering  <meyering@redhat.com>
96271         and Eric Blake  <ebb9@byu.net>
96273         Avoid shadowing warning and compile errors on Linux.
96274         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
96275         forwarding macros on Linux.
96276         (dcgettext): Define a stub, for Linux.
96277         (results_g, main): Avoid warnings.
96279 2008-02-12  Eric Blake  <ebb9@byu.net>
96281         Silence warning in last patch.
96282         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
96284         Quotearg part 4: add tests, fix c-maybe colon quoting.
96285         * lib/quotearg.h: Improve documentation.
96286         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
96287         escapes when adding outer quotes.  When quoting trigraphs, use
96288         valid C notation.  When quoting NUL, omit extra characters if next
96289         character is not digit.  Alter prototype.
96290         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
96291         callers.
96292         * modules/quotearg-tests: New module.
96293         * tests/test-quotearg.c: New test.
96295 2008-02-07  Eric Blake  <ebb9@byu.net>
96297         Quotearg part 3: add flag to control outer quote elision.
96298         * lib/quotearg.h (c_maybe_quoting_style): New style.
96299         (enum quoting_flags): Better documentation of flags.
96300         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
96301         c-maybe style.
96302         (quotearg_buffer_restyled): Handle new flag to elide outer
96303         quotes.
96305         Quotearg part 2: add flag that can control NUL elision.
96306         * lib/quotearg.h (set_quoting_flags): New prototype.
96307         * lib/quotearg.c (struct quoting_options): Add flag field.
96308         (set_quoting_flags): New function.
96309         (quotearg_buffer_restyled): Add flags parameter.
96310         (quotearg_alloc_mem): Set the flag if length cannot be returned.
96311         (quotearg_n_options): Set the flag, since length cannot be
96312         returned.
96313         (quoting_options_from_style): Default flags correctly.
96315         Quotearg part 1: more wrappers, restore quotearg_char state.
96316         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
96317         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
96318         (quotearg_colon_mem): New wrappers.
96319         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
96320         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
96321         functions.
96322         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
96323         (quotearg_colon_mem): New functions.
96325 2008-02-11  Bruno Haible  <bruno@clisp.org>
96327         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
96328         library in the current directory: it does not work with parallel make.
96329         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96331 2008-02-11  Bruno Haible  <bruno@clisp.org>
96333         * .gitattributes: New file.
96335 2008-02-11  Jim Meyering  <meyering@redhat.com>
96337         useless-if-before-free: Fix reversed exit values.
96338         * build-aux/useless-if-before-free: Use correct values
96339         for EXIT_MATCH and EXIT_NO_MATCH.
96341         * build-aux/useless-if-before-free: Close stdout carefully.
96343 2008-02-10  Bruno Haible  <bruno@clisp.org>
96345         New module 'git-merge-changelog'.
96346         * modules/git-merge-changelog: New file.
96347         * lib/git-merge-changelog.c: New file.
96349 2008-02-10  Jim Meyering  <meyering@redhat.com>
96351         useless-if-before-free: New option: --list (-l).
96353         useless-if-before-free: Don't exit immediately upon open failure.
96354         * build-aux/useless-if-before-free: Exit 2 for errors.
96355         Upon failure to open a file, don't exit immediately.
96356         Rather, just warn and continue with any remaining files.
96358 2008-02-10  Bruno Haible  <bruno@clisp.org>
96360         New abstract list operation 'node_set_value'.
96361         * lib/gl_list.h (gl_list_node_set_value): New function.
96362         (struct gl_list_implementation): New field node_set_value.
96363         * lib/gl_list.c (gl_list_node_set_value): New function.
96364         * lib/gl_array_list.c (gl_array_node_set_value): New function.
96365         (gl_array_list_implementation): Update.
96366         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
96367         (gl_carray_list_implementation): Update.
96368         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
96369         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96370         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96371         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
96372         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96373         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96374         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96375         Update.
96376         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96377         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
96378         (gl_sublist_list_implementation): Update.
96380 2008-02-10  Bruno Haible  <bruno@clisp.org>
96382         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
96383         Needed when ELEMENT is #defined to 'some_type *'.
96385 2008-02-10  Jim Meyering  <meyering@redhat.com>
96387         New script and module: useless-if-before-free
96388         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
96389         * build-aux/useless-if-before-free: New file.
96390         * modules/useless-if-before-free: New file.
96392         * build-aux/gitlog-to-changelog: Use committer date, not author date.
96394         xstrtol_error: Fix typo.
96395         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
96396         s/exit_failure/exit_status/.
96398 2008-02-09  Jim Meyering  <meyering@redhat.com>
96400         New script and module: gitlog-to-changelog
96401         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
96402         * modules/gitlog-to-changelog: New file.
96403         * build-aux/gitlog-to-changelog: New file.
96405 2008-02-08  Jim Meyering  <meyering@redhat.com>
96407         Avoid two "parameter unused" warnings.
96408         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
96409         Mark "st" as used.
96411         Use "git COMMAND", not "git-COMMAND".
96412         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
96413         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
96414         * build-aux/git-version-gen: Use "git status", not "git-status".
96416 2008-02-07  Bruno Haible  <bruno@clisp.org>
96418         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
96419         Avoids a crash on Windows Vista.
96420         Reported by Adam Strzelecki <ono@java.pl> via
96421         Simon Josefsson <simon@josefsson.org>.
96423 2008-02-06  Bruno Haible  <bruno@clisp.org>
96425         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
96426         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
96427         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
96428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
96429         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96430         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96431         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
96432         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
96433         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96434         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96435         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96436         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96437         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96439         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96440         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
96441         left-adjust flag.
96442         * tests/test-snprintf-posix.h (test_function): Likewise.
96443         * tests/test-sprintf-posix.h (test_function): Likewise.
96444         * tests/test-vasprintf-posix.c (test_function): Likewise.
96445         * doc/posix-functions/fprintf.texi: Update.
96446         * doc/posix-functions/printf.texi: Update.
96447         * doc/posix-functions/snprintf.texi: Update.
96448         * doc/posix-functions/sprintf.texi: Update.
96449         * doc/posix-functions/vfprintf.texi: Update.
96450         * doc/posix-functions/vprintf.texi: Update.
96451         * doc/posix-functions/vsnprintf.texi: Update.
96452         * doc/posix-functions/vsprintf.texi: Update.
96453         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96455 2008-02-06  Bruno Haible  <bruno@clisp.org>
96457         Fix bug introduced on 2008-01-26.
96458         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
96460 2008-02-06  Bruno Haible  <bruno@clisp.org>
96462         Fix bug introduced on 2007-06-10.
96463         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
96464         !NEED_PRINTF_FLAG_ZERO.
96466 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
96468         getloadavg: use libperfstat on AIX5
96469         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
96471 2008-02-03  Bruno Haible  <bruno@clisp.org>
96473         * lib/diffseq.h: Add comments about required #includes.
96474         Reported by Michael Biggs <gnulib@doubleplum.net>.
96476 2008-02-01  Bruno Haible  <bruno@clisp.org>
96478         * users.txt: Add gnuit.
96480 2008-01-31  Bruno Haible  <bruno@clisp.org>
96482         * lib/md4.c (set_uint32): Mark as inline.
96483         * lib/md5.c (set_uint32): Likewise.
96484         * lib/sha1.c (set_uint32): Likewise.
96485         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
96486         * m4/md5.m4 (gl_MD5): Likewise.
96487         * m4/sha1.m4 (gl_SHA1): Likewise.
96489 2008-01-31  Jim Meyering  <meyering@redhat.com>
96491         Use "sizeof VAR", rather than a literal "4".
96492         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
96493         * lib/md4.c (md4_read_ctx): Likewise.
96494         * lib/sha1.c (sha1_read_ctx): Likewise.
96496 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96498         * tests/test-sha1.c: New file, based on test-md5.c.
96500         * modules/crypto/sha1-tests: New file.
96502 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96504         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
96506 2008-01-31  Jim Meyering  <meyering@redhat.com>
96508         Prefer "sizeof v" over the equivalent "4".
96509         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
96510         * lib/md5.c (set_uint32): Likewise.
96511         * lib/sha1.c (set_uint32): Likewise.
96513 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96515         * lib/sha1.c (set_uint32): Mark function as static.
96517 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96519         md2: clarify comments to say that alignment is not required.
96520         * lib/md2.h: Remove warning about alignment in comment.
96521         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
96522         never been required.
96524 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96526         md4: adapt alignment constraint fix from sha1.
96527         * lib/md4.c (set_uint32): New function, from sha1.c
96528         (md4_read_ctx): Use it.
96529         (md4_finish_ctx): Doc fix.
96530         * lib/md4.h: Doc fix.
96532 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96534         md5: adapt alignment constraint fix from sha1.
96535         * lib/md5.c (set_uint32): New function, from sha1.c
96536         (md5_read_ctx): Use it.
96537         (md5_finish_ctx): Doc fix.
96538         * lib/md5.h: Doc fix.
96540 2008-01-30  Peter Palfrader  <weasel@debian.org>
96542         sha1: remove the result buffer alignment constraint
96543         * lib/sha1.c (set_uint32): New function.
96544         (sha1_read_ctx): Rewrite to remove the result buffer alignment
96545         constraint.
96546         (sha1_finish_ctx): Remove comment warning about alignment constraint.
96547         * lib/sha1.h: Likewise.
96549 2008-01-30  Andreas Schwab  <schwab@suse.de>
96550             Bruno Haible  <bruno@clisp.org>
96552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
96553         correct definition of LDBL_MIN_EXP.
96555 2008-01-30  Karl Berry  <karl@gnu.org>
96557         * config/srclist-update: try to preserve x bit on updates.
96558         * config/srclistvars.sh: update for karl.
96560 2008-01-29  Jim Meyering  <meyering@redhat.com>
96562         vasnprintf.c: Avoid warning about unused label
96563         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
96564         "overflow" label definition and associated code with the
96565         same cpp condition that guards the sole use of that label.
96567 2008-01-26  Bruno Haible  <bruno@clisp.org>
96569         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
96570         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
96571         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
96572         * lib/isnanl-nolibm.h (isnanl): Likewise.
96573         Reported by Paul Eggert <eggert@cs.ucla.edu>.
96575 2008-01-26  Bruno Haible  <bruno@clisp.org>
96577         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
96578         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
96580 2008-01-26  Bruno Haible  <bruno@clisp.org>
96582         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
96583         GCC >= 4.0 built-in.
96584         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
96586 2008-01-26  Bruno Haible  <bruno@clisp.org>
96588         Rename isnan, applicable to 'double' only, to isnand.
96589         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
96590         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
96591         (configure.ac): Update.
96592         (Include): Replace "isnan.h" with "isnand.h".
96593         * m4/isnand.m4: Renamed from m4/isnan.m4.
96594         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
96595         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
96596         instead of isnan.c.
96597         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
96598         instead of HAVE_ISNAN_IN_LIBC.
96599         (isnand): Renamed from isnan.
96600         * lib/isnand.c: New file.
96601         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
96602         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
96603         (Makefile.am): Update.
96604         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
96605         Include isnand.h instead of isnan.h.
96606         (main): Test isnand instead of isnan.
96607         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
96608         isnan-nolibm.
96609         * modules/frexp (Depends-on): Likewise.
96610         * modules/frexp-tests (Depends-on): Likewise.
96611         * modules/frexp-nolibm (Depends-on): Likewise.
96612         * modules/frexp-nolibm-tests (Depends-on): Likewise.
96613         * modules/isfinite (Depends-on): Likewise.
96614         * modules/round-tests (Depends-on): Likewise.
96615         * modules/signbit (Depends-on): Likewise.
96616         * modules/signbit-tests (Depends-on): Likewise.
96617         * modules/snprintf-posix (Depends-on): Likewise.
96618         * modules/sprintf-posix (Depends-on): Likewise.
96619         * modules/trunc-tests (Depends-on): Likewise.
96620         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96621         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96622         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96623         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96624         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96625         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96626         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96627         * modules/vasnprintf-posix (Depends-on): Likewise.
96628         * modules/vasprintf-posix (Depends-on): Likewise.
96629         * modules/vfprintf-posix (Depends-on): Likewise.
96630         * modules/vsnprintf-posix (Depends-on): Likewise.
96631         * modules/vsprintf-posix (Depends-on): Likewise.
96632         * lib/frexp.c: Include isnand.h instead of isnan.h.
96633         (ISNAN): Set to isnand instead of isnan.
96634         * lib/isfinite.c: Include isnand.h instead of isnan.h.
96635         (gl_isfinited): Use isnand instead of isnan.
96636         * lib/signbitd.c: Include isnand.h instead of isnan.h.
96637         (gl_signbitd): Use isnand instead of isnan.
96638         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
96639         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
96640         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
96641         (main): Use isnand instead of isnan.
96642         * tests/test-round1.c: Include isnand.h.
96643         (main): Use isnand instead of isnan.
96644         * tests/test-round2.c: Include isnand.h instead of isnan.h.
96645         (ISNAN): Set to isnand instead of isnan.
96646         * tests/test-trunc1.c: Include isnand.h.
96647         (main): Use isnand instead of isnan.
96648         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
96649         (equal): Use isnand instead of isnan.
96650         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
96651         isnand-nolibm.
96652         * NEWS: Mention the change.
96654 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
96655             Bruno Haible  <bruno@clisp.org>
96657         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
96658         the GCC builtins for signbits are present and set
96659         REPLACE_SIGNBIT_USING_GCC if so.
96660         * lib/math.in.h (signbit): Define using GCC builtins if
96661         REPLACE_SIGNBIT_USING_GCC is set.
96662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
96663         REPLACE_SIGNBIT_USING_GCC.
96664         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
96666 2008-01-25  Jim Meyering  <meyering@redhat.com>
96668         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
96669         * lib/poll.c: Include <config.h>, not "config.h".
96670         * tests/test-getaddrinfo.c: Likewise.
96672 2008-01-25  Simon Josefsson  <simon@josefsson.org>
96674         * modules/sockets-tests: New file.
96676 2008-01-24  Simon Josefsson  <simon@josefsson.org>
96678         * modules/sockets: New module, can be used to call WSA_Startup and
96679         WSA_Cleanup when needed.
96681         * lib/sockets.h, lib/sockets.c: New files.
96683         * m4/sockets.m4: New file.
96685         * tests/test-sockets.c: New file.
96687 2008-01-19  Bruno Haible  <bruno@clisp.org>
96689         * doc/posix-headers: Renamed from doc/headers.
96690         * doc/posix-functions: Renamed from doc/functions.
96691         * doc/gnulib.texi: Update.
96693 2008-01-19  Bruno Haible  <bruno@clisp.org>
96695         * doc/glibc-functions/strcasestr.texi: Include contents of
96696         doc/functions/strcasestr.texi, fixing the list of platforms.
96697         * doc/functions/strcasestr.texi: Remove file.
96699 2008-01-19  Bruno Haible  <bruno@clisp.org>
96701         * doc/glibc-functions/memmem.texi: Include contents of
96702         doc/functions/memmem.texi.
96703         * doc/functions/memmem.texi: Remove file.
96705 2008-01-18  Bruno Haible  <bruno@clisp.org>
96707         * doc/glibc-functions/*.texi: New files.
96708         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
96709         to use the new files.
96711 2008-01-17  Bruno Haible  <bruno@clisp.org>
96713         * tests/test-gethostname.c (main): Fix printf statement.
96715 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96717         * modules/gethostname-tests: New file.
96719         * tests/test-gethostname.c: New file.
96721 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96723         * lib/gethostname.c: Include string.h unconditionally, strncpy is
96724         used by the UNAME case.  Reported by Bruno Haible
96725         <bruno@clisp.org>.
96727 2008-01-17  Eric Blake  <ebb9@byu.net>
96729         Convert c-strcasestr to be more efficient.
96730         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
96731         (Depends-on): Add c-strcase, remove malloca, strnlen.
96732         * tests/test-c-strcasestr.c (main): Enhance test.
96733         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
96735 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
96737         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
96738         Use it in creating po/Makevars.
96740 2008-01-15  Simon Josefsson  <simon@josefsson.org>
96742         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
96743         Applications that requires it should initialize libgcrypt
96744         manually.
96746 2008-01-16  Simon Josefsson  <simon@josefsson.org>
96748         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
96750 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
96752         Fix problem with getdate on mingw32 reported by Simon Josefsson
96753         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
96754         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
96755         tzname", when deciding whether to declare tzname.
96756         * lib/strftime.c (tzname): Likewise.
96758 2008-01-15  Bruno Haible  <bruno@clisp.org>
96760         Work around a MacOS X 10.5 bug in frexpl().
96761         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
96762         * doc/functions/frexpl.texi: Document the bug.
96763         Reported by Elias Pipping <pipping@gentoo.org>.
96765 2008-01-14  Eric Blake  <ebb9@byu.net>
96767         Touch up previous patch.
96768         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
96769         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
96771         Convert strcasestr module to use Two-Way algorithm.
96772         * modules/strcasestr-simple: New module, based on the old
96773         strcasestr, but with Two-Way rather than KMP.
96774         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
96775         * lib/string.in.h (rpl_strcasestr): Declare.
96776         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
96777         performance.
96778         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
96779         * modules/string (Makefile.am): Support strcasestr.
96780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
96781         * modules/strcasestr-tests (Depends-on): Check for alarm.
96782         * tests/test-strcasestr.c: Augment test.
96783         * lib/str-two-way.h: Clean up stray macro.
96784         * NEWS: Document new module.
96785         * MODULES.html.sh (string handling): Likewise.
96786         * doc/functions/strcasestr.texi: New file.
96787         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
96788         here, since it is not a POSIX function.
96790 2008-01-14  Colin Watson  <cjwatson@debian.org>
96791             Bruno Haible  <bruno@clisp.org>
96793         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
96794         works fine; if not, set REPLACE_STRSIGNAL.
96795         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
96796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96797         REPLACE_STRSIGNAL.
96798         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
96799         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
96800         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
96802 2008-01-14  Bruno Haible  <bruno@clisp.org>
96804         * modules/strsignal (Include): Change to <string.h>.
96806 2008-01-14  Colin Watson  <cjwatson@debian.org>
96808         * modules/argp (Notice): Add a notice recommending to change
96809         XGETTEXT_OPTIONS.
96810         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
96812 2008-01-13  Colin Watson  <cjwatson@debian.org>
96814         * modules/strsignal-tests: New file.
96815         * tests/test-strsignal.c: New file.
96817         * lib/strsignal.c: New file, from glibc with modifications.
96818         * lib/siglist.h: New file, from glibc with modifications.
96819         * lib/string.in.h (strsignal): New declaration.
96820         * m4/strsignal.m4: New file.
96821         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96822         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
96823         * modules/strsignal: New file.
96824         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
96825         HAVE_DECL_STRSIGNAL.
96827 2008-01-13  Bruno Haible  <bruno@clisp.org>
96829         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
96830         locale encoding is not ASCII. Needed for OpenBSD 4.0.
96831         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96832         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96834 2008-01-13  Bruno Haible  <bruno@clisp.org>
96836         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
96837         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
96838         * lib/argp.h (__attribute__): Likewise.
96839         * lib/c-stack.c (__attribute__): Likewise.
96840         * lib/error.h (__attribute__): Likewise.
96841         * lib/fts.c (__attribute__): Likewise.
96842         * lib/openat.h (__attribute__): Likewise.
96843         * lib/stdio.in.h (__attribute__): Likewise.
96844         * lib/string.in.h (__attribute__): Likewise.
96845         * lib/utimens.c (__attribute__): Likewise.
96846         * lib/vasnprintf.h (__attribute__): Likewise.
96847         * lib/xalloc.h (__attribute__): Likewise.
96848         * lib/xprintf.h (__attribute__): Likewise.
96849         * lib/xstrtol.h (__attribute__): Likewise.
96850         * lib/xvasprintf.h (__attribute__): Likewise.
96852 2008-01-12  Bruno Haible  <bruno@clisp.org>
96854         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
96855         * doc/glibc-headers/a.out.texi: New file.
96856         * doc/glibc-headers/aliases.texi: New file.
96857         * doc/glibc-headers/alloca.texi: New file.
96858         * doc/glibc-headers/ar.texi: New file.
96859         * doc/glibc-headers/argp.texi: New file.
96860         * doc/glibc-headers/argz.texi: New file.
96861         * doc/glibc-headers/byteswap.texi: New file.
96862         * doc/glibc-headers/crypt.texi: New file.
96863         * doc/glibc-headers/endian.texi: New file.
96864         * doc/glibc-headers/envz.texi: New file.
96865         * doc/glibc-headers/err.texi: New file.
96866         * doc/glibc-headers/error.texi: New file.
96867         * doc/glibc-headers/execinfo.texi: New file.
96868         * doc/glibc-headers/fpu_control.texi: New file.
96869         * doc/glibc-headers/fstab.texi: New file.
96870         * doc/glibc-headers/fts.texi: New file.
96871         * doc/glibc-headers/getopt.texi: New file.
96872         * doc/glibc-headers/ieee754.texi: New file.
96873         * doc/glibc-headers/ifaddrs.texi: New file.
96874         * doc/glibc-headers/libintl.texi: New file.
96875         * doc/glibc-headers/mcheck.texi: New file.
96876         * doc/glibc-headers/mntent.texi: New file.
96877         * doc/glibc-headers/obstack.texi: New file.
96878         * doc/glibc-headers/paths.texi: New file.
96879         * doc/glibc-headers/printf.texi: New file.
96880         * doc/glibc-headers/pty.texi: New file.
96881         * doc/glibc-headers/resolv.texi: New file.
96882         * doc/glibc-headers/shadow.texi: New file.
96883         * doc/glibc-headers/sysexits.texi: New file.
96884         * doc/glibc-headers/ttyent.texi: New file.
96886 2008-01-12  Jim Meyering  <meyering@redhat.com>
96888         announce-gen: emit Gnulib's git-based version string.
96889         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
96890         New option --gnulib-version=V, where V is expected to be
96891         the output of running git describe in the gnulib directory.
96892         (get_tool_versions): Request feedback on xdelta.  I suspect it's
96893         not useful, and plan to stop publishing an xdelta file with each
96894         coreutils release.
96896         * build-aux/announce-gen: Also check for lzma-compressed files.
96898 2008-01-11  Bruno Haible  <bruno@clisp.org>
96900         * tests/test-memmem.c (main): Increase maximum allowed time.
96901         * tests/test-strstr.c (main): Likewise.
96903 2008-01-11  Bruno Haible  <bruno@clisp.org>
96905         * doc/functions/memmem.texi: Add more precisions about platforms.
96906         * doc/functions/strstr.texi: Likewise.
96908 2008-01-10  Eric Blake  <ebb9@byu.net>
96910         * m4/strstr.m4: Delete cruft from copy-n-paste.
96911         Reported by Bruno Haible.
96913 2008-01-10  Bruno Haible  <bruno@clisp.org>
96915         Make c-strstr rely on strstr.
96916         * lib/c-strstr.c: Don't include str-kmp.h.
96917         (c_strstr): Define in terms of strstr.
96918         * modules/c-strstr (Files): Remove lib/str-kmp.h.
96919         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
96921 2008-01-10  Bruno Haible  <bruno@clisp.org>
96923         * doc/gnulib.texi (String Functions in C Locale): New section.
96924         * doc/c-ctype.texi: New file.
96925         * doc/c-strcase.texi: New file.
96926         * doc/c-strcaseeq.texi: New file.
96927         * doc/c-strcasestr.texi: New file.
96928         * doc/c-strstr.texi: New file.
96929         * doc/c-strtod.texi: New file.
96930         * doc/c-strtold.texi: New file.
96932 2008-01-10  Eric Blake  <ebb9@byu.net>
96934         * lib/relocatable.h: Fix a comment.
96936 2008-01-10  Eric Blake  <ebb9@byu.net>
96938         Share two-way algorithm.
96939         * lib/str-two-way.h: New file, merged from...
96940         * lib/memmem.c: ...here...
96941         * lib/strstr.c: ...and here.
96942         * modules/memmem (Files): Use it.
96943         * modules/strstr (Files): Likewise.
96945         Avoid quadratic strstr implementations.
96946         * lib/strstr.c: New file.
96947         * m4/strstr.m4: Likewise.
96948         * modules/strstr: Likewise.
96949         * modules/strstr-tests: Likewise.
96950         * tests/test-strstr.c: Likewise.
96951         * lib/string.in.h (rpl_strstr): Declare.
96952         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
96953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
96954         * modules/string (Makefile.am): Likewise.
96955         * MODULES.html.sh (string handling): Mention new module.
96956         * doc/functions/strstr.texi (strstr): Document the bug.
96958 2008-01-10  Bruno Haible  <bruno@clisp.org>
96960         * lib/relocatable.h (relocate): State whether result is freshly
96961         allocated or not.
96962         * lib/relocatable.c (relocate): Return a freshly allocated string
96963         instead of a pointer to a privately held string.
96964         Reported by Sylvain Beucler <beuc@gnu.org>.
96966 2008-01-10  Colin Watson  <cjwatson@debian.org>
96968         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
96969         s/S_ISNLK/S_ISLNK/.
96971 2008-01-09  Bruno Haible  <bruno@clisp.org>
96973         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
96974         and other files.
96975         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
96976         if it's only a guess.
96977         * modules/memmem: Simplify by depending on memmem-simple.
96979 2008-01-09  Bruno Haible  <bruno@clisp.org>
96981         Work around OpenBSD 4.0 tdelete() bug.
96982         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
96983         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
96984         macros and don't redefine the enum values.
96985         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
96986         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
96987         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
96989 2008-01-09  Bruno Haible  <bruno@clisp.org>
96991         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
96992         (main): Don't perform the tests if setlocale did not install a UTF-8
96993         locale. Needed on OpenBSD 4.0.
96994         * modules/wcwidth-tests (Depends-on): Add localcharset.
96996 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96998         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
96999         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
97000         * NEWS: announce this.
97001         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
97003 2008-01-09  Simon Josefsson  <simon@josefsson.org>
97004         and Eric Blake  <ebb9@byu.net>
97006         Add memmem-simple module.
97007         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
97008         (gl_FUNC_MEMMEM): Separate performance from presence checks.
97009         * modules/memmem-simple: New file.
97010         * modules/memmem (Description): Tweak.
97011         * MODULES.html.sh (string handling): Mention new module.
97012         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
97013         addressed by memmem-simple.
97014         * NEWS: Document the difference.
97016 2008-01-09  Eric Blake  <ebb9@byu.net>
97018         Give gcc some memmem optimization hints.
97019         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
97020         (strcasestr): Declare as pure.
97021         * modules/memmem (Maintainer): Claim my implementation.
97023 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97025         Support AIX 6.1 and higher.
97026         * build-aux/config.libpath: Likewise.
97027         * build-aux/config.rpath: Likewise.
97029 2008-01-08  Jim Meyering  <meyering@redhat.com>
97030             Bruno Haible  <bruno@clisp.org>
97032         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
97033         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
97034         Reported by Peter Fales in
97035         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
97037 2008-01-08  Bruno Haible  <bruno@clisp.org>
97039         * modules/unictype/category-of (Depends-on): Add
97040         unictype/category-none.
97041         * modules/unictype/category-and-tests (Depends-on): Add
97042         unictype/category-{L,N,Lu,Nd}.
97043         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
97044         * modules/unictype/category-or-tests (Depends-on): Add
97045         unictype/category-{L,N}.
97046         * modules/unictype/category-name-tests (Depends-on): Add
97047         unictype/category-{Z,Nl}.
97048         Reported by Simon Josefsson.
97050 2008-01-08  Bruno Haible  <bruno@clisp.org>
97052         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
97053         convention better.
97054         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
97055         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
97056         Reported by Peter Miller <millerp@canb.auug.org.au>.
97058 2008-01-08  Eric Blake  <ebb9@byu.net>
97060         Rewrite memmem to guarantee linear complexity without malloc.
97061         * lib/memmem.c (memmem): Use Two-Way rather than
97062         Knuth-Morris-Pratt, to allow O(1) space usage.
97063         (critical_factorization, two_way_short_needle)
97064         (two_way_long_needle): New functions.
97065         (knuth_morris_pratt): Delete.
97066         * modules/memmem (Depends-on): No longer need malloca or stdbool.
97067         Add stdint.
97068         * tests/test-memmem.c (main): Add tests for periodic needle and
97069         sublinear performance.
97070         * doc/functions/memmem.texi (memmem): Document other deficiencies
97071         in cygwin and older glibc.
97073 2008-01-08  Bruno Haible  <bruno@clisp.org>
97075         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
97076         augmentation.
97078 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
97080         Add a configure time option: --disable-acl.
97081         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
97082         AC_ARG_ENABLE(acl).
97084 2008-01-06  Simon Josefsson  <simon@josefsson.org>
97086         * tests/test-localename.c: Don't include obsolete "setenv.h".
97088         * modules/localename-tests (Depends-on): Need unsetenv.
97090 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97092         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
97094 2008-01-06  Colin Watson  <cjwatson@debian.org>
97096         * users.txt: Add man-db.
97098 2008-01-07  Bruno Haible  <bruno@clisp.org>
97100         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
97101         previous section name.
97103 2008-01-07  Bruno Haible  <bruno@clisp.org>
97105         * lib/progname.c (set_program_name): Don't strip off a leading
97106         "lt-" prefix outside a .libs directory.
97107         Suggested by Paul Eggert.
97109 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
97110             Bruno Haible  <bruno@clisp.org>
97112         Improve memory cleanup in 'relocatable' module.
97113         * lib/relocatable.h (compute_curr_prefix): Change return type to
97114         'char *'.
97115         * lib/relocatable.c (compute_curr_prefix): Change return type to
97116         'char *'. Free curr_installdir after use.
97117         (relocate): Free curr_prefix_better after use.
97118         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
97120 2008-01-01  Bruno Haible  <bruno@clisp.org>
97122         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
97123         failure on older glibc systems.
97124         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97126 2008-01-05  Eric Blake  <ebb9@byu.net>
97128         Avoid quadratic system memmem.
97129         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
97130         Reported by Ralf Wildenhues.
97132         Fix memmem test for mingw.
97133         * modules/memmem-tests (configure.ac): Check for alarm.
97134         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
97135         it.
97136         * doc/functions/memmem.texi: New file.
97137         * doc/gnulib.texi (Function Substitutes): Add memmem.
97138         Reported by Bruno Haible.
97140 2008-01-04  Bruno Haible  <bruno@clisp.org>
97142         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
97143         Require gl_HEADER_STRINGS_H_DEFAULTS, not
97144         gl_HEADER_STRING_H_DEFAULTS.
97146 2008-01-04  Eric Blake  <ebb9@byu.net>
97148         Shorten duration of memmem test.
97149         * tests/test-memmem.c (main): Use alarm to declare failure if test
97150         is taking too long.
97151         Reported by Ralf Wildenhues.
97153 2007-12-21  Simon Josefsson  <simon@josefsson.org>
97155         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
97156         string, needed by strerror.
97158 2008-01-03  Colin Watson  <cjwatson@debian.org>
97159             Bruno Haible  <bruno@clisp.org>
97161         * doc/gnulib-tool.texi (Localization): New section.
97163 2008-01-02  Bruno Haible  <bruno@clisp.org>
97165         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
97166         variables to 'unsigned char *' type.
97167         Reported by Paul Eggert.
97169 2008-01-02  Jim Meyering  <jim@meyering.net>
97171         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
97173 2007-12-31  Jim Meyering  <jim@meyering.net>
97175         Avoid use of private FTS type name.
97176         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
97178 2007-12-30  Karl Berry  <karl@gnu.org>
97180         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
97181         work around defect in Texinfo and/or the standalone Info browser.
97183 2007-12-30  Bruno Haible  <bruno@clisp.org>
97185         Unify 5 copies of the KMP code.
97186         * lib/str-kmp.h: New file.
97187         * lib/c-strcasestr.c: Include str-kmp.h.
97188         (knuth_morris_pratt): Remove function.
97189         (c_strcasestr): Update.
97190         * lib/c-strstr.c: Include str-kmp.h.
97191         (knuth_morris_pratt): Remove function.
97192         (c_strcasestr): Update.
97193         * lib/mbscasestr.c: Include str-kmp.h.
97194         (knuth_morris_pratt_unibyte): Remove function.
97195         * lib/mbsstr.c: Include str-kmp.h.
97196         (knuth_morris_pratt_unibyte): Remove function.
97197         * lib/strcasestr.c: Include str-kmp.h.
97198         (knuth_morris_pratt): Remove function.
97199         (strcasestr): Update.
97200         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
97201         * modules/c-strstr (Files): Likewise.
97202         * modules/mbscasestr (Files): Likewise.
97203         * modules/mbsstr (Files): Likewise.
97204         * modules/strcasestr (Files): Likewise.
97205         Suggested by Paul Eggert.
97207 2007-12-30  Bruno Haible  <bruno@clisp.org>
97209         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
97210         defined.
97212 2007-12-30  Bruno Haible  <bruno@clisp.org>
97214         * lib/xmalloca.h: Include xalloc.h.
97215         (xnmalloca): New macro.
97217 2007-12-30  Bruno Haible  <bruno@clisp.org>
97219         * lib/malloca.h (nmalloca): New macro.
97220         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
97221         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
97222         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
97223         knuth_morris_pratt_multibyte): Likewise.
97224         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
97225         knuth_morris_pratt_multibyte): Likewise.
97226         * lib/memmem.c (knuth_morris_pratt): Likewise.
97227         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
97229 2007-12-25  Bruno Haible  <bruno@clisp.org>
97231         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
97232         * lib/glob.c: Don't include openat.h.
97233         (link_exists2_p): Add back the code that deals with the
97234         !GLOB_ALTDIRFUNC case.
97235         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
97236         let it do the filename concatenation.
97237         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
97238         * modules/glob (Depends-on): Remove openat.
97240 2007-12-31  Bruno Haible  <bruno@clisp.org>
97242         * modules/dirfd (License): Change to LGPLv2+.
97243         Approved by Jim Meyering.
97245 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
97247         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
97248         when multiplying M by sizeof (size_t).
97250 2007-12-10  Martin Lambers  <marlam@marlam.de>
97252         Override getpagesize on mingw.
97253         * lib/getpagesize.c: New file.
97254         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
97255         * modules/getpagesize (Files): Add lib/getpagesize.c.
97256         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
97257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
97258         REPLACE_GETPAGESIZE.
97259         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
97261 2007-12-25  Bruno Haible  <bruno@clisp.org>
97263         * modules/localcharset (Notice): New field.
97264         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
97265         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
97267 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
97268             Bruno Haible  <bruno@clisp.org>
97270         Avoid using the syntax symbol() in formatted documentation.
97271         * MODULES.html.sh (func_module): When replacing symbol() with a
97272         hyperlink, remove the parentheses. Show an error if some remain.
97273         Recognize and render the '...' syntax.
97274         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
97275         Rework. Add paragraph about GCC's inlining.
97276         * doc/alloca.texi: Likewise.
97277         * doc/error.texi: Remove parentheses from symbol reference.
97278         * doc/gnulib-intro.texi: Likewise.
97279         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
97280         * modules/fnmatch (Description): Reword to say "the ... function".
97281         * modules/full-read (Description): Likewise.
97282         * modules/full-write (Description): Likewise.
97283         * modules/safe-read (Description): Likewise.
97284         * modules/safe-write (Description): Likewise.
97285         * modules/strchrnul (Description): Likewise.
97286         * modules/trim (Description): Likewise.
97287         * modules/error (Description): Remove parentheses from symbol
97288         references.
97289         * modules/verror (Description): Likewise.
97290         Reported by Karl Berry.
97292 2007-12-25  Bruno Haible  <bruno@clisp.org>
97294         Fixup after 2007-10-16 commit.
97295         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
97297 2007-12-24  Bruno Haible  <bruno@clisp.org>
97299         Make --enable-relocatable work with DESTDIR.
97300         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
97301         to compute installdir from destprog.
97302         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
97303         also set the RELOC_DESTDIR variable.
97304         Reported by Левашев Иван <octagram@bluebottle.com>.
97306 2007-12-24  Bruno Haible  <bruno@clisp.org>
97308         Fix link error due to xalloc_die().
97309         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
97310         of xreadlink.
97311         * lib/relocwrapper.c: Update comments.
97312         * build-aux/install-reloc: Remove xreadlink.c from file list.
97313         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
97314         xreadlink.c.
97315         Reported by Левашев Иван <octagram@bluebottle.com>.
97317 2007-12-24  Bruno Haible  <bruno@clisp.org>
97319         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
97320         * lib/setenv.h: Remove file.
97321         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
97322         lib/setenv.h.
97323         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
97324         (Depends-on): Add stdlib.
97325         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
97326         gl_FUNC_UNSETENV.
97327         (Include): Replace setenv.h with <stdlib.h>.
97328         * modules/unsetenv: New file.
97329         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
97330         * lib/unsetenv.c: Include <stdlib.h> first.
97331         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
97332         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
97333         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
97334         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
97335         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
97336         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
97338         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97339         * doc/functions/unsetenv.texi: Update.
97340         * modules/xsetenv (Depends-on): Add unsetenv.
97341         * modules/getdate (Depends-on): Likewise.
97342         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
97343         * lib/xsetenv.c: Don't include setenv.h.
97344         * lib/getdate.y: Likewise.
97345         * lib/relocwrapper.c: Likewise.
97346         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
97347         (Depends-on): Add stdlib.
97348         * NEWS: Mention the changes.
97349         Reported by Левашев Иван <octagram@bluebottle.com>.
97351 2007-12-23  Bruno Haible  <bruno@clisp.org>
97353         * lib/memmem.c (memmem): Use lowercase variable names. Tab
97354         indentation.
97356 2007-12-23  Bruno Haible  <bruno@clisp.org>
97358         * lib/c-strcasestr.c: Add more comments.
97359         * lib/c-strstr.c: Likewise.
97360         * lib/mbscasestr.c: Likewise.
97361         * lib/mbsstr.c: Likewise.
97362         * lib/strcasestr.c: Likewise.
97363         * lib/memmem.c: Likewise.
97365 2007-12-23  Bruno Haible  <bruno@clisp.org>
97367         * tests/test-memmem.c: Include <string.h> first.
97369 2007-12-22  Bruno Haible  <bruno@clisp.org>
97371         * gnulib-tool (func_create_testdir): Change $auxdir while generating
97372         the contents of $testsbase.
97373         Reported by Ralf Wildenhues.
97375 2007-12-22  Bruno Haible  <bruno@clisp.org>
97377         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
97378         two variables local_ldadd_before, local_ldadd_last.
97380 2007-12-20  Eric Blake  <ebb9@byu.net>
97382         Work around circular library issue when cross-compiling.
97383         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
97384         that progname.o does not need to pull in rpl_memcmp.
97386 2007-12-19  Eric Blake  <ebb9@byu.net>
97388         Fix memmem to avoid O(n^2) worst-case complexity.
97389         * lib/memmem.c (knuth_morris_pratt): New function.
97390         (memmem): Use it if first few naive iterations fail.
97391         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
97392         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
97393         * modules/memchr (License): Likewise.
97394         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
97395         malloca.
97396         * tests/test-memmem.c: Rewrite, borrowing ideas from
97397         test-mbsstr1.c; the old version wouldn't even compile!
97398         * modules/memmem-tests: New file.
97399         * lib/string.in.h (rpl_memmem): Add declaration.
97400         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
97401         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
97402         REPLACE_MEMMEM.
97404 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
97406         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
97407         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
97408         before any system include files, and undef after them all.  This
97409         should fix a problem on VMS reported by John E. Malmberg in
97410         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
97412 2007-12-17  Eric Blake  <ebb9@byu.net>
97414         Revert addition of verify, for BSD/OS.
97415         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
97416         can't handle large files, for the sake of obsolete platforms.
97417         * modules/fseeko (Depends-on): Remove verify.
97418         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
97419         * doc/functions/ftello.texi (ftello): Likewise.
97420         * doc/functions/fgetpos.texi (fgetpos): Likewise.
97421         Reported by Larry Jones.
97423 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
97425         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
97426         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
97428 2007-12-17  Jim Meyering  <meyering@redhat.com>
97430         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
97431         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
97432         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
97433         * modules/getcwd (Depends-on): Add openat.
97434         Reported by Petr Salinger.
97436 2007-12-17  Bruno Haible  <bruno@clisp.org>
97438         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
97439         avoid a segmentation fault of the configure test on x86_64 systems.
97441 2007-12-15  Jim Meyering  <meyering@redhat.com>
97443         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
97445 2007-12-13  Eric Blake  <ebb9@byu.net>
97447         Another fseek test.
97448         * tests/test-fseek.c (main): Also test ungetc handling.
97449         * tests/test-fseeko.c (main): Likewise.
97450         * modules/fseeko (Depends-on): Add verify.
97451         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
97452         large.
97453         Reported by Larry Jones.
97455         Fix fseeko on mingw.
97456         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
97457         seek.
97459         Beef up fseek tests.
97460         * tests/test-fseek.c (main): Also test eof handling.
97461         * tests/test-fseeko.c (main): Likewise.
97462         Reported by Larry Jones.
97464 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
97466         Fix fseeko on BSD-based platforms.
97467         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
97468         successful seek.
97470 2007-12-12  Eric Blake  <ebb9@byu.net>
97472         Allow circular dependency of separate libtests.a
97473         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
97474         when use_libtests.
97476 2007-12-11  Eric Blake  <ebb9@byu.net>
97478         Fix bug with -0.0L in previous patch.
97479         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
97480         * tests/test-isnan.c (main): Also test on zeroes.
97481         * tests/test-isnanf.c (main): Likewise.
97482         * tests/test-isnanl.h (main): Likewise.
97484         Detect pseudo-denormals on x86 even when cross-compiling.
97485         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
97486         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
97487         invalid bit patterns that happen to satisfy ==.
97489         Avoid link failures with separate libtests.a.
97490         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
97491         last, to satisfy circular dependencies.
97493 2007-12-11  Eric Blake  <ebb9@byu.net>
97494         and Bruno Haible  <bruno@clisp.org>
97496         Fix OpenBSD 4.0 <float.h> handling of long double.
97497         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
97498         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
97499         * doc/headers/float.texi (float.h): Document OpenBSD bug.
97501 2007-12-11  Jim Meyering  <meyering@redhat.com>
97503         * users.txt: Add libvirt.
97505         Support versions of autoconf prior to 2.59c.
97506         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
97507         if it is not already defined.
97509 2007-12-09  Bruno Haible  <bruno@clisp.org>
97511         Let 'gnulib-tool --import' collect sources needed for the tests in
97512         tests/ rather than in lib/.
97513         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
97514         argument. If true, add rules to generate libtests.a, and put libtests.a
97515         into $(LDADD). Consider source files in subdirectories and set
97516         uses_subdirs.
97517         (func_emit_initmacro_start, func_emit_initmacro_end,
97518         func_emit_initmacro_done): Pass all arguments explicitly.
97519         (func_import): Determine two module lists main_modules,
97520         testsrelated_modules. Determine use_libtests. Determine two variables
97521         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
97522         instead of just sed_transform_lib_file. Determine two variables
97523         main_files and testsrelated_files. Compute 'files' as the union of
97524         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
97525         func_add_or_update. In the generated gnulib-comp.m4, collect the
97526         object files for tests/ in different variables than those for lib/.
97527         Substitute LIBTESTS_LIBDEPS.
97528         (func_create_testdir): Combine the uses_subdirs results from
97529         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
97531 2007-12-09  Bruno Haible  <bruno@clisp.org>
97533         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
97534         the build-aux directory.
97536 2007-12-09  Bruno Haible  <bruno@clisp.org>
97538         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
97539         introduced on 2006-09-09.
97541 2007-12-07  Jim Meyering  <meyering@redhat.com>
97543         Let these macros work also with autoconf-2.59.
97544         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
97545         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
97546         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97548 2007-12-06  Jim Meyering  <meyering@redhat.com>
97550         Avoid a configure-time syntax error in gl_FUNC_ACL.
97551         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
97552         function in each branch, before testing the cache variable.
97554 2007-12-04  Eric Blake  <ebb9@byu.net>
97556         Make scripts executable.
97557         * build-aux/config.guess: Add execute permissions.
97558         * build-aux/config.sub: Likewise.
97559         * build-aux/gendocs.sh: Likewise.
97561         Fix frexp on mingw.
97562         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
97563         cross-compiling.
97564         * doc/functions/frexp.texi (frexp): Document the bug.
97566         Make cygwin fseeko check more reliable.
97567         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
97568         version numbers, rather than unrelated feature check.
97569         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
97570         * doc/functions/ftello.texi (ftello): Likewise.
97571         Reported by Bruno Haible.
97573         * m4/strerror.m4: Bump version number.
97575 2007-12-03  Bruno Haible  <bruno@clisp.org>
97577         * doc/functions/mprotect.texi: Mention the mingw problem.
97579 2007-12-03  Eric Blake  <ebb9@byu.net>
97581         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
97582         REPLACE_STRERROR is initialized before this macro.
97584 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
97586         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
97587         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
97588         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
97589         put -lsec in even for programs other than 'ls'.  This fixes a problem
97590         for gettext reported by Bruno Haible in
97591         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
97592         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
97593         Add support for Solaris 10.  This isn't efficient, but should get the
97594         job done for now.
97596 2007-12-03  James Youngman  <jay@gnu.org>
97598         * doc/regexprops-generic.texi: change "an close-group" to "a
97599         close-group" and "illegal" to "not allowed".
97601 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97603         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
97604         pr_byname.h. Needed for the rare case when the maintainer has done
97605         "make maintainer-clean" in the source directory and then attempts a
97606         build outside the source directory.
97607         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
97608         scripts_byname.h.
97610 2007-12-02  Martin Lambers  <marlam@marlam.de>
97611             Bruno Haible  <bruno@clisp.org>
97613         * lib/getpagesize.h: Remove file.
97614         * lib/unistd.in.h: Include declaration of getpagesize here.
97615         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
97616         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
97617         HAVE_SYS_PARAM_H.
97618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
97619         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97620         * modules/getpagesize (Files): Remove lib/getpagesize.h.
97621         (Depends-on): Add unistd.
97622         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97623         (Include): Use <unistd.h> instead of getpagesize.h.
97624         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
97625         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97626         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
97627         gl_GETPAGESIZE invocation, already handled by module dependency.
97628         * lib/pagealign_alloc.c: Don't include getpagesize.h.
97630 2007-12-02  Bruno Haible  <bruno@clisp.org>
97632         * modules/strings-tests: New file.
97633         * tests/test-strings.c: New file.
97635         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
97636         * lib/strings.in.h: New file.
97637         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
97638         * m4/strings_h.m4: New file.
97639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
97640         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
97641         * modules/strings: New file.
97642         * modules/string (Makefile.am): Update.
97643         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
97644         Reported by Karl Berry.
97646 2007-12-01  Eric Blake  <ebb9@byu.net>
97648         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
97649         accommodate fix in cygwin 1.5.25.
97651 2007-12-01  Jim Meyering  <meyering@redhat.com>
97653         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
97654         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
97655         that would inhibit utf8-optimization of a regexp containing line-
97656         or buffer-anchors, e.g., `^', `$'.
97658 2007-11-30  Bruno Haible  <bruno@clisp.org>
97660         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
97661         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
97662         glthread_recursive_lock_init.
97663         * lib/lock.c (glthread_recursive_lock_init)
97664         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
97665         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97667 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
97669         New function qset_acl, like set_acl but with syscall semantics.
97670         * lib/acl.h (qset_acl): New decl.
97671         * lib/acl.c (qset_acl): New function.
97672         (set_acl): Use new function.  Use more-consistent diagnostics.
97674 2007-11-28  Jim Meyering  <meyering@redhat.com>
97676         * modules/physmem (License): Change from GPL to LGPLv2+.
97678 2007-11-26  Bruno Haible  <bruno@clisp.org>
97680         * lib/vasnprintf.c (decode_long_double): Don't abort if the
97681         'long double' type has excess precision.
97682         Reported by Jim Meyering in
97683         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
97685 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97687         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
97688         Sync from <http://gnu.org/licenses>.
97689         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
97690         with license text from same location.
97691         * doc/maintain.texi, doc/standards.texi:  Sync from
97692         <http://savannah.gnu.org/projects/gnustandards>.
97694 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
97695         and Jim Meyering  <meyering@redhat.com>
97697         Adjust getdate' grammar to accept a slightly more regular language.
97698         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
97699         Before, the former was rejected.
97700         * lib/getdate.y (digits_to_date_time): New function, factored
97701         out of ...
97702         (number): ...here.  Just call digits_to_date_time.
97703         (hybrid): New non-terminal to handle an <unsigned number,
97704         signed relative offset> sequence consistently.
97706 2007-11-18  Jim Meyering  <meyering@redhat.com>
97708         Pull my changes from coreutils:
97709         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
97710         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
97711         use of $gnulib_tool_option_extras, so that it's separated from the
97712         preceding argument.
97714         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
97715         * build-aux/bootstrap (cp_mark_as_generated): Create any required
97716         parent destination directories before copying a file into place.
97718 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
97720         bootstrap: work also with 4-argument variant of AC_INIT
97721         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
97723 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
97725         Port test-getaddrinfo to Solaris.
97726         Problem reported by Bruno Haible in
97727         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
97728         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
97729         explanation of setting 'hints'.
97730         Don't reject an implementation merely because it returns EAI_SERVICE.
97731         (EAI_SERVICE): Define to 0 if not defined.
97733 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
97735         The license of gnu-make and posix-shell is now "GPLed build tool".
97736         * modules/gnu-make (License): Likewise.
97737         * modules/posix-shell (License): Likewise.
97739         New module posix-shell, for determining a POSIX shell
97740         or perhaps something that is close enough to a POSIX shell.
97741         * m4/posix-shell.m4: New file.
97742         * modules/posix-shell: New file.
97744         * MODULES.html.sh: Mention new module.
97746         New module gnu-make, for determining whether we're using GNU Make.
97747         * m4/gnu-make.m4: New file.
97748         * modules/gnu-make: New file.
97749         * MODULES.html.sh: Mention new module.
97751 2007-11-14  Jim Meyering  <meyering@redhat.com>
97753         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
97754         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
97755         use this macro to create a function _definition_.
97756         Remove useless "#undef ARGMATCH_DIE".
97758 2007-11-14  Bruno Haible  <bruno@clisp.org>
97760         * lib/config.charset: Update for OpenBSD 4.1.
97761         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
97763 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
97765         Document 64-bit #if problems in stdint.texi.
97766         * doc/headers/stdint.texi (stdint.h): Mention problems with
97767         64-bit-#if, and how to work around them.
97769         Don't insist on 'long long int' support in the preprocessor.  It
97770         breaks too many things.  For example, PRIdMAX still uses a 'long
97771         long int' format with the latest Sun compiler, even though
97772         HAVE_LONG_LONG_INT isn't defined due to that compiler's
97773         preprocessor problem.  This causes the latest coreutils to dump
97774         core on Solaris 10 sparc with the Sun C compiler.
97775         Instead, fix the 2007-10-16 problem in a different way, by evaluating
97776         the troublesome expressions at configure-time, not at #if-time.
97777         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
97778         preprocessor.
97779         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
97780         compile-time C checks, done at 'configure'-time.
97781         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
97782         * modules/inttypes (Makefile): Substitute the new symbols that
97783         gl_INTTYPES_H now generates.
97784         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
97786 2007-11-12  Bruno Haible  <bruno@clisp.org>
97788         Tests for Unicode character classification functions.
97790         * modules/unictype/bidicategory-byname-tests: New file.
97791         * modules/unictype/bidicategory-name-tests: New file.
97792         * modules/unictype/bidicategory-of-tests: New file.
97793         * modules/unictype/bidicategory-test-tests: New file.
97794         * modules/unictype/block-list-tests: New file.
97795         * modules/unictype/block-of-tests: New file.
97796         * modules/unictype/block-test-tests: New file.
97797         * modules/unictype/category-C-tests: New file.
97798         * modules/unictype/category-Cc-tests: New file.
97799         * modules/unictype/category-Cf-tests: New file.
97800         * modules/unictype/category-Cn-tests: New file.
97801         * modules/unictype/category-Co-tests: New file.
97802         * modules/unictype/category-Cs-tests: New file.
97803         * modules/unictype/category-L-tests: New file.
97804         * modules/unictype/category-Ll-tests: New file.
97805         * modules/unictype/category-Lm-tests: New file.
97806         * modules/unictype/category-Lo-tests: New file.
97807         * modules/unictype/category-Lt-tests: New file.
97808         * modules/unictype/category-Lu-tests: New file.
97809         * modules/unictype/category-M-tests: New file.
97810         * modules/unictype/category-Mc-tests: New file.
97811         * modules/unictype/category-Me-tests: New file.
97812         * modules/unictype/category-Mn-tests: New file.
97813         * modules/unictype/category-N-tests: New file.
97814         * modules/unictype/category-Nd-tests: New file.
97815         * modules/unictype/category-Nl-tests: New file.
97816         * modules/unictype/category-No-tests: New file.
97817         * modules/unictype/category-P-tests: New file.
97818         * modules/unictype/category-Pc-tests: New file.
97819         * modules/unictype/category-Pd-tests: New file.
97820         * modules/unictype/category-Pe-tests: New file.
97821         * modules/unictype/category-Pf-tests: New file.
97822         * modules/unictype/category-Pi-tests: New file.
97823         * modules/unictype/category-Po-tests: New file.
97824         * modules/unictype/category-Ps-tests: New file.
97825         * modules/unictype/category-S-tests: New file.
97826         * modules/unictype/category-Sc-tests: New file.
97827         * modules/unictype/category-Sk-tests: New file.
97828         * modules/unictype/category-Sm-tests: New file.
97829         * modules/unictype/category-So-tests: New file.
97830         * modules/unictype/category-Z-tests: New file.
97831         * modules/unictype/category-Zl-tests: New file.
97832         * modules/unictype/category-Zp-tests: New file.
97833         * modules/unictype/category-Zs-tests: New file.
97834         * modules/unictype/category-and-not-tests: New file.
97835         * modules/unictype/category-and-tests: New file.
97836         * modules/unictype/category-byname-tests: New file.
97837         * modules/unictype/category-name-tests: New file.
97838         * modules/unictype/category-none-tests: New file.
97839         * modules/unictype/category-of-tests: New file.
97840         * modules/unictype/category-or-tests: New file.
97841         * modules/unictype/category-test-withtable-tests: New file.
97842         * modules/unictype/combining-class-tests: New file.
97843         * modules/unictype/ctype-alnum-tests: New file.
97844         * modules/unictype/ctype-alpha-tests: New file.
97845         * modules/unictype/ctype-blank-tests: New file.
97846         * modules/unictype/ctype-cntrl-tests: New file.
97847         * modules/unictype/ctype-digit-tests: New file.
97848         * modules/unictype/ctype-graph-tests: New file.
97849         * modules/unictype/ctype-lower-tests: New file.
97850         * modules/unictype/ctype-print-tests: New file.
97851         * modules/unictype/ctype-punct-tests: New file.
97852         * modules/unictype/ctype-space-tests: New file.
97853         * modules/unictype/ctype-upper-tests: New file.
97854         * modules/unictype/ctype-xdigit-tests: New file.
97855         * modules/unictype/decimal-digit-tests: New file.
97856         * modules/unictype/digit-tests: New file.
97857         * modules/unictype/mirror-tests: New file.
97858         * modules/unictype/numeric-tests: New file.
97859         * modules/unictype/property-alphabetic-tests: New file.
97860         * modules/unictype/property-ascii-hex-digit-tests: New file.
97861         * modules/unictype/property-bidi-arabic-digit-tests: New file.
97862         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
97863         * modules/unictype/property-bidi-block-separator-tests: New file.
97864         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
97865         * modules/unictype/property-bidi-common-separator-tests: New file.
97866         * modules/unictype/property-bidi-control-tests: New file.
97867         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
97868         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
97869         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
97870         * modules/unictype/property-bidi-european-digit-tests: New file.
97871         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
97872         * modules/unictype/property-bidi-left-to-right-tests: New file.
97873         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
97874         * modules/unictype/property-bidi-other-neutral-tests: New file.
97875         * modules/unictype/property-bidi-pdf-tests: New file.
97876         * modules/unictype/property-bidi-segment-separator-tests: New file.
97877         * modules/unictype/property-bidi-whitespace-tests: New file.
97878         * modules/unictype/property-byname-tests: New file.
97879         * modules/unictype/property-combining-tests: New file.
97880         * modules/unictype/property-composite-tests: New file.
97881         * modules/unictype/property-currency-symbol-tests: New file.
97882         * modules/unictype/property-dash-tests: New file.
97883         * modules/unictype/property-decimal-digit-tests: New file.
97884         * modules/unictype/property-default-ignorable-code-point-tests: New file.
97885         * modules/unictype/property-deprecated-tests: New file.
97886         * modules/unictype/property-diacritic-tests: New file.
97887         * modules/unictype/property-extender-tests: New file.
97888         * modules/unictype/property-format-control-tests: New file.
97889         * modules/unictype/property-grapheme-base-tests: New file.
97890         * modules/unictype/property-grapheme-extend-tests: New file.
97891         * modules/unictype/property-grapheme-link-tests: New file.
97892         * modules/unictype/property-hex-digit-tests: New file.
97893         * modules/unictype/property-hyphen-tests: New file.
97894         * modules/unictype/property-id-continue-tests: New file.
97895         * modules/unictype/property-id-start-tests: New file.
97896         * modules/unictype/property-ideographic-tests: New file.
97897         * modules/unictype/property-ids-binary-operator-tests: New file.
97898         * modules/unictype/property-ids-trinary-operator-tests: New file.
97899         * modules/unictype/property-ignorable-control-tests: New file.
97900         * modules/unictype/property-iso-control-tests: New file.
97901         * modules/unictype/property-join-control-tests: New file.
97902         * modules/unictype/property-left-of-pair-tests: New file.
97903         * modules/unictype/property-line-separator-tests: New file.
97904         * modules/unictype/property-logical-order-exception-tests: New file.
97905         * modules/unictype/property-lowercase-tests: New file.
97906         * modules/unictype/property-math-tests: New file.
97907         * modules/unictype/property-non-break-tests: New file.
97908         * modules/unictype/property-not-a-character-tests: New file.
97909         * modules/unictype/property-numeric-tests: New file.
97910         * modules/unictype/property-other-alphabetic-tests: New file.
97911         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
97912         * modules/unictype/property-other-grapheme-extend-tests: New file.
97913         * modules/unictype/property-other-id-continue-tests: New file.
97914         * modules/unictype/property-other-id-start-tests: New file.
97915         * modules/unictype/property-other-lowercase-tests: New file.
97916         * modules/unictype/property-other-math-tests: New file.
97917         * modules/unictype/property-other-uppercase-tests: New file.
97918         * modules/unictype/property-paired-punctuation-tests: New file.
97919         * modules/unictype/property-paragraph-separator-tests: New file.
97920         * modules/unictype/property-pattern-syntax-tests: New file.
97921         * modules/unictype/property-pattern-white-space-tests: New file.
97922         * modules/unictype/property-private-use-tests: New file.
97923         * modules/unictype/property-punctuation-tests: New file.
97924         * modules/unictype/property-quotation-mark-tests: New file.
97925         * modules/unictype/property-radical-tests: New file.
97926         * modules/unictype/property-sentence-terminal-tests: New file.
97927         * modules/unictype/property-soft-dotted-tests: New file.
97928         * modules/unictype/property-space-tests: New file.
97929         * modules/unictype/property-terminal-punctuation-tests: New file.
97930         * modules/unictype/property-test-tests: New file.
97931         * modules/unictype/property-titlecase-tests: New file.
97932         * modules/unictype/property-unassigned-code-value-tests: New file.
97933         * modules/unictype/property-unified-ideograph-tests: New file.
97934         * modules/unictype/property-uppercase-tests: New file.
97935         * modules/unictype/property-variation-selector-tests: New file.
97936         * modules/unictype/property-white-space-tests: New file.
97937         * modules/unictype/property-xid-continue-tests: New file.
97938         * modules/unictype/property-xid-start-tests: New file.
97939         * modules/unictype/property-zero-width-tests: New file.
97940         * modules/unictype/scripts-tests: New file.
97941         * modules/unictype/syntax-c-ident-tests: New file.
97942         * modules/unictype/syntax-c-whitespace-tests: New file.
97943         * modules/unictype/syntax-java-ident-tests: New file.
97944         * modules/unictype/syntax-java-whitespace-tests: New file.
97945         * tests/unictype/test-bidi_byname.c: New file.
97946         * tests/unictype/test-bidi_name.c: New file.
97947         * tests/unictype/test-bidi_of.c: New file.
97948         * tests/unictype/test-bidi_test.c: New file.
97949         * tests/unictype/test-block_list.c: New file.
97950         * tests/unictype/test-block_of.c: New file.
97951         * tests/unictype/test-block_test.c: New file.
97952         * tests/unictype/test-categ_and.c: New file.
97953         * tests/unictype/test-categ_and_not.c: New file.
97954         * tests/unictype/test-categ_byname.c: New file.
97955         * tests/unictype/test-categ_name.c: New file.
97956         * tests/unictype/test-categ_none.c: New file.
97957         * tests/unictype/test-categ_of.c: New file.
97958         * tests/unictype/test-categ_or.c: New file.
97959         * tests/unictype/test-categ_test_withtable.c: New file.
97960         * tests/unictype/test-combining.c: New file.
97961         * tests/unictype/test-decdigit.c: New file.
97962         * tests/unictype/test-digit.c: New file.
97963         * tests/unictype/test-mirror.c: New file.
97964         * tests/unictype/test-numeric.c: New file.
97965         * tests/unictype/test-pr_byname.c: New file.
97966         * tests/unictype/test-pr_test.c: New file.
97967         * tests/unictype/test-predicate-part1.h: New file.
97968         * tests/unictype/test-predicate-part2.h: New file.
97969         * tests/unictype/test-scripts.c: New file.
97970         * tests/unictype/test-sy_c_ident.c: New file.
97971         * tests/unictype/test-sy_java_ident.c: New file.
97973         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
97974         for Unicode 5.0.0.
97975         * tests/unictype/test-categ_Cc.c: Likewise.
97976         * tests/unictype/test-categ_Cf.c: Likewise.
97977         * tests/unictype/test-categ_Cn.c: Likewise.
97978         * tests/unictype/test-categ_Co.c: Likewise.
97979         * tests/unictype/test-categ_Cs.c: Likewise.
97980         * tests/unictype/test-categ_L.c: Likewise.
97981         * tests/unictype/test-categ_Ll.c: Likewise.
97982         * tests/unictype/test-categ_Lm.c: Likewise.
97983         * tests/unictype/test-categ_Lo.c: Likewise.
97984         * tests/unictype/test-categ_Lt.c: Likewise.
97985         * tests/unictype/test-categ_Lu.c: Likewise.
97986         * tests/unictype/test-categ_M.c: Likewise.
97987         * tests/unictype/test-categ_Mc.c: Likewise.
97988         * tests/unictype/test-categ_Me.c: Likewise.
97989         * tests/unictype/test-categ_Mn.c: Likewise.
97990         * tests/unictype/test-categ_N.c: Likewise.
97991         * tests/unictype/test-categ_Nd.c: Likewise.
97992         * tests/unictype/test-categ_Nl.c: Likewise.
97993         * tests/unictype/test-categ_No.c: Likewise.
97994         * tests/unictype/test-categ_P.c: Likewise.
97995         * tests/unictype/test-categ_Pc.c: Likewise.
97996         * tests/unictype/test-categ_Pd.c: Likewise.
97997         * tests/unictype/test-categ_Pe.c: Likewise.
97998         * tests/unictype/test-categ_Pf.c: Likewise.
97999         * tests/unictype/test-categ_Pi.c: Likewise.
98000         * tests/unictype/test-categ_Po.c: Likewise.
98001         * tests/unictype/test-categ_Ps.c: Likewise.
98002         * tests/unictype/test-categ_S.c: Likewise.
98003         * tests/unictype/test-categ_Sc.c: Likewise.
98004         * tests/unictype/test-categ_Sk.c: Likewise.
98005         * tests/unictype/test-categ_Sm.c: Likewise.
98006         * tests/unictype/test-categ_So.c: Likewise.
98007         * tests/unictype/test-categ_Z.c: Likewise.
98008         * tests/unictype/test-categ_Zl.c: Likewise.
98009         * tests/unictype/test-categ_Zp.c: Likewise.
98010         * tests/unictype/test-categ_Zs.c: Likewise.
98011         * tests/unictype/test-ctype_alnum.c: Likewise.
98012         * tests/unictype/test-ctype_alpha.c: Likewise.
98013         * tests/unictype/test-ctype_blank.c: Likewise.
98014         * tests/unictype/test-ctype_cntrl.c: Likewise.
98015         * tests/unictype/test-ctype_digit.c: Likewise.
98016         * tests/unictype/test-ctype_graph.c: Likewise.
98017         * tests/unictype/test-ctype_lower.c: Likewise.
98018         * tests/unictype/test-ctype_print.c: Likewise.
98019         * tests/unictype/test-ctype_punct.c: Likewise.
98020         * tests/unictype/test-ctype_space.c: Likewise.
98021         * tests/unictype/test-ctype_upper.c: Likewise.
98022         * tests/unictype/test-ctype_xdigit.c: Likewise.
98023         * tests/unictype/test-decdigit.h: Likewise.
98024         * tests/unictype/test-digit.h: Likewise.
98025         * tests/unictype/test-numeric.h: Likewise.
98026         * tests/unictype/test-pr_alphabetic.c: Likewise.
98027         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
98028         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
98029         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
98030         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
98031         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
98032         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
98033         * tests/unictype/test-pr_bidi_control.c: Likewise.
98034         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
98035         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
98036         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
98037         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
98038         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
98039         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
98040         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
98041         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
98042         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
98043         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
98044         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
98045         * tests/unictype/test-pr_combining.c: Likewise.
98046         * tests/unictype/test-pr_composite.c: Likewise.
98047         * tests/unictype/test-pr_currency_symbol.c: Likewise.
98048         * tests/unictype/test-pr_dash.c: Likewise.
98049         * tests/unictype/test-pr_decimal_digit.c: Likewise.
98050         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
98051         * tests/unictype/test-pr_deprecated.c: Likewise.
98052         * tests/unictype/test-pr_diacritic.c: Likewise.
98053         * tests/unictype/test-pr_extender.c: Likewise.
98054         * tests/unictype/test-pr_format_control.c: Likewise.
98055         * tests/unictype/test-pr_grapheme_base.c: Likewise.
98056         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
98057         * tests/unictype/test-pr_grapheme_link.c: Likewise.
98058         * tests/unictype/test-pr_hex_digit.c: Likewise.
98059         * tests/unictype/test-pr_hyphen.c: Likewise.
98060         * tests/unictype/test-pr_id_continue.c: Likewise.
98061         * tests/unictype/test-pr_id_start.c: Likewise.
98062         * tests/unictype/test-pr_ideographic.c: Likewise.
98063         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
98064         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
98065         * tests/unictype/test-pr_ignorable_control.c: Likewise.
98066         * tests/unictype/test-pr_iso_control.c: Likewise.
98067         * tests/unictype/test-pr_join_control.c: Likewise.
98068         * tests/unictype/test-pr_left_of_pair.c: Likewise.
98069         * tests/unictype/test-pr_line_separator.c: Likewise.
98070         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
98071         * tests/unictype/test-pr_lowercase.c: Likewise.
98072         * tests/unictype/test-pr_math.c: Likewise.
98073         * tests/unictype/test-pr_non_break.c: Likewise.
98074         * tests/unictype/test-pr_not_a_character.c: Likewise.
98075         * tests/unictype/test-pr_numeric.c: Likewise.
98076         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
98077         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
98078         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
98079         * tests/unictype/test-pr_other_id_continue.c: Likewise.
98080         * tests/unictype/test-pr_other_id_start.c: Likewise.
98081         * tests/unictype/test-pr_other_lowercase.c: Likewise.
98082         * tests/unictype/test-pr_other_math.c: Likewise.
98083         * tests/unictype/test-pr_other_uppercase.c: Likewise.
98084         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
98085         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
98086         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
98087         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
98088         * tests/unictype/test-pr_private_use.c: Likewise.
98089         * tests/unictype/test-pr_punctuation.c: Likewise.
98090         * tests/unictype/test-pr_quotation_mark.c: Likewise.
98091         * tests/unictype/test-pr_radical.c: Likewise.
98092         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
98093         * tests/unictype/test-pr_soft_dotted.c: Likewise.
98094         * tests/unictype/test-pr_space.c: Likewise.
98095         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
98096         * tests/unictype/test-pr_titlecase.c: Likewise.
98097         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
98098         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
98099         * tests/unictype/test-pr_uppercase.c: Likewise.
98100         * tests/unictype/test-pr_variation_selector.c: Likewise.
98101         * tests/unictype/test-pr_white_space.c: Likewise.
98102         * tests/unictype/test-pr_xid_continue.c: Likewise.
98103         * tests/unictype/test-pr_xid_start.c: Likewise.
98104         * tests/unictype/test-pr_zero_width.c: Likewise.
98105         * tests/unictype/test-sy_c_whitespace.c: Likewise.
98106         * tests/unictype/test-sy_java_whitespace.c: Likewise.
98108 2007-11-12  Bruno Haible  <bruno@clisp.org>
98110         Unicode character classification functions.
98111         * lib/unictype.h: New file.
98112         * modules/unictype/base: New file.
98113         * modules/unictype/category-L: New file.
98114         * modules/unictype/category-Lu: New file.
98115         * modules/unictype/category-Ll: New file.
98116         * modules/unictype/category-Lt: New file.
98117         * modules/unictype/category-Lm: New file.
98118         * modules/unictype/category-Lo: New file.
98119         * modules/unictype/category-M: New file.
98120         * modules/unictype/category-Mn: New file.
98121         * modules/unictype/category-Mc: New file.
98122         * modules/unictype/category-Me: New file.
98123         * modules/unictype/category-N: New file.
98124         * modules/unictype/category-Nd: New file.
98125         * modules/unictype/category-Nl: New file.
98126         * modules/unictype/category-No: New file.
98127         * modules/unictype/category-P: New file.
98128         * modules/unictype/category-Pc: New file.
98129         * modules/unictype/category-Pd: New file.
98130         * modules/unictype/category-Ps: New file.
98131         * modules/unictype/category-Pe: New file.
98132         * modules/unictype/category-Pi: New file.
98133         * modules/unictype/category-Pf: New file.
98134         * modules/unictype/category-Po: New file.
98135         * modules/unictype/category-S: New file.
98136         * modules/unictype/category-Sm: New file.
98137         * modules/unictype/category-Sc: New file.
98138         * modules/unictype/category-Sk: New file.
98139         * modules/unictype/category-So: New file.
98140         * modules/unictype/category-Z: New file.
98141         * modules/unictype/category-Zs: New file.
98142         * modules/unictype/category-Zl: New file.
98143         * modules/unictype/category-Zp: New file.
98144         * modules/unictype/category-C: New file.
98145         * modules/unictype/category-Cc: New file.
98146         * modules/unictype/category-Cf: New file.
98147         * modules/unictype/category-Cs: New file.
98148         * modules/unictype/category-Co: New file.
98149         * modules/unictype/category-Cn: New file.
98150         * modules/unictype/category-or: New file.
98151         * modules/unictype/category-of: New file.
98152         * modules/unictype/category-test: New file.
98153         * modules/unictype/category-test-withtable: New file.
98154         * modules/unictype/category-byname: New file.
98155         * modules/unictype/category-none: New file.
98156         * modules/unictype/category-and: New file.
98157         * modules/unictype/category-and-not: New file.
98158         * modules/unictype/category-name: New file.
98159         * modules/unictype/combining-class: New file.
98160         * modules/unictype/category-all: New file.
98161         * modules/unictype/bidicategory-all: New file.
98162         * modules/unictype/bidicategory-byname: New file.
98163         * modules/unictype/bidicategory-name: New file.
98164         * modules/unictype/bidicategory-of: New file.
98165         * modules/unictype/bidicategory-test: New file.
98166         * modules/unictype/decimal-digit: New file.
98167         * modules/unictype/digit: New file.
98168         * modules/unictype/numeric: New file.
98169         * modules/unictype/mirror: New file.
98170         * modules/unictype/property-white-space: New file.
98171         * modules/unictype/property-alphabetic: New file.
98172         * modules/unictype/property-other-alphabetic: New file.
98173         * modules/unictype/property-not-a-character: New file.
98174         * modules/unictype/property-default-ignorable-code-point: New file.
98175         * modules/unictype/property-other-default-ignorable-code-point: New
98176         file.
98177         * modules/unictype/property-deprecated: New file.
98178         * modules/unictype/property-logical-order-exception: New file.
98179         * modules/unictype/property-variation-selector: New file.
98180         * modules/unictype/property-private-use: New file.
98181         * modules/unictype/property-unassigned-code-value: New file.
98182         * modules/unictype/property-uppercase: New file.
98183         * modules/unictype/property-other-uppercase: New file.
98184         * modules/unictype/property-lowercase: New file.
98185         * modules/unictype/property-other-lowercase: New file.
98186         * modules/unictype/property-titlecase: New file.
98187         * modules/unictype/property-soft-dotted: New file.
98188         * modules/unictype/property-id-start: New file.
98189         * modules/unictype/property-other-id-start: New file.
98190         * modules/unictype/property-id-continue: New file.
98191         * modules/unictype/property-other-id-continue: New file.
98192         * modules/unictype/property-xid-start: New file.
98193         * modules/unictype/property-xid-continue: New file.
98194         * modules/unictype/property-pattern-white-space: New file.
98195         * modules/unictype/property-pattern-syntax: New file.
98196         * modules/unictype/property-join-control: New file.
98197         * modules/unictype/property-grapheme-base: New file.
98198         * modules/unictype/property-grapheme-extend: New file.
98199         * modules/unictype/property-other-grapheme-extend: New file.
98200         * modules/unictype/property-grapheme-link: New file.
98201         * modules/unictype/property-bidi-control: New file.
98202         * modules/unictype/property-bidi-left-to-right: New file.
98203         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
98204         * modules/unictype/property-bidi-arabic-right-to-left: New file.
98205         * modules/unictype/property-bidi-european-digit: New file.
98206         * modules/unictype/property-bidi-eur-num-separator: New file.
98207         * modules/unictype/property-bidi-eur-num-terminator: New file.
98208         * modules/unictype/property-bidi-arabic-digit: New file.
98209         * modules/unictype/property-bidi-common-separator: New file.
98210         * modules/unictype/property-bidi-block-separator: New file.
98211         * modules/unictype/property-bidi-segment-separator: New file.
98212         * modules/unictype/property-bidi-whitespace: New file.
98213         * modules/unictype/property-bidi-non-spacing-mark: New file.
98214         * modules/unictype/property-bidi-boundary-neutral: New file.
98215         * modules/unictype/property-bidi-pdf: New file.
98216         * modules/unictype/property-bidi-embedding-or-override: New file.
98217         * modules/unictype/property-bidi-other-neutral: New file.
98218         * modules/unictype/property-hex-digit: New file.
98219         * modules/unictype/property-ascii-hex-digit: New file.
98220         * modules/unictype/property-ideographic: New file.
98221         * modules/unictype/property-unified-ideograph: New file.
98222         * modules/unictype/property-radical: New file.
98223         * modules/unictype/property-ids-binary-operator: New file.
98224         * modules/unictype/property-ids-trinary-operator: New file.
98225         * modules/unictype/property-zero-width: New file.
98226         * modules/unictype/property-space: New file.
98227         * modules/unictype/property-non-break: New file.
98228         * modules/unictype/property-iso-control: New file.
98229         * modules/unictype/property-format-control: New file.
98230         * modules/unictype/property-dash: New file.
98231         * modules/unictype/property-hyphen: New file.
98232         * modules/unictype/property-punctuation: New file.
98233         * modules/unictype/property-line-separator: New file.
98234         * modules/unictype/property-paragraph-separator: New file.
98235         * modules/unictype/property-quotation-mark: New file.
98236         * modules/unictype/property-sentence-terminal: New file.
98237         * modules/unictype/property-terminal-punctuation: New file.
98238         * modules/unictype/property-currency-symbol: New file.
98239         * modules/unictype/property-math: New file.
98240         * modules/unictype/property-other-math: New file.
98241         * modules/unictype/property-paired-punctuation: New file.
98242         * modules/unictype/property-left-of-pair: New file.
98243         * modules/unictype/property-combining: New file.
98244         * modules/unictype/property-composite: New file.
98245         * modules/unictype/property-decimal-digit: New file.
98246         * modules/unictype/property-numeric: New file.
98247         * modules/unictype/property-diacritic: New file.
98248         * modules/unictype/property-extender: New file.
98249         * modules/unictype/property-ignorable-control: New file.
98250         * modules/unictype/property-test: New file.
98251         * modules/unictype/property-byname: New file.
98252         * modules/unictype/property-all: New file.
98253         * modules/unictype/scripts: New file.
98254         * modules/unictype/scripts-all: New file.
98255         * modules/unictype/block-of: New file.
98256         * modules/unictype/block-test: New file.
98257         * modules/unictype/block-list: New file.
98258         * modules/unictype/block-all: New file.
98259         * modules/unictype/syntax-c-whitespace: New file.
98260         * modules/unictype/syntax-java-whitespace: New file.
98261         * modules/unictype/syntax-c-ident: New file.
98262         * modules/unictype/syntax-java-ident: New file.
98263         * modules/unictype/ctype-alnum: New file.
98264         * modules/unictype/ctype-alpha: New file.
98265         * modules/unictype/ctype-cntrl: New file.
98266         * modules/unictype/ctype-digit: New file.
98267         * modules/unictype/ctype-graph: New file.
98268         * modules/unictype/ctype-lower: New file.
98269         * modules/unictype/ctype-print: New file.
98270         * modules/unictype/ctype-punct: New file.
98271         * modules/unictype/ctype-space: New file.
98272         * modules/unictype/ctype-upper: New file.
98273         * modules/unictype/ctype-xdigit: New file.
98274         * modules/unictype/ctype-blank: New file.
98275         * lib/unictype/bidi_byname.c: New file.
98276         * lib/unictype/bidi_name.c: New file.
98277         * lib/unictype/bidi_of.c: New file.
98278         * lib/unictype/bidi_test.c: New file.
98279         * lib/unictype/bitmap.h: New file.
98280         * lib/unictype/block_test.c: New file.
98281         * lib/unictype/blocks.c: New file.
98282         * lib/unictype/categ_C.c: New file.
98283         * lib/unictype/categ_Cc.c: New file.
98284         * lib/unictype/categ_Cf.c: New file.
98285         * lib/unictype/categ_Cn.c: New file.
98286         * lib/unictype/categ_Co.c: New file.
98287         * lib/unictype/categ_Cs.c: New file.
98288         * lib/unictype/categ_L.c: New file.
98289         * lib/unictype/categ_Ll.c: New file.
98290         * lib/unictype/categ_Lm.c: New file.
98291         * lib/unictype/categ_Lo.c: New file.
98292         * lib/unictype/categ_Lt.c: New file.
98293         * lib/unictype/categ_Lu.c: New file.
98294         * lib/unictype/categ_M.c: New file.
98295         * lib/unictype/categ_Mc.c: New file.
98296         * lib/unictype/categ_Me.c: New file.
98297         * lib/unictype/categ_Mn.c: New file.
98298         * lib/unictype/categ_N.c: New file.
98299         * lib/unictype/categ_Nd.c: New file.
98300         * lib/unictype/categ_Nl.c: New file.
98301         * lib/unictype/categ_No.c: New file.
98302         * lib/unictype/categ_P.c: New file.
98303         * lib/unictype/categ_Pc.c: New file.
98304         * lib/unictype/categ_Pd.c: New file.
98305         * lib/unictype/categ_Pe.c: New file.
98306         * lib/unictype/categ_Pf.c: New file.
98307         * lib/unictype/categ_Pi.c: New file.
98308         * lib/unictype/categ_Po.c: New file.
98309         * lib/unictype/categ_Ps.c: New file.
98310         * lib/unictype/categ_S.c: New file.
98311         * lib/unictype/categ_Sc.c: New file.
98312         * lib/unictype/categ_Sk.c: New file.
98313         * lib/unictype/categ_Sm.c: New file.
98314         * lib/unictype/categ_So.c: New file.
98315         * lib/unictype/categ_Z.c: New file.
98316         * lib/unictype/categ_Zl.c: New file.
98317         * lib/unictype/categ_Zp.c: New file.
98318         * lib/unictype/categ_Zs.c: New file.
98319         * lib/unictype/categ_and.c: New file.
98320         * lib/unictype/categ_and_not.c: New file.
98321         * lib/unictype/categ_byname.c: New file.
98322         * lib/unictype/categ_name.c: New file.
98323         * lib/unictype/categ_none.c: New file.
98324         * lib/unictype/categ_of.c: New file.
98325         * lib/unictype/categ_or.c: New file.
98326         * lib/unictype/categ_test.c: New file.
98327         * lib/unictype/combining.c: New file.
98328         * lib/unictype/ctype_alnum.c: New file.
98329         * lib/unictype/ctype_alpha.c: New file.
98330         * lib/unictype/ctype_blank.c: New file.
98331         * lib/unictype/ctype_cntrl.c: New file.
98332         * lib/unictype/ctype_digit.c: New file.
98333         * lib/unictype/ctype_graph.c: New file.
98334         * lib/unictype/ctype_lower.c: New file.
98335         * lib/unictype/ctype_print.c: New file.
98336         * lib/unictype/ctype_punct.c: New file.
98337         * lib/unictype/ctype_space.c: New file.
98338         * lib/unictype/ctype_upper.c: New file.
98339         * lib/unictype/ctype_xdigit.c: New file.
98340         * lib/unictype/decdigit.c: New file.
98341         * lib/unictype/digit.c: New file.
98342         * lib/unictype/identsyntaxmap.h: New file.
98343         * lib/unictype/mirror.c: New file.
98344         * lib/unictype/numeric.c: New file.
98345         * lib/unictype/pr_alphabetic.c: New file.
98346         * lib/unictype/pr_ascii_hex_digit.c: New file.
98347         * lib/unictype/pr_bidi_arabic_digit.c: New file.
98348         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
98349         * lib/unictype/pr_bidi_block_separator.c: New file.
98350         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
98351         * lib/unictype/pr_bidi_common_separator.c: New file.
98352         * lib/unictype/pr_bidi_control.c: New file.
98353         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
98354         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
98355         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
98356         * lib/unictype/pr_bidi_european_digit.c: New file.
98357         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
98358         * lib/unictype/pr_bidi_left_to_right.c: New file.
98359         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
98360         * lib/unictype/pr_bidi_other_neutral.c: New file.
98361         * lib/unictype/pr_bidi_pdf.c: New file.
98362         * lib/unictype/pr_bidi_segment_separator.c: New file.
98363         * lib/unictype/pr_bidi_whitespace.c: New file.
98364         * lib/unictype/pr_byname.c: New file.
98365         * lib/unictype/pr_byname.gperf: New file.
98366         * lib/unictype/pr_combining.c: New file.
98367         * lib/unictype/pr_composite.c: New file.
98368         * lib/unictype/pr_currency_symbol.c: New file.
98369         * lib/unictype/pr_dash.c: New file.
98370         * lib/unictype/pr_decimal_digit.c: New file.
98371         * lib/unictype/pr_default_ignorable_code_point.c: New file.
98372         * lib/unictype/pr_deprecated.c: New file.
98373         * lib/unictype/pr_diacritic.c: New file.
98374         * lib/unictype/pr_extender.c: New file.
98375         * lib/unictype/pr_format_control.c: New file.
98376         * lib/unictype/pr_grapheme_base.c: New file.
98377         * lib/unictype/pr_grapheme_extend.c: New file.
98378         * lib/unictype/pr_grapheme_link.c: New file.
98379         * lib/unictype/pr_hex_digit.c: New file.
98380         * lib/unictype/pr_hyphen.c: New file.
98381         * lib/unictype/pr_id_continue.c: New file.
98382         * lib/unictype/pr_id_start.c: New file.
98383         * lib/unictype/pr_ideographic.c: New file.
98384         * lib/unictype/pr_ids_binary_operator.c: New file.
98385         * lib/unictype/pr_ids_trinary_operator.c: New file.
98386         * lib/unictype/pr_ignorable_control.c: New file.
98387         * lib/unictype/pr_iso_control.c: New file.
98388         * lib/unictype/pr_join_control.c: New file.
98389         * lib/unictype/pr_left_of_pair.c: New file.
98390         * lib/unictype/pr_line_separator.c: New file.
98391         * lib/unictype/pr_logical_order_exception.c: New file.
98392         * lib/unictype/pr_lowercase.c: New file.
98393         * lib/unictype/pr_math.c: New file.
98394         * lib/unictype/pr_non_break.c: New file.
98395         * lib/unictype/pr_not_a_character.c: New file.
98396         * lib/unictype/pr_numeric.c: New file.
98397         * lib/unictype/pr_other_alphabetic.c: New file.
98398         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
98399         * lib/unictype/pr_other_grapheme_extend.c: New file.
98400         * lib/unictype/pr_other_id_continue.c: New file.
98401         * lib/unictype/pr_other_id_start.c: New file.
98402         * lib/unictype/pr_other_lowercase.c: New file.
98403         * lib/unictype/pr_other_math.c: New file.
98404         * lib/unictype/pr_other_uppercase.c: New file.
98405         * lib/unictype/pr_paired_punctuation.c: New file.
98406         * lib/unictype/pr_paragraph_separator.c: New file.
98407         * lib/unictype/pr_pattern_syntax.c: New file.
98408         * lib/unictype/pr_pattern_white_space.c: New file.
98409         * lib/unictype/pr_private_use.c: New file.
98410         * lib/unictype/pr_punctuation.c: New file.
98411         * lib/unictype/pr_quotation_mark.c: New file.
98412         * lib/unictype/pr_radical.c: New file.
98413         * lib/unictype/pr_sentence_terminal.c: New file.
98414         * lib/unictype/pr_soft_dotted.c: New file.
98415         * lib/unictype/pr_space.c: New file.
98416         * lib/unictype/pr_terminal_punctuation.c: New file.
98417         * lib/unictype/pr_test.c: New file.
98418         * lib/unictype/pr_titlecase.c: New file.
98419         * lib/unictype/pr_unassigned_code_value.c: New file.
98420         * lib/unictype/pr_unified_ideograph.c: New file.
98421         * lib/unictype/pr_uppercase.c: New file.
98422         * lib/unictype/pr_variation_selector.c: New file.
98423         * lib/unictype/pr_white_space.c: New file.
98424         * lib/unictype/pr_xid_continue.c: New file.
98425         * lib/unictype/pr_xid_start.c: New file.
98426         * lib/unictype/pr_zero_width.c: New file.
98427         * lib/unictype/scripts.c: New file.
98428         * lib/unictype/sy_c_ident.c: New file.
98429         * lib/unictype/sy_c_whitespace.c: New file.
98430         * lib/unictype/sy_java_ident.c: New file.
98431         * lib/unictype/sy_java_whitespace.c: New file.
98433         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
98434         Unicode 5.0.0.
98435         * lib/unictype/blocks.h: Likewise.
98436         * lib/unictype/categ_C.h: Likewise.
98437         * lib/unictype/categ_Cc.h: Likewise.
98438         * lib/unictype/categ_Cf.h: Likewise.
98439         * lib/unictype/categ_Cn.h: Likewise.
98440         * lib/unictype/categ_Co.h: Likewise.
98441         * lib/unictype/categ_Cs.h: Likewise.
98442         * lib/unictype/categ_L.h: Likewise.
98443         * lib/unictype/categ_Ll.h: Likewise.
98444         * lib/unictype/categ_Lm.h: Likewise.
98445         * lib/unictype/categ_Lo.h: Likewise.
98446         * lib/unictype/categ_Lt.h: Likewise.
98447         * lib/unictype/categ_Lu.h: Likewise.
98448         * lib/unictype/categ_M.h: Likewise.
98449         * lib/unictype/categ_Mc.h: Likewise.
98450         * lib/unictype/categ_Me.h: Likewise.
98451         * lib/unictype/categ_Mn.h: Likewise.
98452         * lib/unictype/categ_N.h: Likewise.
98453         * lib/unictype/categ_Nd.h: Likewise.
98454         * lib/unictype/categ_Nl.h: Likewise.
98455         * lib/unictype/categ_No.h: Likewise.
98456         * lib/unictype/categ_P.h: Likewise.
98457         * lib/unictype/categ_Pc.h: Likewise.
98458         * lib/unictype/categ_Pd.h: Likewise.
98459         * lib/unictype/categ_Pe.h: Likewise.
98460         * lib/unictype/categ_Pf.h: Likewise.
98461         * lib/unictype/categ_Pi.h: Likewise.
98462         * lib/unictype/categ_Po.h: Likewise.
98463         * lib/unictype/categ_Ps.h: Likewise.
98464         * lib/unictype/categ_S.h: Likewise.
98465         * lib/unictype/categ_Sc.h: Likewise.
98466         * lib/unictype/categ_Sk.h: Likewise.
98467         * lib/unictype/categ_Sm.h: Likewise.
98468         * lib/unictype/categ_So.h: Likewise.
98469         * lib/unictype/categ_Z.h: Likewise.
98470         * lib/unictype/categ_Zl.h: Likewise.
98471         * lib/unictype/categ_Zp.h: Likewise.
98472         * lib/unictype/categ_Zs.h: Likewise.
98473         * lib/unictype/categ_of.h: Likewise.
98474         * lib/unictype/combining.h: Likewise.
98475         * lib/unictype/ctype_alnum.h: Likewise.
98476         * lib/unictype/ctype_alpha.h: Likewise.
98477         * lib/unictype/ctype_blank.h: Likewise.
98478         * lib/unictype/ctype_cntrl.h: Likewise.
98479         * lib/unictype/ctype_digit.h: Likewise.
98480         * lib/unictype/ctype_graph.h: Likewise.
98481         * lib/unictype/ctype_lower.h: Likewise.
98482         * lib/unictype/ctype_print.h: Likewise.
98483         * lib/unictype/ctype_punct.h: Likewise.
98484         * lib/unictype/ctype_space.h: Likewise.
98485         * lib/unictype/ctype_upper.h: Likewise.
98486         * lib/unictype/ctype_xdigit.h: Likewise.
98487         * lib/unictype/decdigit.h: Likewise.
98488         * lib/unictype/digit.h: Likewise.
98489         * lib/unictype/mirror.h: Likewise.
98490         * lib/unictype/numeric.h: Likewise.
98491         * lib/unictype/pr_alphabetic.h: Likewise.
98492         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
98493         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
98494         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
98495         * lib/unictype/pr_bidi_block_separator.h: Likewise.
98496         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
98497         * lib/unictype/pr_bidi_common_separator.h: Likewise.
98498         * lib/unictype/pr_bidi_control.h: Likewise.
98499         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
98500         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
98501         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
98502         * lib/unictype/pr_bidi_european_digit.h: Likewise.
98503         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
98504         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
98505         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
98506         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
98507         * lib/unictype/pr_bidi_pdf.h: Likewise.
98508         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
98509         * lib/unictype/pr_bidi_whitespace.h: Likewise.
98510         * lib/unictype/pr_combining.h: Likewise.
98511         * lib/unictype/pr_composite.h: Likewise.
98512         * lib/unictype/pr_currency_symbol.h: Likewise.
98513         * lib/unictype/pr_dash.h: Likewise.
98514         * lib/unictype/pr_decimal_digit.h: Likewise.
98515         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
98516         * lib/unictype/pr_deprecated.h: Likewise.
98517         * lib/unictype/pr_diacritic.h: Likewise.
98518         * lib/unictype/pr_extender.h: Likewise.
98519         * lib/unictype/pr_format_control.h: Likewise.
98520         * lib/unictype/pr_grapheme_base.h: Likewise.
98521         * lib/unictype/pr_grapheme_extend.h: Likewise.
98522         * lib/unictype/pr_grapheme_link.h: Likewise.
98523         * lib/unictype/pr_hex_digit.h: Likewise.
98524         * lib/unictype/pr_hyphen.h: Likewise.
98525         * lib/unictype/pr_id_continue.h: Likewise.
98526         * lib/unictype/pr_id_start.h: Likewise.
98527         * lib/unictype/pr_ideographic.h: Likewise.
98528         * lib/unictype/pr_ids_binary_operator.h: Likewise.
98529         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
98530         * lib/unictype/pr_ignorable_control.h: Likewise.
98531         * lib/unictype/pr_iso_control.h: Likewise.
98532         * lib/unictype/pr_join_control.h: Likewise.
98533         * lib/unictype/pr_left_of_pair.h: Likewise.
98534         * lib/unictype/pr_line_separator.h: Likewise.
98535         * lib/unictype/pr_logical_order_exception.h: Likewise.
98536         * lib/unictype/pr_lowercase.h: Likewise.
98537         * lib/unictype/pr_math.h: Likewise.
98538         * lib/unictype/pr_non_break.h: Likewise.
98539         * lib/unictype/pr_not_a_character.h: Likewise.
98540         * lib/unictype/pr_numeric.h: Likewise.
98541         * lib/unictype/pr_other_alphabetic.h: Likewise.
98542         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
98543         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
98544         * lib/unictype/pr_other_id_continue.h: Likewise.
98545         * lib/unictype/pr_other_id_start.h: Likewise.
98546         * lib/unictype/pr_other_lowercase.h: Likewise.
98547         * lib/unictype/pr_other_math.h: Likewise.
98548         * lib/unictype/pr_other_uppercase.h: Likewise.
98549         * lib/unictype/pr_paired_punctuation.h: Likewise.
98550         * lib/unictype/pr_paragraph_separator.h: Likewise.
98551         * lib/unictype/pr_pattern_syntax.h: Likewise.
98552         * lib/unictype/pr_pattern_white_space.h: Likewise.
98553         * lib/unictype/pr_private_use.h: Likewise.
98554         * lib/unictype/pr_punctuation.h: Likewise.
98555         * lib/unictype/pr_quotation_mark.h: Likewise.
98556         * lib/unictype/pr_radical.h: Likewise.
98557         * lib/unictype/pr_sentence_terminal.h: Likewise.
98558         * lib/unictype/pr_soft_dotted.h: Likewise.
98559         * lib/unictype/pr_space.h: Likewise.
98560         * lib/unictype/pr_terminal_punctuation.h: Likewise.
98561         * lib/unictype/pr_titlecase.h: Likewise.
98562         * lib/unictype/pr_unassigned_code_value.h: Likewise.
98563         * lib/unictype/pr_unified_ideograph.h: Likewise.
98564         * lib/unictype/pr_uppercase.h: Likewise.
98565         * lib/unictype/pr_variation_selector.h: Likewise.
98566         * lib/unictype/pr_white_space.h: Likewise.
98567         * lib/unictype/pr_xid_continue.h: Likewise.
98568         * lib/unictype/pr_xid_start.h: Likewise.
98569         * lib/unictype/pr_zero_width.h: Likewise.
98570         * lib/unictype/scripts.h: Likewise.
98571         * lib/unictype/scripts_byname.gperf: Likewise.
98572         * lib/unictype/sy_c_ident.h: Likewise.
98573         * lib/unictype/sy_c_whitespace.h: Likewise.
98574         * lib/unictype/sy_java_ident.h: Likewise.
98575         * lib/unictype/sy_java_whitespace.h: Likewise.
98577         * lib/unictype/Makefile: New file.
98578         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
98579         glibc.
98580         * lib/unictype/3level.h: New file, copied from glibc.
98581         * lib/unictype/3levelbit.h: New file.
98583 2007-11-11  Bruno Haible  <bruno@clisp.org>
98585         * modules/gperf: New file.
98586         * modules/iconv_open (Depends-on): Add it.
98587         (Makefile.am): Remove the GPERF definition.
98589 2007-11-11  Bruno Haible  <bruno@clisp.org>
98591         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
98592         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
98594 2007-11-11  Bruno Haible  <bruno@clisp.org>
98596         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
98597         (usage): Remove function.
98599 2007-11-11  Bruno Haible  <bruno@clisp.org>
98601         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
98602         gl_FUNC_CEILF_LIBS.
98603         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
98604         gl_FUNC_CEIL_LIBS.
98605         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
98606         gl_FUNC_CEILL_LIBS.
98607         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
98608         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
98609         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
98611 2007-11-11  Bruno Haible  <bruno@clisp.org>
98613         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
98614         roundf were declared but do not exist on functions.
98615         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
98616         roundl were declared but do not exist on functions.
98617         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
98618         HAVE_FLOORL_AND_CEILL, respectively.
98619         Needed for Sun C on Solaris 10.
98621 2007-11-11  Bruno Haible  <bruno@clisp.org>
98623         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
98624         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
98625         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
98626         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
98627         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
98628         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
98629         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
98630         HAVE_DECL_ROUNDF.
98631         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
98632         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
98633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
98634         of HAVE_DECL_ROUND*.
98635         * modules/math (Makefile.am): Update.
98637 2007-11-10  Bruno Haible  <bruno@clisp.org>
98639         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
98640         ptrdiff_t as m4/intl.m4.
98642 2007-11-10  Jim Meyering  <meyering@redhat.com>
98644         Avoid link failure for the argmatch test.
98645         * tests/test-argmatch.c (usage): Define function to avoid a link
98646         failure: argmatch_die requires a usage function.
98648 2007-11-09  Bruno Haible  <bruno@clisp.org>
98650         * doc/functions/snprintf.texi: Mention BeOS deficiency.
98651         * doc/functions/vsnprintf.texi: Likewise.
98652         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
98653         with a size argument < 2.
98655 2007-11-09  Bruno Haible  <bruno@clisp.org>
98657         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
98658         buffer. Fixes an inefficiency introduced on 2007-11-03.
98660 2007-11-09  Bruno Haible  <bruno@clisp.org>
98662         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
98663         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
98665 2007-11-08  Jim Meyering  <meyering@redhat.com>
98667         Change cache variable name prefix "jm_" to "gl_" everywhere.
98668         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
98669         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
98670         * m4/uptime.m4: s/gl_/jm_/
98672 2007-11-07  Bruno Haible  <bruno@clisp.org>
98674         Update to GNU gettext 0.17.
98675         * m4/intl.m4: Update to GNU gettext 0.17.
98676         * m4/po.m4: Likewise.
98677         * modules/gettext (Files): Remove m4/ulonglong.m4.
98678         (configure.ac): Require gettext infrastructure from version 0.17.
98680 2007-11-06  Bruno Haible  <bruno@clisp.org>
98682         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
98683         symbolic values are not defined in a public header.
98684         * lib/freadable.c (freadable) [QNX]: Likewise.
98685         * lib/freadahead.c (freadahead) [QNX]: Likewise.
98686         * lib/freading.c (freading) [QNX]: Likewise.
98687         * lib/fseterr.c (fseterr) [QNX]: Likewise.
98688         * lib/fwritable.c (fwritable) [QNX]: Likewise.
98689         * lib/fwriting.c (fwriting) [QNX]: Likewise.
98690         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
98691         Reported by Alain Magloire.
98693         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
98695 2007-11-05  Bruno Haible  <bruno@clisp.org>
98697         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
98698         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
98699         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
98700         Reported by Eric Blake.
98702 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98703             Bruno Haible  <bruno@clisp.org>
98705         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
98706         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
98707         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
98708         (malloc): Undefine also before including <stdlib.h>.
98709         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
98710         Needed on OSF/1 4.0.
98712 2007-11-05  Jim Meyering  <meyering@redhat.com>
98714         git-version-gen: sync from coreutils.
98715         * build-aux/git-version-gen: Add comments.
98716         Change the first '-' to '.' in the snapshot version string,
98717         e.g., 6.9-377-08144 -> 6.9.377-08144
98718         Remove first parameter.
98719         Don't declare a version "-dirty" merely because a time
98720         stamp has changed.
98722 2007-11-04  Bruno Haible  <bruno@clisp.org>
98724         * lib/lock.h: Protect all macro definitions containing an 'if'
98725         statement through a "do { ... } while (0)".
98726         * lib/tls.h: Likewise.
98728 2007-11-04  Bruno Haible  <bruno@clisp.org>
98730         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
98732 2007-11-04  Bruno Haible  <bruno@clisp.org>
98734         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
98735         * modules/fprintf-posix (Depends-on): Add nocrash.
98736         * modules/snprintf-posix (Depends-on): Likewise.
98737         * modules/sprintf-posix (Depends-on): Likewise.
98738         * modules/vasnprintf-posix (Depends-on): Likewise.
98739         * modules/vasprintf-posix (Depends-on): Likewise.
98740         * modules/vfprintf-posix (Depends-on): Likewise.
98741         * modules/vsnprintf-posix (Depends-on): Likewise.
98742         * modules/vsprintf-posix (Depends-on): Likewise.
98743         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
98744         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
98745         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
98746         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
98747         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
98748         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
98749         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
98751 2007-11-04  Bruno Haible  <bruno@clisp.org>
98753         * modules/nocrash: New file.
98754         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
98755         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
98757 2007-11-04  Bruno Haible  <bruno@clisp.org>
98759         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
98760         precision handling.
98761         * tests/test-vasprintf-posix.c (test_function): Likewise.
98762         * tests/test-snprintf-posix.h (test_function): Likewise.
98763         * tests/test-sprintf-posix.h (test_function): Likewise.
98765         Fix *printf behaviour for large precisions on mingw and BeOS.
98766         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
98767         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
98768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
98769         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98770         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98771         gl_PRINTF_PRECISION and test its result. Invoke
98772         gl_PREREQ_VASNPRINTF_PRECISION.
98773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98774         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98775         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98779         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98780         * doc/functions/fprintf.texi: Update.
98781         * doc/functions/printf.texi: Update.
98782         * doc/functions/snprintf.texi: Update.
98783         * doc/functions/sprintf.texi: Update.
98784         * doc/functions/vfprintf.texi: Update.
98785         * doc/functions/vprintf.texi: Update.
98786         * doc/functions/vsnprintf.texi: Update.
98787         * doc/functions/vsprintf.texi: Update.
98789 2007-11-04  Bruno Haible  <bruno@clisp.org>
98791         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
98793 2007-11-04  Bruno Haible  <bruno@clisp.org>
98795         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
98796         Reported by Sylvain Beucler <beuc@gnu.org>.
98798 2007-11-03  Bruno Haible  <bruno@clisp.org>
98800         * tests/test-fprintf-posix2.sh: New file.
98801         * tests/test-fprintf-posix2.c: New file.
98802         * modules/fprintf-posix-tests (Files): Add them.
98803         (TESTS): Add test-fprintf-posix2.sh.
98804         (configure.ac): Check for getrlimit and setrlimit.
98805         (check_PROGRAMS): Add test-fprintf-posix2.
98807         * tests/test-printf-posix2.sh: New file.
98808         * tests/test-printf-posix2.c: New file.
98809         * modules/printf-posix-tests (Files): Add them.
98810         (TESTS): Add test-printf-posix2.sh.
98811         (configure.ac): Check for getrlimit and setrlimit.
98812         (check_PROGRAMS): Add test-printf-posix2.
98814         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
98815         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
98816         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
98817         (decode_double): New function, copied from decode_long_double.
98818         (scale10_round_decimal_decoded): New function, extracted from
98819         scale10_round_decimal_long_double.
98820         (scale10_round_decimal_long_double): Use it.
98821         (scale10_round_decimal_double): New function.
98822         (floorlog10): New function.
98823         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
98824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
98825         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98826         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98827         gl_PRINTF_ENOMEM and test its result. Invoke
98828         gl_PREREQ_VASNPRINTF_ENOMEM.
98829         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98830         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98831         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98832         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98833         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98834         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98835         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98836         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
98837         * modules/snprintf-posix (Depends-on): Likewise.
98838         * modules/sprintf-posix (Depends-on): Likewise.
98839         * modules/vasnprintf-posix (Depends-on): Likewise.
98840         * modules/vasprintf-posix (Depends-on): Likewise.
98841         * modules/vfprintf-posix (Depends-on): Likewise.
98842         * modules/vsnprintf-posix (Depends-on): Likewise.
98843         * modules/vsprintf-posix (Depends-on): Likewise.
98844         * doc/functions/fprintf.texi: Update.
98845         * doc/functions/printf.texi: Update.
98846         * doc/functions/snprintf.texi: Update.
98847         * doc/functions/sprintf.texi: Update.
98848         * doc/functions/vfprintf.texi: Update.
98849         * doc/functions/vprintf.texi: Update.
98850         * doc/functions/vsnprintf.texi: Update.
98851         * doc/functions/vsprintf.texi: Update.
98853 2007-11-03  Bruno Haible  <bruno@clisp.org>
98855         * modules/frexp-nolibm-tests: New file.
98857         * modules/frexp-nolibm: New file.
98858         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
98860 2007-11-03  Bruno Haible  <bruno@clisp.org>
98862         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
98863         value is C99 compliant.
98864         Needed for OSF/1 5.1.
98866 2007-11-03  Bruno Haible  <bruno@clisp.org>
98868         Fix out-of-memory handling of vasnprintf.
98869         * lib/printf-parse.c: Include <errno.h>.
98870         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
98871         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
98872         is already set.
98874 2007-11-02  Eric Blake  <ebb9@byu.net>
98876         Fix tests on cygwin.
98877         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
98879 2007-11-01  Bruno Haible  <bruno@clisp.org>
98881         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
98882         warning.
98883         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
98884         needed for POSIX compatibility.
98886 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
98888         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
98889         for compatibility with GNU.
98891 2007-11-01  Bruno Haible  <bruno@clisp.org>
98893         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
98894         (putenv): Renamed from rpl_putenv. Change argument type from
98895         'const char *' to 'char *'.
98896         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
98897         of defining putenv in config.h, just set REPLACE_PUTENV.
98898         * modules/putenv (Depends-on): Add stdlib.
98899         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
98900         (Include): Use <stdlib.h>.
98901         * lib/stdlib.in.h (putenv): New declaration.
98902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
98903         REPLACE_PUTENV.
98904         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
98905         REPLACE_PUTENV.
98906         Needed for MacOS X 10.5.0.
98907         Reported by Peter O'Gorman <peter@pogma.com>.
98909 2007-11-01  Jim Meyering  <meyering@redhat.com>
98911         Treat an empty date string exactly like "0".
98912         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
98913         if the remaining date string (to be parsed) is empty, use "0".
98914         Reported by Mischa Molhoek and discussed in this thread:
98915         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
98917 2007-10-31  Bruno Haible  <bruno@clisp.org>
98919         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
98920         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
98921         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
98922         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
98923         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
98924         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
98926 2007-10-31  Bruno Haible  <bruno@clisp.org>
98928         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
98929         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
98930         (AC_TYPE_LONG_LONG_INT): Use it.
98931         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
98932         it as well.
98933         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
98934         to m4/longlong.m4.
98935         * modules/stdint (Files): Remove m4/ulonglong.m4.
98936         * modules/strtoull (Files): Use m4/longlong.m4 instead of
98937         m4/ulonglong.m4.
98938         * modules/strtoumax (Files): Likewise.
98940 2007-10-30  Bruno Haible  <bruno@clisp.org>
98942         * modules/xvasprintf-posix: New file.
98943         Suggested by Eric Blake.
98945 2007-10-30  Bruno Haible  <bruno@clisp.org>
98947         * modules/xprintf-posix-tests: New file.
98948         * tests/test-xprintf-posix.sh: New file.
98949         * tests/test-xprintf-posix.c: New file.
98950         * tests/test-xfprintf-posix.c: New file.
98952         * modules/xprintf-posix: New file.
98954 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98956         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
98957         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
98958         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
98960 2007-10-29  Bruno Haible  <bruno@clisp.org>
98962         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
98963         contain the special marker '_cv_'.
98964         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
98965         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
98966         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
98967         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
98968         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
98969         Reported by Ralf Wildenhues.
98971 2007-10-29  Bruno Haible  <bruno@clisp.org>
98973         * gnulib-tool (func_import): When --lgpl is not specified, set
98974         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
98975         GPLv3.
98976         Reported by Simon Josefsson.
98978 2007-10-28  Bruno Haible  <bruno@clisp.org>
98980         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
98981         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
98982         HAVE_DECL_ISFINITE.
98983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98984         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
98985         HAVE_DECL_ISFINITE.
98987 2007-10-28  Bruno Haible  <bruno@clisp.org>
98989         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
98990         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
98992 2007-10-28  Bruno Haible  <bruno@clisp.org>
98994         Fix link errors with Sun C 5.0 on Solaris 10.
98995         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
98996         function is declared but not present in the compiler's libm.
98997         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
98998         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
98999         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
99000         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
99001         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
99002         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
99003         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
99004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99005         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
99006         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
99007         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
99008         HAVE_DECL_FLOORL.
99010 2007-10-28  Bruno Haible  <bruno@clisp.org>
99012         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
99013         gl_FUNC_FLOORL. Cache the result.
99014         (gl_FUNC_FLOORL): Use it.
99015         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
99016         gl_FUNC_CEILL. Cache the result.
99017         (gl_FUNC_CEILL): Use it.
99019         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
99020         gl_FUNC_FLOOR. Cache the result.
99021         (gl_FUNC_FLOOR): Use it.
99022         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
99023         gl_FUNC_CEIL. Cache the result.
99024         (gl_FUNC_CEIL): Use it.
99026         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
99027         gl_FUNC_FLOORF. Cache the result.
99028         (gl_FUNC_FLOORF): Use it.
99029         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
99030         gl_FUNC_CEILF. Cache the result.
99031         (gl_FUNC_CEILF): Use it.
99033 2007-10-28  Bruno Haible  <bruno@clisp.org>
99035         * gnulib-tool: Allow specifying the LGPL version number through
99036         --lgpl=2 or --lgpl=3.
99037         (func_usage): Document --lgpl with argument.
99038         Handle --lgpl=... arguments.
99039         (func_import): Recognize also gl_LGPL calls with an argument. When
99040         --lgpl=2 is used and the module's license is just LGPL, report an
99041         error. Set sed_transform_lib_file according to the lgpl variable. In
99042         the generated files, use --lgpl or gl_LGPL invocations with argument,
99043         if necessary.
99044         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
99045         an LGPv2+ license.
99046         * doc/gnulib-tool.texi (Modified imports): Update explanation of
99047         gl_LGPL macro.
99049 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99050             Bruno Haible  <bruno@clisp.org>
99052         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
99053         (u16_uctomb_aux): Likewise.
99054         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
99055         !HAVE_INLINE.
99056         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
99058 2007-10-28  Bruno Haible  <bruno@clisp.org>
99060         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
99061         Invoke AM_GETTEXT_OPTION if it exists.
99062         * modules/vasprintf: Likewise.
99063         * modules/verror: Likewise.
99064         * modules/xprintf: Likewise.
99065         * modules/xvasprintf: Likewise.
99067 2007-10-27  Ben Pfaff  <blp@gnu.org>
99069         * lib/math.in.h: Define isfinite macro and prototypes for
99070         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
99071         implementations.
99072         * m4/math_h.m4: New substitutions for isfinite module.
99073         * lib/isfinite.c: New file.
99074         * m4/isfinite.m4: New file.
99075         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
99076         * modules/isfinite: New file.
99077         * modules/isfinite-tests: New file.
99078         * tests/tests-isfinite.c: New file.
99079         * doc/functions/isfinite.texi: Mention isfinite module.
99080         * MODULES.html.sh: Mention new module.
99082 2007-10-27  Ben Pfaff  <blp@gnu.org>
99084         Ralf Wildenhues reported that Tru64 4.0D declares the round
99085         functions but does not have definitions.
99086         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
99087         cannot be found in any library, set the output variable to
99088         "missing" instead of "".
99089         * m4/round.m4: Also use our substitute if we cannot find round in
99090         any library, even if it is declared.
99091         * m4/roundf.m4: Likewise for roundf.
99092         * m4/roundl.m4: Likewise for roundl.
99093         * lib/math.in.h: Undefine roundf, round, roundl before defining
99094         their replacements, to allow for hypothetical systems where these
99095         may be defined as macros but not available in libraries.
99097 2007-10-27  Bruno Haible  <bruno@clisp.org>
99099         * doc/gnulib.texi: Invoke @firstparagraphindent.
99100         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
99101         changes in gnulib.
99102         (Source changes): New section.
99104 2007-10-26  Bruno Haible  <bruno@clisp.org>
99106         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
99107         borrowed from autoconf.
99109 2007-10-26  Bruno Haible  <bruno@clisp.org>
99111         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
99112         strerror returned the empty string. Needed on HP-UX 11.00.
99114 2007-10-24  Micah Cowan  <micah@cowan.name>
99116         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
99117         * build-aux/bootstrap: Remove support for now-unnecessary option,
99118         --cvs-user, and envvars CVS_USER, CVS_RSH.
99120 2007-10-24  Jim Meyering  <meyering@redhat.com>
99122         Avoid diagnostics from sha1sum when there is no cached checksum.
99123         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
99124         if the po.s1 file hasn't been created yet.
99126         * build-aux/bootstrap: Sync from coreutils:
99127         2007-10-24  Jim Meyering  <meyering@redhat.com>
99128         Get gnulib from the git repository, not from an obsolete cvs one.
99129         * build-aux/bootstrap: Suggestion from Micah Cowan.
99130         2007-10-04  Jim Meyering  <jim@meyering.net>
99131         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
99132         (update_po_files): Work also when there are no .po files in po/.
99134 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
99136         * README: Append ".git" to git and cg examples.
99137         Problem reported by Benoit Sigoure.
99139 2007-10-23  Micah Cowan  <micah@cowan.name>
99141         * users.txt: Add wget.
99143 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99145         Fix linking of some unistdio tests on FreeBSD.
99146         * modules/unistdio/u16-vsnprintf-tests
99147         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
99148         * modules/unistdio/u16-vsprintf-tests
99149         (test_u16_vsnprintf1_LDADD): Likewise.
99150         * modules/unistdio/u32-vsnprintf-tests
99151         (test_u32_vsnprintf1_LDADD): Likewise.
99152         * modules/unistdio/u32-vsprintf-tests
99153         (test_u32_vsprintf1_LDADD): Likewise.
99154         * modules/unistdio/u8-vsnprintf-tests
99155         (test_u8_vsnprintf1_LDADD): Likewise.
99156         * modules/unistdio/u8-vsprintf-tests
99157         (test_u8_vsprintf1_LDADD): Likewise.
99158         * modules/unistdio/ulc-vsnprintf-tests
99159         (test_ulc_vsnprintf1_LDADD): Likewise.
99160         * modules/unistdio/ulc-vsprintf-tests
99161         (test_ulc_vsprintf1_LDADD): Likewise.
99163         Fix linking of some uniconv tests on FreeBSD.
99164         * modules/uniconv/u16-conv-from-enc-tests
99165         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
99166         * modules/uniconv/u16-conv-to-enc-tests
99167         (test_u16_conv_to_enc_LDADD): Likewise.
99168         * modules/uniconv/u16-strconv-from-enc-tests
99169         (test_u16_strconv_from_enc_LDADD): Likewise.
99170         * modules/uniconv/u16-strconv-to-enc-tests
99171         (test_u16_strconv_to_enc_LDADD): Likewise.
99172         * modules/uniconv/u32-conv-from-enc-tests
99173         (test_u32_conv_from_enc_LDADD): Likewise.
99174         * modules/uniconv/u32-conv-to-enc-tests
99175         (test_u32_conv_to_enc_LDADD): Likewise.
99176         * modules/uniconv/u32-strconv-from-enc-tests
99177         (test_u32_strconv_from_enc_LDADD): Likewise.
99178         * modules/uniconv/u32-strconv-to-enc-tests
99179         (test_u32_strconv_to_enc_LDADD): Likewise.
99180         * modules/uniconv/u8-conv-from-enc-tests
99181         (test_u8_conv_from_enc_LDADD): Likewise.
99182         * modules/uniconv/u8-conv-to-enc-tests
99183         (test_u8_conv_to_enc_LDADD): Likewise.
99184         * modules/uniconv/u8-strconv-from-enc-tests
99185         (test_u8_strconv_from_enc_LDADD): Likewise.
99186         * modules/uniconv/u8-strconv-to-enc-tests
99187         (test_u8_strconv_to_enc_LDADD): Likewise.
99189 2007-10-22  Bruno Haible  <bruno@clisp.org>
99191         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
99192         size.
99194 2007-10-22  Eric Blake  <ebb9@byu.net>
99196         Tweak x*printf documentation.
99197         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
99198         variable name and comments.
99199         Suggested by Bruno Haible.
99201 2007-10-22  Bruno Haible  <bruno@clisp.org>
99203         * lib/acl.c (copy_acl): Fix file name in comment.
99205 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99207         Fix Tru64 problem with stdbool.h.
99208         * lib/stdbool.in.h (false, true):
99209         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
99210         Don't declare as an enum in this situation; it runs afoul of Tru64.
99211         Problem reported by Steven M. Schweda in
99212         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
99214 2007-10-22  Eric Blake  <ebb9@byu.net>
99216         Also wrap vf?printf.
99217         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
99218         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
99219         (xvprintf, xvfprintf): New functions.
99221 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99223         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
99224         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
99226         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
99227         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
99229 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99231         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
99232         by Bruno Haible.
99234 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99236         * lib/getloadavg.c
99237         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
99238         Undef `sys' after including sys/table.h, for Tru64 4.0D.
99240         * tests/test-i-ring.c: Work for C89.
99242 2007-10-22  Bruno Haible  <bruno@clisp.org>
99244         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
99245         -1u, in preprocessor expression, so that we don't test for the bug
99246         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
99247         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
99249 2007-10-22  Eric Blake  <ebb9@byu.net>
99251         * tests/test-yesno.sh: Silence stderr during test.
99253 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99255         * modules/crypto/gc-camellia: New file.
99257         * m4/gc-camellia.m4: New file.
99259         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
99261         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
99263 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99265         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
99266         --help to stdout.  Reported by sms@antinode.org (Steven
99267         M. Schweda).
99269 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99271         * users.txt: Fix link to libksba.
99273 2007-10-21  Ben Pfaff  <blp@gnu.org>
99275         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
99276         round.c roundf implementation that depends on floorf and ceilf to
99277         be tested unconditionally.
99279 2007-10-21  Ben Pfaff  <blp@gnu.org>
99281         * m4/check-libm-func.m4: Removed.
99282         * m4/check-math-lib.m4: New file.
99283         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
99284         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
99285         definition and lack of AC_LIBOBJ([roundf]).
99286         * m4/roundl.m4: Ditto, and similarly for roundl.
99287         * modules/round: Reference new m4 file.
99288         * modules/roundf: Ditto.
99289         * modules/roundl: Ditto.
99290         * tests/test-round2.c (main): Use ROUND instead of round.
99291         Bug report from Bruno Haible.
99293 2007-10-21  Bruno Haible  <bruno@clisp.org>
99295         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
99296         context.
99298 2007-10-21  Bruno Haible  <bruno@clisp.org>
99300         * tests/test-wcwidth.c (main): Allow negative result for some control
99301         characters.
99303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
99304         Needed on OSF/1 5.1.
99306 2007-10-21  Bruno Haible  <bruno@clisp.org>
99308         * tests/test-floorf1.c: Include isnanf.h.
99309         (main): Use isnanf() instead of isnan().
99310         * tests/test-ceilf1.c: Include isnanf.h.
99311         (main): Use isnanf() instead of isnan().
99312         * tests/test-truncf1.c: Include isnanf.h.
99313         (main): Use isnanf() instead of isnan().
99314         * tests/test-roundf1.c: Include isnanf.h.
99315         (main): Use isnanf() instead of isnan().
99317 2007-10-21  Eric Blake  <ebb9@byu.net>
99319         * users.txt: Update URL for m4.
99321 2007-10-21  Bruno Haible  <bruno@clisp.org>
99323         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
99325 2007-10-21  Bruno Haible  <bruno@clisp.org>
99327         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
99328         Git's management files if the CVS files are not present.
99330 2007-10-20  Bruno Haible  <bruno@clisp.org>
99332         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
99333         gcc-3.4.x.
99335 2007-10-20  Ben Pfaff  <blp@gnu.org>
99337         * lib/math.in.h: Declare round, roundf, roundl if we are providing
99338         implementations.
99339         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
99340         * lib/round.c: New file.
99341         * lib/roundf.c: New file.
99342         * lib/roundl.c: New file.
99343         * m4/round.m4: New file.
99344         * m4/roundf.m4: New file.
99345         * m4/roundl.m4: New file.
99346         * m4/check-libm-func-m4: New file.
99347         * modules/math: Replace round, roundf, roundl related @VARS@ in
99348         math.in.h.
99349         * modules/round: New file.
99350         * modules/round-tests: New file.
99351         * modules/roundf: New file.
99352         * modules/roundf-tests: New file.
99353         * modules/roundl: New file.
99354         * modules/roundl-tests: New file.
99355         * tests/test-round1.c: New file.
99356         * tests/test-round2.c: New file.
99357         * tests/test-roundf1.c: New file.
99358         * tests/test-roundf2.c: New file.
99359         * tests/test-roundl.c: New file.
99360         * doc/functions/round.texi: Mention round module.
99361         * doc/functions/roundf.texi: Mention roundf module.
99362         * doc/functions/roundl.texi: Mention roundl module.
99363         * MODULES.html.sh: Mention new modules.
99364         Thanks to Bruno Haible for suggestions.
99366 2007-10-20  Jim Meyering  <meyering@redhat.com>
99368         * lib/xprintf.c: Include <config.h> unconditionally.
99370         Change xprintf's license to GPL.
99371         * modules/xprintf (License): s/LGPL/GPL/, since this module
99372         depends on modules (exit and exitfail) which are GPL.
99373         Suggestion from Bruno Haible.
99375         xprintf fixes.
99376         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
99377         Use a clearer diagnostic.
99378         Patch from Bruno Haible.
99380 2007-10-20  Bruno Haible  <bruno@clisp.org>
99382         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
99383         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
99384         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99386 2007-10-20  Bruno Haible  <bruno@clisp.org>
99388         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
99389         precision in the comparison result > x - 1 or similar.
99390         * tests/test-ceilf2.c (correct_result_p): Likewise.
99391         * tests/test-truncf2.c (correct_result_p): Likewise.
99392         * tests/test-trunc2.c (correct_result_p): Likewise.
99393         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99395 2007-10-20  Bruno Haible  <bruno@clisp.org>
99397         * modules/ceil: New file.
99398         * m4/ceil.m4: New file.
99399         * doc/functions/ceil.texi: Mention the 'ceil' module.
99401 2007-10-20  Bruno Haible  <bruno@clisp.org>
99403         * modules/floor: New file.
99404         * m4/floor.m4: New file.
99405         * doc/functions/floor.texi: Mention the 'floor' module.
99407 2007-10-20  Bruno Haible  <bruno@clisp.org>
99409         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
99410         of %a.
99411         * modules/floorf-tests (Depends-on): Likewise.
99412         * modules/truncf-tests (Depends-on): Likewise.
99413         * modules/trunc-tests (Depends-on): Likewise.
99414         Reported by Ben Pfaff.
99416 2007-10-19  Jim Meyering  <meyering@redhat.com>
99418         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
99419         Don't bother testing specific errno values.  Just test ferror.
99421         New module: xprintf
99422         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
99424 2007-10-19  Bruno Haible  <bruno@clisp.org>
99426         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
99427         syntax.
99428         * modules/javaexec (Makefile.am): Likewise.
99429         * modules/relocatable-prog (Makefile.am): Likewise.
99430         Suggested by Jim Meyering.
99432 2007-10-18  Bruno Haible  <bruno@clisp.org>
99434         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
99435         Reported by Jim Meyering.
99437 2007-10-18  Eric Blake  <ebb9@byu.net>
99439         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
99441 2007-10-18  Bruno Haible  <bruno@clisp.org>
99443         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
99444         the format string into writable memory. Needed in Fortify conditions.
99446 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
99447             Bruno Haible  <bruno@clisp.org>
99449         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
99450         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
99451         * modules/trim (Depends-on): Add mbchar.
99452         (configure.ac): Add gl_FUNC_MBRTOWC.
99453         (Makefile.am): Augment lib_SOURCES.
99455 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
99457         Modify glob.c to use fstatat and dirfd, to simplify it.
99458         Suggested by Eric Blake.
99459         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
99460         Don't include <stdbool.h>; not used.
99461         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
99462         (link_exists_p): Simplify implementation, since we can now assume
99463         dirfd and fstatat.
99464         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
99466 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99468         * gnulib-tool (func_get_dependencies): Fix sed script to
99469         match only tests.
99471 2007-10-17  Bruno Haible  <bruno@clisp.org>
99473         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
99474         allow locale names without encoding suffix.
99475         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
99476         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
99478 2007-10-16  Bruno Haible  <bruno@clisp.org>
99480         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
99481         * lib/getgroups.c (getgroups): Likewise.
99482         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
99484 2007-10-16  Bruno Haible  <bruno@clisp.org>
99486         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
99487         * modules/malloc-posix (License): Likewise.
99488         * modules/realloc-posix (License): Likewise.
99489         * modules/calloc-posix (License): Likewise.
99490         * modules/intprops (License): Change from GPL to LGPL, with
99491         Paul Eggert's approval.
99493 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99495         Merge glibc changes into lib/glob.c.
99497         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
99498         2007-10-15 04:59:03 UTC.  Here are the changes:
99500         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
99502         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
99504         * lib/glob.c: Add some branch prediction throughout.
99506         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
99508         [BZ #5103]
99509         * lib/glob.c (glob): Recognize patterns starting \/.
99511         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
99513         [BZ #3996]
99514         * lib/glob.c (attribute_hidden): Define if not defined.
99515         (glob): Unescape dirname, filename or username when needed and not
99516         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
99517         is NULL.  Handle unescaped [ in pattern without closing ].
99518         Don't pass GLOB_CHECK down to recursive glob for directories.
99519         (__glob_pattern_type): New function.
99520         (__glob_pattern_p): Implement using __glob_pattern_type.
99521         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
99522         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
99523         Remove unreachable code.
99525         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
99527         * lib/glob.c (glob_in_dir): Add some comments and asserts to
99528         explain why there are no leaks.
99530         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
99532         [BZ #3253]
99533         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
99534         time, rather allocate increasingly bigger arrays of pointers, if
99535         possible with alloca, if too large with malloc.
99537 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99539         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
99540         Problem reported by H.Merijn Brand in
99541         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
99542         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
99543         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99545 2007-10-15  Bruno Haible  <bruno@clisp.org>
99547         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
99548         with explicit rpl_ prefix.
99549         * lib/fopen.c (fopen): Likewise.
99550         * lib/freopen.c (freopen): Likewise.
99551         * lib/iconv.c (iconv): Likewise.
99552         * lib/iconv_close.c (iconv_close): Likewise.
99554 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99556         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
99558 2007-10-15  Bruno Haible  <bruno@clisp.org>
99560         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
99561         <stddef.h> instead of <stdlib.h> since we only need NULL.
99562         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99564 2007-10-15  Bruno Haible  <bruno@clisp.org>
99566         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
99567         Replace paragraph talking about LIBOBJS.
99568         Reported by Colin Watson <cjwatson@debian.org>.
99570 2007-10-15  Bruno Haible  <bruno@clisp.org>
99572         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
99573         <stdlib.h> before using NULL.
99575 2007-10-15  Simon Josefsson  <simon@josefsson.org>
99577         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
99578         Reported by Albert Chin <china@thewrittenword.com>.
99580 2007-10-14  Bruno Haible  <bruno@clisp.org>
99582         * modules/iconv_open-utf-tests: New file.
99583         * tests/test-iconv-utf.c: New file.
99585         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
99586         * modules/iconv_open-utf: New file.
99587         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
99588         (iconv, iconv_close): New declarations.
99589         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
99590         be defined.
99591         (iconv_open): Add special handling of conversion between UTF-8 and
99592         UTF-{16,32}{BE,LE}.
99593         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
99594         * lib/iconv_close.c: New file.
99595         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
99596         gl_FUNC_ICONV_OPEN.
99597         (gl_FUNC_ICONV_OPEN): Use it.
99598         (gl_FUNC_ICONV_OPEN_UTF): New macro.
99599         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
99600         and REPLACE_ICONV_UTF.
99601         * modules/iconv_open (Depends-on): Add c-strcase.
99602         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
99603         ICONV_CONST.
99604         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
99606 2007-10-13  Albert Chin  <china@thewrittenword.com>
99607             Bruno Haible  <bruno@clisp.org>
99609         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
99610         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
99612 2007-10-13  Bruno Haible  <bruno@clisp.org>
99614         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
99615         defined, use the ISO C99 inline semantics.
99616         * lib/argp.h (ARGP_EI): Likewise.
99618 2007-10-13  Bruno Haible  <bruno@clisp.org>
99620         Handle 'inline' change in gcc 4.3.0.
99621         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
99622         argp_fmtstream_write, argp_fmtstream_set_lmargin,
99623         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
99624         argp_fmtstream_point): Disable 'extern' declaration if the function
99625         definition is going to be provided inline.
99626         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
99627         semantics, not the ISO C99 inline semantics.
99628         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
99629         'extern' declaration if the function definition is going to be provided
99630         inline.
99631         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
99632         the GNU C inline semantics, not the ISO C99 inline semantics. With
99633         GCC 4.2, avoid a warning.
99635 2007-10-13  Bruno Haible  <bruno@clisp.org>
99637         * lib/freading.h (freading): Enable the use of __freading for
99638         glibc >= 2.7.
99639         * lib/freading.c (freading): Likewise.
99641 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
99643         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
99644         "warning: C99 inline functions are not supported; using GNU89".
99646 2007-10-12  Bruno Haible  <bruno@clisp.org>
99648         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
99649         of 2.
99650         * tests/test-ceilf2.c: New file.
99651         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
99653         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
99654         * modules/ceilf-tests: Update.
99656 2007-10-12  Bruno Haible  <bruno@clisp.org>
99658         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
99659         of 2.
99660         * tests/test-floorf2.c: New file.
99661         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
99663         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
99664         * modules/floorf-tests: Update.
99666 2007-10-12  Bruno Haible  <bruno@clisp.org>
99668         * tests/test-trunc2.c: New file.
99669         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
99671         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
99672         * modules/trunc-tests: Update.
99674 2007-10-12  Bruno Haible  <bruno@clisp.org>
99676         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
99677         of 2.
99678         * tests/test-truncf2.c: New file.
99679         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
99681         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
99682         * modules/truncf-tests: Update.
99684 2007-10-11  Eric Blake  <ebb9@byu.net>
99686         Don't claim strerror is broken on Interix.
99687         * doc/functions/strerror.texi (strerror): Known broken systems are
99688         now Solaris 8, and not Interix.
99689         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
99690         Interix on cross-compile.
99691         Reported by Martin Koeppe in
99692         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
99694 2007-10-11  Bruno Haible  <bruno@clisp.org>
99696         * modules/i-ring-tests: New file.
99697         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
99698         instead of assert.
99700 2007-10-11  Bruno Haible  <bruno@clisp.org>
99702         * modules/filenamecat-tests: New file.
99703         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
99704         * lib/filenamecat.c: Remove test code.
99706 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
99708         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
99710         * lib/strerror.c: Include <string.h> always, to test interface,
99711         and to remove the need for the dummy.
99712         Include intprops.h to compute width instead of doing it ourselves
99713         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
99714         (strerror): Define it to return NULL if there's no system strerror.
99715         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
99716         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
99717         ancient pre-strerror Unix systems well any more.  Saying "unknown
99718         system error" is enough.
99719         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
99720         simpler strerror.c implementation.
99721         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
99722         Simplify the tests to reflect the simpler strerror implementation.
99723         * modules/strerror (Depends-on): Add intprops.
99725 2007-10-09  Eric Blake  <ebb9@byu.net>
99727         Silence test-fpending.
99728         * modules/fpending-tests (Files): Add wrapper script.
99729         * tests/test-fpending.sh: New file.
99731 2007-10-09  Bruno Haible  <bruno@clisp.org>
99733         * MODULES.html.sh (func_module): Don't create a hyperlink for
99734         function names like 'printf_frexp'.
99735         (Misc): Add crc, memxor.
99736         (Characteristics of floating types): New section.
99737         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
99738         isnanf-nolibm, signbit, trunc, truncf, truncl.
99739         (Enhancements for ISO C 99 functions): New subsection Input/output.
99740         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
99741         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
99742         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
99743         (Compatibility checks for POSIX:2001 functions): Add clock-time.
99744         (Enhancements for POSIX:2001 functions): Add chdir-long.
99745         (File system functions): Add areadlink, chdir-safer, read-file.
99746         Remove cycle-check.
99747         (File system as inode set): New section.
99748         (Date and time): Add gethrxtime.
99749         (Multithreading): Add openmp.
99750         (Internationalization functions): Add localename.
99751         (Unicode string functions): Add unistr/u*-mbsnlen.
99752         (Support for maintaining and releasing projects): Add git-version-gen.
99753         (Lone files): Remove directories.
99755 2007-10-08  Ben Pfaff  <blp@gnu.org>
99757         * lib/xmalloca.h: Fix typo in comment.
99759 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
99761         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
99762         when avoiding problems with integer overflow.  Use a portable test
99763         instead.
99765 2007-10-08  Simon Josefsson  <simon@josefsson.org>
99767         * modules/dummy (License): Change to LGPLv2+.
99768         * modules/float (License): Likewise
99769         * modules/realloc (License): Likewise
99770         * modules/stdlib (License): Likewise
99772 2007-10-07  Bruno Haible  <bruno@clisp.org>
99774         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
99775         * floor.c (TWO_MANT_DIG): Likewise.
99776         * ceil.c (TWO_MANT_DIG): Likewise.
99777         Reported by Ben Pfaff.
99779 2007-10-07  Bruno Haible  <bruno@clisp.org>
99781         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
99782         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
99783         * lib/frexp.c (FUNC): Likewise.
99784         * lib/printf-frexp.h (printf_frexp): Likewise.
99785         * lib/printf-frexpl.h (printf_frexpl): Likewise.
99786         * lib/printf-frexp.c (FUNC): Likewise.
99787         Suggested by Jim Meyering.
99789 2007-10-07  Jim Meyering  <meyering@redhat.com>
99791         Make xnanosleep's integer overflow test more robust.
99792         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
99793         so that gcc-4.3.0 doesn't optimize away this test for overflow.
99795 2007-10-07  Bruno Haible  <bruno@clisp.org>
99797         * NEWS: Mention the license change.
99799         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
99800         abbreviations in the modules files.
99802         Change copyright notice from GPLv2+ to GPLv3+.
99803         * README: Change copyright notice.
99804         * MODULES.html.sh: Likewise.
99805         * build-aux/bootstrap.conf: Likewise.
99806         * build-aux/config.libpath: Likewise.
99807         * build-aux/csharpcomp.sh.in: Likewise.
99808         * build-aux/csharpexec.sh.in: Likewise.
99809         * build-aux/install-reloc: Likewise.
99810         * build-aux/javacomp.sh.in: Likewise.
99811         * build-aux/javaexec.sh.in: Likewise.
99812         * build-aux/ldd.sh.in: Likewise.
99813         * build-aux/reloc-ldflags: Likewise.
99814         * build-aux/relocatable.sh.in: Likewise.
99815         * build-aux/x-to-1.in: Likewise.
99816         * check-module: Likewise.
99817         * config/srclistvars.sh: Likewise.
99818         * gnulib-tool: Likewise.
99819         * lib/acl-internal.h: Likewise.
99820         * lib/acl.c: Likewise.
99821         * lib/acl.h: Likewise.
99822         * lib/acl_entries.c: Likewise.
99823         * lib/areadlink-with-size.c: Likewise.
99824         * lib/areadlink.c: Likewise.
99825         * lib/areadlink.h: Likewise.
99826         * lib/argmatch.c: Likewise.
99827         * lib/argmatch.h: Likewise.
99828         * lib/argp-ba.c: Likewise.
99829         * lib/argp-eexst.c: Likewise.
99830         * lib/argp-fmtstream.c: Likewise.
99831         * lib/argp-fmtstream.h: Likewise.
99832         * lib/argp-fs-xinl.c: Likewise.
99833         * lib/argp-help.c: Likewise.
99834         * lib/argp-namefrob.h: Likewise.
99835         * lib/argp-parse.c: Likewise.
99836         * lib/argp-pin.c: Likewise.
99837         * lib/argp-pv.c: Likewise.
99838         * lib/argp-pvh.c: Likewise.
99839         * lib/argp-xinl.c: Likewise.
99840         * lib/argp.h: Likewise.
99841         * lib/at-func.c: Likewise.
99842         * lib/atanl.c: Likewise.
99843         * lib/backupfile.c: Likewise.
99844         * lib/backupfile.h: Likewise.
99845         * lib/basename.c: Likewise.
99846         * lib/binary-io.h: Likewise.
99847         * lib/byteswap.in.h: Likewise.
99848         * lib/c-stack.c: Likewise.
99849         * lib/c-stack.h: Likewise.
99850         * lib/c-strcasestr.c: Likewise.
99851         * lib/c-strcasestr.h: Likewise.
99852         * lib/c-strstr.c: Likewise.
99853         * lib/c-strstr.h: Likewise.
99854         * lib/c-strtod.c: Likewise.
99855         * lib/calloc.c: Likewise.
99856         * lib/canon-host.c: Likewise.
99857         * lib/canon-host.h: Likewise.
99858         * lib/canonicalize-lgpl.c: Likewise.
99859         * lib/canonicalize.c: Likewise.
99860         * lib/canonicalize.h: Likewise.
99861         * lib/ceil.c: Likewise.
99862         * lib/ceilf.c: Likewise.
99863         * lib/ceill.c: Likewise.
99864         * lib/chdir-long.c: Likewise.
99865         * lib/chdir-long.h: Likewise.
99866         * lib/chdir-safer.c: Likewise.
99867         * lib/chdir-safer.h: Likewise.
99868         * lib/chown.c: Likewise.
99869         * lib/classpath.c: Likewise.
99870         * lib/classpath.h: Likewise.
99871         * lib/clean-temp.c: Likewise.
99872         * lib/clean-temp.h: Likewise.
99873         * lib/cloexec.c: Likewise.
99874         * lib/close-stream.c: Likewise.
99875         * lib/closein.c: Likewise.
99876         * lib/closein.h: Likewise.
99877         * lib/closeout.c: Likewise.
99878         * lib/closeout.h: Likewise.
99879         * lib/concat-filename.c: Likewise.
99880         * lib/copy-file.c: Likewise.
99881         * lib/copy-file.h: Likewise.
99882         * lib/count-one-bits.h: Likewise.
99883         * lib/crc.c: Likewise.
99884         * lib/crc.h: Likewise.
99885         * lib/creat-safer.c: Likewise.
99886         * lib/csharpcomp.c: Likewise.
99887         * lib/csharpcomp.h: Likewise.
99888         * lib/csharpexec.c: Likewise.
99889         * lib/csharpexec.h: Likewise.
99890         * lib/cycle-check.c: Likewise.
99891         * lib/cycle-check.h: Likewise.
99892         * lib/diacrit.c: Likewise.
99893         * lib/diacrit.h: Likewise.
99894         * lib/diffseq.h: Likewise.
99895         * lib/dirchownmod.c: Likewise.
99896         * lib/dirent.in.h: Likewise.
99897         * lib/dirfd.c: Likewise.
99898         * lib/dirfd.h: Likewise.
99899         * lib/dirname.c: Likewise.
99900         * lib/dirname.h: Likewise.
99901         * lib/dummy.c: Likewise.
99902         * lib/dup-safer.c: Likewise.
99903         * lib/dup2.c: Likewise.
99904         * lib/eealloc.h: Likewise.
99905         * lib/error.c: Likewise.
99906         * lib/error.h: Likewise.
99907         * lib/euidaccess.c: Likewise.
99908         * lib/exclude.c: Likewise.
99909         * lib/exclude.h: Likewise.
99910         * lib/execute.c: Likewise.
99911         * lib/execute.h: Likewise.
99912         * lib/exitfail.c: Likewise.
99913         * lib/exitfail.h: Likewise.
99914         * lib/expl.c: Likewise.
99915         * lib/fatal-signal.c: Likewise.
99916         * lib/fatal-signal.h: Likewise.
99917         * lib/fbufmode.c: Likewise.
99918         * lib/fbufmode.h: Likewise.
99919         * lib/fchdir.c: Likewise.
99920         * lib/fchmodat.c: Likewise.
99921         * lib/fchownat.c: Likewise.
99922         * lib/fcntl--.h: Likewise.
99923         * lib/fcntl-safer.h: Likewise.
99924         * lib/fcntl.in.h: Likewise.
99925         * lib/fd-safer.c: Likewise.
99926         * lib/fflush.c: Likewise.
99927         * lib/file-has-acl.c: Likewise.
99928         * lib/file-set.c: Likewise.
99929         * lib/file-type.c: Likewise.
99930         * lib/file-type.h: Likewise.
99931         * lib/fileblocks.c: Likewise.
99932         * lib/filemode.c: Likewise.
99933         * lib/filemode.h: Likewise.
99934         * lib/filename.h: Likewise.
99935         * lib/filenamecat.c: Likewise.
99936         * lib/filenamecat.h: Likewise.
99937         * lib/findprog.c: Likewise.
99938         * lib/findprog.h: Likewise.
99939         * lib/float.in.h: Likewise.
99940         * lib/floor.c: Likewise.
99941         * lib/floorf.c: Likewise.
99942         * lib/floorl.c: Likewise.
99943         * lib/fopen-safer.c: Likewise.
99944         * lib/fopen.c: Likewise.
99945         * lib/fpending.c: Likewise.
99946         * lib/fpending.h: Likewise.
99947         * lib/fprintf.c: Likewise.
99948         * lib/fprintftime.h: Likewise.
99949         * lib/fpucw.h: Likewise.
99950         * lib/fpurge.c: Likewise.
99951         * lib/fpurge.h: Likewise.
99952         * lib/freadable.c: Likewise.
99953         * lib/freadable.h: Likewise.
99954         * lib/freadahead.c: Likewise.
99955         * lib/freadahead.h: Likewise.
99956         * lib/freading.c: Likewise.
99957         * lib/freading.h: Likewise.
99958         * lib/free.c: Likewise.
99959         * lib/freopen.c: Likewise.
99960         * lib/frexp.c: Likewise.
99961         * lib/frexpl.c: Likewise.
99962         * lib/fseek.c: Likewise.
99963         * lib/fseterr.c: Likewise.
99964         * lib/fseterr.h: Likewise.
99965         * lib/fstatat.c: Likewise.
99966         * lib/fstrcmp.c: Likewise.
99967         * lib/fstrcmp.h: Likewise.
99968         * lib/fsusage.c: Likewise.
99969         * lib/fsusage.h: Likewise.
99970         * lib/ftell.c: Likewise.
99971         * lib/ftello.c: Likewise.
99972         * lib/fts-cycle.c: Likewise.
99973         * lib/fts.c: Likewise.
99974         * lib/fts_.h: Likewise.
99975         * lib/full-read.c: Likewise.
99976         * lib/full-read.h: Likewise.
99977         * lib/full-write.c: Likewise.
99978         * lib/full-write.h: Likewise.
99979         * lib/fwritable.c: Likewise.
99980         * lib/fwritable.h: Likewise.
99981         * lib/fwriteerror.c: Likewise.
99982         * lib/fwriteerror.h: Likewise.
99983         * lib/fwriting.c: Likewise.
99984         * lib/fwriting.h: Likewise.
99985         * lib/gcd.c: Likewise.
99986         * lib/gcd.h: Likewise.
99987         * lib/getcwd.c: Likewise.
99988         * lib/getdate.h: Likewise.
99989         * lib/getdate.y: Likewise.
99990         * lib/getdomainname.c: Likewise.
99991         * lib/getdomainname.h: Likewise.
99992         * lib/getgroups.c: Likewise.
99993         * lib/gethostname.c: Likewise.
99994         * lib/gethrxtime.c: Likewise.
99995         * lib/gethrxtime.h: Likewise.
99996         * lib/getloadavg.c: Likewise.
99997         * lib/getndelim2.c: Likewise.
99998         * lib/getndelim2.h: Likewise.
99999         * lib/getnline.c: Likewise.
100000         * lib/getnline.h: Likewise.
100001         * lib/getopt.c: Likewise.
100002         * lib/getopt.in.h: Likewise.
100003         * lib/getopt1.c: Likewise.
100004         * lib/getopt_int.h: Likewise.
100005         * lib/getpagesize.h: Likewise.
100006         * lib/getsubopt.c: Likewise.
100007         * lib/gettime.c: Likewise.
100008         * lib/getugroups.c: Likewise.
100009         * lib/getugroups.h: Likewise.
100010         * lib/getusershell.c: Likewise.
100011         * lib/gl_anyavltree_list1.h: Likewise.
100012         * lib/gl_anyavltree_list2.h: Likewise.
100013         * lib/gl_anyhash_list1.h: Likewise.
100014         * lib/gl_anyhash_list2.h: Likewise.
100015         * lib/gl_anylinked_list1.h: Likewise.
100016         * lib/gl_anylinked_list2.h: Likewise.
100017         * lib/gl_anyrbtree_list1.h: Likewise.
100018         * lib/gl_anyrbtree_list2.h: Likewise.
100019         * lib/gl_anytree_list1.h: Likewise.
100020         * lib/gl_anytree_list2.h: Likewise.
100021         * lib/gl_anytree_oset.h: Likewise.
100022         * lib/gl_anytreehash_list1.h: Likewise.
100023         * lib/gl_anytreehash_list2.h: Likewise.
100024         * lib/gl_array_list.c: Likewise.
100025         * lib/gl_array_list.h: Likewise.
100026         * lib/gl_array_oset.c: Likewise.
100027         * lib/gl_array_oset.h: Likewise.
100028         * lib/gl_avltree_list.c: Likewise.
100029         * lib/gl_avltree_list.h: Likewise.
100030         * lib/gl_avltree_oset.c: Likewise.
100031         * lib/gl_avltree_oset.h: Likewise.
100032         * lib/gl_avltreehash_list.c: Likewise.
100033         * lib/gl_avltreehash_list.h: Likewise.
100034         * lib/gl_carray_list.c: Likewise.
100035         * lib/gl_carray_list.h: Likewise.
100036         * lib/gl_linked_list.c: Likewise.
100037         * lib/gl_linked_list.h: Likewise.
100038         * lib/gl_linkedhash_list.c: Likewise.
100039         * lib/gl_linkedhash_list.h: Likewise.
100040         * lib/gl_list.c: Likewise.
100041         * lib/gl_list.h: Likewise.
100042         * lib/gl_oset.c: Likewise.
100043         * lib/gl_oset.h: Likewise.
100044         * lib/gl_rbtree_list.c: Likewise.
100045         * lib/gl_rbtree_list.h: Likewise.
100046         * lib/gl_rbtree_oset.c: Likewise.
100047         * lib/gl_rbtree_oset.h: Likewise.
100048         * lib/gl_rbtreehash_list.c: Likewise.
100049         * lib/gl_rbtreehash_list.h: Likewise.
100050         * lib/gl_sublist.c: Likewise.
100051         * lib/gl_sublist.h: Likewise.
100052         * lib/group-member.c: Likewise.
100053         * lib/group-member.h: Likewise.
100054         * lib/hard-locale.c: Likewise.
100055         * lib/hard-locale.h: Likewise.
100056         * lib/hash-pjw.c: Likewise.
100057         * lib/hash-pjw.h: Likewise.
100058         * lib/hash-triple.c: Likewise.
100059         * lib/hash.c: Likewise.
100060         * lib/hash.h: Likewise.
100061         * lib/human.c: Likewise.
100062         * lib/human.h: Likewise.
100063         * lib/i-ring.c: Likewise.
100064         * lib/i-ring.h: Likewise.
100065         * lib/idcache.c: Likewise.
100066         * lib/imaxabs.c: Likewise.
100067         * lib/imaxdiv.c: Likewise.
100068         * lib/inet_pton.c: Likewise.
100069         * lib/inet_pton.h: Likewise.
100070         * lib/intprops.h: Likewise.
100071         * lib/inttostr.c: Likewise.
100072         * lib/inttostr.h: Likewise.
100073         * lib/inttypes.in.h: Likewise.
100074         * lib/isapipe.c: Likewise.
100075         * lib/isdir.c: Likewise.
100076         * lib/isnan.c: Likewise.
100077         * lib/isnan.h: Likewise.
100078         * lib/isnanf.c: Likewise.
100079         * lib/isnanf.h: Likewise.
100080         * lib/isnanl-nolibm.h: Likewise.
100081         * lib/isnanl.c: Likewise.
100082         * lib/isnanl.h: Likewise.
100083         * lib/javacomp.c: Likewise.
100084         * lib/javacomp.h: Likewise.
100085         * lib/javaexec.c: Likewise.
100086         * lib/javaexec.h: Likewise.
100087         * lib/javaversion.c: Likewise.
100088         * lib/javaversion.h: Likewise.
100089         * lib/javaversion.java: Likewise.
100090         * lib/lbrkprop.h: Likewise.
100091         * lib/lchmod.h: Likewise.
100092         * lib/lchown.c: Likewise.
100093         * lib/ldexpl.c: Likewise.
100094         * lib/linebreak.c: Likewise.
100095         * lib/linebreak.h: Likewise.
100096         * lib/linebuffer.c: Likewise.
100097         * lib/linebuffer.h: Likewise.
100098         * lib/locale.in.h: Likewise.
100099         * lib/logl.c: Likewise.
100100         * lib/long-options.c: Likewise.
100101         * lib/long-options.h: Likewise.
100102         * lib/lstat.c: Likewise.
100103         * lib/lstat.h: Likewise.
100104         * lib/math.in.h: Likewise.
100105         * lib/mbchar.c: Likewise.
100106         * lib/mbchar.h: Likewise.
100107         * lib/mbfile.h: Likewise.
100108         * lib/mbiter.h: Likewise.
100109         * lib/mbscasecmp.c: Likewise.
100110         * lib/mbscasestr.c: Likewise.
100111         * lib/mbschr.c: Likewise.
100112         * lib/mbscspn.c: Likewise.
100113         * lib/mbslen.c: Likewise.
100114         * lib/mbsncasecmp.c: Likewise.
100115         * lib/mbsnlen.c: Likewise.
100116         * lib/mbspbrk.c: Likewise.
100117         * lib/mbspcasecmp.c: Likewise.
100118         * lib/mbsrchr.c: Likewise.
100119         * lib/mbssep.c: Likewise.
100120         * lib/mbsspn.c: Likewise.
100121         * lib/mbsstr.c: Likewise.
100122         * lib/mbstok_r.c: Likewise.
100123         * lib/mbswidth.c: Likewise.
100124         * lib/mbswidth.h: Likewise.
100125         * lib/mbuiter.h: Likewise.
100126         * lib/memcasecmp.c: Likewise.
100127         * lib/memcasecmp.h: Likewise.
100128         * lib/memchr.c: Likewise.
100129         * lib/memcmp.c: Likewise.
100130         * lib/memcoll.c: Likewise.
100131         * lib/memcoll.h: Likewise.
100132         * lib/memcpy.c: Likewise.
100133         * lib/memrchr.c: Likewise.
100134         * lib/mkancesdirs.c: Likewise.
100135         * lib/mkdir-p.c: Likewise.
100136         * lib/mkdir-p.h: Likewise.
100137         * lib/mkdir.c: Likewise.
100138         * lib/mkdirat.c: Likewise.
100139         * lib/mkdtemp.c: Likewise.
100140         * lib/mkstemp-safer.c: Likewise.
100141         * lib/mkstemp.c: Likewise.
100142         * lib/modechange.c: Likewise.
100143         * lib/modechange.h: Likewise.
100144         * lib/mountlist.c: Likewise.
100145         * lib/mountlist.h: Likewise.
100146         * lib/mpsort.c: Likewise.
100147         * lib/nanosleep.c: Likewise.
100148         * lib/obstack.c: Likewise.
100149         * lib/obstack.h: Likewise.
100150         * lib/open-safer.c: Likewise.
100151         * lib/open.c: Likewise.
100152         * lib/openat-die.c: Likewise.
100153         * lib/openat-priv.h: Likewise.
100154         * lib/openat-proc.c: Likewise.
100155         * lib/openat.c: Likewise.
100156         * lib/openat.h: Likewise.
100157         * lib/pagealign_alloc.c: Likewise.
100158         * lib/pagealign_alloc.h: Likewise.
100159         * lib/physmem.c: Likewise.
100160         * lib/physmem.h: Likewise.
100161         * lib/pipe-safer.c: Likewise.
100162         * lib/pipe.c: Likewise.
100163         * lib/pipe.h: Likewise.
100164         * lib/posixtm.c: Likewise.
100165         * lib/posixtm.h: Likewise.
100166         * lib/posixver.c: Likewise.
100167         * lib/printf-frexp.c: Likewise.
100168         * lib/printf-frexp.h: Likewise.
100169         * lib/printf-frexpl.c: Likewise.
100170         * lib/printf-frexpl.h: Likewise.
100171         * lib/printf.c: Likewise.
100172         * lib/progname.c: Likewise.
100173         * lib/progname.h: Likewise.
100174         * lib/progreloc.c: Likewise.
100175         * lib/putenv.c: Likewise.
100176         * lib/quote.c: Likewise.
100177         * lib/quote.h: Likewise.
100178         * lib/quotearg.c: Likewise.
100179         * lib/quotearg.h: Likewise.
100180         * lib/raise.c: Likewise.
100181         * lib/readline.c: Likewise.
100182         * lib/readline.h: Likewise.
100183         * lib/readlink.c: Likewise.
100184         * lib/readtokens.c: Likewise.
100185         * lib/readtokens.h: Likewise.
100186         * lib/readtokens0.c: Likewise.
100187         * lib/readtokens0.h: Likewise.
100188         * lib/readutmp.c: Likewise.
100189         * lib/readutmp.h: Likewise.
100190         * lib/realloc.c: Likewise.
100191         * lib/relocwrapper.c: Likewise.
100192         * lib/rename-dest-slash.c: Likewise.
100193         * lib/rename.c: Likewise.
100194         * lib/rmdir.c: Likewise.
100195         * lib/rpmatch.c: Likewise.
100196         * lib/safe-read.c: Likewise.
100197         * lib/safe-read.h: Likewise.
100198         * lib/safe-write.c: Likewise.
100199         * lib/safe-write.h: Likewise.
100200         * lib/same-inode.h: Likewise.
100201         * lib/same.c: Likewise.
100202         * lib/same.h: Likewise.
100203         * lib/save-cwd.c: Likewise.
100204         * lib/save-cwd.h: Likewise.
100205         * lib/savedir.c: Likewise.
100206         * lib/savedir.h: Likewise.
100207         * lib/savewd.c: Likewise.
100208         * lib/savewd.h: Likewise.
100209         * lib/search.in.h: Likewise.
100210         * lib/setenv.c: Likewise.
100211         * lib/setenv.h: Likewise.
100212         * lib/settime.c: Likewise.
100213         * lib/sh-quote.c: Likewise.
100214         * lib/sh-quote.h: Likewise.
100215         * lib/sig2str.c: Likewise.
100216         * lib/sig2str.h: Likewise.
100217         * lib/signal.in.h: Likewise.
100218         * lib/signbitd.c: Likewise.
100219         * lib/signbitf.c: Likewise.
100220         * lib/signbitl.c: Likewise.
100221         * lib/sigprocmask.c: Likewise.
100222         * lib/sincosl.c: Likewise.
100223         * lib/sleep.c: Likewise.
100224         * lib/sprintf.c: Likewise.
100225         * lib/sqrtl.c: Likewise.
100226         * lib/stat-time.h: Likewise.
100227         * lib/stdio--.h: Likewise.
100228         * lib/stdio-safer.h: Likewise.
100229         * lib/stdlib--.h: Likewise.
100230         * lib/stdlib-safer.h: Likewise.
100231         * lib/stdlib.in.h: Likewise.
100232         * lib/stpcpy.c: Likewise.
100233         * lib/stpncpy.c: Likewise.
100234         * lib/strchrnul.c: Likewise.
100235         * lib/strcspn.c: Likewise.
100236         * lib/strerror.c: Likewise.
100237         * lib/strftime.c: Likewise.
100238         * lib/strftime.h: Likewise.
100239         * lib/striconveh.c: Likewise.
100240         * lib/striconveh.h: Likewise.
100241         * lib/striconveha.c: Likewise.
100242         * lib/striconveha.h: Likewise.
100243         * lib/stripslash.c: Likewise.
100244         * lib/strnlen1.c: Likewise.
100245         * lib/strnlen1.h: Likewise.
100246         * lib/strtod.c: Likewise.
100247         * lib/strtoimax.c: Likewise.
100248         * lib/strtok_r.c: Likewise.
100249         * lib/strtol.c: Likewise.
100250         * lib/strtoll.c: Likewise.
100251         * lib/strtoul.c: Likewise.
100252         * lib/strtoull.c: Likewise.
100253         * lib/sysexits.in.h: Likewise.
100254         * lib/tempname.c: Likewise.
100255         * lib/tempname.h: Likewise.
100256         * lib/timespec.h: Likewise.
100257         * lib/tls.c: Likewise.
100258         * lib/tls.h: Likewise.
100259         * lib/tmpdir.c: Likewise.
100260         * lib/tmpdir.h: Likewise.
100261         * lib/tmpfile-safer.c: Likewise.
100262         * lib/tmpfile.c: Likewise.
100263         * lib/trigl.c: Likewise.
100264         * lib/trigl.h: Likewise.
100265         * lib/trim.c: Likewise.
100266         * lib/trim.h: Likewise.
100267         * lib/trunc.c: Likewise.
100268         * lib/truncf.c: Likewise.
100269         * lib/truncl.c: Likewise.
100270         * lib/tsearch.c: Likewise.
100271         * lib/unicodeio.c: Likewise.
100272         * lib/unicodeio.h: Likewise.
100273         * lib/unistd--.h: Likewise.
100274         * lib/unistd-safer.h: Likewise.
100275         * lib/unistdio/ulc-fprintf.c: Likewise.
100276         * lib/unistdio/ulc-vfprintf.c: Likewise.
100277         * lib/unlinkdir.c: Likewise.
100278         * lib/unlinkdir.h: Likewise.
100279         * lib/unlocked-io.h: Likewise.
100280         * lib/unsetenv.c: Likewise.
100281         * lib/userspec.c: Likewise.
100282         * lib/utime.c: Likewise.
100283         * lib/utimecmp.c: Likewise.
100284         * lib/utimecmp.h: Likewise.
100285         * lib/utimens.c: Likewise.
100286         * lib/verify.h: Likewise.
100287         * lib/verror.c: Likewise.
100288         * lib/verror.h: Likewise.
100289         * lib/version-etc-fsf.c: Likewise.
100290         * lib/version-etc.c: Likewise.
100291         * lib/version-etc.h: Likewise.
100292         * lib/vfprintf.c: Likewise.
100293         * lib/vprintf.c: Likewise.
100294         * lib/vsprintf.c: Likewise.
100295         * lib/w32spawn.h: Likewise.
100296         * lib/wait-process.c: Likewise.
100297         * lib/wait-process.h: Likewise.
100298         * lib/wcwidth.c: Likewise.
100299         * lib/write-any-file.c: Likewise.
100300         * lib/xalloc-die.c: Likewise.
100301         * lib/xalloc.h: Likewise.
100302         * lib/xasprintf.c: Likewise.
100303         * lib/xgetcwd.c: Likewise.
100304         * lib/xgetcwd.h: Likewise.
100305         * lib/xgetdomainname.c: Likewise.
100306         * lib/xgetdomainname.h: Likewise.
100307         * lib/xgethostname.c: Likewise.
100308         * lib/xmalloc.c: Likewise.
100309         * lib/xmalloca.c: Likewise.
100310         * lib/xmalloca.h: Likewise.
100311         * lib/xmemcoll.c: Likewise.
100312         * lib/xnanosleep.c: Likewise.
100313         * lib/xreadlink.c: Likewise.
100314         * lib/xreadlink.h: Likewise.
100315         * lib/xsetenv.c: Likewise.
100316         * lib/xsetenv.h: Likewise.
100317         * lib/xstriconv.c: Likewise.
100318         * lib/xstriconv.h: Likewise.
100319         * lib/xstrndup.c: Likewise.
100320         * lib/xstrndup.h: Likewise.
100321         * lib/xstrtod.c: Likewise.
100322         * lib/xstrtod.h: Likewise.
100323         * lib/xstrtol-error.c: Likewise.
100324         * lib/xstrtol.c: Likewise.
100325         * lib/xstrtol.h: Likewise.
100326         * lib/xtime.h: Likewise.
100327         * lib/xvasprintf.c: Likewise.
100328         * lib/xvasprintf.h: Likewise.
100329         * lib/yesno.c: Likewise.
100330         * lib/yesno.h: Likewise.
100331         * posix-modules: Likewise.
100332         * tests/test-alloca-opt.c: Likewise.
100333         * tests/test-arcfour.c: Likewise.
100334         * tests/test-arctwo.c: Likewise.
100335         * tests/test-argmatch.c: Likewise.
100336         * tests/test-argp-2.sh: Likewise.
100337         * tests/test-argp.c: Likewise.
100338         * tests/test-arpa_inet.c: Likewise.
100339         * tests/test-array_list.c: Likewise.
100340         * tests/test-array_oset.c: Likewise.
100341         * tests/test-atexit.c: Likewise.
100342         * tests/test-avltree_list.c: Likewise.
100343         * tests/test-avltree_oset.c: Likewise.
100344         * tests/test-avltreehash_list.c: Likewise.
100345         * tests/test-base64.c: Likewise.
100346         * tests/test-binary-io.c: Likewise.
100347         * tests/test-byteswap.c: Likewise.
100348         * tests/test-c-ctype.c: Likewise.
100349         * tests/test-c-strcasecmp.c: Likewise.
100350         * tests/test-c-strcasestr.c: Likewise.
100351         * tests/test-c-strncasecmp.c: Likewise.
100352         * tests/test-c-strstr.c: Likewise.
100353         * tests/test-canonicalize-lgpl.c: Likewise.
100354         * tests/test-canonicalize.c: Likewise.
100355         * tests/test-carray_list.c: Likewise.
100356         * tests/test-ceilf.c: Likewise.
100357         * tests/test-ceill.c: Likewise.
100358         * tests/test-count-one-bits.c: Likewise.
100359         * tests/test-crc.c: Likewise.
100360         * tests/test-dirname.c: Likewise.
100361         * tests/test-fbufmode.c: Likewise.
100362         * tests/test-fcntl.c: Likewise.
100363         * tests/test-fflush.c: Likewise.
100364         * tests/test-floorf.c: Likewise.
100365         * tests/test-floorl.c: Likewise.
100366         * tests/test-fopen.c: Likewise.
100367         * tests/test-fprintf-posix.c: Likewise.
100368         * tests/test-fprintf-posix.h: Likewise.
100369         * tests/test-fpurge.c: Likewise.
100370         * tests/test-freadable.c: Likewise.
100371         * tests/test-freadahead.c: Likewise.
100372         * tests/test-freading.c: Likewise.
100373         * tests/test-freopen.c: Likewise.
100374         * tests/test-frexp.c: Likewise.
100375         * tests/test-frexpl.c: Likewise.
100376         * tests/test-fseek.c: Likewise.
100377         * tests/test-fseeko.c: Likewise.
100378         * tests/test-fseterr.c: Likewise.
100379         * tests/test-fstrcmp.c: Likewise.
100380         * tests/test-ftell.c: Likewise.
100381         * tests/test-ftello.c: Likewise.
100382         * tests/test-fwritable.c: Likewise.
100383         * tests/test-fwriting.c: Likewise.
100384         * tests/test-getaddrinfo.c: Likewise.
100385         * tests/test-getpass.c: Likewise.
100386         * tests/test-gettimeofday.c: Likewise.
100387         * tests/test-hmac-md5.c: Likewise.
100388         * tests/test-hmac-sha1.c: Likewise.
100389         * tests/test-iconv.c: Likewise.
100390         * tests/test-iconvme.c: Likewise.
100391         * tests/test-inttypes.c: Likewise.
100392         * tests/test-isnan.c: Likewise.
100393         * tests/test-isnanf.c: Likewise.
100394         * tests/test-isnanl-nolibm.c: Likewise.
100395         * tests/test-isnanl.c: Likewise.
100396         * tests/test-isnanl.h: Likewise.
100397         * tests/test-ldexpl.c: Likewise.
100398         * tests/test-linked_list.c: Likewise.
100399         * tests/test-linkedhash_list.c: Likewise.
100400         * tests/test-locale.c: Likewise.
100401         * tests/test-localename.c: Likewise.
100402         * tests/test-lock.c: Likewise.
100403         * tests/test-lseek.c: Likewise.
100404         * tests/test-malloca.c: Likewise.
100405         * tests/test-math.c: Likewise.
100406         * tests/test-mbscasecmp.c: Likewise.
100407         * tests/test-mbscasestr1.c: Likewise.
100408         * tests/test-mbscasestr2.c: Likewise.
100409         * tests/test-mbscasestr3.c: Likewise.
100410         * tests/test-mbscasestr4.c: Likewise.
100411         * tests/test-mbschr.c: Likewise.
100412         * tests/test-mbscspn.c: Likewise.
100413         * tests/test-mbsncasecmp.c: Likewise.
100414         * tests/test-mbspbrk.c: Likewise.
100415         * tests/test-mbspcasecmp.c: Likewise.
100416         * tests/test-mbsrchr.c: Likewise.
100417         * tests/test-mbsspn.c: Likewise.
100418         * tests/test-mbsstr1.c: Likewise.
100419         * tests/test-mbsstr2.c: Likewise.
100420         * tests/test-mbsstr3.c: Likewise.
100421         * tests/test-md5.c: Likewise.
100422         * tests/test-memmem.c: Likewise.
100423         * tests/test-netinet_in.c: Likewise.
100424         * tests/test-open.c: Likewise.
100425         * tests/test-printf-frexp.c: Likewise.
100426         * tests/test-printf-frexpl.c: Likewise.
100427         * tests/test-printf-posix.c: Likewise.
100428         * tests/test-printf-posix.h: Likewise.
100429         * tests/test-rbtree_list.c: Likewise.
100430         * tests/test-rbtree_oset.c: Likewise.
100431         * tests/test-rbtreehash_list.c: Likewise.
100432         * tests/test-read-file.c: Likewise.
100433         * tests/test-rijndael.c: Likewise.
100434         * tests/test-search.c: Likewise.
100435         * tests/test-signbit.c: Likewise.
100436         * tests/test-sleep.c: Likewise.
100437         * tests/test-snprintf-posix.c: Likewise.
100438         * tests/test-snprintf-posix.h: Likewise.
100439         * tests/test-snprintf.c: Likewise.
100440         * tests/test-sprintf-posix.c: Likewise.
100441         * tests/test-sprintf-posix.h: Likewise.
100442         * tests/test-stat-time.c: Likewise.
100443         * tests/test-stdbool.c: Likewise.
100444         * tests/test-stdint.c: Likewise.
100445         * tests/test-stdio.c: Likewise.
100446         * tests/test-stdlib.c: Likewise.
100447         * tests/test-stpncpy.c: Likewise.
100448         * tests/test-strcasestr.c: Likewise.
100449         * tests/test-striconv.c: Likewise.
100450         * tests/test-striconveh.c: Likewise.
100451         * tests/test-striconveha.c: Likewise.
100452         * tests/test-string.c: Likewise.
100453         * tests/test-sys_select.c: Likewise.
100454         * tests/test-sys_socket.c: Likewise.
100455         * tests/test-sys_stat.c: Likewise.
100456         * tests/test-sys_time.c: Likewise.
100457         * tests/test-sysexits.c: Likewise.
100458         * tests/test-time.c: Likewise.
100459         * tests/test-tls.c: Likewise.
100460         * tests/test-trunc.c: Likewise.
100461         * tests/test-truncf.c: Likewise.
100462         * tests/test-truncl.c: Likewise.
100463         * tests/test-unistd.c: Likewise.
100464         * tests/test-vasnprintf-posix.c: Likewise.
100465         * tests/test-vasnprintf-posix2.c: Likewise.
100466         * tests/test-vasnprintf.c: Likewise.
100467         * tests/test-vasprintf-posix.c: Likewise.
100468         * tests/test-vasprintf.c: Likewise.
100469         * tests/test-verify.c: Likewise.
100470         * tests/test-vfprintf-posix.c: Likewise.
100471         * tests/test-vprintf-posix.c: Likewise.
100472         * tests/test-vsnprintf-posix.c: Likewise.
100473         * tests/test-vsnprintf.c: Likewise.
100474         * tests/test-vsprintf-posix.c: Likewise.
100475         * tests/test-wchar.c: Likewise.
100476         * tests/test-wctype.c: Likewise.
100477         * tests/test-wcwidth.c: Likewise.
100478         * tests/test-xstrtol.c: Likewise.
100479         * tests/test-xvasprintf.c: Likewise.
100480         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
100481         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
100482         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100483         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100484         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100485         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
100486         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100487         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100488         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100489         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
100490         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100491         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100492         * tests/uniname/test-uninames.c: Likewise.
100493         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
100494         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
100495         * tests/unistdio/test-u16-printf1.h: Likewise.
100496         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
100497         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
100498         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
100499         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
100500         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
100501         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
100502         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
100503         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
100504         * tests/unistdio/test-u32-printf1.h: Likewise.
100505         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
100506         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
100507         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
100508         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
100509         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
100510         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
100511         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
100512         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
100513         * tests/unistdio/test-u8-printf1.h: Likewise.
100514         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
100515         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
100516         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
100517         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
100518         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
100519         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
100520         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
100521         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
100522         * tests/unistdio/test-ulc-printf1.h: Likewise.
100523         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
100524         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
100525         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
100526         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
100527         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
100528         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
100529         * tests/uniwidth/test-u16-strwidth.c: Likewise.
100530         * tests/uniwidth/test-u16-width.c: Likewise.
100531         * tests/uniwidth/test-u32-strwidth.c: Likewise.
100532         * tests/uniwidth/test-u32-width.c: Likewise.
100533         * tests/uniwidth/test-u8-strwidth.c: Likewise.
100534         * tests/uniwidth/test-u8-width.c: Likewise.
100535         * tests/uniwidth/test-uc_width.c: Likewise.
100536         * config/srclist-update: Likewise.
100537         (fixlicense): Update to GPLv3+.
100539         Change copyright notice from LGPLv2.1+ to LGPLv3+.
100540         * tests/test-tsearch.c: Change copyright notice.
100542         Change copyright notice from LGPLv2.0+ to LGPLv3+.
100543         * lib/c-strcaseeq.h: Change copyright notice.
100544         * lib/streq.h: Likewise.
100545         * lib/uniconv.h: Likewise.
100546         * lib/uniconv/u-conv-from-enc.h: Likewise.
100547         * lib/uniconv/u-conv-to-enc.h: Likewise.
100548         * lib/uniconv/u-strconv-from-enc.h: Likewise.
100549         * lib/uniconv/u-strconv-to-enc.h: Likewise.
100550         * lib/uniconv/u16-conv-from-enc.c: Likewise.
100551         * lib/uniconv/u16-conv-to-enc.c: Likewise.
100552         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
100553         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
100554         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
100555         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
100556         * lib/uniconv/u32-conv-from-enc.c: Likewise.
100557         * lib/uniconv/u32-conv-to-enc.c: Likewise.
100558         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
100559         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
100560         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
100561         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
100562         * lib/uniconv/u8-conv-from-enc.c: Likewise.
100563         * lib/uniconv/u8-conv-to-enc.c: Likewise.
100564         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
100565         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
100566         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
100567         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
100568         * lib/uniname.h: Likewise.
100569         * lib/uniname/uniname.c: Likewise.
100570         * lib/unistdio.h: Likewise.
100571         * lib/unistdio/u-asnprintf.h: Likewise.
100572         * lib/unistdio/u-asprintf.h: Likewise.
100573         * lib/unistdio/u-printf-args.c: Likewise.
100574         * lib/unistdio/u-printf-args.h: Likewise.
100575         * lib/unistdio/u-printf-parse.h: Likewise.
100576         * lib/unistdio/u-snprintf.h: Likewise.
100577         * lib/unistdio/u-sprintf.h: Likewise.
100578         * lib/unistdio/u-vasprintf.h: Likewise.
100579         * lib/unistdio/u-vsnprintf.h: Likewise.
100580         * lib/unistdio/u-vsprintf.h: Likewise.
100581         * lib/unistdio/u16-asnprintf.c: Likewise.
100582         * lib/unistdio/u16-asprintf.c: Likewise.
100583         * lib/unistdio/u16-printf-parse.c: Likewise.
100584         * lib/unistdio/u16-snprintf.c: Likewise.
100585         * lib/unistdio/u16-sprintf.c: Likewise.
100586         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
100587         * lib/unistdio/u16-u16-asprintf.c: Likewise.
100588         * lib/unistdio/u16-u16-snprintf.c: Likewise.
100589         * lib/unistdio/u16-u16-sprintf.c: Likewise.
100590         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
100591         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
100592         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
100593         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
100594         * lib/unistdio/u16-vasnprintf.c: Likewise.
100595         * lib/unistdio/u16-vasprintf.c: Likewise.
100596         * lib/unistdio/u16-vsnprintf.c: Likewise.
100597         * lib/unistdio/u16-vsprintf.c: Likewise.
100598         * lib/unistdio/u32-asnprintf.c: Likewise.
100599         * lib/unistdio/u32-asprintf.c: Likewise.
100600         * lib/unistdio/u32-printf-parse.c: Likewise.
100601         * lib/unistdio/u32-snprintf.c: Likewise.
100602         * lib/unistdio/u32-sprintf.c: Likewise.
100603         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
100604         * lib/unistdio/u32-u32-asprintf.c: Likewise.
100605         * lib/unistdio/u32-u32-snprintf.c: Likewise.
100606         * lib/unistdio/u32-u32-sprintf.c: Likewise.
100607         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
100608         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
100609         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
100610         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
100611         * lib/unistdio/u32-vasnprintf.c: Likewise.
100612         * lib/unistdio/u32-vasprintf.c: Likewise.
100613         * lib/unistdio/u32-vsnprintf.c: Likewise.
100614         * lib/unistdio/u32-vsprintf.c: Likewise.
100615         * lib/unistdio/u8-asnprintf.c: Likewise.
100616         * lib/unistdio/u8-asprintf.c: Likewise.
100617         * lib/unistdio/u8-printf-parse.c: Likewise.
100618         * lib/unistdio/u8-snprintf.c: Likewise.
100619         * lib/unistdio/u8-sprintf.c: Likewise.
100620         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
100621         * lib/unistdio/u8-u8-asprintf.c: Likewise.
100622         * lib/unistdio/u8-u8-snprintf.c: Likewise.
100623         * lib/unistdio/u8-u8-sprintf.c: Likewise.
100624         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
100625         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
100626         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
100627         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
100628         * lib/unistdio/u8-vasnprintf.c: Likewise.
100629         * lib/unistdio/u8-vasprintf.c: Likewise.
100630         * lib/unistdio/u8-vsnprintf.c: Likewise.
100631         * lib/unistdio/u8-vsprintf.c: Likewise.
100632         * lib/unistdio/ulc-asnprintf.c: Likewise.
100633         * lib/unistdio/ulc-asprintf.c: Likewise.
100634         * lib/unistdio/ulc-printf-parse.c: Likewise.
100635         * lib/unistdio/ulc-snprintf.c: Likewise.
100636         * lib/unistdio/ulc-sprintf.c: Likewise.
100637         * lib/unistdio/ulc-vasnprintf.c: Likewise.
100638         * lib/unistdio/ulc-vasprintf.c: Likewise.
100639         * lib/unistdio/ulc-vsnprintf.c: Likewise.
100640         * lib/unistdio/ulc-vsprintf.c: Likewise.
100641         * lib/unistr.h: Likewise.
100642         * lib/unistr/u-cpy-alloc.h: Likewise.
100643         * lib/unistr/u-cpy.h: Likewise.
100644         * lib/unistr/u-endswith.h: Likewise.
100645         * lib/unistr/u-move.h: Likewise.
100646         * lib/unistr/u-set.h: Likewise.
100647         * lib/unistr/u-startswith.h: Likewise.
100648         * lib/unistr/u-stpcpy.h: Likewise.
100649         * lib/unistr/u-stpncpy.h: Likewise.
100650         * lib/unistr/u-strcat.h: Likewise.
100651         * lib/unistr/u-strcpy.h: Likewise.
100652         * lib/unistr/u-strcspn.h: Likewise.
100653         * lib/unistr/u-strdup.h: Likewise.
100654         * lib/unistr/u-strlen.h: Likewise.
100655         * lib/unistr/u-strncat.h: Likewise.
100656         * lib/unistr/u-strncpy.h: Likewise.
100657         * lib/unistr/u-strnlen.h: Likewise.
100658         * lib/unistr/u-strpbrk.h: Likewise.
100659         * lib/unistr/u-strspn.h: Likewise.
100660         * lib/unistr/u-strstr.h: Likewise.
100661         * lib/unistr/u-strtok.h: Likewise.
100662         * lib/unistr/u16-check.c: Likewise.
100663         * lib/unistr/u16-chr.c: Likewise.
100664         * lib/unistr/u16-cmp.c: Likewise.
100665         * lib/unistr/u16-cpy-alloc.c: Likewise.
100666         * lib/unistr/u16-cpy.c: Likewise.
100667         * lib/unistr/u16-endswith.c: Likewise.
100668         * lib/unistr/u16-mblen.c: Likewise.
100669         * lib/unistr/u16-mbsnlen.c: Likewise.
100670         * lib/unistr/u16-mbtouc-aux.c: Likewise.
100671         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
100672         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
100673         * lib/unistr/u16-mbtouc.c: Likewise.
100674         * lib/unistr/u16-mbtoucr.c: Likewise.
100675         * lib/unistr/u16-move.c: Likewise.
100676         * lib/unistr/u16-next.c: Likewise.
100677         * lib/unistr/u16-prev.c: Likewise.
100678         * lib/unistr/u16-set.c: Likewise.
100679         * lib/unistr/u16-startswith.c: Likewise.
100680         * lib/unistr/u16-stpcpy.c: Likewise.
100681         * lib/unistr/u16-stpncpy.c: Likewise.
100682         * lib/unistr/u16-strcat.c: Likewise.
100683         * lib/unistr/u16-strchr.c: Likewise.
100684         * lib/unistr/u16-strcmp.c: Likewise.
100685         * lib/unistr/u16-strcpy.c: Likewise.
100686         * lib/unistr/u16-strcspn.c: Likewise.
100687         * lib/unistr/u16-strdup.c: Likewise.
100688         * lib/unistr/u16-strlen.c: Likewise.
100689         * lib/unistr/u16-strmblen.c: Likewise.
100690         * lib/unistr/u16-strmbtouc.c: Likewise.
100691         * lib/unistr/u16-strncat.c: Likewise.
100692         * lib/unistr/u16-strncmp.c: Likewise.
100693         * lib/unistr/u16-strncpy.c: Likewise.
100694         * lib/unistr/u16-strnlen.c: Likewise.
100695         * lib/unistr/u16-strpbrk.c: Likewise.
100696         * lib/unistr/u16-strrchr.c: Likewise.
100697         * lib/unistr/u16-strspn.c: Likewise.
100698         * lib/unistr/u16-strstr.c: Likewise.
100699         * lib/unistr/u16-strtok.c: Likewise.
100700         * lib/unistr/u16-to-u32.c: Likewise.
100701         * lib/unistr/u16-to-u8.c: Likewise.
100702         * lib/unistr/u16-uctomb-aux.c: Likewise.
100703         * lib/unistr/u16-uctomb.c: Likewise.
100704         * lib/unistr/u32-check.c: Likewise.
100705         * lib/unistr/u32-chr.c: Likewise.
100706         * lib/unistr/u32-cmp.c: Likewise.
100707         * lib/unistr/u32-cpy-alloc.c: Likewise.
100708         * lib/unistr/u32-cpy.c: Likewise.
100709         * lib/unistr/u32-endswith.c: Likewise.
100710         * lib/unistr/u32-mblen.c: Likewise.
100711         * lib/unistr/u32-mbsnlen.c: Likewise.
100712         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
100713         * lib/unistr/u32-mbtouc.c: Likewise.
100714         * lib/unistr/u32-mbtoucr.c: Likewise.
100715         * lib/unistr/u32-move.c: Likewise.
100716         * lib/unistr/u32-next.c: Likewise.
100717         * lib/unistr/u32-prev.c: Likewise.
100718         * lib/unistr/u32-set.c: Likewise.
100719         * lib/unistr/u32-startswith.c: Likewise.
100720         * lib/unistr/u32-stpcpy.c: Likewise.
100721         * lib/unistr/u32-stpncpy.c: Likewise.
100722         * lib/unistr/u32-strcat.c: Likewise.
100723         * lib/unistr/u32-strchr.c: Likewise.
100724         * lib/unistr/u32-strcmp.c: Likewise.
100725         * lib/unistr/u32-strcpy.c: Likewise.
100726         * lib/unistr/u32-strcspn.c: Likewise.
100727         * lib/unistr/u32-strdup.c: Likewise.
100728         * lib/unistr/u32-strlen.c: Likewise.
100729         * lib/unistr/u32-strmblen.c: Likewise.
100730         * lib/unistr/u32-strmbtouc.c: Likewise.
100731         * lib/unistr/u32-strncat.c: Likewise.
100732         * lib/unistr/u32-strncmp.c: Likewise.
100733         * lib/unistr/u32-strncpy.c: Likewise.
100734         * lib/unistr/u32-strnlen.c: Likewise.
100735         * lib/unistr/u32-strpbrk.c: Likewise.
100736         * lib/unistr/u32-strrchr.c: Likewise.
100737         * lib/unistr/u32-strspn.c: Likewise.
100738         * lib/unistr/u32-strstr.c: Likewise.
100739         * lib/unistr/u32-strtok.c: Likewise.
100740         * lib/unistr/u32-to-u16.c: Likewise.
100741         * lib/unistr/u32-to-u8.c: Likewise.
100742         * lib/unistr/u32-uctomb.c: Likewise.
100743         * lib/unistr/u8-check.c: Likewise.
100744         * lib/unistr/u8-chr.c: Likewise.
100745         * lib/unistr/u8-cmp.c: Likewise.
100746         * lib/unistr/u8-cpy-alloc.c: Likewise.
100747         * lib/unistr/u8-cpy.c: Likewise.
100748         * lib/unistr/u8-endswith.c: Likewise.
100749         * lib/unistr/u8-mblen.c: Likewise.
100750         * lib/unistr/u8-mbsnlen.c: Likewise.
100751         * lib/unistr/u8-mbtouc-aux.c: Likewise.
100752         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
100753         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
100754         * lib/unistr/u8-mbtouc.c: Likewise.
100755         * lib/unistr/u8-mbtoucr.c: Likewise.
100756         * lib/unistr/u8-move.c: Likewise.
100757         * lib/unistr/u8-next.c: Likewise.
100758         * lib/unistr/u8-prev.c: Likewise.
100759         * lib/unistr/u8-set.c: Likewise.
100760         * lib/unistr/u8-startswith.c: Likewise.
100761         * lib/unistr/u8-stpcpy.c: Likewise.
100762         * lib/unistr/u8-stpncpy.c: Likewise.
100763         * lib/unistr/u8-strcat.c: Likewise.
100764         * lib/unistr/u8-strchr.c: Likewise.
100765         * lib/unistr/u8-strcmp.c: Likewise.
100766         * lib/unistr/u8-strcpy.c: Likewise.
100767         * lib/unistr/u8-strcspn.c: Likewise.
100768         * lib/unistr/u8-strdup.c: Likewise.
100769         * lib/unistr/u8-strlen.c: Likewise.
100770         * lib/unistr/u8-strmblen.c: Likewise.
100771         * lib/unistr/u8-strmbtouc.c: Likewise.
100772         * lib/unistr/u8-strncat.c: Likewise.
100773         * lib/unistr/u8-strncmp.c: Likewise.
100774         * lib/unistr/u8-strncpy.c: Likewise.
100775         * lib/unistr/u8-strnlen.c: Likewise.
100776         * lib/unistr/u8-strpbrk.c: Likewise.
100777         * lib/unistr/u8-strrchr.c: Likewise.
100778         * lib/unistr/u8-strspn.c: Likewise.
100779         * lib/unistr/u8-strstr.c: Likewise.
100780         * lib/unistr/u8-strtok.c: Likewise.
100781         * lib/unistr/u8-to-u16.c: Likewise.
100782         * lib/unistr/u8-to-u32.c: Likewise.
100783         * lib/unistr/u8-uctomb-aux.c: Likewise.
100784         * lib/unistr/u8-uctomb.c: Likewise.
100785         * lib/unitypes.h: Likewise.
100786         * lib/uniwidth.h: Likewise.
100787         * lib/uniwidth/cjk.h: Likewise.
100788         * lib/uniwidth/u16-strwidth.c: Likewise.
100789         * lib/uniwidth/u16-width.c: Likewise.
100790         * lib/uniwidth/u32-strwidth.c: Likewise.
100791         * lib/uniwidth/u32-width.c: Likewise.
100792         * lib/uniwidth/u8-strwidth.c: Likewise.
100793         * lib/uniwidth/u8-width.c: Likewise.
100794         * lib/uniwidth/width.c: Likewise.
100796 2007-10-07  Bruno Haible  <bruno@clisp.org>
100798         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
100799         The file is still under LGPL (see modules/inttypes).
100801 2007-10-06  Bruno Haible  <bruno@clisp.org>
100803         * modules/trunc (Dependencies): Add 'extensions'.
100804         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
100805         Reported by Ben Pfaff <blp@gnu.org>.
100807 2007-10-06  Bruno Haible  <bruno@clisp.org>
100809         * modules/freopen-tests: New file.
100810         * tests/test-freopen.c: New file.
100812         * modules/fopen-tests: New file.
100813         * tests/test-fopen.c: New file.
100815         * modules/fopen: New file.
100816         * lib/fopen.c: New file.
100817         * m4/fopen.m4: New file.
100818         * modules/freopen: New file.
100819         * lib/freopen.c: New file.
100820         * m4/freopen.m4: New file.
100821         * lib/stdio.in.h (fopen, freopen): New declarations.
100822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
100823         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100824         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
100825         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100826         * doc/functions/fopen.texi: Mention the 'fopen' module.
100827         * doc/functions/freopen.texi: Mention the 'freopen' module.
100829 2007-10-06  Bruno Haible  <bruno@clisp.org>
100831         * modules/open-tests: New file.
100832         * tests/test-open.c: New file.
100834         * modules/open: New file.
100835         * lib/open.c: New file.
100836         * m4/open.m4: New file.
100837         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
100838         lib/open.c does.
100839         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
100840         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
100841         macros.
100842         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
100843         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
100844         REPLACE_OPEN.
100845         * doc/functions/open.texi: Mention the 'open' module.
100847 2007-10-04  Bruno Haible  <bruno@clisp.org>
100849         * modules/ceill-tests: New file.
100850         * tests/test-ceill.c: New file.
100852         * modules/ceill: New file.
100853         * lib/ceill.c: Replace entire file.
100854         * m4/ceill.m4: New file.
100855         * lib/math.in.h (ceill): Replace declaration.
100856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
100857         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
100858         * doc/functions/ceill.texi: Mention the 'ceill' module.
100859         * modules/mathl (Files): Remove lib/ceill.c.
100860         (Depends-on): Add ceill.
100862 2007-10-04  Bruno Haible  <bruno@clisp.org>
100864         * modules/ceilf-tests: New file.
100865         * tests/test-ceilf.c: New file.
100867         * modules/ceilf: New file.
100868         * lib/ceil.c: New file.
100869         * lib/ceilf.c: New file.
100870         * m4/ceilf.m4: New file.
100871         * lib/math.in.h (ceilf): New declaration.
100872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
100873         HAVE_DECL_CEILF.
100874         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
100875         HAVE_DECL_CEILF.
100876         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
100878 2007-10-04  Bruno Haible  <bruno@clisp.org>
100880         * modules/floorl-tests: New file.
100881         * tests/test-floorl.c: New file.
100883         * modules/floorl: New file.
100884         * lib/floorl.c: Replace entire file.
100885         * m4/floorl.m4: New file.
100886         * lib/math.in.h (floorl): Replace declaration.
100887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
100888         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
100889         * doc/functions/floorl.texi: Mention the 'floorl' module.
100890         * modules/mathl (Files): Remove lib/floorl.c.
100891         (Depends-on): Add floorl.
100893 2007-10-04  Bruno Haible  <bruno@clisp.org>
100895         * modules/floorf-tests: New file.
100896         * tests/test-floorf.c: New file.
100898         * modules/floorf: New file.
100899         * lib/floor.c: New file.
100900         * lib/floorf.c: New file.
100901         * m4/floorf.m4: New file.
100902         * lib/math.in.h (floorf): New declaration.
100903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
100904         HAVE_DECL_FLOORF.
100905         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
100906         HAVE_DECL_FLOORF.
100907         * doc/functions/floorf.texi: Mention the 'floorf' module.
100909 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
100910             Bruno Haible  <bruno@clisp.org>
100912         Advertise for the Git server instead of the CVS server.
100913         * doc/gnulib-intro.texi (Steady Development): Mention the Git
100914         repository instead of the CVS one.
100915         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
100916         about all VCS systems generically.
100917         * doc/gnulib.texi (Introduction): Capitalize `Git'.
100919 2007-10-04  Bruno Haible  <bruno@clisp.org>
100921         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
100922         means.
100923         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
100925 2007-10-04  Bruno Haible  <bruno@clisp.org>
100927         * modules/truncl-tests: New file.
100928         * tests/test-truncl.c: New file.
100930         * modules/truncl: New file.
100931         * lib/truncl.c: New file.
100932         * m4/truncl.m4: New file.
100933         * lib/math.in.h (truncl): New declaration.
100934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
100935         HAVE_DECL_TRUNCL.
100936         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
100937         HAVE_DECL_TRUNCL.
100938         * doc/functions/truncl.texi: Mention the 'truncl' module.
100940 2007-10-04  Bruno Haible  <bruno@clisp.org>
100942         * modules/truncf-tests: New file.
100943         * tests/test-truncf.c: New file.
100945         * modules/truncf: New file.
100946         * lib/trunc.c: Make paramerizable through USE_* macros.
100947         * lib/truncf.c: New file.
100948         * m4/truncf.m4: New file.
100949         * lib/math.in.h (truncf): New declaration.
100950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
100951         HAVE_DECL_TRUNCF.
100952         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
100953         HAVE_DECL_TRUNCF.
100954         * doc/functions/truncf.texi: Mention the 'truncf' module.
100956 2007-10-03  Bruno Haible  <bruno@clisp.org>
100958         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
100959         augmentation also for tests modules.
100960         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
100961         * modules/atexit-tests (Makefile.am): Likewise.
100962         * modules/binary-io-tests (Makefile.am): Likewise.
100963         * modules/c-strcase-tests (Makefile.am): Likewise.
100964         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
100965         * modules/canonicalize-tests (Makefile.am): Likewise.
100966         * modules/closein-tests (Makefile.am): Likewise.
100967         * modules/fprintf-posix-tests (Makefile.am): Likewise.
100968         * modules/freadahead-tests (Makefile.am): Likewise.
100969         * modules/fseek-tests (Makefile.am): Likewise.
100970         * modules/fseeko-tests (Makefile.am): Likewise.
100971         * modules/ftell-tests (Makefile.am): Likewise.
100972         * modules/ftello-tests (Makefile.am): Likewise.
100973         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
100974         * modules/isnanl-tests (Makefile.am): Likewise.
100975         * modules/lseek-tests (Makefile.am): Likewise.
100976         * modules/mbscasecmp-tests (Makefile.am): Likewise.
100977         * modules/mbscasestr-tests (Makefile.am): Likewise.
100978         * modules/mbschr-tests (Makefile.am): Likewise.
100979         * modules/mbscspn-tests (Makefile.am): Likewise.
100980         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
100981         * modules/mbspbrk-tests (Makefile.am): Likewise.
100982         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
100983         * modules/mbsrchr-tests (Makefile.am): Likewise.
100984         * modules/mbsspn-tests (Makefile.am): Likewise.
100985         * modules/mbsstr-tests (Makefile.am): Likewise.
100986         * modules/printf-posix-tests (Makefile.am): Likewise.
100987         * modules/snprintf-posix-tests (Makefile.am): Likewise.
100988         * modules/sprintf-posix-tests (Makefile.am): Likewise.
100989         * modules/tsearch-tests (Makefile.am): Likewise.
100990         * modules/uniname/uniname-tests (Makefile.am): Likewise.
100991         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
100992         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
100993         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
100994         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
100995         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
100996         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
100997         * modules/vprintf-posix-tests (Makefile.am): Likewise.
100998         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
100999         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
101000         * modules/xstrtoimax-tests (Makefile.am): Likewise.
101001         * modules/xstrtol-tests (Makefile.am): Likewise.
101002         * modules/xstrtoumax-tests (Makefile.am): Likewise.
101003         * modules/yesno-tests (Makefile.am): Likewise.
101005 2007-10-03  Bruno Haible  <bruno@clisp.org>
101007         * modules/trunc-tests: New file.
101008         * tests/test-trunc.c: New file.
101010         * modules/trunc: New file.
101011         * lib/trunc.c: New file.
101012         * m4/trunc.m4: New file.
101013         * lib/math.in.h (trunc): New declaration.
101014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
101015         HAVE_DECL_TRUNC.
101016         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
101017         HAVE_DECL_TRUNC.
101018         * doc/functions/trunc.texi: Mention the 'trunc' module.
101020 2007-10-03  Bruno Haible  <bruno@clisp.org>
101022         * tests/test-fpending.c: New file, mostly copied
101023         from coreutils/lib/t-fpending.c.
101024         * modules/fpending-tests: New file.
101026 2007-10-03  Bruno Haible  <bruno@clisp.org>
101028         Port the stdio extensions to QNX (untested).
101029         * lib/fseterr.c (fseterr): Add support for QNX.
101030         * lib/fbufmode.c (fbufmode): Likewise.
101031         * lib/freadable.c (freadable): Likewise.
101032         * lib/fwritable.c (fwritable): Likewise.
101033         * lib/freading.c (freading): Likewise.
101034         * lib/fwriting.c (fwriting): Likewise.
101035         * lib/freadahead.c (freadahed): Likewise.
101036         * lib/fpurge.c (fpurge): Likewise.
101037         * lib/fseeko.c (rpl_fseeko): Likewise.
101039 2007-10-03  Bruno Haible  <bruno@clisp.org>
101040             Jim Meyering  <jim@meyering.net>
101041             Eric Blake  <ebb9@byu.net>
101043         * doc/relocatable.texi: Use @command instead of @program.
101045 2007-10-02  Jim Meyering  <jim@meyering.net>
101047         Perform one more "_.h" -> ".in.h" substitution.
101048         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
101049         instead of unistd_.h here, too.
101051 2007-10-01  Bruno Haible  <bruno@clisp.org>
101053         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
101054         Needed for the alloca-opt module.
101056 2007-09-30  Bruno Haible  <bruno@clisp.org>
101058         * lib/alloca.in.h: Renamed from lib/alloca_.h.
101059         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
101060         alloca_.h.
101061         * lib/argz.in.h: Renamed from lib/argz_.h.
101062         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
101063         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
101064         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
101065         byteswap_.h.
101066         * lib/dirent.in.h: Renamed from lib/dirent_.h.
101067         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
101068         dirent_.h.
101069         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
101070         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
101071         fcntl_.h.
101072         * lib/float.in.h: Renamed from lib/float_.h.
101073         * modules/float (Files, Makefile.am): Use float.in.h instead of
101074         float_.h.
101075         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
101076         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
101077         fnmatch_.h.
101078         * lib/getopt.in.h: Renamed from lib/getopt_.h.
101079         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
101080         getopt_.h.
101081         * lib/glob.in.h: Renamed from lib/glob_.h.
101082         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
101083         * lib/iconv.in.h: Renamed from lib/iconv_.h.
101084         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
101085         iconv_.h.
101086         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
101087         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
101088         inttypes_.h.
101089         * lib/locale.in.h: Renamed from lib/locale_.h.
101090         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
101091         locale_.h.
101092         * lib/math.in.h: Renamed from lib/math_.h.
101093         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
101094         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
101095         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
101096         of netinet_in_.h. Add dependency.
101097         * lib/poll.in.h: Renamed from lib/poll_.h.
101098         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
101099         * lib/search.in.h: Renamed from lib/search_.h.
101100         * modules/search (Files, Makefile.am): Use search.in.h instead of
101101         search_.h.
101102         * lib/signal.in.h: Renamed from lib/signal_.h.
101103         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
101104         _signal.h.
101105         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
101106         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
101107         stdbool_.h.
101108         * lib/stdint.in.h: Renamed from lib/stdint_.h.
101109         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
101110         stdint_.h.
101111         * lib/stdio.in.h: Renamed from lib/stdio_.h.
101112         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
101113         stdio_.h.
101114         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
101115         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
101116         stdlib_.h.
101117         * lib/string.in.h: Renamed from lib/string_.h.
101118         * modules/string (Files, Makefile.am): Use string.in.h instead of
101119         string_.h.
101120         * doc/gnulib-tool.texi (Initial import): Update.
101121         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
101122         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
101123         of sys_select_.h. Add dependency.
101124         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
101125         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
101126         of sys_socket_.h.
101127         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
101128         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
101129         sys_stat_.h.
101130         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
101131         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
101132         sys_time_.h.
101133         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
101134         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
101135         sysexits_.h.
101136         * lib/time.in.h: Renamed from lib/time_.h.
101137         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
101138         * lib/unistd.in.h: Renamed from lib/unistd_.h.
101139         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
101140         unistd_.h.
101141         * lib/wchar.in.h: Renamed from lib/wchar_.h.
101142         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
101143         wchar_.h.
101144         * lib/wctype.in.h: Renamed from lib/wctype_.h.
101145         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
101146         wctype_.h.
101147         * build-aux/bootstrap (slurp): Update.
101148         * lib/.cppi-disable: Update.
101150 2007-09-30  Bruno Haible  <bruno@clisp.org>
101152         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
101153         Needed on BeOS.
101155 2007-09-30  Bruno Haible  <bruno@clisp.org>
101157         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
101159 2007-09-29  Bruno Haible  <bruno@clisp.org>
101161         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
101163 2007-09-29  Bruno Haible  <bruno@clisp.org>
101165         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
101166         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
101167         * build-aux/install-reloc: Compile also areadlink.c.
101168         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
101170 2007-09-29  Bruno Haible  <bruno@clisp.org>
101172         * gnulib-tool (func_emit_initmacro_done): Indentation.
101174 2007-09-29  Bruno Haible  <bruno@clisp.org>
101176         * README: Add CVS checkout update instructions.
101177         Info from Bob Proulx <bob@proulx.com>.
101179 2007-09-28  Eric Blake  <ebb9@byu.net>
101181         Provide move-if-change.
101182         * build-aux/move-if-change: New file, based on best practice
101183         rather than any canonical upstream location.
101185 2007-09-28  Jim Meyering  <jim@meyering.net>
101187         Fix canonicalize loop-detection corner case.
101188         Do not attempt to stat the symlink values stored via seen_triple.
101189         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
101190         on linux-2.6.18, (but not 2.6.22).
101191         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
101192         triple_compare.  The former compares dev,ino,filename, while the latter
101193         would actually stat dirname(filename) when dev and ino were equal.
101194         * lib/hash-triple.c: Install <string.h>.
101195         (STREQ): Define.
101196         (triple_compare_ino_str): New function.
101197         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
101199 2007-09-28  Eric Blake  <ebb9@byu.net>
101201         Enforce that AC_REPLACE_FUNCS files exist.
101202         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
101203         override check for typos.
101205         Fix test-closein on Solaris 10.
101206         * tests/test-closein.c (main): Don't assume stdin can be inherited
101207         closed on all systems.
101208         * tests/test-closein.sh: Likewise.
101209         Reported by Piotr Tarnowski.
101211 2007-09-28  Jim Meyering  <jim@meyering.net>
101213         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
101215 2007-09-27  Jim Meyering  <jim@meyering.net>
101217         canonicalize: Avoid a false-positive cycle failure.
101218         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
101219         Sort.  Remove cycle-check.
101220         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
101221         not cycle-check.h.
101222         (seen_triple): New function.
101223         (canonicalize_filename_mode): Use it instead of cycle-check.
101224         * tests/test-canonicalize.c: Add a test for this bug.
101225         * tests/test-canonicalize.sh: Set up and run the test.
101227         New module, file-set, from coreutils.
101228         * modules/file-set: Define it.
101229         * lib/file-set.c, lib/file-set.h: Implement.
101231         New module, hash-triple, from coreutils.
101232         * modules/hash-triple: Define it.
101233         * lib/hash-triple.c, lib/hash-triple.h: Implement.
101235 2007-09-25  Eric Blake  <ebb9@byu.net>
101237         Fix strerror on Interix.
101238         * lib/string_.h (strerror): Declare replacement.
101239         * doc/functions/strerror.texi (strerror): Document the Interix
101240         shortcoming.
101241         * modules/string (Makefile.am): Support new hooks.
101242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
101243         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
101244         gl_FUNC_STRERROR_SEPARATE.
101245         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
101246         * lib/strerror.c (rpl_strerror): Provide replacement.
101247         * modules/strerror (Depends-on): Add string.
101248         (configure.ac): Detect use of module.
101249         * tests/test-strerror.c: New file.
101250         * modules/strerror-tests: New test module.
101251         * modules/argp (Depends-on): Add strerror.
101252         * modules/error (Depends-on): Likewise.
101253         Reported by Martin Koeppe.
101255 2007-09-24  Bruno Haible  <bruno@clisp.org>
101257         * README: Update git instructions.
101259 2007-09-24  Eric Blake  <ebb9@byu.net>
101261         Revert fpending breakage from 2007-09-08.
101262         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
101263         __fpending.c.
101265 2007-09-24  Jim Meyering  <jim@meyering.net>
101267         filenamecat.c: Add a test.
101268         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
101269         showing how the function works when DIR is the empty string.
101271 2007-09-21  Simon Josefsson  <simon@josefsson.org>
101273         * tests/test-canonicalize.sh: Turn on executable bit.
101275 2007-09-19  Eric Blake  <ebb9@byu.net>
101277         * README: Update CVS instructions.
101279 2007-09-18  Bruno Haible  <bruno@clisp.org>
101281         * modules/areadlink: New file.
101282         * lib/areadlink.h (areadlink): New declaration.
101283         * lib/areadlink.c: New file, based on lib/xreadlink.c.
101285 2007-09-17  Jim Meyering  <jim@meyering.net>
101287         * lib/savewd.c (ESTALE) [!defined]: Define.
101288         Reported to be required on Interix by Martin Koeppe.
101290 2007-09-17  Bruno Haible  <bruno@clisp.org>
101292         * gnulib-tool (func_version): Use $version.
101294 2007-09-16  Bruno Haible  <bruno@clisp.org>
101296         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
101297         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
101298         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
101299         Reported by Greg Schafer <gschafer@zip.com.au>.
101301 2007-09-15  Bruno Haible  <bruno@clisp.org>
101303         * gnulib-tool (sed): Try a little harder to make bash understand the
101304         alias.
101305         Reported by Bruce Korb <bruce.korb@gmail.com>.
101307 2007-09-13  Eric Blake  <ebb9@byu.net>
101309         * ChangeLog: Remove conflict markers.
101311 2007-09-13  Simon Josefsson  <simon@josefsson.org>
101313         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
101314         Reported by Bruno Haible <bruno@clisp.org>.
101316 2007-09-12  Bruno Haible  <bruno@clisp.org>
101318         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
101319         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
101320         is not defined.
101322 2007-09-12  Eric Blake  <ebb9@byu.net>
101324         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
101325         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
101326         Autoconf definition.
101327         * modules/euidaccess (Depends-on): Add extensions, for
101328         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
101329         * modules/fnmatch (Depends-on): Likewise.
101330         * modules/getaddrinfo (Depends-on): Likewise.
101331         * modules/getdelim (Depends-on): Likewise.
101332         * modules/getline (Depends-on): Likewise.
101333         * modules/getsubopt (Depends-on): Likewise.
101334         * modules/gettext (Depends-on): Likewise.
101335         * modules/group-member (Depends-on): Likewise.
101336         * modules/mbchar (Depends-on): Likewise.
101337         * modules/memmem (Depends-on): Likewise.
101338         * modules/mempcpy (Depends-on): Likewise.
101339         * modules/memrchr (Depends-on): Likewise.
101340         * modules/pagealign_alloc (Depends-on): Likewise.
101341         * modules/readutmp (Depends-on): Likewise.
101342         * modules/stpcpy (Depends-on): Likewise.
101343         * modules/stpncpy (Depends-on): Likewise.
101344         * modules/strchrnul (Depends-on): Likewise.
101345         * modules/strndup (Depends-on): Likewise.
101346         * modules/strsep (Depends-on): Likewise.
101347         * modules/strverscmp (Depends-on): Likewise.
101348         * modules/vasprintf (Depends-on): Likewise.
101349         * modules/wcwidth (Depends-on): Likewise.
101350         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
101351         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
101352         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
101353         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
101354         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
101355         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101356         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
101357         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
101358         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
101359         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
101360         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
101361         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
101362         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
101363         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
101364         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
101365         * m4/readutmp.m4 (gl_READUTMP): Likewise.
101366         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
101367         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
101368         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101369         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
101370         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
101371         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
101372         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
101373         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
101374         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
101375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
101376         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
101377         so that lock.m4 can be used in gettext without extensions module.
101379 2007-09-11  Bruno Haible  <bruno@clisp.org>
101381         * m4/isc-posix.m4: Remove file.
101382         Suggested by Eric Blake.
101384 2007-09-11  Eric Blake  <ebb9@byu.net>
101386         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
101388 2007-09-10  Bruno Haible  <bruno@clisp.org>
101390         * posix-modules: Fix typo in error message.
101391         Reported by Matt <mkraai@beckman.com>.
101393 2007-09-09  Bruno Haible  <bruno@clisp.org>
101395         * doc/functions/getdelim.texi: Update list of platforms lacking the
101396         function.
101397         * doc/functions/getline.texi: Likewise.
101399 2007-09-09  Jim Meyering  <jim@meyering.net>
101401         * lib/hash.c (hash_initialize): Detect calloc failure.
101402         Reported by Bruno Haible.
101404 2007-09-09  Bruno Haible  <bruno@clisp.org>
101406         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
101407         malloc or realloc fails.
101409 2007-09-09  Bruno Haible  <bruno@clisp.org>
101411         * modules/getcwd (Depends-on): Add malloc-posix.
101412         * modules/glob (Depends-on): Likewise.
101413         * modules/putenv (Depends-on): Likewise.
101414         * modules/strdup (Depends-on): Likewise.
101415         * modules/getdelim (Depends-on): Add realloc-posix.
101416         * modules/read-file (Depends-on): Likewise.
101418 2007-09-09  Bruno Haible  <bruno@clisp.org>
101420         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
101421         (gl_FUNC_MALLOC_POSIX): Require it.
101422         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
101423         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
101424         * modules/realloc (Files): Add m4/malloc.m4.
101425         * modules/calloc (Files): Likewise.
101427 2007-09-09  Bruno Haible  <bruno@clisp.org>
101429         * modules/malloc-posix: New file.
101430         * modules/malloc (Depends-on): Add malloc-posix.
101431         * lib/malloc.c: Include errno.h.
101432         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
101433         and a POSIX-compatible malloc into a single function. Set ENOMEM
101434         when returning NULL.
101435         * m4/malloc.m4: New file.
101436         * doc/functions/malloc.texi: Mention the malloc-posix module.
101437         * lib/stdlib_.h (malloc): New declaration.
101438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101439         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
101440         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
101441         and HAVE_MALLOC_POSIX.
101443 2007-09-09  Bruno Haible  <bruno@clisp.org>
101445         * modules/realloc-posix: New file.
101446         * modules/realloc (Depends-on): Add realloc-posix.
101447         * lib/realloc.c: Include errno.h.
101448         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
101449         and a POSIX-compatible realloc into a single function. Set ENOMEM
101450         when returning NULL.
101451         * m4/realloc.m4: New file.
101452         * doc/functions/realloc.texi: Mention the realloc-posix module.
101453         * lib/stdlib_.h (realloc): New declaration.
101454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101455         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
101456         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
101457         and HAVE_REALLOC_POSIX.
101459 2007-09-09  Bruno Haible  <bruno@clisp.org>
101461         * modules/calloc-posix: New file.
101462         * modules/calloc (Depends-on): Add calloc-posix.
101463         * lib/calloc.c: Include errno.h.
101464         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
101465         and a POSIX-compatible calloc into a single function. Set ENOMEM
101466         when returning NULL.
101467         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
101468         * doc/functions/calloc.texi: Mention the calloc-posix module.
101469         * lib/stdlib_.h (calloc): New declaration.
101470         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101471         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
101472         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
101473         and HAVE_CALLOC_POSIX.
101475 2007-09-09  Bruno Haible  <bruno@clisp.org>
101477         Allow for modules to show an arbitrary notice.
101478         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
101479         * gnulib-tool: New option --extract-notice.
101480         (func_usage): Document it.
101481         (sed_extract_prog): Update.
101482         (func_get_notice): New function.
101483         (func_modules_notice): New function.
101484         (func_import, func_create_testdir): Invoke it.
101485         Suggested by Jim Meyering.
101487 2007-09-09  Bruno Haible  <bruno@clisp.org>
101489         * gnulib-tool: New options --verbose, --quiet.
101490         (func_usage): Document them.
101491         (verbose): New variable.
101492         (func_execute_command): New function.
101493         (func_import): Don't show the module list and the file list if
101494         $verbose < 0.
101495         (func_create_testdir): Likewise. Use func_execute_command.
101496         (func_create_megatestdir): Use func_execute_command.
101498 2007-09-08  Bruno Haible  <bruno@clisp.org>
101500         * gnulib-tool (func_import): Prefer rsync over wget when available,
101501         for fetching the PO files.
101503 2007-09-08  Bruno Haible  <bruno@clisp.org>
101505         * posix-modules: New file. Portions copied from gnulib-tool.
101506         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
101508 2007-09-08  Jim Meyering  <jim@meyering.net>
101510         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
101511         * lib/fpending.h: Rename from __fpending.h.
101512         * lib/fpending.c: Rename from __fpending.c.
101513         Include "fpending.h", not "__fpending.h".
101514         * lib/__fpending.h, lib/__fpending.c: Remove files.
101515         * modules/fpending (Files): Reflect new file names.
101516         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
101518 2007-09-08  Bruno Haible  <bruno@clisp.org>
101520         * m4/inttypes-h.m4: Remove stub file.
101522 2007-09-07  Simon Josefsson  <simon@josefsson.org>
101524         * doc/headers/stdint.texi: Discuss #include_next issue.
101526 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101528         * build-aux/bootstrap: Remove obsolete comment about wget --help.
101530 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101532         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
101533         in variable name.
101535 2007-09-03  Jim Meyering  <jim@meyering.net>
101537         New module: git-version-gen.
101538         * modules/git-version-gen: New file.
101540         Import changes from coreutils for bootstrap script.
101542         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
101544         bootstrap: uses rsync to download the .po files
101545         * build-aux/bootstrap (po_download_command_format): New global.
101546         (download_po_files): Use rsync.
101547         (update_po_files): Don't remove .po files after download,
101548         so future rsync runs can take advantage of the copies.
101550         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
101552         Solve the unnecessary-.po-file-regeneration problem once and for all.
101553         * build-aux/bootstrap (download_po_files): New function, renamed from
101554         get_translations.  Now, downloads, but doesn't update LINGUAS.
101555         (update_po_files): New function.
101557         bootstrap: Ignore more.
101558         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
101559         uniwidth to e.g., lib/.gitignore.
101560         (slurp): Handle the sys_stat_.h -> sys mapping, too.
101562         * build-aux/bootstrap: New setting: vc_ignore.
101563         (insert_sorted_if_absent): Create $file if absent.
101564         Adapt to new, possibly empty, list: $vc_ignore.
101566         bootstrap: generate more ignorable names
101567         * build-aux/bootstrap (slurp): When generating ignorable names,
101568         also map .sin to .sed, .gperf to .c, and .y to .c.
101570 2007-09-03  Jim Meyering  <jim@meyering.net>
101572         * build-aux/git-version-gen: New file, from coreutils.  For details, see
101573         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
101575 2007-09-02  Bruno Haible  <bruno@clisp.org>
101577         Fix mis-recognition of 'mcs' on QNX 6.
101578         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
101579         output contains the string "Mono".
101580         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
101581         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
101583 2007-09-01  Bruno Haible  <bruno@clisp.org>
101585         Fix collision between uniwidth/* and linebreak modules.
101586         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
101587         u32_width): Remove declarations.
101588         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
101589         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
101590         streq3, streq2, streq1, streq0): Remove functions.
101591         (STREQ): Remove macro.
101592         (is_cjk_encoding): Remove function.
101593         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
101594         (uc_width, u8_width, u16_width, u32_width): Remove functions.
101595         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
101596         * NEWS: Document the change.
101598 2007-09-01  Bruno Haible  <bruno@clisp.org>
101600         * lib/streq.h: Add double-inclusion guard.
101602 2007-09-01  Karl Berry  <karl@gnu.org>
101604         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
101606 2007-08-28  Jim Meyering  <jim@meyering.net>
101608         Rename mreadlink_with_size to areadlink_with_size.
101609         * NEWS: Document the change.
101610         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
101611         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
101612         * lib/mreadlink.h: Rename this to...
101613         * lib/areadlink.h: ...this.
101614         * modules/mreadlink-with-size: Rename this to...
101615         * modules/areadlink-with-size: ...this.
101616         * lib/canonicalize.c: Reflect the renaming.
101617         * modules/canonicalize: Likewise.
101619 2007-08-26  Bruno Haible  <bruno@clisp.org>
101621         * gnulib-tool (func_import): When deciding which files to remove,
101622         consider also dangling symbolic links.
101623         Reported by Eric Blake.
101625 2007-08-26  Bruno Haible  <bruno@clisp.org>
101627         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
101629 2007-08-23  Simon Josefsson  <simon@josefsson.org>
101631         * lib/readline.c: Don't include getline.h, the prototype is now
101632         found in stdio.h.
101634 2007-08-23  Jim Meyering  <jim@meyering.net>
101636         Getdelim touchup.
101637         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
101638         around the funlockfile call, since funlockfile never sets errno.
101639         Don't set errno upon failed realloc.
101641 2007-08-22  Eric Blake  <ebb9@byu.net>
101643         Getline touchups.
101644         * lib/getdelim.c (getdelim): Revert regression that required *n to
101645         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
101646         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
101647         getdelim, rather than whether implementation is missing.
101648         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
101649         * lib/stdio_.h (getline): Also declare if replacement is
101650         required.
101651         * doc/functions/getdelim.texi: New file.
101652         * doc/functions/getline.texi: Likewise.
101653         * doc/gnulib.texi (Function Substitutes): Add new files.
101654         Reported by Bruno Haible.
101656 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
101658         * users.txt: Add Guile.
101660 2007-08-22  Eric Blake  <ebb9@byu.net>
101662         * tests/test-getdelim.c (main): Use remove, not unlink.
101663         * tests/test-getline.c (main): Likewise.
101665         Move getline and getdelim into stdio.h, per POSIX 200x.
101666         * modules/getline (Files): Remove getline.h.
101667         (Depends-on): Add stdio.
101668         (configure.ac): Add module indicator.
101669         * modules/getdelim (Files): Remove getdelim.h.
101670         (Depends-on): Add stdio.
101671         (configure.ac): Add module indicator.
101672         * modules/stdio (Makefile.am): Work with new indicators.
101673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
101674         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
101675         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101676         * lib/getdelim.h: Delete.
101677         * lib/getline.h: Delete.
101678         * lib/stdio_.h (getdelim, getline): Declare.
101679         * modules/getdelim-tests: New module.
101680         * modules/getline-tests: Likewise.
101681         * tests/test-getdelim.c: New file.
101682         * tests/test-getline.c: Likewise.
101683         * NEWS: Document the change.
101684         * lib/getline.c: Update choice of header.
101685         * lib/csharpcomp.c: Likewise.
101686         * lib/getpass.c: Likewise.
101687         * lib/javacomp.c: Likewise.
101688         * lib/javaversion.c: Likewise.
101689         * lib/yesno.c: Likewise.
101690         * lib/getdelim.c: Likewise.
101691         (getdelim): Set errno on failure, and avoid memory leak.
101693 2007-08-19  Bruno Haible  <bruno@clisp.org>
101695         * modules/closein (Depends-on): Add freadahead.
101696         * lib/closein.c: Include freadahead.h.
101697         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
101698         is zero.
101700 2007-08-19  Bruno Haible  <bruno@clisp.org>
101702         * modules/freadahead-tests: New file.
101703         * tests/test-freadahead.sh: New file.
101704         * tests/test-freadahead.c: New file.
101706         * modules/freadahead: New file.
101707         * lib/freadahead.h: New file.
101708         * lib/freadahead.c: New file.
101709         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
101710         fbufmode, fpurge, freadable, fwritable.
101712 2007-08-19  Eric Blake  <ebb9@byu.net>
101714         Test yesno in combination with closein.
101715         * lib/yesno.c (yesno): Document use of stdin.
101716         * modules/yesno-tests (Files): New module.
101717         * tests/test-yesno.c (main): New file.
101718         * tests/test-yesno.sh: Likewise.
101720 2007-08-19  Bruno Haible  <bruno@clisp.org>
101722         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
101723         * lib/fseeko.c (rpl_fseeko): Likewise.
101724         * lib/fseterr.c (fseterr): Likewise.
101726 2007-08-19  Bruno Haible  <bruno@clisp.org>
101728         * tests/test-lseek.c (main): Disable a test for BeOS.
101729         * doc/functions/lseek.texi: Document the BeOS bug.
101731 2007-08-19  Bruno Haible  <bruno@clisp.org>
101732             Eric Blake  <ebb9@byu.net>
101734         * lib/lseek.c: Include <sys/stat.h>.
101735         (rpl_lseek): Add workaround code also for Unix platforms.
101736         Needed for BeOS.
101737         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
101738         * doc/functions/lseek.texi: Document BeOS definiency.
101740 2007-08-18  Bruno Haible  <bruno@clisp.org>
101742         * modules/fstrcmp-tests: New file.
101743         * tests/test-fstrcmp.c: New file.
101745 2007-08-18  Bruno Haible  <bruno@clisp.org>
101747         * modules/fstrcmp: New file, from GNU gettext with modifications.
101748         * lib/fstrcmp.h: New file, from GNU gettext.
101749         * lib/fstrcmp.c: New file, from GNU gettext.
101750         * MODULES.html.sh (String handling): Add fstrcmp.
101752 2007-08-18  Bruno Haible  <bruno@clisp.org>
101754         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
101755         'bool'.
101756         (diag, compareseq): Remove const from the ctxt argument.
101757         (USE_HEURISTIC): Undefine at the end.
101759 2007-08-18  Jim Meyering  <jim@meyering.net>
101761         New file: lib/idcache.h
101762         * NEWS: Mention the addition.
101763         * modules/idcache (Files): Add lib/idcache.h
101764         * lib/idcache.c: Include "idcache.h".
101765         Don't include <sys/types.h>.
101766         Add a FIXME comment.
101767         Move file-scoped "static" declarations to the top.
101768         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
101770 2007-08-17  Bruno Haible  <bruno@clisp.org>
101771         and Paul Eggert  <eggert@cs.ucla.edu>
101773         * MODULES.html.sh: Add diffseq.
101774         * modules/diffseq: New file.
101775         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
101776         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
101778 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101780         Import changes from coreutils for bootstrap script.
101782         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
101784         * build-aux/bootstrap (slurp): Work even in environments where
101785         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
101786         current code does not slurp files whose names start with ".", and
101787         this looks like it might be a troublesome area.
101789         2007-07-11  Jim Meyering  <jim@meyering.net>
101791         If there's a GPL vN copyright comment, require that N == 3.
101793         2007-07-08  Jim Meyering  <jim@meyering.net>
101795         Run the coreutils-specific code only if tests/Makefile.am.in exists.
101796         * build-aux/bootstrap (mam_template): Move definition out of loop.
101798         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
101800         * build-aux/bootstrap (symlink_to_dir): Rename function from
101801         symlink_to_gnulib.  Add a directory parameter.  Update all
101802         callers.
101803         (cp_mark_as_generated): Also check for -- and link to -- files in
101804         gl/.
101806         2007-07-08  Jim Meyering  <jim@meyering.net>
101808         Adapt to deeper hierarchy in gnulib.
101809         * build-aux/bootstrap (symlink_to_dir): If the destination
101810         directory doesn't exist, create it. This is required at least for
101811         "lib/uniwidth/cjk.h".
101813         2007-05-15  Jim Meyering  <jim@meyering.net>
101815         * build-aux/bootstrap: Now that generated Makefile.am files
101816         are no longer under version control, they must be created at
101817         bootstrap time.
101819 2007-08-14  Ben Pfaff  <blp@gnu.org>
101821         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
101823 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
101825         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
101826         given the changes below.
101827         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
101828         even on hosts that have padding bits beyond the supported 64.
101830 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
101832         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
101833         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
101834         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
101835         depends on it.
101836         (xstrtol_error): Remove.
101837         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
101838         but with a different signature.
101839         (ATTRIBUTE_NORETURN, __attribute__): New macros.
101840         * lib/xstrtol-error.c: Include exitfail.h.
101841         (xstrtol_fatal): New function, with a different signature from the
101842         old xstrtol_error, so that the caller need not worry about passing
101843         in an exit status, or about storage management of the option argument.
101844         (xstrtol_error): Now a static function.  Redo signature to
101845         implement xstrtol_fatal.  Output the correct number of hyphens in
101846         front of the option so that the caller need not worry about
101847         storage management.
101848         (N_): New macro.
101849         (_): Remove; not used now.
101850         * modules/xstrtol: Depend on getopt.
101851         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
101852         of old STRTOL_FATAL_ERROR macro.
101853         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
101854         of test program.
101855         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
101856         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
101858 2007-08-08  Eric Blake  <ebb9@byu.net>
101860         * lib/xstrtol-error.c: Add missing include.
101862         Move xstrtol messages into gnulib domain, when --pobase is used.
101863         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
101864         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
101865         * modules/xstrtol (Files): Distribute new file.
101866         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
101867         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
101868         * tests/test-xstrtol.c: ...into new file.
101869         * tests/test-xstrtoul.c: Also test xstrtoul.
101870         * tests/test-xstrtoimax.c: Also test xstrtoimax.
101871         * tests/test-xstrtoumax.c: Also test xstrtoumax.
101872         * tests/test-xstrtol.sh: Drive the tests.
101873         * tests/test-xstrtoimax.sh: Likewise.
101874         * tests/test-xstrtoumax.sh: Likewise.
101875         * modules/xstrtol-tests: New module.
101876         * modules/xstrtoimax-tests: Likewise.
101877         * modules/xstrtoumax-tests: Likewise.
101879 2007-08-08  Jim Meyering  <jim@meyering.net>
101881         New function: mfile_name_concat.
101882         * lib/filenamecat.c (mfile_name_concat): New function, just like
101883         file_name_concat, but return NULL upon failure rather than exiting
101884         with a diagnostic.
101885         * lib/filenamecat.h: Declare it.
101887 2007-08-07  Bruno Haible  <bruno@clisp.org>
101889         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
101890         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
101891         warning from gcc.
101892         Reported by Eric Blake.
101894 2007-08-07  Simon Josefsson  <simon@josefsson.org>
101896         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
101897         * modules/crypto/arcfour (License): Likewise.
101898         * modules/crypto/des-tests (License): Likewise.
101899         * modules/crypto/gc-arctwo-tests (License): Likewise.
101900         * modules/crypto/gc-des-tests (License): Likewise.
101901         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
101902         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
101903         * modules/crypto/gc-md2-tests (License): Likewise.
101904         * modules/crypto/gc-md4-tests (License): Likewise.
101905         * modules/crypto/gc-md5-tests (License): Likewise.
101906         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
101907         * modules/crypto/gc-rijndael-tests (License): Likewise.
101908         * modules/crypto/gc-sha1-tests (License): Likewise.
101909         * modules/crypto/gc-tests (License): Likewise.
101910         * modules/crypto/hmac-md5 (License): Likewise.
101911         * modules/crypto/hmac-sha1 (License): Likewise.
101912         * modules/crypto/md2-tests (License): Likewise.
101913         * modules/crypto/md4-tests (License): Likewise.
101914         * modules/crypto/md5 (License): Likewise.
101915         * modules/crypto/rijndael (License): Likewise.
101916         * modules/crypto/sha1 (License): Likewise.
101917         * modules/memxor (License): Likewise.
101919 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101920         and Bruno Haible  <bruno@clisp.org>
101922         * NEWS: Describe interface changes to human, xstrtol.
101923         * lib/human.h: Include <xstrtol.h>.
101924         (human_options): Return enum strtol_error, not int.  Remove
101925         bool arg; take int * instead.
101926         * lib/human.c: Don't include "gettext.h".
101927         (_): Remove; no longer used.
101928         Don't include <xstrtol.h>, since human.h does it.
101929         (human_options): Adjust to abovementioned interface changes.
101930         Do not report error to stderr; that's now the caller's
101931         responsibility.
101932         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
101933         interface change.
101934         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
101935         Str, Argument_type_string.  All uses changed.  Put " argument"
101936         in diagnostics to make them clearer.  Change wording of suffix
101937         message for clarity.
101938         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
101939         Argument_type_string.
101940         (STRTOL_FATAL_WARN): Remove; no longer used.
101941         * modules/human (Depends-on): Remove gettext-h.
101943 2007-08-06  Simon Josefsson  <simon@josefsson.org>
101945         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
101947 2007-07-31  Bruno Haible  <bruno@clisp.org>
101949         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
101950         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
101951         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
101953 2007-07-31  Bruno Haible  <bruno@clisp.org>
101955         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
101956         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
101958 2007-07-30  Bruno Haible  <bruno@clisp.org>
101960         * modules/base64 (License): Use the synonymous term "LGPLv2+".
101961         * modules/c-ctype (License): Likewise.
101962         * modules/c-strcase (License): Likewise.
101963         * modules/check-version (License): Likewise.
101964         * modules/iconv (License): Likewise.
101965         * modules/iconv_open (License): Likewise.
101966         * modules/read-file (License): Likewise.
101967         * modules/striconv (License): Likewise.
101968         * modules/strverscmp (License): Likewise.
101969         * modules/vasprintf (License): Likewise.
101970         * modules/crypto/des (License): Likewise.
101971         * modules/crypto/gc (License): Likewise.
101972         * modules/crypto/gc-arcfour (License): Likewise.
101973         * modules/crypto/gc-arctwo (License): Likewise.
101974         * modules/crypto/gc-des (License): Likewise.
101975         * modules/crypto/gc-hmac-md5 (License): Likewise.
101976         * modules/crypto/gc-hmac-sha1 (License): Likewise.
101977         * modules/crypto/gc-md2 (License): Likewise.
101978         * modules/crypto/gc-md4 (License): Likewise.
101979         * modules/crypto/gc-md5 (License): Likewise.
101980         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
101981         * modules/crypto/gc-random (License): Likewise.
101982         * modules/crypto/gc-rijndael (License): Likewise.
101983         * modules/crypto/gc-sha1 (License): Likewise.
101984         * modules/crypto/md2 (License): Likewise.
101985         * modules/crypto/md4 (License): Likewise.
101987 2007-07-30  Jim Meyering  <jim@meyering.net>
101989         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
101990         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
101991         it has valid stat data.  This bug would cause du not to count the
101992         sizes of inaccessible directories.
101993         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
101994         in <http://bugzilla.redhat.com/250077>.
101996 2007-07-25  Peter O'Gorman  <peter@pogma.com>
101997             Bruno Haible  <bruno@clisp.org>
101999         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
102000         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
102001         #include_next, gives a diagnostic about it, but reports no error in
102002         the exit code.
102003         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
102005 2007-07-24  Ben Pfaff  <blp@gnu.org>
102007         Improve name: "count-one-bits" is better than "popcount".
102008         * MODULES.html.sh: Update name.
102009         * lib/popcount.h: Renamed lib/count-one-bits.h.
102010         (popcount): Renamed count_one_bits.
102011         (popcountl): Renamed count_one_bits_l.
102012         (popcountll): Renamed count_one_bits_ll.
102013         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
102014         * modules/popcount: Renamed module/count-one-bits.
102015         * modules/popcount-tests: Renamed module/count-one-bits-tests.
102016         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
102018 2007-07-23  Ben Pfaff  <blp@gnu.org>
102020         * lib/popcount.h (popcount32): Reduce size of constants, to allow
102021         better code generation, and add U to large constants to avoid
102022         warnings, in non-GCC case.
102023         Suggested by Bruno Haible.
102025 2007-07-23  Ben Pfaff  <blp@gnu.org>
102027         * lib/popcount.h: Use verify_true instead of if...abort.
102028         * modules/popcount: Depend on verify module.
102029         Suggested by Jim Meyering.
102031 2007-07-23  Bruno Haible  <bruno@clisp.org>
102033         * gnulib-tool (func_import): Create a .cvsignore file also when the
102034         directory is not yet in CVS but the toplevel directory is. When
102035         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
102036         Reported by Karl Berry.
102038 2007-07-22  Ben Pfaff  <blp@gnu.org>
102040         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
102041         case.
102042         Suggested by Eric Blake.
102044 2007-07-22  Ben Pfaff  <blp@gnu.org>
102046         New module: popcount.
102047         * MODULES.html.sh: Add popcount.
102048         * modules/popcount: New file.
102049         * modules/popcount-tests: New file.
102050         * tests/test-popcount.c: New file.
102051         * lib/popcount.h: New file.
102052         * m4/popcount.m4: New file.
102054 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
102056         * build-aux/announce-gen: Update to GPLv3.
102058         * build-aux/config.guess: Update from config.
102060 2007-07-21  Bruno Haible  <bruno@clisp.org>
102062         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
102063         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
102065 2007-07-20  Jim Meyering  <jim@meyering.net>
102067         * check-module: Diagnose a self-dependency.
102069 2007-07-19  Bruno Haible  <bruno@clisp.org>
102071         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
102072         empty.
102073         Reported by Eric Blake.
102075 2007-07-18  Bruno Haible  <bruno@clisp.org>
102077         * gnulib-tool: New options --po-base, --po-domain.
102078         (func_usage): Document them.
102079         (pobase, po_domain): New variables.
102080         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
102081         DEFAULT_TEXT_DOMAIN.
102082         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
102083         (func_import): Consider pobase and po_domain. Create a po/ directory.
102084         (func_create_testdir): Set pobase and po_domain to empty.
102085         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
102086         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
102088 2007-07-18  Bruno Haible  <bruno@clisp.org>
102090         * gnulib-tool (func_get_automake_snippet): Synthesize also an
102091         EXTRA_DIST augmentation for files in build-aux/.
102093 2007-07-16  Bruno Haible  <bruno@clisp.org>
102095         * modules/lseek (License): Use the synonymous term "LGPLv2+".
102096         * modules/getdelim (License): Likewise.
102098 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102100         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
102101         * modules/d-type (License): Likewise.
102102         * modules/extensions (License): Likewise.
102103         * modules/fnmatch (License): Likewise.
102104         * modules/fseeko (License): Likewise.
102105         * modules/getaddrinfo (License): Likewise.
102106         * modules/getline (License): Likewise.
102107         * modules/getlogin_r (License): Likewise.
102108         * modules/getpass (License): Likewise.
102109         * modules/gettimeofday (License): Likewise.
102110         * modules/glob (License): Likewise.
102111         * modules/inet_ntop (License): Likewise.
102112         * modules/malloc (License): Likewise.
102113         * modules/malloca (License): Likewise.
102114         * modules/memmem (License): Likewise.
102115         * modules/mempcpy (License): Likewise.
102116         * modules/memset (License): Likewise.
102117         * modules/minmax (License): Likewise.
102118         * modules/mktime (License): Likewise.
102119         * modules/netinet_in (License): Likewise.
102120         * modules/pathmax (License): Likewise.
102121         * modules/poll (License): Likewise.
102122         * modules/regex (License): Likewise.
102123         * modules/snprintf (License): Likewise.
102124         * modules/stdbool (License): Likewise.
102125         * modules/stdint (License): Likewise.
102126         * modules/stdio (License): Likewise.
102127         * modules/strcase (License): Likewise.
102128         * modules/strcasestr (License): Likewise.
102129         * modules/strdup (License): Likewise.
102130         * modules/string (License): Likewise.
102131         * modules/strndup (License): Likewise.
102132         * modules/strnlen (License): Likewise.
102133         * modules/strpbrk (License): Likewise.
102134         * modules/strptime (License): Likewise.
102135         * modules/strsep (License): Likewise.
102136         * modules/sys_select (License): Likewise.
102137         * modules/sys_socket (License): Likewise.
102138         * modules/sys_stat (License): Likewise.
102139         * modules/sys_time (License): Likewise.
102140         * modules/time (License): Likewise.
102141         * modules/time_r (License): Likewise.
102142         * modules/timegm (License): Likewise.
102143         * modules/unistd (License): Likewise.
102144         * modules/vsnprintf (License): Likewise.
102145         * modules/wctype (License): Likewise.
102147 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102149         * modules/argz (License): LGPLv2+.
102151 2007-07-15  Karl Berry  <karl@gnu.org>
102153         * doc/gnulib.texi: revise node structure per new fdl.texi.
102155 2007-07-14  Bruno Haible  <bruno@clisp.org>
102157         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
102158         the output file.
102159         * lib/uniname/uninames.h: Regenerated.
102161 2007-07-14  Karl Berry  <karl@gnu.org>
102163         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
102164         omitting sectioning and index commands.
102166 2007-07-13  Bruno Haible  <bruno@clisp.org>
102168         New gnulib-tool option --more-symlinks.
102169         * gnulib-tool (func_usage): Document --more-symlinks.
102170         (do_copyrights): New variable.
102171         Recognize option --more-symlinks.
102172         (func_import): Don't add a copyright notice transform to
102173         sed_transform_lib_file if do_copyrights is empty.
102175 2007-07-13  Bruno Haible  <bruno@clisp.org>
102177         * lib/vasnprintf.c (decimal_point_char): Define also if
102178         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
102179         && !NEED_PRINTF_DIRECTIVE_A.
102180         Reported by Clemens Koller <clemens.koller@anagramm.de> via
102181         Gary V. Vaughan <gary@gnu.org>.
102183 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
102185         * lib/inttypes_.h: Undo previous change, since it was fixed
102186         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
102188 2007-07-13  Bruno Haible  <bruno@clisp.org>
102190         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
102191         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
102193 2007-07-13  Jim Meyering  <jim@meyering.net>
102195         df: Don't fail for Tru64's "file-on-file mount".
102196         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
102197         so we fall through and use statfs instead.  Details here:
102198         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
102199         Reported by Albert Chin.
102201 2007-07-13  Bruno Haible  <bruno@clisp.org>
102203         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
102204         * modules/configmake (License): Likewise.
102205         * modules/gettext (License): Likewise.
102206         * modules/gettext-h (License): Likewise.
102207         * modules/include_next (License): Likewise.
102208         * modules/link-warning (License): Likewise.
102209         * modules/localcharset (License): Likewise.
102210         * modules/localename (License): Likewise.
102211         * modules/lock (License): Likewise.
102212         * modules/relocatable-lib-lgpl (License): Likewise.
102213         * modules/size_max (License): Likewise.
102214         * modules/vasnprintf (License): Likewise.
102215         * modules/wchar (License): Likewise.
102216         * modules/xsize (License): Likewise.
102218 2007-07-13  Bruno Haible  <bruno@clisp.org>
102220         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
102221         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
102223 2007-07-12  Bruno Haible  <bruno@clisp.org>
102225         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
102226         in the modules files.
102228 2007-07-11  Karl Berry  <karl@gnu.org>
102230         * MODULES.html.sh (func_module): use
102231          sed -e '\|^'"${includefile}"'$|d'
102232          instead of /.../d, to avoid errors on $includefile's containing /.
102234 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102236         * gnulib-tool (func_import): Avoid duplication of --avoid
102237         statements
102238         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
102239         names to `_' in variable names.
102241 2007-07-10  Eric Blake  <ebb9@byu.net>
102243         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
102244         * NEWS: Document this change.
102246 2007-07-08  Bruno Haible  <bruno@clisp.org>
102248         Update to Unicode 5.0.
102249         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
102250         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
102251         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
102252         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
102253         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
102254         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
102255         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
102256         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
102257         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
102258         U+10A3F, U+1D242..U+1D244.
102259         (nonspacing_table_ind): Update.
102260         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
102261         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
102263 2007-07-08  Bruno Haible  <bruno@clisp.org>
102265         Update to Unicode 5.0.
102266         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
102267         code transform. Extend the name index field of unicode_name_to_code and
102268         unicode_code_to_name from 16 to 24 bits.
102269         * lib/uniname/uniname.c (unicode_character_name,
102270         unicode_name_character): Add the range 0x12xxx to the code transform.
102271         * lib/uniname/uninames.h: Regenerated.
102272         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
102274 2007-07-07  Bruno Haible  <bruno@clisp.org>
102276         * modules/wcwidth-tests: New file.
102277         * tests/test-wcwidth.c: New file.
102279         Work around MacOS X wcwidth() bug.
102280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
102281         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
102282         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
102283         original wcwidth in non-UTF-8 locales.
102284         * modules/wcwidth (Depends-on): Add localcharset, streq,
102285         uniwidth/width.
102286         * doc/functions/wcwidth.texi: Update.
102288 2007-07-07  Bruno Haible  <bruno@clisp.org>
102290         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
102291         (wcwidth): New declaration.
102292         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
102293         macros.
102294         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
102295         here. Prepare for creating <wchar.h> unconditionally.
102296         * modules/wchar (Depends-on): Add link-warning.
102297         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
102298         REPLACE_WCWIDTH, and GL_LINK_WARNING.
102299         * lib/wcwidth.h: Remove file.
102300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
102301         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
102302         * modules/wcwidth (Files): Remove lib/wcwidth.h.
102303         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
102304         (Include): Replace wcwidth.h with <wchar.h>.
102305         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
102306         * lib/mbchar.h: Don't include wcwidth.h.
102307         * lib/mbswidth.c: Likewise.
102308         * NEWS: Mention the change.
102310 2007-07-07  Bruno Haible  <bruno@clisp.org>
102312         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
102313         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
102314         definition with an external declaration.
102315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
102316         defined as a function. Remove AC_C_INLINE requirement.
102317         * modules/wcwidth (Files): Add lib/wcwidth.c.
102318         (Makefile.am): Remove redundant statement.
102320 2007-07-07  Bruno Haible  <bruno@clisp.org>
102322         * MODULES.html.sh (Unicode string functions): Add the new modules.
102324         * tests/uniwidth/test-u32-strwidth.c: New file.
102325         * modules/uniwidth/u32-strwidth-tests: New file.
102327         * lib/uniwidth/u32-strwidth.c: New file.
102328         * modules/uniwidth/u32-strwidth: New file.
102330         * tests/uniwidth/test-u16-strwidth.c: New file.
102331         * modules/uniwidth/u16-strwidth-tests: New file.
102333         * lib/uniwidth/u16-strwidth.c: New file.
102334         * modules/uniwidth/u16-strwidth: New file.
102336         * tests/uniwidth/test-u8-strwidth.c: New file.
102337         * modules/uniwidth/u8-strwidth-tests: New file.
102339         * lib/uniwidth/u8-strwidth.c: New file.
102340         * modules/uniwidth/u8-strwidth: New file.
102342         * tests/uniwidth/test-u32-width.c: New file.
102343         * modules/uniwidth/u32-width-tests: New file.
102345         * lib/uniwidth/u32-width.c: New file.
102346         * modules/uniwidth/u32-width: New file.
102348         * tests/uniwidth/test-u16-width.c: New file.
102349         * modules/uniwidth/u16-width-tests: New file.
102351         * lib/uniwidth/u16-width.c: New file.
102352         * modules/uniwidth/u16-width: New file.
102354         * tests/uniwidth/test-u8-width.c: New file.
102355         * modules/uniwidth/u8-width-tests: New file.
102357         * lib/uniwidth/u8-width.c: New file.
102358         * modules/uniwidth/u8-width: New file.
102360         * tests/uniwidth/test-uc_width.c: New file.
102361         * modules/uniwidth/width-tests: New file.
102363         * lib/uniwidth/width.c: New file, from GNU libiconv.
102364         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
102365         * modules/uniwidth/width: New file.
102367         * lib/uniwidth.h: New file, from GNU libiconv.
102368         * modules/uniwidth/base: New file.
102370 2007-07-07  Bruno Haible  <bruno@clisp.org>
102372         * lib/uniname.h: New file, from GNU gettext.
102373         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
102374         * lib/uniname/uninames.h: New file, from GNU gettext.
102375         * lib/uniname/uniname.c: New file, from GNU gettext.
102376         * tests/uniname/test-uninames.sh: New file.
102377         * tests/uniname/test-uninames.c: New file, from GNU gettext.
102378         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
102379         * modules/uniname/base: New file.
102380         * modules/uniname/uniname: New file.
102381         * modules/uniname/uniname-tests: New file.
102382         * MODULES.html.sh (Unicode string functions): Add the new modules.
102384 2007-07-06  Bruno Haible  <bruno@clisp.org>
102386         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
102388 2007-07-06  Bruno Haible  <bruno@clisp.org>
102390         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
102391         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
102392         includes <cygwin/sys_time.h> which includes <sys/select.h> which
102393         include <sys/time.h>.
102394         Reported by Eric Blake.
102396 2007-07-06  Eric Blake  <ebb9@byu.net>
102398         Fix testing canonicalize on cygwin.
102399         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102400         Revert patch from 2007-06-19.
102401         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
102402         canonicalize module is also in use.
102403         * tests/test-canonicalize.c: New file.
102404         * tests/test-canonicalize.sh: Likewise.
102405         * modules/canonicalize-tests: Likewise.
102407 2007-07-06  Jim Meyering  <jim@meyering.net>
102409         * lib/getugroups.c (getugroups): Detect getgrent failure.
102410         Adjust comment to reflect reality: this function may return -1.
102412 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
102414         * build-aux/bootstrap (TP_URL,get_translations): Update to use
102415         the new TP address.
102416         (usage): Fix typo
102417         (gnulib_mk): New variable.
102419 2007-07-05  Jim Meyering  <jim@meyering.net>
102421         Don't let endgrent clobber errno, no matter how improbable.
102422         * lib/getugroups.c (getugroups): Save and restore errno around
102423         endgrent call.
102425         Close the group DB even when failing with 2^31 or more members.
102426         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
102428 2007-07-04  Jim Meyering  <jim@meyering.net>
102430         * lib/getugroups.h: New file.
102431         * lib/getugroups.c: Include "getugroups.h".
102432         Remove uses of "register" keyword.
102433         Move local variable, "cp", down into scope where used.
102434         Give "username" parameter the "const" attribute.
102435         * modules/getugroups (Files): Add lib/getugroups.h
102437 2007-07-04  Karl Berry  <karl@gnu.org>
102439         * MODULES.html.sh (func_all_modules): Complete rename of
102440         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
102442 2007-07-02  Bruno Haible  <bruno@clisp.org>
102444         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
102445         mode, when inttypes.h comes from gnulib.
102446         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
102448 2007-07-02  Simon Josefsson  <simon@josefsson.org>
102450         * NEWS: Mention lgpl module name change.
102452         * modules/lgpl-2.1: Renamed from lgpl.
102454         * NEWS: Mention gpl module name change.
102456         * modules/gpl-3.0: New file, based on gpl-2.0.
102458         * modules/gpl-2.0: Renamed from gpl.
102460         * modules/gpl: Fix filename, doc/gpl.texi is now found at
102461         doc/gpl-2.0.texi.
102463 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
102465         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
102466         #define __STDC_LIMIT_MACROS temporarily while including
102467         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
102468         Problem reported by Joel E. Denny in
102469         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
102471 2007-07-01  Bruno Haible  <bruno@clisp.org>
102473         * lib/unistdio.h: New file.
102474         * lib/unistdio/u-asnprintf.h: New file.
102475         * lib/unistdio/u-asprintf.h: New file.
102476         * lib/unistdio/u-printf-args.c: New file.
102477         * lib/unistdio/u-printf-args.h: New file.
102478         * lib/unistdio/u-printf-parse.h: New file.
102479         * lib/unistdio/u-snprintf.h: New file.
102480         * lib/unistdio/u-sprintf.h: New file.
102481         * lib/unistdio/u-vasprintf.h: New file.
102482         * lib/unistdio/u-vsnprintf.h: New file.
102483         * lib/unistdio/u-vsprintf.h: New file.
102484         * lib/unistdio/ulc-asnprintf.c: New file.
102485         * lib/unistdio/ulc-asprintf.c: New file.
102486         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
102487         * lib/unistdio/ulc-printf-parse.c: New file.
102488         * lib/unistdio/ulc-snprintf.c: New file.
102489         * lib/unistdio/ulc-sprintf.c: New file.
102490         * lib/unistdio/ulc-vasnprintf.c: New file.
102491         * lib/unistdio/ulc-vasprintf.c: New file.
102492         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
102493         * lib/unistdio/ulc-vsnprintf.c: New file.
102494         * lib/unistdio/ulc-vsprintf.c: New file.
102495         * lib/unistdio/u8-asnprintf.c: New file.
102496         * lib/unistdio/u8-asprintf.c: New file.
102497         * lib/unistdio/u8-printf-parse.c: New file.
102498         * lib/unistdio/u8-snprintf.c: New file.
102499         * lib/unistdio/u8-sprintf.c: New file.
102500         * lib/unistdio/u8-vasnprintf.c: New file.
102501         * lib/unistdio/u8-vasprintf.c: New file.
102502         * lib/unistdio/u8-vsnprintf.c: New file.
102503         * lib/unistdio/u8-vsprintf.c: New file.
102504         * lib/unistdio/u8-u8-asnprintf.c: New file.
102505         * lib/unistdio/u8-u8-asprintf.c: New file.
102506         * lib/unistdio/u8-u8-snprintf.c: New file.
102507         * lib/unistdio/u8-u8-sprintf.c: New file.
102508         * lib/unistdio/u8-u8-vasnprintf.c: New file.
102509         * lib/unistdio/u8-u8-vasprintf.c: New file.
102510         * lib/unistdio/u8-u8-vsnprintf.c: New file.
102511         * lib/unistdio/u8-u8-vsprintf.c: New file.
102512         * lib/unistdio/u16-asnprintf.c: New file.
102513         * lib/unistdio/u16-asprintf.c: New file.
102514         * lib/unistdio/u16-printf-parse.c: New file.
102515         * lib/unistdio/u16-snprintf.c: New file.
102516         * lib/unistdio/u16-sprintf.c: New file.
102517         * lib/unistdio/u16-vasnprintf.c: New file.
102518         * lib/unistdio/u16-vasprintf.c: New file.
102519         * lib/unistdio/u16-vsnprintf.c: New file.
102520         * lib/unistdio/u16-vsprintf.c: New file.
102521         * lib/unistdio/u16-u16-asnprintf.c: New file.
102522         * lib/unistdio/u16-u16-asprintf.c: New file.
102523         * lib/unistdio/u16-u16-snprintf.c: New file.
102524         * lib/unistdio/u16-u16-sprintf.c: New file.
102525         * lib/unistdio/u16-u16-vasnprintf.c: New file.
102526         * lib/unistdio/u16-u16-vasprintf.c: New file.
102527         * lib/unistdio/u16-u16-vsnprintf.c: New file.
102528         * lib/unistdio/u16-u16-vsprintf.c: New file.
102529         * lib/unistdio/u32-asnprintf.c: New file.
102530         * lib/unistdio/u32-asprintf.c: New file.
102531         * lib/unistdio/u32-printf-parse.c: New file.
102532         * lib/unistdio/u32-snprintf.c: New file.
102533         * lib/unistdio/u32-sprintf.c: New file.
102534         * lib/unistdio/u32-vasnprintf.c: New file.
102535         * lib/unistdio/u32-vasprintf.c: New file.
102536         * lib/unistdio/u32-vsnprintf.c: New file.
102537         * lib/unistdio/u32-vsprintf.c: New file.
102538         * lib/unistdio/u32-u32-asnprintf.c: New file.
102539         * lib/unistdio/u32-u32-asprintf.c: New file.
102540         * lib/unistdio/u32-u32-snprintf.c: New file.
102541         * lib/unistdio/u32-u32-sprintf.c: New file.
102542         * lib/unistdio/u32-u32-vasnprintf.c: New file.
102543         * lib/unistdio/u32-u32-vasprintf.c: New file.
102544         * lib/unistdio/u32-u32-vsnprintf.c: New file.
102545         * lib/unistdio/u32-u32-vsprintf.c: New file.
102546         * tests/unistdio/test-ulc-asnprintf1.c: New file.
102547         * tests/unistdio/test-ulc-asnprintf1.h: New file.
102548         * tests/unistdio/test-ulc-printf1.h: New file.
102549         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
102550         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
102551         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
102552         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
102553         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
102554         * tests/unistdio/test-ulc-vasprintf1.c: New file.
102555         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
102556         * tests/unistdio/test-ulc-vsprintf1.c: New file.
102557         * tests/unistdio/test-u8-asnprintf1.c: New file.
102558         * tests/unistdio/test-u8-asnprintf1.h: New file.
102559         * tests/unistdio/test-u8-printf1.h: New file.
102560         * tests/unistdio/test-u8-vasnprintf1.c: New file.
102561         * tests/unistdio/test-u8-vasnprintf2.c: New file.
102562         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
102563         * tests/unistdio/test-u8-vasnprintf3.c: New file.
102564         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
102565         * tests/unistdio/test-u8-vasprintf1.c: New file.
102566         * tests/unistdio/test-u8-vsnprintf1.c: New file.
102567         * tests/unistdio/test-u8-vsprintf1.c: New file.
102568         * tests/unistdio/test-u16-asnprintf1.c: New file.
102569         * tests/unistdio/test-u16-asnprintf1.h: New file.
102570         * tests/unistdio/test-u16-printf1.h: New file.
102571         * tests/unistdio/test-u16-vasnprintf1.c: New file.
102572         * tests/unistdio/test-u16-vasnprintf2.c: New file.
102573         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
102574         * tests/unistdio/test-u16-vasnprintf3.c: New file.
102575         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
102576         * tests/unistdio/test-u16-vasprintf1.c: New file.
102577         * tests/unistdio/test-u16-vsnprintf1.c: New file.
102578         * tests/unistdio/test-u16-vsprintf1.c: New file.
102579         * tests/unistdio/test-u32-asnprintf1.c: New file.
102580         * tests/unistdio/test-u32-asnprintf1.h: New file.
102581         * tests/unistdio/test-u32-printf1.h: New file.
102582         * tests/unistdio/test-u32-vasnprintf1.c: New file.
102583         * tests/unistdio/test-u32-vasnprintf2.c: New file.
102584         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
102585         * tests/unistdio/test-u32-vasnprintf3.c: New file.
102586         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
102587         * tests/unistdio/test-u32-vasprintf1.c: New file.
102588         * tests/unistdio/test-u32-vsnprintf1.c: New file.
102589         * tests/unistdio/test-u32-vsprintf1.c: New file.
102590         * modules/unistdio/base: New file.
102591         * modules/unistdio/u-printf-args: New file.
102592         * modules/unistdio/ulc-asnprintf: New file.
102593         * modules/unistdio/ulc-asprintf: New file.
102594         * modules/unistdio/ulc-fprintf: New file.
102595         * modules/unistdio/ulc-printf-parse: New file.
102596         * modules/unistdio/ulc-snprintf: New file.
102597         * modules/unistdio/ulc-sprintf: New file.
102598         * modules/unistdio/ulc-vasnprintf: New file.
102599         * modules/unistdio/ulc-vasprintf: New file.
102600         * modules/unistdio/ulc-vfprintf: New file.
102601         * modules/unistdio/ulc-vsnprintf: New file.
102602         * modules/unistdio/ulc-vsprintf: New file.
102603         * modules/unistdio/u8-asnprintf: New file.
102604         * modules/unistdio/u8-asprintf: New file.
102605         * modules/unistdio/u8-printf-parse: New file.
102606         * modules/unistdio/u8-snprintf: New file.
102607         * modules/unistdio/u8-sprintf: New file.
102608         * modules/unistdio/u8-vasnprintf: New file.
102609         * modules/unistdio/u8-vasprintf: New file.
102610         * modules/unistdio/u8-vsnprintf: New file.
102611         * modules/unistdio/u8-vsprintf: New file.
102612         * modules/unistdio/u8-u8-asnprintf: New file.
102613         * modules/unistdio/u8-u8-asprintf: New file.
102614         * modules/unistdio/u8-u8-snprintf: New file.
102615         * modules/unistdio/u8-u8-sprintf: New file.
102616         * modules/unistdio/u8-u8-vasnprintf: New file.
102617         * modules/unistdio/u8-u8-vasprintf: New file.
102618         * modules/unistdio/u8-u8-vsnprintf: New file.
102619         * modules/unistdio/u8-u8-vsprintf: New file.
102620         * modules/unistdio/u16-asnprintf: New file.
102621         * modules/unistdio/u16-asprintf: New file.
102622         * modules/unistdio/u16-printf-parse: New file.
102623         * modules/unistdio/u16-snprintf: New file.
102624         * modules/unistdio/u16-sprintf: New file.
102625         * modules/unistdio/u16-vasnprintf: New file.
102626         * modules/unistdio/u16-vasprintf: New file.
102627         * modules/unistdio/u16-vsnprintf: New file.
102628         * modules/unistdio/u16-vsprintf: New file.
102629         * modules/unistdio/u16-u16-asnprintf: New file.
102630         * modules/unistdio/u16-u16-asprintf: New file.
102631         * modules/unistdio/u16-u16-snprintf: New file.
102632         * modules/unistdio/u16-u16-sprintf: New file.
102633         * modules/unistdio/u16-u16-vasnprintf: New file.
102634         * modules/unistdio/u16-u16-vasprintf: New file.
102635         * modules/unistdio/u16-u16-vsnprintf: New file.
102636         * modules/unistdio/u16-u16-vsprintf: New file.
102637         * modules/unistdio/u32-asnprintf: New file.
102638         * modules/unistdio/u32-asprintf: New file.
102639         * modules/unistdio/u32-printf-parse: New file.
102640         * modules/unistdio/u32-snprintf: New file.
102641         * modules/unistdio/u32-sprintf: New file.
102642         * modules/unistdio/u32-vasnprintf: New file.
102643         * modules/unistdio/u32-vasprintf: New file.
102644         * modules/unistdio/u32-vsnprintf: New file.
102645         * modules/unistdio/u32-vsprintf: New file.
102646         * modules/unistdio/u32-u32-asnprintf: New file.
102647         * modules/unistdio/u32-u32-asprintf: New file.
102648         * modules/unistdio/u32-u32-snprintf: New file.
102649         * modules/unistdio/u32-u32-sprintf: New file.
102650         * modules/unistdio/u32-u32-vasnprintf: New file.
102651         * modules/unistdio/u32-u32-vasprintf: New file.
102652         * modules/unistdio/u32-u32-vsnprintf: New file.
102653         * modules/unistdio/u32-u32-vsprintf: New file.
102654         * modules/unistdio/ulc-asnprintf-tests: New file.
102655         * modules/unistdio/ulc-vasnprintf-tests: New file.
102656         * modules/unistdio/ulc-vasprintf-tests: New file.
102657         * modules/unistdio/ulc-vsnprintf-tests: New file.
102658         * modules/unistdio/ulc-vsprintf-tests: New file.
102659         * modules/unistdio/u8-asnprintf-tests: New file.
102660         * modules/unistdio/u8-vasnprintf-tests: New file.
102661         * modules/unistdio/u8-vasprintf-tests: New file.
102662         * modules/unistdio/u8-vsnprintf-tests: New file.
102663         * modules/unistdio/u8-vsprintf-tests: New file.
102664         * modules/unistdio/u16-asnprintf-tests: New file.
102665         * modules/unistdio/u16-vasnprintf-tests: New file.
102666         * modules/unistdio/u16-vasprintf-tests: New file.
102667         * modules/unistdio/u16-vsnprintf-tests: New file.
102668         * modules/unistdio/u16-vsprintf-tests: New file.
102669         * modules/unistdio/u32-asnprintf-tests: New file.
102670         * modules/unistdio/u32-vasnprintf-tests: New file.
102671         * modules/unistdio/u32-vasprintf-tests: New file.
102672         * modules/unistdio/u32-vsnprintf-tests: New file.
102673         * modules/unistdio/u32-vsprintf-tests: New file.
102674         * MODULES.html.sh (Unicode string functions): Add the new modules.
102676 2007-07-01  Bruno Haible  <bruno@clisp.org>
102678         * lib/sprintf.c (sprintf): Limit the available length estimation,
102679         to avoid address wraparound.
102680         * lib/vsprintf.c (vsprintf): Likewise.
102681         * modules/sprintf-posix (Dependencies): Add stdint.
102682         * modules/vsprintf-posix (Dependencies): Likewise.
102684 2007-07-01  Bruno Haible  <bruno@clisp.org>
102686         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
102687         Windows PATH as well. Conservative double-quoting. Comments.
102689 2007-07-01  Bruno Haible  <bruno@clisp.org>
102690             Eric Blake  <ebb9@byu.net>
102691             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102693         * gnulib-tool (self_abspathname): Fix algorithm to cope with
102694         empty components in $PATH, denoting '.'.
102696 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102698         * gnulib-tool: Fix indentation.
102699         (func_create_megatestdir): Likewise.
102700         Report by Bruno Haible.
102702 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102704         Sync from Automake.
102705         * build-aux/gnupload: Fix shell portability issues with for loops.
102706         Report by Karl Berry.
102708 2007-06-29  Simon Josefsson  <simon@josefsson.org>
102710         * build-aux/maint.mk (POURL): Use translationproject.org.
102712 2007-06-27  Simon Josefsson  <simon@josefsson.org>
102713             Bruno Haible  <bruno@clisp.org>
102715         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
102716         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
102717         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
102718         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
102719         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
102721 2007-06-27  Bruno Haible  <bruno@clisp.org>
102723         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
102724         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
102726 2007-06-26  Karl Berry  <karl@gnu.org>
102728         * MODULES.html.sh: remove xreadlink-with-size.
102730 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102732         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
102733         method that I hope also handles the double-include problem noted
102734         by Bruno Haible in
102735         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
102737 2007-06-23  Bruno Haible  <bruno@clisp.org>
102739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102740         Don't let the 'mostlyclean' target fail if the last subdirectory could
102741         not be removed.
102742         Reported by Karl Berry.
102744 2007-06-23  Bruno Haible  <bruno@clisp.org>
102746         * gnulib-tool (echo): Add a speedier workaround for ksh.
102747         * tests/test-echo.sh: Likewise.
102749 2007-06-23  Bruno Haible  <bruno@clisp.org>
102751         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
102752         * tests/test-echo.sh: Likewise.
102754 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102756         * gnulib-tool (IFS): Initialize early, so we don't set it to
102757         empty later.
102758         (self_abspathname): Rewrite algorithm to set it, reindent.
102759         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
102760         (func_create_megatestdir): Merge some sed scripts.
102762 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102764         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
102765         exposed by Sun Studio 11 cc on Solaris 8.
102767 2007-06-22  Bruno Haible  <bruno@clisp.org>
102769         * gnulib-tool (echo): Ensure the echo primitive does not interpret
102770         backslashes.
102771         * tests/test-echo.sh: New file.
102773 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102775         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
102776         simplify `sed_replace_build_aux' scripts, they are portable but
102777         echoing them with `echo' is not.
102778         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
102780 2007-06-21  Karl Berry  <karl@gnu.org>
102782         * config/srclist.txt: guess we can't handle the licenses via
102783         srclist at the moment.
102785 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
102787         * MODULES.html.sh: Add include_next.
102788         * modules/include_next: New file.
102790 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
102792         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
102793         INCLUDE_NEXT.
102794         (gl_CHECK_NEXT_HEADERS): New macro.
102795         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
102796         the obsolescent gl_ABSOLUTE_HEADER.
102797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
102798         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
102799         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
102800         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
102801         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
102802         * m4/math_h.m4 (gl_MATH_H): Likewise.
102803         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
102804         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
102805         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
102806         * m4/stdint.m4 (gl_STDINT_H): Likewise.
102807         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
102808         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
102809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
102810         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
102811         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
102812         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
102813         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
102814         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
102815         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
102816         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
102817         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
102818         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
102819         * m4/inttypes.m4 (gl_INTTYPES_H): Define
102820         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
102821         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
102822         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
102823         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
102824         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
102825         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
102826         * lib/float_.h: Likewise.
102827         * lib/inttypes_.h: Likewise.
102828         * lib/math_.h: Likewise.
102829         * lib/search_.h: Likewise.
102830         * lib/signal_.h: Likewise.
102831         * lib/stdint_.h: Likewise.
102832         * lib/stdio_.h: Likewise.
102833         * lib/stdlib_.h: Likewise.
102834         * lib/string_.h: Likewise.
102835         * lib/sys_stat_.h: Likewise.
102836         * lib/sys_time_.h: Likewise.
102837         * lib/time_.h: Likewise.
102838         * lib/unistd_.h: Likewise.
102839         * lib/wchar_.h: Likewise.
102840         * lib/wctype_.h: Likewise.
102841         * lib/dirent_.h: Likewise.
102842         * lib/iconv_.h: Likewise.
102843         * lib/locale_.h: Likewise.
102844         * lib/netinet_in_.h: Likewise.
102845         * lib/sys_select_.h: Likewise.
102846         * lib/sys_socket_.h: Likewise.
102847         * lib/sysexits_.h: Likewise.
102848         * modules/fcntl (Depends-on): Depend on include_next, not
102849         absolute_header.
102850         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
102851         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
102852         * modules/fchdir: Likewise.
102853         * modules/float: Likewise.
102854         * modules/iconv_open: Likewise.
102855         * modules/inttypes: Likewise.
102856         * modules/locale: Likewise.
102857         * modules/math: Likewise.
102858         * modules/netinet_in: Likewise.
102859         * modules/search: Likewise.
102860         * modules/signal: Likewise.
102861         * modules/stdint: Likewise.
102862         * modules/stdio: Likewise.
102863         * modules/stdlib: Likewise.
102864         * modules/string: Likewise.
102865         * modules/sys_select: Likewise.
102866         * modules/sys_socket: Likewise.
102867         * modules/sys_stat: Likewise.
102868         * modules/sys_time: Likewise.
102869         * modules/sysexits: Likewise.
102870         * modules/time: Likewise.
102871         * modules/unistd: Likewise.
102872         * modules/wchar: Likewise.
102873         * modules/wctype: Likewise.
102874         * modules/sys_stat: Change maintainer to "all".
102875         * modules/unistd: Likewise.
102877 2007-06-20  Karl Berry  <karl@gnu.org>
102879         * config/srclist.txt: track www changes in license files.
102881 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
102883         * build-aux/bootstrap: Remove stray dot.
102884         Make sure build_aux settings are honored when linking
102885         gnulib_extra_files.
102887 2007-06-19  Eric Blake  <ebb9@byu.net>
102889         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102890         Allow compilation on cygwin.
102892 2007-06-19  Jim Meyering  <jim@meyering.net>
102894         xreadlink-with-size: Remove module.  No longer used.
102895         Ex-callers now use xreadlink or mreadlink-with-size.
102896         * modules/xreadlink-with-size: Remove module.
102897         * lib/xreadlink-with-size.c: Remove file.
102898         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
102899         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
102900         just before the function definition *is* accurate.
102902         Eliminate one way canonicalize_filename_mode could exit.
102903         * lib/canonicalize.c (canonicalize_filename_mode):
102904         Use mreadlink_with_size, not xreadlink_with_size.
102906 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
102908         Detect porting problems to FreeBSD/arm, which has time_t wider than
102909         long int.  Original problem reported for GNU diff by Xin Li in
102910         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
102911         * modules/getdate (Depends-on): Add intprops, verify.
102912         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
102913         is an integer type no wider than long int.
102915 2007-06-18  Jim Meyering  <jim@meyering.net>
102917         New module: mreadlink-with-size.
102918         * MODULES.html.sh: Add mreadlink-with-size.
102919         * modules/mreadlink-with-size: New module
102920         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
102921         not xreadlink-with-size.
102922         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
102924 2007-06-16  Bruno Haible  <bruno@clisp.org>
102926         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
102927         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
102928         Reported by Gary V. Vaughan <gary@gnu.org>.
102930 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
102932         Revamp lchown so that it lives in unistd.h where it belongs.
102933         * lib/lchown.h: Remove.
102934         * lib/dirchownmod.c: Don't include lib/lchown.h.
102935         * lib/fchownat.c: Likewise.
102936         * lib/openat.c: Likewise.
102937         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
102938         does not follow symlinks.
102939         (EOPNOTSUPP): Define if not defined.
102940         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
102941         is defined to 0.
102942         (lchown): New decl.
102943         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
102944         Do not check for lchown decl.
102945         Set REPLACE_LCHOWN.
102946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
102947         REPLACE_LCHOWN.
102948         * modules/chown: Make it clear it follows symlinks.
102949         * modules/lchown: Make it clear it doesn't follow symlinks.
102950         (Files): Remove lib/lchown.h
102951         (Depends-on): Add unistd.
102952         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
102953         (Include): Include <unistd.h>, not "lchown.h".
102954         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
102955         REPLACE_LCHOWN.
102957 2007-06-15  Jim Meyering  <jim@meyering.net>
102959         Change license (GPL to LGPL) of fsusage and dependents.
102960         * modules/fsusage (License): Change to LGPL.
102961         * modules/full-read (License): Likewise.
102962         * modules/full-write (License): Likewise.
102963         * modules/safe-read (License): Likewise.
102964         * modules/safe-write (License): Likewise.
102966 2007-06-14  Ben Pfaff  <blp@gnu.org>
102968         Missing part of allocsa -> malloca transition.
102969         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
102970         gl_MALLOCA.
102972 2007-06-12  Bruno Haible  <bruno@clisp.org>
102974         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
102975         to ia64, x86_64, i386.
102976         Reported by Eric Blake.
102978 2007-06-12  Bruno Haible  <bruno@clisp.org>
102980         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
102981         cross-compiling to x86_64.
102983 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
102985         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
102986         glitch reported by Ralf Wildenhues in
102987         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
102989         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
102990         Vin Shelton.
102992 2007-06-11  Bruno Haible  <bruno@clisp.org>
102994         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
102995         replacement string.
102996         Reported by Eric Blake.
102998 2007-06-10  Bruno Haible  <bruno@clisp.org>
103000         Prepare vasnprintf code for use with Unicode strings.
103001         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
103002         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
103003         TYPE_U32_STRING.
103004         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
103005         a_u32_string variants.
103006         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103007         * lib/printf-args.c: Don't include config.h and the specification
103008         header if PRINTF_FETCHARGS is already defined.
103009         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103010         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
103011         TYPE_U16_STRING, TYPE_U32_STRING.
103012         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
103013         u16_directive, u16_directives, u32_directive, u32_directives): New
103014         types.
103015         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
103016         New declarations.
103017         * lib/printf-parse.c: Don't include config.h and the specification
103018         header if PRINTF_PARSE is already defined. Eliminate the set of
103019         parameters for WIDE_CHAR_VERSION; the user of this file must provide
103020         them now. Include c-ctype.h.
103021         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
103022         directive and CHAR_T_ONLY_ASCII.
103023         * lib/vasnprintf.c: Don't include config.h and the specification header
103024         if VASNPRINTF is already defined.
103025         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
103026         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
103027         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
103028         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
103029         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
103030         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
103031         code accordingly.
103032         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
103033         pad_ourselves also in this case, with the 'c' and 's' directives, and
103034         with a different notion of "width".
103035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
103037 2007-06-10  Bruno Haible  <bruno@clisp.org>
103039         * modules/unistr/u32-mbsnlen: New file.
103040         * lib/unistr/u32-mbsnlen.c: New file.
103042         * modules/unistr/u16-mbsnlen: New file.
103043         * lib/unistr/u16-mbsnlen.c: New file.
103045         * modules/unistr/u8-mbsnlen: New file.
103046         * lib/unistr/u8-mbsnlen.c: New file.
103048         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
103049         declarations.
103051 2007-06-10  Bruno Haible  <bruno@clisp.org>
103053         * lib/string_.h (mbsnlen): New declaration.
103054         * lib/mbsnlen.c: New file.
103055         * m4/mbsnlen.m4: New file.
103056         * modules/mbsnlen: New file.
103057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
103058         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
103059         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
103061 2007-06-10  Bruno Haible  <bruno@clisp.org>
103063         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
103065 2007-06-10  Bruno Haible  <bruno@clisp.org>
103067         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
103068         * lib/mbuiter.h: Likewise.
103070 2007-06-10  Bruno Haible  <bruno@clisp.org>
103072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
103073         declaration.
103075 2007-06-10  Karl Berry  <karl@gnu.org>
103077         * config/srclist.txt: remove gettext entries, Bruno prefers
103078         to update individually.
103080 2007-06-10  Bruno Haible  <bruno@clisp.org>
103082         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
103083         'maxlen'. Ensure only length + width bytes are allocated, not
103084         length + 1 + width.
103086 2007-06-09  Bruno Haible  <bruno@clisp.org>
103088         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
103089         (CHAR_T): Remove macro.
103090         (VASNPRINTF): Update.
103092 2007-06-09  Bruno Haible  <bruno@clisp.org>
103094         * MODULES.html.sh (Unicode string functions): Add the new modules.
103096         * modules/uniconv/u32-conv-to-enc: New file.
103097         * lib/uniconv/u32-conv-to-enc.c: New file.
103098         * modules/uniconv/u32-conv-to-enc-tests: New file.
103099         * tests/uniconv/test-u32-conv-to-enc.c: New file.
103101         * modules/uniconv/u16-conv-to-enc: New file.
103102         * lib/uniconv/u16-conv-to-enc.c: New file.
103103         * lib/uniconv/u-conv-to-enc.h: New file.
103104         * modules/uniconv/u16-conv-to-enc-tests: New file.
103105         * tests/uniconv/test-u16-conv-to-enc.c: New file.
103107         * modules/uniconv/u8-conv-to-enc: New file.
103108         * lib/uniconv/u8-conv-to-enc.c: New file.
103109         * modules/uniconv/u8-conv-to-enc-tests: New file.
103110         * tests/uniconv/test-u8-conv-to-enc.c: New file.
103112         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
103113         u32_conv_to_encoding): New declarations.
103115 2007-06-09  Bruno Haible  <bruno@clisp.org>
103117         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
103119 2007-06-09  Bruno Haible  <bruno@clisp.org>
103121         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
103122         * modules/malloca: Renamed from modules/allocsa, updated.
103123         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
103124         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
103125         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
103126         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
103127         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
103128         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
103129         * modules/xmalloca: Renamed from modules/xallocsa, updated.
103130         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
103131         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
103132         * modules/c-strcasestr (Depends-on): Update.
103133         * lib/c-strcasestr.c: Update.
103134         * modules/c-strstr (Depends-on): Update.
103135         * lib/c-strstr.c: Update.
103136         * modules/canonicalize-lgpl (Depends-on): Update.
103137         * lib/canonicalize-lgpl.c: Update.
103138         * modules/clean-temp (Depends-on): Update.
103139         * lib/clean-temp.c: Update.
103140         * modules/csharpcomp (Depends-on): Update.
103141         * lib/csharpcomp.c: Update.
103142         * modules/csharpexec (Depends-on): Update.
103143         * lib/csharpexec.c: Update.
103144         * modules/javacomp (Depends-on): Update.
103145         * lib/javacomp.c: Update.
103146         * modules/javaexec (Depends-on): Update.
103147         * lib/javaexec.c: Update.
103148         * modules/mbscasestr (Depends-on): Update.
103149         * lib/mbscasestr.c: Update.
103150         * modules/mbsstr (Depends-on): Update.
103151         * lib/mbsstr.c: Update.
103152         * modules/setenv (Depends-on): Update.
103153         * lib/setenv.c: Update.
103154         * modules/strcasestr (Depends-on): Update.
103155         * lib/strcasestr.c: Update.
103156         * modules/striconveha (Depends-on): Update.
103157         * lib/striconveha.c: Update.
103158         * modules/relocatable-prog-wrapper (Files): Update.
103159         * lib/relocwrapper.c: Update.
103160         * build-aux/install-reloc: Update.
103161         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
103163 2007-06-08  Bruno Haible  <bruno@clisp.org>
103165         Port to uClibc.
103166         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
103167         * lib/fpurge.c (fpurge): Likewise.
103168         * lib/freading.c (freading): Likewise.
103169         * lib/fseeko.c (rpl_fseeko): Likewise.
103170         * lib/fseterr.c (fseterr): Likewise.
103171         * lib/fwriting.c (fwriting): Likewise.
103172         * tests/test-fflush.c (main): Avoid a failure on uClibc.
103174 2007-06-08  Bruno Haible  <bruno@clisp.org>
103176         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
103177         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
103178         * modules/gettext (Files): Add m4/intlmacosx.m4.
103180 2007-06-07  Bruno Haible  <bruno@clisp.org>
103182         * modules/localename-tests: New file.
103183         * tests/test-localename.c: New file.
103185         New module 'localename'.
103186         * lib/localename.h: New file.
103187         * lib/localename.c: New file, from GNU gettext.
103188         * m4/localename.m4: New file.
103189         * modules/localename: New file.
103191 2007-06-07  Bruno Haible  <bruno@clisp.org>
103193         Work around the lack of <wchar.h> on some builds of uClibc.
103194         * doc/headers/wchar.texi: Update.
103195         * lib/wchar_.h: Include <wchar.h> only if it exists.
103196         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
103197         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
103198         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
103199         doesn't exist.
103200         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
103201         * modules/mbfile (Depends-on): Add wchar.
103202         * modules/mbiter (Depends-on): Likewise.
103203         * modules/mbuiter (Depends-on): Likewise.
103204         Reported by Simon Josefsson.
103206 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103208         Work around problem reported by Steven M. Schweda in
103209         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
103210         Tru64 5.1B with the Compaq compiler environment installed declares
103211         an 'isblank' function but does not define it in the C library.
103212         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
103213         * lib/regex_internal.h (isblank): Likewise.
103214         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
103215         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
103217 2007-06-05  Bruno Haible  <bruno@clisp.org>
103219         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
103220         ia64.
103221         * modules/printf-safe: New file.
103222         * modules/fprintf-posix (Depends-on): Add printf-safe.
103223         * modules/printf-posix (Depends-on): Likewise.
103224         * modules/snprintf-posix (Depends-on): Likewise.
103225         * modules/sprintf-posix (Depends-on): Likewise.
103226         * modules/vasnprintf-posix (Depends-on): Likewise.
103227         * modules/vasprintf-posix (Depends-on): Likewise.
103228         * modules/vfprintf-posix (Depends-on): Likewise.
103229         * modules/vprintf-posix (Depends-on): Likewise.
103230         * modules/vsnprintf-posix (Depends-on): Likewise.
103231         * modules/vsprintf-posix (Depends-on): Likewise.
103232         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
103233         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
103234         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
103235         "no" on i386, x86_64, ia64.
103236         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
103237         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103238         on i386, x86_64, ia64.
103239         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
103240         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103241         on i386, x86_64, ia64.
103242         * tests/test-vasnprintf-posix.c: Include float.h.
103243         (LDBL80_WORDS): New macro.
103244         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103245         on i386, x86_64, ia64.
103246         * tests/test-vasprintf-posix.c: Include float.h.
103247         (LDBL80_WORDS): New macro.
103248         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103249         on i386, x86_64, ia64.
103250         * tests/test-snprintf-posix.c: Include float.h.
103251         * tests/test-sprintf-posix.c: Likewise.
103252         * tests/test-vsnprintf-posix.c: Likewise.
103253         * tests/test-vsprintf-posix.c: Likewise.
103255 2007-06-05  Bruno Haible  <bruno@clisp.org>
103257         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
103258         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
103259         non-IEEE numbers on i386, x86_64, ia64.
103260         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
103261         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
103262         * tests/test-isnanl.h: Include float.h.
103263         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
103265 2007-06-05  Bruno Haible  <bruno@clisp.org>
103267         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
103268         also the %a / %A. Handle the %a / %A code before this extra handling.
103270 2007-06-05  Bruno Haible  <bruno@clisp.org>
103272         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
103273         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
103275 2007-06-05  Bruno Haible  <bruno@clisp.org>
103277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
103278         typo in variable name.
103280 2007-06-05  Eric Blake  <ebb9@byu.net>
103282         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
103283         Reported by Simon Josefsson.
103285 2007-06-04  Bruno Haible  <bruno@clisp.org>
103287         Avoid test failures on some PowerPC platforms.
103288         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
103289         Define differently for PowerPC.
103290         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
103291         Reported by Gary V. Vaughan <gary@gnu.org>.
103293 2007-06-02  Bruno Haible  <bruno@clisp.org>
103295         Fix test-stdint failure on FreeBSD/ia64.
103296         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
103297         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
103298         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
103299         * doc/headers/stdint.texi: Update.
103301 2007-06-01  Bruno Haible  <bruno@clisp.org>
103303         * tests/test-binary-io.c (main): Pass a third argument to open().
103304         Reported by Gary V. Vaughan <gary@gnu.org>.
103306 2007-06-01  Bruno Haible  <bruno@clisp.org>
103308         * doc/functions/frexpl.texi: Update for mingw.
103310 2007-06-01  Bruno Haible  <bruno@clisp.org>
103312         * tests/test-lseek.c (main): Disable test of errno for invalid third
103313         argument.
103314         * doc/functions/lseek.texi: Update.
103315         Reported by Gary V. Vaughan <gary@gnu.org>.
103317 2007-05-28  Bruno Haible  <bruno@clisp.org>
103319         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
103321 2007-05-31  Eric Blake  <ebb9@byu.net>
103323         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
103324         cross compiling.
103326 2007-05-30  Eric Blake  <ebb9@byu.net>
103327         and Bruno Haible  <bruno@clisp.org>
103329         Work around mingw test failures exposed by m4-1.4.9b.
103330         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
103331         * tests/test-unistd.c: Disable uid_t and git_t tests for the
103332         moment.
103334 2007-05-30  Bruno Haible  <bruno@clisp.org>
103336         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
103337         assuming that they are closed. Needed on HP-UX 11.
103339 2007-05-29  Bruno Haible  <bruno@clisp.org>
103341         Fix a problem with #include_next.
103342         * lib/dirent_.h: Split the double-inclusion guard.
103343         * lib/fcntl_.h: Likewise.
103344         * lib/float_.h: Likewise.
103345         * lib/iconv_.h: Likewise.
103346         * lib/inttypes_.h: Likewise.
103347         * lib/locale_.h: Likewise.
103348         * lib/math_.h: Likewise.
103349         * lib/netinet_in_.h: Likewise.
103350         * lib/search_.h: Likewise.
103351         * lib/signal_.h: Likewise.
103352         * lib/stdint_.h: Likewise.
103353         * lib/stdio_.h: Likewise.
103354         * lib/stdlib_.h: Likewise.
103355         * lib/string_.h: Likewise.
103356         * lib/sys_select_.h: Likewise.
103357         * lib/sys_socket_.h: Likewise.
103358         * lib/sys_stat_.h: Likewise.
103359         * lib/sys_time_.h: Likewise.
103360         * lib/sysexits_.h: Likewise.
103361         * lib/time_.h: Likewise.
103362         * lib/unistd_.h: Likewise.
103363         * lib/wchar_.h: Likewise.
103364         * lib/wctype_.h: Likewise.
103366 2007-05-29  Bruno Haible  <bruno@clisp.org>
103368         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
103369         for the moment.
103371 2007-05-29  Bruno Haible  <bruno@clisp.org>
103373         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
103374         invocation.
103375         Reported by Eric Blake.
103377 2007-05-29  Bruno Haible  <bruno@clisp.org>
103379         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
103380         compiling case.
103382 2007-05-29  Eric Blake  <ebb9@byu.net>
103383             Bruno Haible  <bruno@clisp.org>
103385         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
103386         cross compiles.
103388 2007-05-28  Eric Blake  <ebb9@byu.net>
103390         * modules/closein-tests (test_closein_LDADD): Support test on
103391         cygwin with libtool.
103393 2007-05-28  Bruno Haible  <bruno@clisp.org>
103395         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
103396         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
103397         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
103398         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
103399         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
103400         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
103401         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
103402         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
103403         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
103405 2007-05-28  Eric Blake  <ebb9@byu.net>
103407         Unconditionally include <config.h> in unit tests.
103408         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
103409         * tests/test-allocsa.c, tests/test-arcfour.c,
103410         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
103411         tests/test-array_list.c, tests/test-array_oset.c,
103412         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
103413         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
103414         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
103415         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
103416         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
103417         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
103418         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
103419         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
103420         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
103421         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
103422         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
103423         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
103424         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
103425         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
103426         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
103427         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
103428         test-md5.c, test-memmem.c, test-printf-posix.c,
103429         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
103430         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
103431         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
103432         test-strcasestr.c, test-striconv.c, test-striconveh.c,
103433         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
103434         test-vasnprintf-posix2.c, test-vasnprintf.c,
103435         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
103436         test-vfprintf-posix.c, test-vprintf-posix.c,
103437         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
103438         test-xvasprintf.c: Likewise.
103440 2007-05-28  Bruno Haible  <bruno@clisp.org>
103442         * gnulib-tool (func_import): Remember the --with-tests command-line
103443         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
103444         Reported by Eric Blake.
103446 2007-05-28  Bruno Haible  <bruno@clisp.org>
103448         * modules/ftell-tests: New file.
103449         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
103450         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
103452         * lib/ftell.c: New file.
103453         * modules/ftell: New file.
103454         * m4/ftell.m4: New file.
103455         * doc/functions/ftell.texi: Update.
103456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
103457         REPLACE_FTELL.
103458         * lib/stdio_.h (rpl_ftell): New declaration.
103459         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
103460         REPLACE_FTELL.
103462 2007-05-28  Eric Blake  <ebb9@byu.net>
103464         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
103466 2007-05-28  Bruno Haible  <bruno@clisp.org>
103468         * modules/fseek-tests: New file.
103469         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
103470         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
103472         * lib/fseek.c: New file.
103473         * modules/fseek: New file.
103474         * m4/fseek.m4: New file.
103475         * doc/functions/fseek.texi: Update.
103476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
103477         REPLACE_FSEEK.
103478         * lib/stdio_.h (rpl_fseek): New declaration.
103479         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
103480         REPLACE_FSEEK.
103482 2007-05-28  Bruno Haible  <bruno@clisp.org>
103484         * lib/stdio_.h (fflush): More comments.
103486 2007-05-28  Bruno Haible  <bruno@clisp.org>
103488         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
103489         runtime test.
103491 2007-05-28  Eric Blake  <ebb9@byu.net>
103493         Improve lseek module.
103494         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
103495         * lib/unistd_.h (lseek): Scale back link warning message.
103496         * tests/test-lseek.c: Beef up test.
103497         * tests/test-lseek.sh: Exercise more facets of lseek.
103498         Reported by Bruno Haible.
103500 2007-05-28  Bruno Haible  <bruno@clisp.org>
103502         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
103503         to define.
103505 2007-05-27  Bruno Haible  <bruno@clisp.org>
103507         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
103509 2007-05-27  Bruno Haible  <bruno@clisp.org>
103511         * modules/openmp: New file.
103512         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
103513         Noah Misch.
103515 2007-05-26  Bruno Haible  <bruno@clisp.org>
103517         * modules/chdir-long (Depends-on): Add fchdir.
103518         * modules/chdir-safer (Depends-on): Likewise.
103519         * modules/fts (Depends-on): Likewise.
103520         * modules/fts-lgpl (Depends-on): Likewise.
103521         * modules/openat (Depends-on): Likewise.
103522         * modules/savewd (Depends-on): Likewise.
103524 2007-05-24  Eric Blake  <ebb9@byu.net>
103526         Fix lseek on mingw.
103527         * modules/lseek: New module.
103528         * m4/lseek.m4: New file.
103529         * lib/lseek.c: New file.
103530         * modules/lseek-tests: New file.
103531         * tests/test-lseek.c: New file.
103532         * tests/test-lseek.sh: New file.
103533         * MODULES.html.sh: Document lseek module.
103534         * modules/fflush (Depends-on): Add lseek, fseeko.
103535         * modules/fseeko (Depends-on): Likewise.
103536         * modules/ftello (Depends-on): Likewise.
103537         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
103538         broken.
103539         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
103540         broken.
103541         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
103542         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
103543         * lib/ftello.c (rpl_ftello): Likewise.
103544         * tests/test-fseeko.c (main): Test this.
103545         * tests/test-fseeko.sh: Likewise.
103546         * tests/test-ftello.c (main): Likewise.
103547         * tests/test-ftello.sh: Likewise.
103548         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
103549         implies replacing fseek.
103550         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
103551         HAVE_FTELLO.
103552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
103553         * modules/unistd (Makefile.am): Likewise.
103554         * lib/unistd_.h (lseek): Declare a replacement.
103555         * doc/functions/lseek.texi (lseek): Document this fix.
103556         * doc/functions/fseek.texi (fseek): Likewise.
103557         * doc/functions/ftell.texi (ftell): Likewise.
103559 2007-05-24  Bruno Haible  <bruno@clisp.org>
103561         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
103562         in the printed representation of a NaN.
103563         * tests/test-vasprintf-posix.c (test_function): Likewise.
103564         * tests/test-snprintf-posix.h (test_function): Likewise.
103565         * tests/test-sprintf-posix.h (test_function): Likewise.
103566         Reported by Eric Blake.
103568 2007-05-23  Eric Blake  <ebb9@byu.net>
103570         Fix fseeko/ftello on cygwin 1.5.24.
103571         * doc/functions/fseeko.texi (fseeko): Document the fix.
103572         * doc/functions/ftello.texi (ftello): Document the fix.
103573         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
103574         * doc/functions/stdout.text (stdout): New file.
103575         * doc/functions/stderr.text (stderr): New file.
103576         * doc/gnulib.texi (Function Substitutes): Use new files.
103577         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
103578         prior to 1.7.0.
103579         * tests/test-ftello.c (main): Likewise for ftello.
103580         * tests/test-fseeko.sh: New file.
103581         * tests/test-ftello.sh: New file.
103582         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
103583         with seekable stdin.
103584         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
103585         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
103586         (gl_REPLACE_FSEEKO): New macro.
103587         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
103588         * modules/fseeko (Files): Distribute fseeko.c.
103589         * modules/ftello (Files): Distribute ftello.c.
103590         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
103591         mode.
103592         * lib/ftello.c (rpl_ftello): New file.
103593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
103594         fseeko, ftello.
103595         (gl_STDIN_LARGE_OFFSET): New macro.
103596         * modules/stdio (Makefile.am): Perform the replacement.
103597         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
103599 2007-05-23  Bruno Haible  <bruno@clisp.org>
103601         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
103602         GNULIB_POSIXCHECK is defined.
103604 2007-05-21  Bruno Haible  <bruno@clisp.org>
103606         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
103607         Check also the output for NaN arguments. When cross-compiling, guess
103608         no on IRIX.
103609         * lib/vasnprintf.c: Update comments.
103610         * tests/test-vasnprintf-posix.c (strisnan): New function.
103611         (test_function): Use it.
103612         * tests/test-vasprintf-posix.c (strisnan): New function.
103613         (test_function): Use it.
103614         * tests/test-snprintf-posix.h (strisnan): New function.
103615         (test_function): Use it.
103616         * tests/test-sprintf-posix.h (strisnan): New function.
103617         (test_function): Use it.
103618         Reported by Eric Blake.
103620 2007-05-20  Bruno Haible  <bruno@clisp.org>
103622         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
103623         numbers that fails on BeOS.
103624         * doc/functions/frexpl.texi: Update.
103626 2007-05-20  Jim Meyering  <jim@meyering.net>
103628         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
103629         forced upon us by glibc-2.6.
103631 2007-05-20  Bruno Haible  <bruno@clisp.org>
103633         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
103634         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
103635         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
103636         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
103637         NEED_PRINTF_INFINITE.
103638         (is_infinitel): New function.
103639         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
103640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
103641         gl_PREREQ_VASNPRINTF_INFINITE.
103642         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
103643         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103644         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
103645         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
103646         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
103647         gl_PREREQ_VASNPRINTF_INFINITE.
103648         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103649         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103650         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103651         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103652         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103653         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103654         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103655         * doc/functions/fprintf.texi: Update.
103656         * doc/functions/printf.texi: Update.
103657         * doc/functions/snprintf.texi: Update.
103658         * doc/functions/sprintf.texi: Update.
103659         * doc/functions/vfprintf.texi: Update.
103660         * doc/functions/vprintf.texi: Update.
103661         * doc/functions/vsnprintf.texi: Update.
103662         * doc/functions/vsprintf.texi: Update.
103664 2007-05-20  Bruno Haible  <bruno@clisp.org>
103666         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
103667         was not found in libc.
103668         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
103670 2007-05-20  Bruno Haible  <bruno@clisp.org>
103672         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103673         printed as "-nan" instead of "nan".
103674         * tests/test-vasprintf-posix.c (test_function): Likewise.
103675         * tests/test-snprintf-posix.h (test_function): Likewise.
103676         * tests/test-sprintf-posix.h (test_function): Likewise.
103677         Needed for HP-UX 11.
103679 2007-05-20  Jim Meyering  <jim@meyering.net>
103681         Fix buggy test for the fchownat-deref bug.
103682         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
103683         symlink required for the run-test.  Without it, this test would
103684         always declare that fchownat doesn't work, and client code would
103685         unnecessarily use the replacement function with fixed libc.
103686         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
103687         Reported by Greg Schafer.
103689 2007-05-19  Bruno Haible  <bruno@clisp.org>
103691         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
103692         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
103693         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
103694         Needed for IRIX 6.5 and Solaris 2.5.1.
103696 2007-05-19  Bruno Haible  <bruno@clisp.org>
103698         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
103699         (test_function): Skip tests involving -0.0 on platforms where
103700         -0.0 = 0.0.
103701         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
103702         (test_function): Skip tests involving -0.0 on platforms where
103703         -0.0 = 0.0.
103704         * tests/test-snprintf-posix.h (have_minus_zero): New function.
103705         (test_function): Skip tests involving -0.0 on platforms where
103706         -0.0 = 0.0.
103707         * tests/test-sprintf-posix.h (have_minus_zero): New function.
103708         (test_function): Skip tests involving -0.0 on platforms where
103709         -0.0 = 0.0.
103710         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
103711         tests.
103712         * tests/test-printf-posix.h (test_function): Likewise.
103713         * tests/test-printf-posix.output: Remove all -0.0 related results.
103714         Needed for IRIX 6.5.
103716 2007-05-19  Bruno Haible  <bruno@clisp.org>
103718         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103719         printed as "nan0x7fffffff" instead of "nan".
103720         * tests/test-vasprintf-posix.c (test_function): Likewise.
103721         * tests/test-snprintf-posix.h (test_function): Likewise.
103722         * tests/test-sprintf-posix.h (test_function): Likewise.
103723         * tests/test-fprintf-posix.h (NaN): Remove macro.
103724         (test_function): Remove all NaN related tests.
103725         * tests/test-printf-posix.h (NaN): Remove macro.
103726         (test_function): Remove all NaN related tests.
103727         * tests/test-printf-posix.output: Remove all NaN related results.
103728         Needed for IRIX 6.5.
103730 2007-05-19  Bruno Haible  <bruno@clisp.org>
103732         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
103733         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
103735 2007-05-19  Bruno Haible  <bruno@clisp.org>
103737         * lib/float_.h: New file.
103738         * m4/float_h.m4: New file.
103739         * modules/float: New file.
103740         * modules/isnanl (Dependencies): Add float.
103741         * modules/isnanl-nolibm (Dependencies): Likewise.
103742         * modules/mathl (Dependencies): Likewise.
103743         * modules/printf-frexpl (Dependencies): Likewise.
103744         * modules/signbit (Dependencies): Likewise.
103745         * modules/vasnprintf (Dependencies): Likewise.
103746         * doc/headers/float.texi: Update.
103748 2007-05-19  Jim Meyering  <jim@meyering.net>
103750         * lib/utimens.c (gl_futimens): Rename from futimens,
103751         now that glibc-2.6 declares futimens.
103752         * lib/utimens.h: Likewise.
103754 2007-05-19  Bruno Haible  <bruno@clisp.org>
103756         Avoid test failures on mingw.
103757         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
103758         * tests/test-printf-posix.sh: Likewise.
103759         * tests/test-vfprintf-posix.sh: Likewise.
103760         * tests/test-vprintf-posix.sh: Likewise.
103762 2007-05-19  Bruno Haible  <bruno@clisp.org>
103764         Fix *printf result for NaN, Inf, -0.0 on mingw.
103765         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
103766         * lib/vasnprintf.c: Include math.h and isnan.h.
103767         (is_infinite_or_zero): New function.
103768         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
103769         values in the %f, %F, %e, %E, %g, %G directives.
103770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
103771         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103772         gl_PRINTF_INFINITE and test its result. Invoke
103773         gl_PREREQ_VASNPRINTF_INFINITE.
103774         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103775         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103776         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103777         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103778         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103779         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103780         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103781         * doc/functions/fprintf.texi: Update.
103782         * doc/functions/printf.texi: Update.
103783         * doc/functions/snprintf.texi: Update.
103784         * doc/functions/sprintf.texi: Update.
103785         * doc/functions/vfprintf.texi: Update.
103786         * doc/functions/vprintf.texi: Update.
103787         * doc/functions/vsnprintf.texi: Update.
103788         * doc/functions/vsprintf.texi: Update.
103790 2007-05-19  Bruno Haible  <bruno@clisp.org>
103792         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
103793         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
103794         Instead of multiplying with 10^k, set extra_zeroes to k.
103795         (scale10_round_long_double): Remove function.
103797 2007-05-18  Bruno Haible  <bruno@clisp.org>
103799         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
103800         introduced on 2007-05-06.
103802 2007-05-18  Bruno Haible  <bruno@clisp.org>
103804         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
103805         %g directives.
103806         * tests/test-vasprintf-posix.c (test_function): Likewise.
103807         * tests/test-snprintf-posix.h (test_function): Likewise.
103808         * tests/test-sprintf-posix.h (test_function): Likewise.
103810 2007-05-18  Bruno Haible  <bruno@clisp.org>
103812         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
103813         (strmatch): New function.
103814         (test_function): Test the %f directive on numbers of various exponents.
103815         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
103816         (strmatch): New function.
103817         (test_function): Test the %f directive on numbers of various exponents.
103818         * tests/test-snprintf-posix.h (strmatch): New function.
103819         (test_function): Test the %f directive on numbers of various exponents.
103820         * tests/test-sprintf-posix.h (strmatch): New function.
103821         (test_function): Test the %f directive on numbers of various exponents.
103822         * tests/test-snprintf-posix.c (SIZEOF): New macro.
103823         * tests/test-sprintf-posix.c (SIZEOF): New macro.
103824         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
103825         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
103827 2007-05-18  Bruno Haible  <bruno@clisp.org>
103829         Add support for 'long double' number output.
103830         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
103831         * lib/vasnprintf.c: Include math.h and float+.h.
103832         (mp_limb_t): New type.
103833         (GMP_LIMB_BITS): New macro.
103834         (mp_twolimb_t): New type.
103835         (GMP_TWOLIMB_BITS): New macro.
103836         (mpn_t): New type.
103837         (multiply, divide, convert_to_decimal, decode_long_double,
103838         scale10_round_long_double, scale10_round_decimal_long_double,
103839         floorlog10l): New functions.
103840         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
103841         for the %f, %F, %e, %E, %g, %G directives.
103842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
103843         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103844         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
103845         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
103846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103853         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
103854         * modules/snprintf-posix (Depends-on): Likewise.
103855         * modules/sprintf-posix (Depends-on): Likewise.
103856         * modules/vasnprintf-posix (Depends-on): Likewise.
103857         * modules/vasprintf-posix (Depends-on): Likewise.
103858         * modules/vfprintf-posix (Depends-on): Likewise.
103859         * modules/vsnprintf-posix (Depends-on): Likewise.
103860         * modules/vsprintf-posix (Depends-on): Likewise.
103861         * modules/vasnprintf (Files): Add lib/float+.h.
103862         * doc/functions/fprintf.texi: Update.
103863         * doc/functions/printf.texi: Update.
103864         * doc/functions/snprintf.texi: Update.
103865         * doc/functions/sprintf.texi: Update.
103866         * doc/functions/vfprintf.texi: Update.
103867         * doc/functions/vprintf.texi: Update.
103868         * doc/functions/vsnprintf.texi: Update.
103869         * doc/functions/vsprintf.texi: Update.
103871 2007-05-18  Bruno Haible  <bruno@clisp.org>
103873         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
103875 2007-05-18  Bruno Haible  <bruno@clisp.org>
103877         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
103878         for printing 64-bit integers. Needed for mingw.
103880 2007-05-18  Bruno Haible  <bruno@clisp.org>
103882         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
103883         gl_FUNC_FREXPL_WORKS.
103884         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
103886 2007-05-18  Bruno Haible  <bruno@clisp.org>
103888         * modules/frexpl-nolibm-tests: New file.
103890         * modules/frexpl-nolibm: New file.
103891         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
103893 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103895         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
103896         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103897         GCC 4.2, which otherwise issues a lot of warnings.
103898         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
103899         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
103900         Likewise.
103901         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
103902         * modules/iconv_open (iconv.h): Likewise.
103903         * modules/locale (locale.h): Likewise.
103904         * modules/netinet_in (netinet/in.h): Likewise.
103905         * modules/sys_select (sys_select.h): Likewise.
103906         * modules/sys_socket (sys/socket.h): Likewise.
103907         * modules/sys_stat (sys/stat.h): Likewise.
103908         * modules/sysexits (sysexits.h): Likewise.
103909         * modules/unistd (unistd.h): Likewise.
103911 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103913         * modules/closein-tests (Makefile.am): Distribute
103914         `test-closein.sh'.
103916 2007-05-17  Bruno Haible  <bruno@clisp.org>
103918         * tests/test-printf-posix.output: Renamed from
103919         tests/test-fprintf-posix.out.
103920         * modules/fprintf-posix-tests: Update.
103921         * modules/printf-posix-tests: Update.
103922         * modules/vfprintf-posix-tests: Update.
103923         * modules/vprintf-posix-tests: Update.
103924         * tests/test-fprintf-posix.sh: Update.
103925         * tests/test-printf-posix.sh: Update.
103926         * tests/test-vfprintf-posix.sh: Update.
103927         * tests/test-vprintf-posix.sh: Update.
103928         Reported by Ralf Wildenhues.
103930 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103932         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
103933         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103934         GCC 4.2, which otherwise issues a lot of warnings.
103935         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
103936         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
103937         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
103938         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
103939         it should no longer be needed.
103940         * lib/string_.h: Likewise.
103941         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
103942         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
103943         * modules/inttypes (inttypes.h): Likewise.
103944         * modules/math (math.h): Likewise.
103945         * modules/search (search.h): Likewise.
103946         * modules/signal (signal.h): Likewise.
103947         * modules/stdint (stdint.h): Likewise.
103948         * modules/stdio (stdio.h): Likewise.
103949         * modules/stdlib (stdlib.h): Likewise.
103950         * modules/string (string.h): Likewise.
103951         * modules/sys_time (sys/time.h): Likewise.
103952         * modules/time (time.h): Likewise.
103953         * modules/wchar (wchar.h): Likewise.
103954         * modules/wctype (wtype.h): Likewise.
103956 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
103958         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
103960 2007-05-13  Bruno Haible  <bruno@clisp.org>
103962         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
103963         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
103964         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
103965         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103966         (gl_PREREQ_STRTOK_R): Don't require it here.
103968 2007-05-13  Bruno Haible  <bruno@clisp.org>
103970         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
103971         when used in C++ mode.
103973 2007-05-12  Bruno Haible  <bruno@clisp.org>
103975         * lib/linebuffer.h: Tweak doc.
103976         * lib/linebuffer.c: Likewise.
103978 2007-05-12  James Youngman  <jay@gnu.org>
103980         * lib/linebuffer.c (readlinebuffer_delim): New function,
103981         like readlinebuffer, but use a caller-specified delimiter.
103982         (readlinebuffer): Just call readlinebuffer_delim with '\n'
103983         as the delimiter.
103984         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
103986 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
103988         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
103989         * modules/openat (Files): Remove openat-die.c.
103990         (Depends-on): Add openat-die.
103991         * modules/openat-die: New module.
103993 2007-05-06  Bruno Haible  <bruno@clisp.org>
103995         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
103996         Update with info about Cygwin.
103997         * doc/functions/fprintf.texi: Update.
103998         * doc/functions/printf.texi: Update.
103999         * doc/functions/snprintf.texi: Update.
104000         * doc/functions/sprintf.texi: Update.
104001         * doc/functions/vfprintf.texi: Update.
104002         * doc/functions/vprintf.texi: Update.
104003         * doc/functions/vsnprintf.texi: Update.
104004         * doc/functions/vsprintf.texi: Update.
104005         Reported by Eric Blake.
104007 2007-05-06  Bruno Haible  <bruno@clisp.org>
104009         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
104010         padding ourselves for the floating-point directives.
104011         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
104012         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
104013         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104014         gl_PRINTF_FLAG_ZERO and test its result. Invoke
104015         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
104016         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104017         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104018         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104020         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104023         * tests/test-snprintf-posix.h (test_function): Also check the width
104024         and some flags in the %f directive.
104025         * tests/test-sprintf-posix.h (test_function): Likewise.
104026         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104027         * tests/test-vasprintf-posix.c (test_function): Likewise.
104028         * doc/functions/fprintf.texi: Update.
104029         * doc/functions/printf.texi: Update.
104030         * doc/functions/snprintf.texi: Update.
104031         * doc/functions/sprintf.texi: Update.
104032         * doc/functions/vfprintf.texi: Update.
104033         * doc/functions/vprintf.texi: Update.
104034         * doc/functions/vsnprintf.texi: Update.
104035         * doc/functions/vsprintf.texi: Update.
104037 2007-05-06  Bruno Haible  <bruno@clisp.org>
104039         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
104040         pass the ' flag character to sprintf or snprintf.
104041         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
104042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
104043         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104044         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
104045         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
104046         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104047         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104048         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104049         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104050         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104051         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104052         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104053         * tests/test-snprintf-posix.h (test_function): Also check the grouping
104054         flag.
104055         * tests/test-sprintf-posix.h (test_function): Likewise.
104056         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104057         * tests/test-vasprintf-posix.c (test_function): Likewise.
104058         * doc/functions/fprintf.texi: Update.
104059         * doc/functions/printf.texi: Update.
104060         * doc/functions/snprintf.texi: Update.
104061         * doc/functions/sprintf.texi: Update.
104062         * doc/functions/vfprintf.texi: Update.
104063         * doc/functions/vprintf.texi: Update.
104064         * doc/functions/vsnprintf.texi: Update.
104065         * doc/functions/vsprintf.texi: Update.
104067 2007-05-01  Bruno Haible  <bruno@clisp.org>
104069         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
104071 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
104073         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
104074         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
104076 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
104078         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
104079         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
104080         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
104082 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
104084         * lib/argp-help.c (struct hol_entry): New member `ord'.
104085         (HOL_ENTRY_PTRCMP): Use ord for comparison
104086         (hol_sort): Initialize ord.
104088 2007-05-01  Bruno Haible  <bruno@clisp.org>
104090         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
104091         Reported by Eric Blake.
104092         * doc/gnulib.texi (Function Substitutes): Update.
104094 2007-05-01  Bruno Haible  <bruno@clisp.org>
104096         * doc/functions.texi: Remove file, now redundant through
104097         doc/functions/*.texi.
104099 2007-05-01  Bruno Haible  <bruno@clisp.org>
104101         * modules/argp (Depends-on): Add sleep.
104103 2007-05-01  Bruno Haible  <bruno@clisp.org>
104105         * modules/sleep-tests: New file.
104106         * tests/test-sleep.c: New file.
104108         * modules/sleep: New file.
104109         * lib/sleep.c: New file.
104110         * m4/sleep.m4: New file.
104111         * lib/unistd_.h (sleep): New declaration.
104112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
104113         HAVE_SLEEP.
104114         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
104115         * doc/functions/sleep.texi: Document the sleep module.
104117 2007-05-01  Bruno Haible  <bruno@clisp.org>
104119         * lib/sigprocmask.h: Remove file.
104120         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
104121         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
104122         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
104123         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
104124         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
104125         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
104126         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
104127         HAVE_SIGSET_T as a shell variable.
104128         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
104129         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
104130         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
104131         (Depends-on): Add signal. Remove verify.
104132         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
104133         (Include): Mention <signal.h> instead of sigprocmask.h.
104134         * NEWS: Mention the change.
104135         * lib/fatal-signal.c: Don't include sigprocmask.h.
104137 2007-05-01  Bruno Haible  <bruno@clisp.org>
104139         * modules/signal: New file.
104140         * lib/signal_.h: New file.
104141         * m4/signal_h.m4: New file.
104143 2007-05-01  Bruno Haible  <bruno@clisp.org>
104145         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
104146         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
104147         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
104148         HAVE_WCTYPE_CTMP_BUG into wctype.h.
104150 2007-05-01  Bruno Haible  <bruno@clisp.org>
104152         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
104153         configure time.
104154         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
104155         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
104156         * modules/sys_stat (Makefile.am): Substitute their values into
104157         sys/stat.h.
104159 2007-05-01  Bruno Haible  <bruno@clisp.org>
104161         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
104162         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
104163         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
104165 2007-05-01  Bruno Haible  <bruno@clisp.org>
104167         * doc/header/assert.texi: Undo last change: don't mention the gnulib
104168         'assert' module here.
104170 2007-05-01  Bruno Haible  <bruno@clisp.org>
104172         * doc/functions/*.texi: New files.
104173         * doc/functions/google-ranking.txt: New file.
104174         * doc/gnulib.texi (Function Substitutes): New chapter.
104175         (ctime, inet_ntoa): Remove sections.
104176         * doc/ctime.texi: Remove file.
104177         * doc/inet_ntoa.texi: Remove file.
104178         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
104179         dependencies.
104180         (%.info): New rule, specifying a --reference-limit.
104182 2007-05-01  Bruno Haible  <bruno@clisp.org>
104184         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
104186 2007-05-01  Bruno Haible  <bruno@clisp.org>
104188         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
104189         the portability of 'mkdir' to mingw systems.
104191 2007-05-01  Bruno Haible  <bruno@clisp.org>
104193         * doc/headers/google-ranking.txt: New file.
104195 2007-04-30  Eric Blake  <ebb9@byu.net>
104197         Prefer fseeko to fseek.
104198         * modules/getpass (Depends-on): Add fseeko.
104199         * lib/getpass.c (getpass): Use fseeko, not fseek.
104201 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
104203         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
104204         assumes the sorting is stable, while most qsort implementations
104205         are not.  Use argument addresses to ensure they never compare as
104206         equal.
104208         * tests/test-argp-2.sh (usage-indent test): Fix output
104209         (func_compare): Restore diff options
104210         * tests/test-argp.c: Restore #include "progname.h"
104212 2007-04-29  Bruno Haible  <bruno@clisp.org>
104214         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
104215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104216         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
104217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104218         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
104219         (configure.ac): Define CHECK_SNPRINTF_POSIX.
104220         (TESTS, check_PROGRAMS): Add test-snprintf.
104221         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
104222         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
104223         (TESTS, check_PROGRAMS): Add test-vsnprintf.
104224         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
104225         assertions that fail on HP-UX, OSF/1, or IRIX.
104226         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
104228 2007-04-29  Bruno Haible  <bruno@clisp.org>
104230         * MODULES.html.sh (posix_functions): Remove 'contents'.
104232 2007-04-29  Karl Berry  <karl@gnu.org>
104234         * config/srclist.txt (gendocs_template_min): new entry.
104236 2007-04-29  Bruno Haible  <bruno@clisp.org>
104238         Work around fpurge bug on BSD systems.
104239         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
104240         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
104241         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
104242         fpurge to rpl_fpurge if the system already has this function.
104243         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
104244         the case where the system already has this function. Correct invariants
104245         on BSD systems.
104246         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
104247         BSD systems.
104249 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
104251         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
104252         proposed by Sven Verdoolaege.
104254         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
104255         options.
104256         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
104257         (usage and help tests): Update
104259 2007-04-29  Bruno Haible  <bruno@clisp.org>
104261         * tests/test-fflush.c (main): Use a file of size 17, not 10.
104262         Print more information in case of failure. Disable a test on BeOS.
104264 2007-04-29  Bruno Haible  <bruno@clisp.org>
104266         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
104267         This helps debugging on systems on which no gdb is available.
104269 2007-04-29  Bruno Haible  <bruno@clisp.org>
104271         * lib/freading.h: Improve comments.
104272         * lib/fwriting.h: Likewise.
104273         * tests/test-freading.c (main): Don't check freading immediately after
104274         repositioning. Needed for glibc.
104276 2007-04-29  Bruno Haible  <bruno@clisp.org>
104278         * lib/freading.c (freading): Trivial simplification.
104280 2007-04-28  Bruno Haible  <bruno@clisp.org>
104282         * tests/test-fwriting.c (main): Also test the interaction between
104283         fflush and fwriting.
104284         * modules/fwriting-tests (Depends-on): Add fflush.
104286         * tests/test-freading.c (main): Also test the interaction between
104287         fflush and freading.
104288         * modules/freading-tests (Depends-on): Add fflush.
104290 2007-04-28  Bruno Haible  <bruno@clisp.org>
104292         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
104293         fseeko and ftello.
104294         Suggested by Eric Blake.
104296 2007-04-28  Jim Meyering  <jim@meyering.net>
104298         Avoid false-negative in gl_STDINT_H's C99 conformance test.
104299         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
104300         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
104302 2007-04-27  Eric Blake  <ebb9@byu.net>
104304         * doc/headers/assert.texi (assert.h): Document assert module use.
104306 2007-04-27  Bruno Haible  <bruno@clisp.org>
104308         * doc/headers/*.texi: New files.
104309         * doc/gnulib.texi (Header File Substitutes): New chapter.
104310         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
104311         dependencies.
104312         (standards.info ,standards.html, standards.dvi): Update dependencies.
104313         (mostlyclean, clean): New targets.
104315 2007-04-27  Bruno Haible  <bruno@clisp.org>
104317         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
104318         * modules/sysexits (Files, Makefile.am): Update.
104320         * lib/sys_socket_.h: Renamed from lib/socket_.h.
104321         * modules/sys_socket (Files, Makefile.am): Update.
104323         * lib/sys_stat_.h: Renamed from lib/stat_.h.
104324         * modules/sys_stat (Files, Makefile.am): Update.
104326 2007-04-27  Eric Blake  <ebb9@byu.net>
104328         * lib/freading.h: Improve comments.
104329         * lib/fwriting.h: Likewise.
104330         * lib/fflush.c: Likewise.
104332         Fix closein for mingw.
104333         * modules/closein-tests: Add tests for closein.
104334         * tests/test-closein.c: New file.
104335         * tests/test-closein.sh: Likewise.
104336         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
104337         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
104339 2007-04-27  Bruno Haible  <bruno@clisp.org>
104341         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
104342         version is < 6.
104343         * lib/math_.h [__DECC]: Likewise.
104344         * lib/stdio_.h [__DECC]: Likewise.
104345         * lib/stdlib_.h [__DECC]: Likewise.
104346         * lib/string_.h [__DECC]: Likewise.
104347         * lib/time_.h [__DECC]: Likewise.
104348         * lib/wchar_.h [__DECC]: Likewise.
104349         * lib/wctype_.h [__DECC]: Likewise.
104351 2007-04-27  Bruno Haible  <bruno@clisp.org>
104353         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
104355 2007-04-27  Bruno Haible  <bruno@clisp.org>
104357         * lib/fflush.c: Add comments.
104358         * modules/fpurge-tests (Depends-on): Add fflush.
104359         * modules/freadable-tests (Depends-on): Likewise.
104360         * modules/fwritable-tests (Depends-on): Likewise.
104362 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
104364         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
104365         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
104366         Report by Bruno Haible <bruno@clisp.org>.
104368 2007-04-26  Eric Blake  <ebb9@byu.net>
104370         Fix fflush on mingw.
104371         * modules/fflush (Depends-on): Add freading.
104372         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
104373         but unread data.
104375 2007-04-26  Eric Blake  <ebb9@byu.net>
104376         and Bruno Haible  <bruno@clisp.org>
104378         Implement freading and fwriting.
104379         * lib/freading.c: New file.
104380         * lib/freading.h: Likewise.
104381         * m4/freading.m4: Likewise.
104382         * modules/freading: Likewise.
104383         * modules/freading-tests: Likewise.
104384         * tests/test-freading.c: Likewise.
104385         * lib/fwriting.c: New file.
104386         * lib/fwriting.h: Likewise.
104387         * m4/fwriting.m4: Likewise.
104388         * modules/fwriting: Likewise.
104389         * modules/fwriting-tests: Likewise.
104390         * tests/test-fwriting.c: Likewise.
104391         * MODULES.html.sh (File stream based Input/Output): Mention them.
104393 2007-04-26  Bruno Haible  <bruno@clisp.org>
104395         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
104396         'long' when we assume it.
104397         Suggested by Eric Blake.
104399 2007-04-26  Bruno Haible  <bruno@clisp.org>
104401         Ensure fseeko, ftello are declared on glibc systems.
104402         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
104403         * modules/fseeko (configure.ac-early): Likewise.
104404         * modules/ftello (configure.ac-early): Likewise.
104405         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
104406         AC_FUNC_FSEEKO for this.
104407         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
104408         (gl_CHECK_FSEEKO): Remove macro.
104410 2007-04-26  Bruno Haible  <bruno@clisp.org>
104412         * tests/test-fflush.c (main): Also check the ftell result after
104413         fflush and fseek/fseeko.
104414         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
104415         file descriptor position cache in the stream.
104416         * lib/fseeko.c (rpl_fseeko): Likewise.
104418 2007-04-26  Bruno Haible  <bruno@clisp.org>
104420         * modules/fflush-tests (Depends-on): Add fseeko.
104422 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
104423             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104425         * lib/argz_.h: ensure error_t definition is obtained in same
104426         mechanism system argz.h would have.
104427         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
104428         argz facilities are known bad.  Err on the side of caution if
104429         cross-compiling.
104431 2007-04-25  Eric Blake  <ebb9@byu.net>
104433         * lib/fpurge.c (includes): Use stdlib.h for free.
104434         * tests/test-fflush.c (main): Also test fflush-fseeko.
104436 2007-04-25  Bruno Haible  <bruno@clisp.org>
104438         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
104439         * lib/fseeko.c: New file.
104440         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
104441         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
104442         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
104443         gl_FUNC_FSEEKO.
104444         (gl_FUNC_FSEEKO): Invoke it.
104445         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
104446         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
104447         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
104449 2007-04-25  Bruno Haible  <bruno@clisp.org>
104451         * modules/fflush (Depends-on): Add ftello.
104453 2007-04-25  Bruno Haible  <bruno@clisp.org>
104455         * modules/ftello-tests: New file.
104456         * tests/test-ftello.c: New file.
104458         * modules/ftello: New file.
104459         * m4/ftello.m4: New file.
104460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
104461         HAVE_FTELLO.
104462         * lib/stdio_.h (ftello): New declaration.
104463         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
104464         HAVE_FTELLO.
104466 2007-04-25  Bruno Haible  <bruno@clisp.org>
104468         * modules/fseeko-tests: New file.
104469         * tests/test-fseeko.c: New file.
104471         * modules/fseeko: New file.
104472         * m4/fseeko.m4: New file.
104473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
104474         HAVE_FSEEKO.
104475         * lib/stdio_.h (fseeko): New declaration.
104476         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
104477         HAVE_FSEEKO.
104479 2007-04-25  Bruno Haible  <bruno@clisp.org>
104481         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
104483 2007-04-25  Bruno Haible  <bruno@clisp.org>
104485         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
104486         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
104487         * tests/test-unistd.c: Likewise.
104488         * tests/test-fcntl.c: Likewise.
104490 2007-04-23  Eric Blake  <ebb9@byu.net>
104492         * lib/fflush.c: Fix missing include.
104493         Reported by Bruno Haible.
104495 2007-04-23  Bruno Haible  <bruno@clisp.org>
104497         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
104498         Reported by Eric Blake.
104500 2007-04-23  Bruno Haible  <bruno@clisp.org>
104502         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
104504 2007-04-23  Bruno Haible  <bruno@clisp.org>
104506         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
104508 2007-04-23  Bruno Haible  <bruno@clisp.org>
104510         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
104511         Needed on HP-UX 11.
104513 2007-04-16  Eric Blake  <ebb9@byu.net>
104515         Make fflush rely on fpurge.
104516         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
104517         open coding all variants.
104518         * modules/fflush (Depends-on): Add fpurge and unistd.
104519         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
104520         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
104522         Fix --with-tests compilation on cygwin.
104523         * modules/argmatch-tests (Makefile.am): List gnulib library first
104524         in LDADD.
104525         * modules/argp-tests (Makefile.am): Likewise.
104526         * modules/array-list-tests (Makefile.am): Likewise.
104527         * modules/array-oset-tests (Makefile.am): Likewise.
104528         * modules/avltree-list-tests (Makefile.am): Likewise.
104529         * modules/avltree-oset-tests (Makefile.am): Likewise.
104530         * modules/avltreehash-list-tests (Makefile.am): Likewise.
104531         * modules/carray-list-tests (Makefile.am): Likewise.
104532         * modules/dirname-tests (Makefile.am): Likewise.
104533         * modules/frexp-tests (Makefile.am): Likewise.
104534         * modules/isnanl-tests (Makefile.am): Likewise.
104535         * modules/linked-list-tests (Makefile.am): Likewise.
104536         * modules/linkedhash-list-tests (Makefile.am): Likewise.
104537         * modules/lock-tests (Makefile.am): Likewise.
104538         * modules/rbtree-list-tests (Makefile.am): Likewise.
104539         * modules/rbtree-oset-tests (Makefile.am): Likewise.
104540         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
104541         * modules/tls-tests (Makefile.am): Likewise.
104542         * modules/tsearch-tests (Makefile.am): Likewise.
104543         * modules/xvasprintf-tests (Makefile.am): Likewise.
104545         Fix fpurge for cygwin.
104546         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
104547         value.
104548         * modules/fpurge-tests (Depends-on): Clean up trash.
104550 2007-04-16  Simon Josefsson  <simon@josefsson.org>
104552         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
104554         * m4/autobuild.m4: Re-indent.
104556 2007-04-13  Bruno Haible  <bruno@clisp.org>
104558         * modules/fpurge-tests: New file.
104559         * tests/test-fpurge.c: New file.
104561         * modules/fpurge: New file.
104562         * lib/fpurge.h: New file.
104563         * lib/fpurge.c: New file.
104564         * m4/fpurge.m4: New file.
104566 2007-04-13  Bruno Haible  <bruno@clisp.org>
104568         * modules/fbufmode-tests: New file.
104569         * tests/test-fbufmode.c: New file.
104571         * modules/fbufmode: New file.
104572         * lib/fbufmode.h: New file.
104573         * lib/fbufmode.c: New file.
104574         * m4/fbufmode.m4: New file.
104576 2007-04-13  Bruno Haible  <bruno@clisp.org>
104578         * modules/fwritable-tests: New file.
104579         * tests/test-fwritable.c: New file.
104581         * modules/fwritable: New file.
104582         * lib/fwritable.h: New file.
104583         * lib/fwritable.c: New file.
104584         * m4/fwritable.m4: New file.
104586 2007-04-13  Bruno Haible  <bruno@clisp.org>
104588         * modules/freadable-tests: New file.
104589         * tests/test-freadable.c: New file.
104591         * modules/freadable: New file.
104592         * lib/freadable.h: New file.
104593         * lib/freadable.c: New file.
104594         * m4/freadable.m4: New file.
104596 2007-04-13  Bruno Haible  <bruno@clisp.org>
104598         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
104599         MOSTLYCLEANFILES.
104601 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104603         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
104604         gzip bootstrap.conf to avoid dragging in i18n machinery.
104605         (gnulib_tool_option): Use it.
104607 2007-04-13  Bruno Haible  <bruno@clisp.org>
104609         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
104610         %F directives.
104611         * tests/test-vasprintf-posix.c (test_function): Likewise.
104612         * tests/test-snprintf-posix.h (test_function): Likewise.
104613         * tests/test-sprintf-posix.h (test_function): Likewise.
104614         * tests/test-fprintf-posix.h (test_function): Likewise.
104615         * tests/test-printf-posix.h (test_function): Likewise.
104616         * tests/test-fprintf-posix.out: Likewise.
104618 2007-04-13  Bruno Haible  <bruno@clisp.org>
104620         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
104621         * modules/tls-tests (configure.ac): Likewise.
104622         Reported by Arto C. Nirkko <anirkko@insel.ch>.
104624 2007-04-13  Bruno Haible  <bruno@clisp.org>
104626         * lib/tls.c (glthread_tls_get): Fix return type.
104627         Patch by Arto C. Nirkko <anirkko@insel.ch>.
104629 2007-04-12  Eric Blake  <ebb9@byu.net>
104631         * modules/gettime (Depends-on): Remove gettime.
104632         Reported by Dmitry V. Levin.
104634 2007-04-12  Bruno Haible  <bruno@clisp.org>
104636         * modules/fflush (Include): Mention <stdio.h>.
104637         * modules/strtoimax (Include): Mention <inttypes.h>.
104638         * modules/strtoumax (Include): Likewise.
104640 2007-04-12  Eric Blake  <ebb9@byu.net>
104642         * .cvsignore: New file.
104643         * .gitignore: Likewise.
104645 2007-04-12  Bruno Haible  <bruno@clisp.org>
104647         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
104648         not before, since $(LDADD) often contains libgnu.a.
104649         * modules/striconv-tests (test_striconv_LDADD): Likewise.
104650         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
104651         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
104652         Needed on Cygwin.
104654 2007-04-12  Eric Blake  <ebb9@byu.net>
104656         Work around glibc's failure to flush stdin on fclose.
104657         * lib/closein.c (close_stdin): Flush stdin before closing.
104659         Work around glibc's failure to reset seekable stdin on exit.
104660         * modules/closein: New module.
104661         * lib/closein.c: New file.
104662         * lib/closein.h: Likewise.
104663         * m4/closein.m4: Likewise.
104664         * MODULES.html.sh (File stream based Input/Output): Document it.
104666 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104668         * gnulib-tool: Rename generated 'autobuild' script to
104669         'do-autobuild' in --create-megatestdir output.
104671         * doc/gnulib.texi (Build robot for gnulib): Fix.
104673 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104675         * modules/sysexits (Depends-on): Add absolute-header.
104677 2007-04-12  Eric Blake  <ebb9@byu.net>
104679         No need to preserve errno on success.
104680         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
104681         Reported by Bruno Haible.
104683 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104685         * MODULES.html.sh (Support for maintaining and releasing
104686         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
104688 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104690         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
104692 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104694         * modules/autobuild: New module.
104696         * m4/autobuild.m4: New file.
104698 2007-04-11  Bruno Haible  <bruno@clisp.org>
104700         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
104701         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
104702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
104703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
104704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104705         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104706         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104708         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104709         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104710         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
104711         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104712         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
104714         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104715         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104716         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
104717         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104718         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104719         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
104720         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104721         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
104723         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104724         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104725         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
104726         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104727         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104728         Reported by Eric Blake.
104730 2007-04-11  Bruno Haible  <bruno@clisp.org>
104732         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
104734 2007-04-10  Bruno Haible  <bruno@clisp.org>
104736         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
104737         for NaN and Infinity. Needed on FreeBSD 6.1.
104738         * tests/test-vasnprintf-posix.c (test_function): Undo last change
104739         regarding results for "%010a" of Infinity and NaN.
104740         * tests/test-vasprintf-posix.c (test_function): Likewise.
104741         * tests/test-snprintf-posix.h (test_function): Likewise.
104742         * tests/test-sprintf-posix.h (test_function): Likewise.
104743         * tests/test-fprintf-posix.h (test_function): Likewise.
104744         * tests/test-printf-posix.h (test_function): Likewise.
104745         * tests/test-fprintf-posix.out: Likewise.
104747 2007-04-10  Bruno Haible  <bruno@clisp.org>
104749         * modules/locale-tests: New file.
104750         * tests/test-locale.c: New file.
104752         * modules/locale: New file.
104753         * lib/locale_.h: New file.
104754         * m4/locale_h.m4: New file.
104756 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
104757             Bruno Haible  <bruno@clisp.org>
104759         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
104760         be determined, test for availability of the copysignf, copysign,
104761         copysignl functions.
104762         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
104763         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
104764         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
104766 2007-04-09  Eric Blake  <ebb9@byu.net>
104768         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
104769         * modules/stdio (Makefile.am): Support fflush.
104770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
104771         * modules/fflush: New file.
104772         * lib/fflush.c: Likewise.
104773         * m4/fflush.m4: Likewise.
104774         * modules/fflush-tests: New test.
104775         * tests/test-fflush.c: Likewise.
104776         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
104778 2007-04-06  Bruno Haible  <bruno@clisp.org>
104780         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
104781         (VASNPRINTF): Use signbit for faster determination whether to print a
104782         minus sign.
104783         * modules/vasnprintf (Files): Remove lib/float+.h.
104784         * modules/fprintf-posix (Depends-on): Add signbit.
104785         * modules/snprintf-posix (Depends-on): Likewise.
104786         * modules/sprintf-posix (Depends-on): Likewise.
104787         * modules/vasnprintf-posix (Depends-on): Likewise.
104788         * modules/vasprintf-posix (Depends-on): Likewise.
104789         * modules/vfprintf-posix (Depends-on): Likewise.
104790         * modules/vsnprintf-posix (Depends-on): Likewise.
104791         * modules/vsprintf-posix (Depends-on): Likewise.
104793 2007-04-06  Bruno Haible  <bruno@clisp.org>
104795         * tests/test-frexp.c (main): Test also the sign bit of zero results.
104796         * tests/test-frexpl.c (main): Likewise.
104797         * tests/test-ldexpl.c (main): Likewise.
104798         * modules/frexp-tests (Depends-on): Add signbit.
104799         * modules/frexpl-tests (Depdends-on): Likewise.
104800         * modules/ldexpl-tests (Depdends-on): Likewise.
104802 2007-04-06  Bruno Haible  <bruno@clisp.org>
104804         * modules/signbit-tests: New file.
104805         * tests/test-signbit.c: New file.
104807         * modules/signbit: New file.
104808         * lib/signbitf.c: New file.
104809         * lib/signbitd.c: New file.
104810         * lib/signbitl.c: New file.
104811         * m4/signbit.m4: New file.
104812         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
104813         (signbit): New macro.
104814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
104815         REPLACE_SIGNBIT.
104816         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
104817         REPLACE_FREXPL into math.h.
104819 2007-04-06  Bruno Haible  <bruno@clisp.org>
104821         * modules/isnanf-nolibm-tests: New file.
104822         * tests/test-isnanf.c: New file.
104824         * modules/isnanf-nolibm: New file.
104825         * lib/isnanf.h: New file.
104826         * lib/isnanf.c: New file.
104827         * lib/isnan.c: Consider the USE_FLOAT macro.
104828         * m4/isnanf.m4: New file.
104830 2007-04-06  Bruno Haible  <bruno@clisp.org>
104832         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
104833         (Link): New section.
104835         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
104837 2007-04-06  Bruno Haible  <bruno@clisp.org>
104839         Assume the 'long double' type.
104840         * m4/longdouble.m4: Remove file.
104841         * config/srclist.txt: Don't mention longdouble.m4.
104842         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
104843         * lib/float+.h: Likewise.
104844         * lib/frexp.c: Likewise.
104845         * lib/printf-args.h: Likewise.
104846         * lib/printf-args.c: Likewise.
104847         * lib/printf-frexp.c: Likewise.
104848         * lib/printf-parse.c: Likewise.
104849         * lib/vasnprintf.c: Likewise.
104850         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
104851         * m4/intl.m4: Likewise.
104852         * m4/isnanl.m4: Likewise.
104853         * m4/printf.m4: Likewise.
104854         * m4/printf-frexpl.m4: Likewise.
104855         * m4/vasnprintf.m4: Likewise.
104856         * modules/allocsa (Files): Remove m4/longdouble.m4.
104857         * modules/gettext (Files): Likewise.
104858         * modules/relocatable-prog-wrapper (Files): Likewise.
104859         * modules/vasnprintf (Files): Likewise.
104860         * modules/isnanl (Files): Likewise.
104861         (Include): Simplify.
104862         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
104863         (Include): Simplify.
104864         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
104865         (Include): Simplify.
104866         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
104867         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104868         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
104869         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104870         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104871         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104872         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
104873         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104874         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104875         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104876         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
104877         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104878         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
104879         * tests/test-isnanl.c: Likewise.
104880         * tests/test-snprintf-posix.h: Likewise.
104881         * tests/test-sprintf-posix.h: Likewise.
104882         * tests/test-vasnprintf-posix.c: Likewise.
104883         * tests/test-vasnprintf-posix2.c: Likewise.
104884         * tests/test-vasprintf-posix.c: Likewise.
104886 2007-04-06  Bruno Haible  <bruno@clisp.org>
104888         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
104889         * lib/math_.h [__DECC]: Include the overridden include file through
104890         #include_next, outside the double-inclusion guard.
104891         * lib/stdio_.h [__DECC]: Likewise.
104892         * lib/stdlib_.h [__DECC]: Likewise.
104893         * lib/string_.h [__DECC]: Likewise.
104894         * lib/time_.h [__DECC]: Likewise.
104895         * lib/wchar_.h [__DECC]: Likewise.
104896         * lib/wctype_.h [__DECC]: Likewise.
104897         * lib/inttypes_.h [__DECC]: Likewise.
104898         Reported by Albert Chin <china@thewrittenword.com> in
104899         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
104901 2007-04-04  Eric Blake  <ebb9@byu.net>
104903         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
104904         1.5.x.
104906 2007-04-04  Bruno Haible  <bruno@clisp.org>
104908         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
104909         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
104911 2007-04-04  Bruno Haible  <bruno@clisp.org>
104913         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
104914         results for "%010a" of Infinity and NaN.
104915         * tests/test-vasprintf-posix.c (test_function): Likewise.
104916         * tests/test-snprintf-posix.h (test_function): Likewise.
104917         * tests/test-sprintf-posix.h (test_function): Likewise.
104918         * tests/test-fprintf-posix.h (test_function): Remove these tests.
104919         * tests/test-printf-posix.h (test_function): Likewise.
104920         * tests/test-fprintf-posix.out: Update.
104921         Needed for FreeBSD 6.1.
104923 2007-04-04  Bruno Haible  <bruno@clisp.org>
104925         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
104926         directly used by the gnulib modules nor by gnulib-tool.
104928 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104930         * DEPENDENCIES: Give overall description of version dependency
104931         desirability.  Use more-typical names for apps.
104932         Add shell, coreutils, diffutils, grep, tar, gzip.
104934 2007-04-04  Simon Josefsson  <simon@josefsson.org>
104936         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
104938 2007-04-04  Karl Berry  <karl@gnu.org>
104940         * MODULES.html.sh (func_module): missing '.
104942 2007-04-03  Bruno Haible  <bruno@clisp.org>
104944         * modules/argmatch-tests (Makefile.am): New variable
104945         test_argmatch_LDADD.
104946         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
104947         * modules/array-list-tests (Makefile.am): New variable
104948         test_array_list_LDADD.
104949         * modules/array-oset-tests (Makefile.am): New variable
104950         test_array_oset_LDADD.
104951         * modules/avltree-list-tests (Makefile.am): New variable
104952         test_avltree_list_LDADD.
104953         * modules/avltree-oset-tests (Makefile.am): New variable
104954         test_avltree_oset_LDADD.
104955         * modules/avltreehash-list-tests (Makefile.am): New variable
104956         test_avltreehash_list_LDADD.
104957         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
104958         test_canonicalize_lgpl_LDADD.
104959         * modules/carray-list-tests (Makefile.am): New variable
104960         test_carray_list_LDADD.
104961         * modules/dirname-tests (Makefile.am): New variable
104962         test_dirname_LDADD.
104963         * modules/linked-list-tests (Makefile.am): New variable
104964         test_linked_list_LDADD.
104965         * modules/linkedhash-list-tests (Makefile.am): New variable
104966         test_linkedhash_list_LDADD.
104967         * modules/rbtree-list-tests (Makefile.am): New variable
104968         test_rbtree_list_LDADD.
104969         * modules/rbtree-oset-tests (Makefile.am): New variable
104970         test_rbtree_oset_LDADD.
104971         * modules/rbtreehash-list-tests (Makefile.am): New variable
104972         test_rbtreehash_list_LDADD.
104973         * modules/xvasprintf-tests (Makefile.am): New variable
104974         test_xvasprintf_LDADD.
104975         Reported by Eric Blake.
104977 2007-04-03  Eric Blake  <ebb9@byu.net>
104979         * DEPENDENCIES: Weaken m4 requirements.
104981 2007-04-03  Bruno Haible  <bruno@clisp.org>
104983         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
104984         * modules/isnanl-tests (configure.ac): Likewise.
104986 2007-04-03  Ben Pfaff  <blp@gnu.org>
104988         * modules/iconv_open: Add $(srcdir)/ to source directory
104989         references in Makefile fragments that call gperf, to fix VPATH
104990         builds.
104992 2007-04-03  Bruno Haible  <bruno@clisp.org>
104994         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
104995         * lib/ldexpl.c: Undo last change.
104997 2007-04-03  Bruno Haible  <bruno@clisp.org>
104999         * modules/printf-frexpl (Depends-on): Undo last change.
105000         (Files): Add m4/ldexpl.m4.
105002 2007-04-03  Bruno Haible  <bruno@clisp.org>
105004         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
105005         * modules/isnanl (Link): New section.
105007         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
105008         * modules/frexp (Link): New section.
105010         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
105011         * modules/frexpl (Link): New section.
105013         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
105014         * modules/ldexpl (Link): New section.
105016 2007-04-03  Bruno Haible  <bruno@clisp.org>
105018         * modules/TEMPLATE-EXTENDED: New file.
105019         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
105021 2007-04-03  Bruno Haible  <bruno@clisp.org>
105023         * DEPENDENCIES: New file.
105024         Suggested by Simon Josefsson.
105026 2007-04-03  Bruno Haible  <bruno@clisp.org>
105028         * doc/gnulib.texi: Escape @.
105030 2007-04-03  James Youngman  <jay@gnu.org>
105031         and Paul Eggert  <eggert@cs.ucla.edu>
105033         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
105034         birthtime on all systems that have birthtime, not just those which
105035         use st_birthtimensec rather than st_birthtim.  Putting zero in
105036         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
105037         that the birth time is not available for files on an NFS mount.
105039 2007-04-03  Simon Josefsson  <simon@josefsson.org>
105041         * modules/memxor: Move back from crypto/, suggested by Bruno.
105042         * modules/crypto/hmac-sha1: Fix memxor dependency.
105044         * modules/crypto/gc: Moved from ../.
105046 2007-04-02  Eric Blake  <ebb9@byu.net>
105048         * lib/ldexpl.c (includes): Avoid libm.
105050         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
105052 2007-04-02  Bruno Haible  <bruno@clisp.org>
105054         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
105055         on IRIX.
105057 2007-04-02  Bruno Haible  <bruno@clisp.org>
105059         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
105060         x86 or x86_64 platforms running MacOS X.
105061         Reported by Ryan Schmidt <@ryandesign.com>.
105063 2007-04-02  Bruno Haible  <bruno@clisp.org>
105065         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
105066         i386.
105068 2007-04-01  Simon Josefsson  <simon@josefsson.org>
105070         * modules/crypto/arcfour: Moved from ../.
105071         * modules/crypto/arcfour-tests: Moved from ../.
105072         * modules/crypto/arctwo: Moved from ../.
105073         * modules/crypto/arctwo-tests: Moved from ../.
105074         * modules/crypto/des: Moved from ../.
105075         * modules/crypto/des-tests: Moved from ../.
105076         * modules/crypto/gc-arcfour: Moved from ../.
105077         * modules/crypto/gc-arcfour-tests: Moved from ../.
105078         * modules/crypto/gc-arctwo: Moved from ../.
105079         * modules/crypto/gc-arctwo-tests: Moved from ../.
105080         * modules/crypto/gc-des: Moved from ../.
105081         * modules/crypto/gc-des-tests: Moved from ../.
105082         * modules/crypto/gc-hmac-md5: Moved from ../.
105083         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
105084         * modules/crypto/gc-hmac-sha1: Moved from ../.
105085         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
105086         * modules/crypto/gc-md2: Moved from ../.
105087         * modules/crypto/gc-md2-tests: Moved from ../.
105088         * modules/crypto/gc-md4: Moved from ../.
105089         * modules/crypto/gc-md4-tests: Moved from ../.
105090         * modules/crypto/gc-md5: Moved from ../.
105091         * modules/crypto/gc-md5-tests: Moved from ../.
105092         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
105093         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
105094         * modules/crypto/gc-random: Moved from ../.
105095         * modules/crypto/gc-rijndael: Moved from ../.
105096         * modules/crypto/gc-rijndael-tests: Moved from ../.
105097         * modules/crypto/gc-sha1: Moved from ../.
105098         * modules/crypto/gc-sha1-tests: Moved from ../.
105099         * modules/crypto/gc-tests: Moved from ../.
105100         * modules/crypto/hmac-md5: Moved from ../.
105101         * modules/crypto/hmac-md5-tests: Moved from ../.
105102         * modules/crypto/hmac-sha1: Moved from ../.
105103         * modules/crypto/hmac-sha1-tests: Moved from ../.
105104         * modules/crypto/md2: Moved from ../.
105105         * modules/crypto/md2-tests: Moved from ../.
105106         * modules/crypto/md4: Moved from ../.
105107         * modules/crypto/md4-tests: Moved from ../.
105108         * modules/crypto/md5: Moved from ../.
105109         * modules/crypto/md5-tests: Moved from ../.
105110         * modules/crypto/memxor: Moved from ../.
105111         * modules/crypto/rijndael: Moved from ../.
105112         * modules/crypto/rijndael-tests: Moved from ../.
105113         * modules/crypto/sha1: Moved from ../.
105115 2007-03-30  James Youngman  <jay@gnu.org>
105117         * tests/test-stat-time.c (prepare_test): use chmod() rather than
105118         rename() to change the ctime of a file (because ctime is unaffected
105119         by rename on jfs2 on AIX 5.1).
105120         (main): Start by doing cleanup, in case a previous run failed leaving
105121         test files behind.
105123 2007-03-31  Bruno Haible  <bruno@clisp.org>
105125         Support old proprietary implementations of iconv.
105126         * modules/iconv_open: New file.
105127         * lib/iconv_.h: New file.
105128         * m4/iconv_h.m4: New file.
105129         * lib/iconv_open.c: New file.
105130         * lib/iconv_open-aix.gperf: New file.
105131         * lib/iconv_open-hpux.gperf: New file.
105132         * lib/iconv_open-irix.gperf: New file.
105133         * lib/iconv_open-osf.gperf: New file.
105134         * m4/iconv_open.m4: New file.
105135         * modules/linebreak (Depends-on): Add iconv_open.
105136         * modules/striconv (Depends-on): Likewise.
105137         * modules/striconveh (Depends-on): Likewise.
105138         * modules/unicodeio (Depends-on): Likewise.
105139         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
105140         (iconv_t)(-1).
105141         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
105142         conversion if cd is (iconv_t)(-1).
105143         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
105144         is not possible.
105146 2007-03-31  Bruno Haible  <bruno@clisp.org>
105148         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105149         work on Solaris either. Protect also second use of "autodetect_jp".
105151 2007-03-31  Bruno Haible  <bruno@clisp.org>
105153         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
105154         the function is not present.
105156 2007-03-31  Bruno Haible  <bruno@clisp.org>
105158         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
105159         the function is not present.
105161 2007-03-31  Bruno Haible  <bruno@clisp.org>
105163         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
105164         a bug in HP-UX iconv_open().
105166 2007-03-31  Bruno Haible  <bruno@clisp.org>
105168         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
105169         (Mathematics <math.h>): New section, add fpieee.
105170         (Input/output <stdio.h>): Add fseterr.
105171         (Mathematics <math.h>): New section, add printf-frexp.
105172         (Container data structures): Add sublist.
105173         (Core language properties): Add fpucw, inline.
105174         (Functions for greatest-width integer types <inttypes.h>): Add
105175         imaxabs, imaxdiv, inttypes.
105176         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
105177         isnanl-nolibm, ldexp.
105178         (Mathematics <math.h>): New section, add printf-frexpl.
105179         (Support for systems lacking POSIX:2001): Add fprintf-posix,
105180         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
105181         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
105182         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
105183         (Unicode string functions): Add unistr/u*-mbtoucr.
105184         (Java): Add javacomp-script, javaexec-script.
105185         (C#): Add csharpcomp-script, csharpexec-script.
105186         (Support for building libraries and executables): Add havelib,
105187         relocatable-*.
105188         (Support for maintaining and releasing projects): Renamed from
105189         'Support for maintaining and release projects'. Add announce-gen.
105191 2007-03-31  Bruno Haible  <bruno@clisp.org>
105193         * README: Talk primarily about git.
105194         (git and CVS): Renamed from CVS.
105195         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
105196         gnulib is available through git.
105197         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
105199 2007-03-30  Bruno Haible  <bruno@clisp.org>
105201         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
105202         * lib/poll_.h: Likewise.
105203         * lib/stat_.h: Likewise.
105204         * lib/sys_time_.h: Likewise.
105205         * lib/sysexit_.h: Likewise.
105206         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
105207         * lib/stdbool_.h: Likewise.
105208         * lib/byteswap_.h: Add double-inclusion guard.
105210 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
105212         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
105214 2007-03-30  Karl Berry  <karl@gnu.org>
105216         * config/srclist-update: double space after USA in the license
105217         substitution, since that's how it's usually (?) written.
105219 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
105221         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
105222         reported by Bruno Haible.
105224 2007-03-29  Bruno Haible  <bruno@clisp.org>
105226         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
105227         a bug in AIX iconv().
105229 2007-03-29  Bruno Haible  <bruno@clisp.org>
105231         * modules/ldexpl-tests: New file.
105232         * tests/test-ldexpl.c: New file.
105234 2007-03-29  Bruno Haible  <bruno@clisp.org>
105236         * lib/ldexpl.c: Include fpucw.h.
105237         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
105238         multiplication.
105239         * modules/ldexpl (Depends-on): Add fpucw.
105241 2007-03-29  Bruno Haible  <bruno@clisp.org>
105243         * modules/ldexpl: New file.
105244         * m4/ldexpl.m4: New file.
105245         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
105246         set.
105247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
105248         REPLACE_LDEXPL.
105249         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
105250         REPLACE_LDEXPL.
105251         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105252         gl_FUNC_LDEXPL_WORKS.
105253         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
105254         * modules/mathl (Files): Remove lib/ldexpl.c.
105255         (Depends-on): Add ldexpl.
105257 2007-03-29  Bruno Haible  <bruno@clisp.org>
105259         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
105261 2007-03-29  Bruno Haible  <bruno@clisp.org>
105263         * tests/test-striconveh.c (main): Don't assume that a direct conversion
105264         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
105265         and possibly also HP-UX.
105266         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105267         work on AIX, IRIX, HP-UX, OSF/1.
105268         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
105269         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
105270         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
105271         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
105272         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
105273         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
105275 2007-03-29  Bruno Haible  <bruno@clisp.org>
105277         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
105279 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105281         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
105282         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
105284 2007-03-29  Eric Blake  <ebb9@byu.net>
105286         * lib/acl-internal.h: Remove redundant include.
105287         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
105288         Cygwin when a file is locked.
105290 2007-03-29  Bruno Haible  <bruno@clisp.org>
105292         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
105293         file.
105294         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
105296 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105298         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
105299         try to remove a parent directory if the child couldn't be removed
105300         (except for the first rmdir, which could fail because the child
105301         doesn't exist).  Problem reported by Jeff Blaine in
105302         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
105304 2007-03-28  Bruno Haible  <bruno@clisp.org>
105306         * lib/striconveh.c (utf8conv_carefully): New function.
105307         (mem_cd_iconveh_internal): Invoke it.
105309 2007-03-28  Bruno Haible  <bruno@clisp.org>
105311         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
105312         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
105313         input.
105314         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
105315         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
105316         unistr/u8-uctomb.
105318 2007-03-28  Bruno Haible  <bruno@clisp.org>
105320         * modules/unistr/u8-mbtoucr: New file.
105321         * lib/unistr/u8-mbtoucr.c: New file.
105322         * modules/unistr/u16-mbtoucr: New file.
105323         * lib/unistr/u16-mbtoucr.c: New file.
105324         * modules/unistr/u16-mbtoucr: New file.
105325         * lib/unistr/u16-mbtoucr.c: New file.
105326         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
105328 2007-03-27  Simon Josefsson  <simon@josefsson.org>
105329             Bruno Haible  <bruno@clisp.org>
105331         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
105332         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
105333         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
105335         * m4/stdio_h.m4: Add stubs for vasprintf too.
105337         * modules/stdio: Support vasprintf in sed command.
105339         * modules/vasprintf: Depend on stdio for prototypes.  Remove
105340         vasprintf.h.  Add stdio module indicator.
105342         * lib/stdio_.h: Declare asprintf and vasprintf, based on
105343         vasprintf.h.
105345         * lib/vasprintf.h: File removed.
105347         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
105348         * lib/vasprintf.c: Ditto.
105349         * lib/xvasprintf.c: Ditto.
105350         * tests/test-vasprintf-posix.c: Ditto.
105351         * tests/test-vasprintf.c: Ditto.
105353 2007-03-27  Bruno Haible  <bruno@clisp.org>
105355         Make vasnprintf multithread-safe.
105356         * lib/vasnprintf.c (decimal_point_char): New function.
105357         (VASNPRINTF): Use it.
105358         Suggested by Simon Josefsson.
105360 2007-03-27  Eric Blake  <ebb9@byu.net>
105362         Support sub-second birthtime on cygwin.
105363         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
105364         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
105365         (get_stat_birthtime): Also work with st_birthtim.
105367 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
105369         * lib/stat-time.h (USE_BIRTHTIME): Remove.
105370         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
105371         (get_stat_birthtime_ns): Do not try to use "spare" fields.
105372         (get_stat_birthtime_ns): Simplify compile-time tests.
105373         (get_stat_birthtime): Change the API to look like
105374         get_stat_mtime etc., except return a negative tv_nsec on error.
105375         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
105376         Don't check for "spare" fields.
105377         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
105378         or for struct stat.st_birthtime, as these tests aren't used.
105379         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
105381 2007-03-27  Bruno Haible  <bruno@clisp.org>
105383         * lib/stat-time.h: Include <sys/stat.h>.
105385 2007-03-27  James Youngman  <jay@gnu.org>
105387         * lib/stat-time.h (get_stat_birthtime): New function for
105388           retrieving st_birthtime as provided by UFS2 (hence *BSD).
105389         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
105390           and its variants.
105391         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
105392         * modules/stat-time-test: New file.
105393         * tests/test-stat-time.c: New test, devised by Bruno Haible.
105395 2007-03-26  Bruno Haible  <bruno@clisp.org>
105397         Better support of signalling NaNs.
105398         * lib/atanl.c: Include isnanl.h.
105399         (atanl): Perform test for NaN at the beginning of the function and
105400         through a call to isnanl.
105401         * lib/cosl.c: Include isnanl.h.
105402         (cosl): Perform test for NaN at the beginning of the function and
105403         through a call to isnanl.
105404         * lib/ldexpl.c: Include isnanl.h.
105405         (ldexpl): Perform test for NaN through a call to isnanl.
105406         * lib/logl.c: Include isnanl.h.
105407         (logl): Perform test for NaN at the beginning of the function and
105408         through a call to isnanl.
105409         * lib/sinl.c: Include isnanl.h.
105410         (sinl): Perform test for NaN at the beginning of the function and
105411         through a call to isnanl.
105412         * lib/sqrtl.c: Include isnanl.h.
105413         (sqrtl): Perform test for NaN at the beginning of the function and
105414         through a call to isnanl.
105415         * lib/tanl.c: Include isnanl.h.
105416         (tanl): Perform test for NaN at the beginning of the function and
105417         through a call to isnanl.
105418         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
105419         * modules/mathl (Depends-on): Add isnanl.
105421 2007-03-26  Eric Blake  <ebb9@byu.net>
105423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
105424         regression in logic sense of previous patch.
105426 2007-03-26  Bruno Haible  <bruno@clisp.org>
105428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
105429         unportable shell command "if ! ...".
105430         Reported by Ralf Wildenhues.
105432 2007-03-25  Bruno Haible  <bruno@clisp.org>
105434         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
105435         <sysexits.h> file, and only add EX_CONFIG.
105436         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
105437         absolute file name and whether it is sufficient. Substitute also
105438         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
105439         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
105440         ABSOLUTE_SYSEXITS_H into sysexits.h.
105442 2007-03-25  Bruno Haible  <bruno@clisp.org>
105444         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
105445         hints is NULL.
105447 2007-03-25  Bruno Haible  <bruno@clisp.org>
105449         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
105450         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
105452 2007-03-25  Bruno Haible  <bruno@clisp.org>
105454         * lib/vasnprintf.c: Include langinfo.h.
105455         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
105456         multithread-safe.
105457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
105458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
105459         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105460         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105461         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105462         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105463         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105464         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
105465         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105466         Reported by Simon Josefsson.
105468 2007-03-25  Bruno Haible  <bruno@clisp.org>
105470         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
105471         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
105472         * modules/vasnprintf (Depends-on): Add stdint.
105474 2007-03-25  Bruno Haible  <bruno@clisp.org>
105476         * modules/fpieee: New file.
105477         * m4/fpieee.m4: New file.
105478         * modules/isnan-nolibm (Depends-on): Add fpieee.
105479         * modules/isnanl-nolibm (Depends-on): Add fpieee.
105480         * modules/isnanl (Depends-on): Add fpieee.
105482 2007-03-25  Bruno Haible  <bruno@clisp.org>
105484         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
105486 2007-03-25  Bruno Haible  <bruno@clisp.org>
105488         Avoid test failures on IRIX 6.5.
105489         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
105490         (main): Use it.
105491         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
105492         macros.
105493         (main): Use them.
105495 2007-03-25  Bruno Haible  <bruno@clisp.org>
105497         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
105498         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
105499         exists but doesn't work.
105500         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
105501         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
105502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
105503         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
105504         math.h.
105506 2007-03-25  Bruno Haible  <bruno@clisp.org>
105508         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
105509         returns inf. Needed on IRIX 6.5.
105511 2007-03-25  Bruno Haible  <bruno@clisp.org>
105513         * tests/test-frexpl.c: Include isnanl-nolibm.h.
105514         (main): Use isnanl instead of x != x idiom.
105515         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
105517         * tests/test-frexp.c: Include isnan.h.
105518         (main): Use isnan instead of x != x idiom.
105519         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
105521 2007-03-25  Bruno Haible  <bruno@clisp.org>
105523         * tests/test-frexp.c (NaN): New function/macro.
105524         (main): Use it instead of 0.0 / 0.0.
105525         * tests/test-isnan.c (NaN): New function/macro.
105526         (main): Use it instead of 0.0 / 0.0.
105527         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
105528         (test_function): Use it instead of 0.0 / 0.0.
105529         * tests/test-vasprintf-posix.c (NaN): New function/macro.
105530         (test_function): Use it instead of 0.0 / 0.0.
105531         * tests/test-snprintf-posix.h (NaN): New function/macro.
105532         (test_function): Use it instead of 0.0 / 0.0.
105533         * tests/test-sprintf-posix.h (NaN): New function/macro.
105534         (test_function): Use it instead of 0.0 / 0.0.
105535         * tests/test-fprintf-posix.h (NaN): New function/macro.
105536         (test_function): Use it instead of 0.0 / 0.0.
105537         * tests/test-printf-posix.h (NaN): New function/macro.
105538         (test_function): Use it instead of 0.0 / 0.0.
105540         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
105542 2007-03-25  Bruno Haible  <bruno@clisp.org>
105544         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
105546 2007-03-25  Bruno Haible  <bruno@clisp.org>
105548         * lib/regexec.c (merge_state_with_log): Make static.
105550 2007-03-25  Bruno Haible  <bruno@clisp.org>
105552         * lib/trigl.c (kernel_rem_pio2): Make static.
105554 2007-03-25  Bruno Haible  <bruno@clisp.org>
105556         * lib/sincosl.c (sincosl_table): Make static.
105558 2007-03-25  Bruno Haible  <bruno@clisp.org>
105560         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
105561         if the compiler does not support C99.
105563 2007-03-25  Bruno Haible  <bruno@clisp.org>
105565         * modules/time (Makefile.am): Ensure all rule action lines start with a
105566         tab.
105568 2007-03-24  Bruno Haible  <bruno@clisp.org>
105570         * modules/tsearch-tests: New file.
105571         * tests/test-tsearch.sh: New file.
105572         * tests/test-tsearch.c: New file, mostly copied from glibc.
105574         * modules/search-tests: New file.
105575         * tests/test-search.c: New file.
105577         * modules/search: New file.
105578         * lib/search_.h: New file, incorporating lib/tsearch.h.
105579         * m4/search_h.m4: New file.
105580         * lib/tsearch.h: Remove file.
105581         * lib/tsearch.c: Include search.h instead of tsearch.h.
105582         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
105583         HAVE_TSEARCH.
105584         * modules/tsearch (Files): Remove lib/tsearch.h.
105585         (Depends-on): Add search.
105586         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
105587         (Include): Change tsearch.h into search.h.
105589 2007-03-24  Bruno Haible  <bruno@clisp.org>
105591         * modules/fpucw: New file.
105592         * lib/fpucw.h: New file.
105593         * lib/frexp.c: Include fpucw.h.
105594         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105595         (FUNC): Use them.
105596         * lib/printf-frexp.c: Include fpucw.h.
105597         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105598         (FUNC): Use them.
105599         * lib/vasnprintf.c: Include fpucw.h.
105600         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
105601         'long double' calculations.
105602         * tests/test-frexpl.c: Include fpucw.h.
105603         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105604         * tests/test-printf-frexpl.c: Include fpucw.h.
105605         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105606         * modules/frexpl (Depends-on): Add fpucw.
105607         * modules/printf-frexpl (Depends-on): Likewise.
105608         * modules/fprintf-posix (Depends-on): Likewise.
105609         * modules/snprintf-posix (Depends-on): Likewise.
105610         * modules/sprintf-posix (Depends-on): Likewise.
105611         * modules/vasnprintf-posix (Depends-on): Likewise.
105612         * modules/vasprintf-posix (Depends-on): Likewise.
105613         * modules/vfprintf-posix (Depends-on): Likewise.
105614         * modules/vsnprintf-posix (Depends-on): Likewise.
105615         * modules/vsprintf-posix (Depends-on): Likewise.
105616         * modules/frexpl-tests (Depends-on): Likewise.
105617         * modules/printf-frexpl-tests (Depends-on): Likewise.
105619 2007-03-24  Bruno Haible  <bruno@clisp.org>
105621         * lib/float+.h: New file.
105622         * lib/isnan.c: Include float+.h.
105623         (SIZE): New macro.
105624         (FUNC): Compare only SIZE bytes of the value.
105625         * lib/vasnprintf.c: Include float+.h.
105626         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
105627         SIZEOF_LDBL or SIZEOF_DBL bytes.
105628         * modules/isnan-nolibm (Files): Add lib/float+.h.
105629         * modules/isnanl-nolibm (Files): Add lib/float+.h.
105630         * modules/isnanl (Files): Add lib/float+.h.
105631         * modules/vasnprintf (Files): Add lib/float+.h.
105633 2007-03-24  Bruno Haible  <bruno@clisp.org>
105635         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
105636         include isnanl-nolibm.h.
105638 2007-03-24  Bruno Haible  <bruno@clisp.org>
105640         * tests/test-read-file.c (main): Don't produce spurious output for
105641         expected situations. Make the test fail if it encountered unexpected
105642         results.
105644 2007-03-24  Bruno Haible  <bruno@clisp.org>
105646         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
105647         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
105649 2007-03-24  Bruno Haible  <bruno@clisp.org>
105651         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
105653 2007-03-24  Bruno Haible  <bruno@clisp.org>
105655         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
105656         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
105658         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
105659         * modules/utf8-ucs4: Turn into a symbolic link to module
105660         unistr/u8-mbtouc.
105662         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
105663         utf8-ucs4-unsafe.
105664         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
105665         unistr/u8-mbtouc-unsafe.
105667         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
105668         * modules/utf16-ucs4: Turn into a symbolic link to module
105669         unistr/u16-mbtouc.
105671         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
105672         utf16-ucs4-unsafe.
105673         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
105674         unistr/u16-mbtouc-unsafe.
105676         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
105677         * modules/ucs4-utf8: Turn into a symbolic link to module
105678         unistr/u8-ubtomb.
105680         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
105681         * modules/ucs4-utf16: Turn into a symbolic link to module
105682         unistr/u16-ubtomb.
105684 2007-03-24  Bruno Haible  <bruno@clisp.org>
105686         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
105687         Enable the function only if HAVE_INLINE.
105688         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
105689         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105690         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
105691         Enable the function only if HAVE_INLINE.
105692         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
105693         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105694         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
105695         Enable the function only if HAVE_INLINE.
105696         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
105697         Enable the function only if HAVE_INLINE.
105698         * modules/utf8-ucs4: Update.
105699         * modules/utf8-ucs4-unsafe: Update.
105700         * modules/utf16-ucs4: Update.
105701         * modules/utf16-ucs4-unsafe: Update.
105702         * modules/ucs4-utf8: Update.
105703         * modules/ucs4-utf16: Update.
105705 2007-03-24  Bruno Haible  <bruno@clisp.org>
105707         * lib/utf8-ucs4.h: Remove file.
105708         * lib/utf8-ucs4-unsafe.h: Remove file.
105709         * lib/utf16-ucs4.h: Remove file.
105710         * lib/utf16-ucs4-unsafe.h: Remove file.
105711         * lib/ucs4-utf8.h: Remove file.
105712         * lib/ucs4-utf16.h: Remove file.
105713         * lib/unistr.h: Include their previous contents.
105714         * m4/utf-ucs4.m4: Remove file.
105715         * m4/ucs4-utf.m4: Remove file.
105716         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
105717         (Depends-on): Add unistr/base.
105718         (configure.ac): Remove gl_UTF_UCS4.
105719         (Makefile.am): Update.
105720         (Include): Change to unistr.h.
105721         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
105722         (Depends-on): Add unistr/base.
105723         (configure.ac): Remove gl_UTF_UCS4.
105724         (Makefile.am): Update.
105725         (Include): Change to unistr.h.
105726         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
105727         (Depends-on): Add unistr/base.
105728         (configure.ac): Remove gl_UTF_UCS4.
105729         (Makefile.am): Update.
105730         (Include): Change to unistr.h.
105731         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
105732         (Depends-on): Add unistr/base.
105733         (configure.ac): Remove gl_UTF_UCS4.
105734         (Makefile.am): Update.
105735         (Include): Change to unistr.h.
105736         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
105737         (Depends-on): Add unistr/base.
105738         (configure.ac): Remove gl_UCS4_UTF.
105739         (Makefile.am): Update.
105740         (Include): Change to unistr.h.
105741         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
105742         (Depends-on): Add unistr/base.
105743         (configure.ac): Remove gl_UCS4_UTF.
105744         (Makefile.am): Update.
105745         (Include): Change to unistr.h.
105746         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
105747         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
105748         utf8-ucs4-unsafe.h.
105749         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
105750         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
105751         utf16-ucs4-unsafe.h.
105752         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
105753         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
105754         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
105755         * lib/unistr/u8-strchr.c: Likewise.
105756         * lib/unistr/u8-strrchr.c: Likewise.
105757         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
105758         * lib/unistr/u16-strchr.c: Likewise.
105759         * lib/unistr/u16-strrchr.c: Likewise.
105760         * lib/striconveh.c: Update.
105761         * lib/linebreak.c: Update.
105763 2007-03-24  Bruno Haible  <bruno@clisp.org>
105765         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
105766         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
105768 2007-03-22  Bruno Haible  <bruno@clisp.org>
105770         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
105772 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
105774         * MODULES.html.sh (File system functions): New module write-any-file.
105775         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
105776         * m4/write-any-file.m4: New files.
105778 2007-03-23  Eric Blake  <ebb9@byu.net>
105780         * gnulib-tool: Rearrange space-tab sequences, since some editors
105781         like to eat them.
105783 2007-03-23  Eric Blake  <ebb9@byu.net>
105785         * lib/version-etc.c (version_etc_va): Update license wording to
105786         be more concise.  Recommended by Richard Stallman.
105788 2007-03-22  Bruno Haible  <bruno@clisp.org>
105790         * lib/poll.c (MSG_PEEK): New fallback definition.
105792 2007-03-22  Bruno Haible  <bruno@clisp.org>
105794         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
105795         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
105796         (main): Update.
105797         Fixes a compilation error on BeOS.
105799 2007-03-22  Bruno Haible  <bruno@clisp.org>
105801         * modules/frexpl-tests: New file.
105802         * tests/test-frexpl.c: New file.
105804         * modules/frexpl: New file.
105805         * m4/frexpl.m4: New file.
105806         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
105807         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
105808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
105809         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
105810         (Depends-on): Add frexpl. Remove isnanl-nolibm.
105811         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
105813 2007-03-22  Bruno Haible  <bruno@clisp.org>
105815         * lib/frexpl.c: Share code with lib/frexp.c.
105816         * modules/mathl (Files): Add lib/frexp.c.
105817         (Depends-on): Add isnanl-nolibm.
105819 2007-03-22  Bruno Haible  <bruno@clisp.org>
105821         * modules/printf-frexp (Files): Add m4/frexp.m4.
105822         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
105823         only if the found frexp function actually works.
105825 2007-03-22  Bruno Haible  <bruno@clisp.org>
105827         * lib/frexp.c: Remove older implementation that uses divisions.
105829 2007-03-21  Bruno Haible  <bruno@clisp.org>
105831         * modules/frexp-tests: New file.
105832         * tests/test-frexp.c: New file.
105834         * modules/frexp: New file.
105835         * lib/frexp.c: New file.
105836         * m4/frexp.m4: New file.
105837         * lib/math_.h (frexp): New declaration.
105838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
105839         REPLACE_FREXP.
105840         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
105842 2007-03-21  Bruno Haible  <bruno@clisp.org>
105844         * modules/isnanl-tests: New file.
105845         * tests/test-isnanl.c: New file.
105847         * modules/isnanl: New file.
105848         * lib/isnanl.h: New file.
105849         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
105850         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
105851         gl_FUNC_ISNANL_WORKS.
105852         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
105853         New macros.
105855 2007-03-21  Bruno Haible  <bruno@clisp.org>
105857         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
105858         lib/isnanl.h.
105859         (Include): Update.
105860         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
105861         * lib/vasnprintf.c: Update.
105862         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
105863         tests/test-isnanl.h, remove tests/test-isnanl.c.
105864         (Makefile.am): Update.
105865         * tests/test-isnanl-nolibm.c: New file.
105866         * tests/test-isnanl.h: New file.
105867         * tests/test-isnanl.c: Remove file.
105869 2007-03-21  Jim Meyering  <jim@meyering.net>
105871         When trying to open ".", treat ESTALE like EACCES.
105872         * lib/savewd.c (savewd_save): Resort to forking not just upon
105873         failure with EACCES, but also when errno is ESTALE.
105875 2007-03-20  Bruno Haible  <bruno@clisp.org>
105877         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
105878         Needed on AIX 5.1. Reported by Matthew Woehlke.
105880 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105882         Suggestions by Bruno Haible:
105883         * lib/acl-internal.h: Include "gettext.h" rather than rolling
105884         our own.
105885         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
105886         * modules/acl (Depends-on): Add gettext.
105888 2007-03-19  Bruno Haible  <bruno@clisp.org>
105890         * modules/iconvme: Remove file.
105891         * lib/iconvme.h: Remove file.
105892         * lib/iconvme.c: Remove file.
105893         * m4/iconvme.m4: Remove file.
105895 2007-03-19  Bruno Haible  <bruno@clisp.org>
105897         * doc/relocatable-maint.texi: Break long shell script line.
105898         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105900 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105902         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
105903         handle file_has_acl.
105904         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
105905         * lib/acl.c: Move header inclusions and related macro defns into
105906         lib/acl-internal.h.
105907         (S_ISLNK): Remove defn, since that's now done for us.
105908         (file_has_acl): Move to lib/file-has-acl.c.
105909         Call acl_trivial if available.  This is the crucial part of the fix.
105910         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
105911         shared within the library.  Rewrite a bit, partly to make it compatible
105912         with the GNU coding style.
105913         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
105914         Remove unnecessary double-quotes.
105915         Don't test for acl_to_text; the build will catch that.
105916         Replace acl_entries if it doesn't exist and it is needed.
105917         Check for -lsec and acl_trivial (as used on Solaris 10).
105918         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
105919         lib/file-has-acl.c.
105920         (Depends-on): Add sys_stat, for S_ISLNK.
105922 2007-03-19  Ben Pfaff  <blp@gnu.org>
105924         * doc/gnulib.texi: Fix typos.
105925         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105927 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105929         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
105930         If size is zero here, buf must be zero.
105932 2007-03-19  Simon Josefsson  <simon@josefsson.org>
105934         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
105935         <bruno@clisp.org>.
105937 2007-03-18  Bruno Haible  <bruno@clisp.org>
105939         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
105940         Suggested by Eric Blake.
105942 2007-03-18  Ben Pfaff  <blp@gnu.org>
105944         * doc/relocatable.texi: Recommend using as prefix a directory
105945         that does not exist and will never be created.  Based on
105946         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
105947         and others.
105949 2007-03-17  Bruno Haible  <bruno@clisp.org>
105951         * lib/fchownat.c: Include lchown.h.
105953 2007-03-17  Bruno Haible  <bruno@clisp.org>
105955         Fix endless loop when the given allocated size was > INT_MAX.
105956         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
105957         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
105958         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
105959         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
105960         * lib/sprintf.c (sprintf): Likewise.
105962 2007-03-17  Bruno Haible  <bruno@clisp.org>
105964         * tests/test-argp-2.sh (func_compare): Output a context diff.
105966 2007-03-17  Bruno Haible  <bruno@clisp.org>
105968         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
105969         locale's decimal-point character.
105971 2007-03-17  Bruno Haible  <bruno@clisp.org>
105973         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
105974         before comparing it. Needed because on some platforms (e.g. x86) a
105975         'long double' occupies less bytes than sizeof (long double).
105977 2007-03-17  Bruno Haible  <bruno@clisp.org>
105979         * tests/test-crc.c (main): Make printf statements 64-bit clean.
105980         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
105981         * tests/test-getaddrinfo.c (simple): Likewise.
105982         * tests/test-read-file.c (main): Likewise.
105984 2007-03-17  Bruno Haible  <bruno@clisp.org>
105986         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
105988 2007-03-17  Bruno Haible  <bruno@clisp.org>
105990         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
105991         unused variable.
105993 2007-03-17  Bruno Haible  <bruno@clisp.org>
105995         * tests/test-c-strcasecmp.c: Include c-strcase.h.
105996         * tests/test-c-strncasecmp.c: Likewise.
105998 2007-03-17  Bruno Haible  <bruno@clisp.org>
106000         * modules/stdlib (Depends-on): Add unistd.
106001         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
106002         Needed for MacOS X 10.3.
106004 2007-03-17  Bruno Haible  <bruno@clisp.org>
106006         * lib/unistr/u-strdup.h: Include <stdlib.h>.
106008 2007-03-17  Bruno Haible  <bruno@clisp.org>
106010         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
106012 2007-03-17  Bruno Haible  <bruno@clisp.org>
106014         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
106015         to reflect files copied from gnulib (with or without modifications).
106016         Suggested by Jim Meyering.
106018 2007-03-17  Eric Blake  <ebb9@byu.net>
106020         * NEWS: Document stdlib change from 2007-02-18.
106022 2007-03-17  Jim Meyering  <jim@meyering.net>
106024         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
106025         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
106026         someone uses a name containing shell meta-characters.
106027         Reported by Alfred M. Szmidt.
106029         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
106031 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106033         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
106034         and copy gettext configuration files only if configure.ac contains
106035         a use of AM_GNU_GETTEXT_VERSION.
106037 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106039         * build-aux/bootstrap (gnulib_name): New variable.
106040         (gnulib_tool_options): Use it.
106042 2007-03-13  Simon Josefsson  <simon@josefsson.org>
106044         * tests/test-des.c: Use new namespace.
106046 2007-03-15  Bruno Haible  <bruno@clisp.org>
106048         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
106049         Reported by James Youngman <jay@gnu.org>.
106051 2007-03-15  Bruno Haible  <bruno@clisp.org>
106053         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
106054         declared prototype. Needed with cc on OSF/1 5.1.
106056 2007-03-15  Bruno Haible  <bruno@clisp.org>
106058         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
106059         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
106060         (struct gl_list_implementation): Add dispose_fn argument to the
106061         'create_empty', 'create' methods.
106062         (struct gl_list_impl_base): Add field 'dispose_fn'.
106063         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
106064         argument.
106065         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
106066         dispose_fn argument.
106067         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
106068         dispose_fn on the dropped values.
106069         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
106070         dispose_fn argument.
106071         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
106072         dropped values.
106073         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
106074         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106075         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
106076         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106077         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
106078         argument.
106079         (gl_tree_list_free): Call dispose_fn on the dropped values.
106080         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
106081         the dropped values.
106082         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
106083         Add dispose_fn argument.
106084         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
106085         Call dispose_fn on the dropped values.
106086         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
106087         Add dispose_fn argument.
106088         (gl_sublist_create): Initialize the 'dispose_fn' field.
106089         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
106090         * tests/test-array_list.c (main): Update.
106091         * tests/test-carray_list.c (main): Update.
106092         * tests/test-avltree_list.c (main): Update.
106093         * tests/test-rbtree_list.c (main): Update.
106094         * tests/test-avltreehash_list.c (main): Update.
106095         * tests/test-rbtreehash_list.c (main): Update.
106096         * tests/test-linked_list.c (main): Update.
106097         * tests/test-linkedhash_list.c (main): Update.
106098         * tests/test-array_oset.c (main): Update.
106100 2007-03-15  Bruno Haible  <bruno@clisp.org>
106102         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
106103         (gl_oset_create_empty): Add dispose_fn argument.
106104         (struct gl_oset_implementation): Add dispose_fn argument to
106105         'create_empty' method.
106106         (struct gl_oset_impl_base): Add dispose_fn field.
106107         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
106108         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
106109         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
106110         values.
106111         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
106112         (gl_tree_oset_free): Call dispose_fn on the dropped values.
106113         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106114         dropped value.
106115         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106116         dropped value.
106117         * tests/test-array_oset.c (main): Update.
106118         * tests/test-avltree_oset.c (main): Update.
106119         * tests/test-rbtree_oset.c (main): Update.
106120         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
106122 2007-03-13  Bruno Haible  <bruno@clisp.org>
106124         * tests/test-stdbool.c (i): Update after last patch.
106126 2007-03-12  Bruno Haible  <bruno@clisp.org>
106128         * lib/quotearg.c: Include <wctype.h> early, before the definition of
106129         the iswprint macro. Needed on Solaris 2.5.1.
106131 2007-03-12  Bruno Haible  <bruno@clisp.org>
106133         * tests/test-printf-frexp.c (main): Declare x as volatile.
106135 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106137         * doc/gnulib.texi (Build robot for gnulib): New section.
106139 2007-03-12  Jim Meyering  <jim@meyering.net>
106141         * build-aux/bootstrap: New file.
106142         * build-aux/bootstrap.conf: New file, from coreutils.
106144 2007-03-11  Bruno Haible  <bruno@clisp.org>
106146         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
106148 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106150         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
106151         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
106152         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
106154 2007-03-11  Bruno Haible  <bruno@clisp.org>
106156         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
106157         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
106159 2007-03-11  Bruno Haible  <bruno@clisp.org>
106161         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
106162         formula. Needed for SunPRO C 5.0.
106164 2007-03-11  Bruno Haible  <bruno@clisp.org>
106166         * modules/long-options (Depends-on): Add getopt.
106168 2007-03-11  Bruno Haible  <bruno@clisp.org>
106170         * modules/modechange (Depends-on): Add stdbool.
106172 2007-03-11  Bruno Haible  <bruno@clisp.org>
106174         * modules/i-ring (Depends-on): Add stdbool.
106176 2007-03-11  Bruno Haible  <bruno@clisp.org>
106178         * modules/gc-des (Depends-on): Add stdbool.
106180 2007-03-11  Bruno Haible  <bruno@clisp.org>
106182         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
106184 2007-03-11  Bruno Haible  <bruno@clisp.org>
106186         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
106188 2007-03-11  Bruno Haible  <bruno@clisp.org>
106190         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
106192 2007-03-11  Bruno Haible  <bruno@clisp.org>
106194         * lib/vasnprintf.c (sprintf): Undefine.
106196 2007-03-11  Bruno Haible  <bruno@clisp.org>
106198         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
106199         initializers in SunPRO C and Compaq C compilers.
106201 2007-03-11  Bruno Haible  <bruno@clisp.org>
106203         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
106204         decrementing code ANSI C compliant.
106206 2007-03-11  Bruno Haible  <bruno@clisp.org>
106208         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
106209         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
106211 2007-03-11  Bruno Haible  <bruno@clisp.org>
106213         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
106214         <stdbool.h> substitute doesn't pass.
106216 2007-03-11  Bruno Haible  <bruno@clisp.org>
106218         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
106220 2007-03-11  Bruno Haible  <bruno@clisp.org>
106222         * gnulib-tool (func_create_megatestdir): Create also an autobuild
106223         script, for submission to autobuild.josefsson.org.
106225 2007-03-10  Bruno Haible  <bruno@clisp.org>
106227         * modules/canonicalize-lgpl-tests: New file.
106228         * tests/test-canonicalize-lgpl.sh: New file.
106229         * tests/test-canonicalize-lgpl.c: New file.
106231         * modules/c-strcase-tests: New file.
106232         * tests/test-c-strcase.sh: New file.
106233         * tests/test-c-strcasecmp.c: New file.
106234         * tests/test-c-strncasecmp.c: New file.
106236         * modules/atexit-tests: New file.
106237         * tests/test-atexit.sh: New file.
106238         * tests/test-atexit.c: New file.
106240 2007-03-10  Bruno Haible  <bruno@clisp.org>
106242         * tests/test-binary-io.sh: Use temporary filenames that are not so
106243         likely to clash with those of other tests (in a parallel make).
106244         * tests/test-binary-io.c: Likewise.
106246 2007-03-10  Bruno Haible  <bruno@clisp.org>
106248         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
106249         fallback; use #error instead.
106250         Suggested by Simon Josefsson.
106252 2007-03-10  Bruno Haible  <bruno@clisp.org>
106254         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
106255         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
106256         first and the last.
106258 2007-03-10  Bruno Haible  <bruno@clisp.org>
106260         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
106262 2007-03-10  Bruno Haible  <bruno@clisp.org>
106264         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
106265         "make distcheck".
106266         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
106267         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
106268         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
106270 2007-03-10  Bruno Haible  <bruno@clisp.org>
106272         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
106273         variable.
106274         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
106275         variable.
106277 2007-03-09  Eric Blake  <ebb9@byu.net>
106278         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
106280         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
106281         types are not being provided by gnulib.
106282         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
106283         types are supported.
106285 2007-03-10  Bruno Haible  <bruno@clisp.org>
106287         * lib/stdio_.h (__attribute__): New macro.
106288         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
106289         vsprintf): Specify __attribute__ __format__ for GCC.
106290         Suggested by Eric Blake.
106292 2007-03-09  Bruno Haible  <bruno@clisp.org>
106294         * modules/printf-posix-tests: New file.
106295         * tests/test-printf-posix.sh: New file.
106296         * tests/test-printf-posix.c: New file.
106298         * modules/printf-posix: New file.
106299         * lib/printf.c: New file.
106300         * m4/printf-posix-rpl.m4: New file.
106301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
106302         REPLACE_PRINTF.
106303         * lib/stdio_.h (printf): New declaration.
106304         (format, __format__, ____printf____, ____scanf____, ____strftime____,
106305         ____strfmon____): New macros.
106306         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
106307         REPLACE_PRINTF.
106309 2007-03-09  Bruno Haible  <bruno@clisp.org>
106311         * tests/test-vasnprintf-posix2.sh: New file.
106312         * tests/test-vasnprintf-posix2.c: New file.
106313         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
106314         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
106315         (Makefile.am): Activate test-vasnprintf-posix2.sh.
106317         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
106318         a locale dependent decimal point, rather than always '.'.
106320 2007-03-09  Eric Blake  <ebb9@byu.net>
106322         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
106323         spite of platforms like Tandem/NSK that define it to -1.
106325 2007-03-08  Bruno Haible  <bruno@clisp.org>
106327         * modules/vprintf-posix-tests: New file.
106328         * tests/test-vprintf-posix.sh: New file.
106329         * tests/test-vprintf-posix.c: New file.
106330         * tests/test-printf-posix.h: New file.
106332         * modules/vprintf-posix: New file.
106333         * lib/vprintf.c: New file.
106334         * m4/vprintf-posix.m4: New file.
106335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
106336         REPLACE_VPRINTF.
106337         * lib/stdio_.h (vprintf): New declaration.
106338         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
106339         REPLACE_VPRINTF.
106341 2007-03-08  Bruno Haible  <bruno@clisp.org>
106343         * modules/fprintf-posix-tests: New file.
106344         * tests/test-fprintf-posix.sh: New file.
106345         * tests/test-fprintf-posix.c: New file.
106347         * modules/fprintf-posix: New file.
106348         * lib/fprintf.c: New file.
106349         * m4/fprintf-posix.m4: New file.
106350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
106351         REPLACE_FPRINTF.
106352         * lib/stdio_.h (fprintf): New declaration.
106353         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
106354         REPLACE_FPRINTF.
106356 2007-03-08  Bruno Haible  <bruno@clisp.org>
106358         * modules/vfprintf-posix-tests: New file.
106359         * tests/test-vfprintf-posix.sh: New file.
106360         * tests/test-vfprintf-posix.c: New file.
106361         * tests/test-fprintf-posix.h: New file.
106362         * tests/test-fprintf-posix.out: New file.
106364         * modules/vfprintf-posix: New file.
106365         * lib/vfprintf.c: New file.
106366         * m4/vfprintf-posix.m4: New file.
106367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
106368         REPLACE_VFPRINTF.
106369         * lib/stdio_.h (vfprintf): New declaration.
106370         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
106371         REPLACE_VFPRINTF.
106373 2007-03-08  Bruno Haible  <bruno@clisp.org>
106375         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
106377 2007-03-08  Bruno Haible  <bruno@clisp.org>
106379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
106380         instead of 'expr' invocations.
106381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106384         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
106385         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106386         Suggested by Paul Eggert.
106388 2007-03-08  Bruno Haible  <bruno@clisp.org>
106390         * modules/fseterr-tests: New file.
106391         * tests/test-fseterr.c: New file.
106393         * modules/fseterr: New file.
106394         * lib/fseterr.h: New file.
106395         * lib/fseterr.c: New file.
106397 2007-03-08  Bruno Haible  <bruno@clisp.org>
106399         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
106400         * lib/getopt_.h: Likewise.
106401         * lib/mbswidth.h: Likewise.
106402         * lib/setenv.h: Likewise.
106403         * lib/vasnprintf.h: Likewise.
106404         * lib/vasprintf.h: Likewise.
106405         * lib/verror.h: Likewise.
106406         * lib/xsetenv.h: Likewise.
106407         * lib/xvasprintf.h: Likewise.
106409 2007-03-08  Jim Meyering  <jim@meyering.net>
106411         * users.txt: Add parted.
106413         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
106415 2007-03-07  Bruno Haible  <bruno@clisp.org>
106417         * m4/printf.m4: Make the shell script snippets copy&pastable.
106419 2007-03-02  Bruno Haible  <bruno@clisp.org>
106421         * lib/netinet_in_.h: New file.
106422         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
106423         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
106424         * modules/netinet_in (Files): Add lib/netinet_in_.h.
106425         (Depends-on): Add absolute-header.
106426         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
106427         into netinet/in.h.
106429 2007-03-03  Bruno Haible  <bruno@clisp.org>
106431         * lib/sys_select_.h: New file.
106432         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
106433         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
106434         * modules/sys_select (Files): Add lib/sys_select_.h.
106435         (Depends-on): Add absolute-header.
106436         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
106437         into sys/select.h.
106439 2007-03-02  Bruno Haible  <bruno@clisp.org>
106441         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
106442         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
106443         values.
106444         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
106445         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
106446         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
106447         * modules/sys_socket (Depends-on): Add absolute-header.
106448         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
106449         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
106450         (Include): Remove requirement of inclusion of <sys/types.h>.
106452 2007-03-02  Bruno Haible  <bruno@clisp.org>
106454         * lib/byteswap_.h (bswap_32): Fix formula.
106456 2007-03-06  Bruno Haible  <bruno@clisp.org>
106458         * modules/sprintf-posix-tests: New file.
106459         * tests/test-sprintf-posix.c: New file.
106461         * modules/sprintf-posix: New file.
106462         * lib/sprintf.c: New file.
106463         * m4/sprintf-posix.m4: New file.
106464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
106465         REPLACE_SPRINTF.
106466         * lib/stdio_.h (sprintf): New declaration.
106467         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
106468         REPLACE_SPRINTF.
106470 2007-03-06  Bruno Haible  <bruno@clisp.org>
106472         * modules/vsprintf-posix-tests: New file.
106473         * tests/test-vsprintf-posix.c: New file.
106474         * tests/test-sprintf-posix.h: New file.
106476         * modules/vsprintf-posix: New file.
106477         * lib/vsprintf.c: New file.
106478         * m4/vsprintf-posix.m4: New file.
106479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
106480         REPLACE_VSPRINTF.
106481         * lib/stdio_.h (vsprintf): New declaration.
106482         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
106483         REPLACE_VSPRINTF.
106485 2007-03-06  Bruno Haible  <bruno@clisp.org>
106487         * modules/vsnprintf (Depend-on): Remove minmax.
106489 2007-03-06  Bruno Haible  <bruno@clisp.org>
106491         * modules/snprintf-posix-tests: New file.
106492         * tests/test-snprintf-posix.c: New file.
106494         * modules/snprintf-posix: New file.
106495         * m4/snprintf-posix.m4: New file.
106496         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
106497         gl_FUNC_SNPRINTF.
106498         (gl_FUNC_SNPRINTF): Invoke it.
106499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
106500         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
106501         is set.
106502         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
106504 2007-03-06  Bruno Haible  <bruno@clisp.org>
106506         * modules/vsnprintf-posix-tests: New file.
106507         * tests/test-vsnprintf-posix.c: New file.
106508         * tests/test-snprintf-posix.h: New file.
106510         * modules/vsnprintf-posix: New file.
106511         * m4/vsnprintf-posix.m4: New file.
106512         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
106513         gl_FUNC_VSNPRINTF.
106514         (gl_FUNC_VSNPRINTF): Invoke it.
106515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
106516         * lib/stdio_.h (vsnprintf): Define as a replacement if
106517         REPLACE_VSNPRINTF is set.
106518         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
106520 2007-03-06  Bruno Haible  <bruno@clisp.org>
106522         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
106523         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
106525 2007-03-06  Bruno Haible  <bruno@clisp.org>
106527         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
106528         (asinl): Declare also if HAVE_DECL_ASINL is set.
106529         (atanl): Declare also if HAVE_DECL_ATANL is set.
106530         (ceill): Declare also if HAVE_DECL_CEILL is set.
106531         (cosl): Declare also if HAVE_DECL_COSL is set.
106532         (expl): Declare also if HAVE_DECL_EXPL is set.
106533         (floorl): Declare also if HAVE_DECL_FLOORL is set.
106534         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
106535         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
106536         (logl): Declare also if HAVE_DECL_LOGL is set.
106537         (sinl): Declare also if HAVE_DECL_SINL is set.
106538         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
106539         (tanl): Declare also if HAVE_DECL_TANL is set.
106540         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
106541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
106542         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
106543         declaration of frexpl, ldexpl.
106544         * modules/printf-frexpl (Depends-on): Add math.
106545         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
106547 2007-03-05  Bruno Haible  <bruno@clisp.org>
106549         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
106550         frexpl and ldexpl are declared.
106551         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
106553 2007-03-05  Bruno Haible  <bruno@clisp.org>
106555         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
106556         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
106558 2007-03-05  Bruno Haible  <bruno@clisp.org>
106560         * lib/stdio_.h: Include <stddef.h>.
106562 2007-03-05  Bruno Haible  <bruno@clisp.org>
106564         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
106566 2007-03-05  Bruno Haible  <bruno@clisp.org>
106568         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
106569         NetBSD 4, from Ralf Wildenhues.
106571 2007-03-04  Bruno Haible  <bruno@clisp.org>
106573         * lib/vasprintf.h: Update #if logic for the case when the functions
106574         exist but are overridden.
106576 2007-03-04  Bruno Haible  <bruno@clisp.org>
106578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
106579         implementations: glibc-2.4 and MacOS X 10.3.
106580         * tests/test-vasnprintf-posix.c (test_function): Test also the case
106581         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
106582         * tests/test-vasprintf-posix.c (test_function): Likewise.
106584 2007-03-04  Bruno Haible  <bruno@clisp.org>
106586         * modules/vasprintf-posix-tests: New file.
106587         * tests/test-vasprintf-posix.c: New file.
106589         * modules/vasprintf-posix: New file.
106590         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
106591         defined.
106592         * m4/vasprintf-posix.m4: New file.
106593         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
106594         gl_FUNC_VASPRINTF.
106595         (gl_FUNC_VASPRINTF): Invoke it.
106596         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
106597         here.
106598         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
106600 2007-03-04  Bruno Haible  <bruno@clisp.org>
106602         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
106603         REPLACE_GETTIMEOFDAY.
106604         * modules/sys_time (Makefile.am): Likewise.
106605         * m4/sys_time_h.m4: Likewise.
106606         * m4/gettimeofday.m4: Likewise.
106608 2007-03-04  Bruno Haible  <bruno@clisp.org>
106610         * modules/vasnprintf-posix-tests: New file.
106611         * tests/test-vasnprintf-posix.c: New file.
106613         * modules/vasnprintf-posix: New file.
106614         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
106615         printf-frexpl.h.
106616         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
106617         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
106618         REPLACE_VASNPRINTF is defined.
106619         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
106620         gl_FUNC_VASNPRINTF.
106621         (gl_FUNC_VASNPRINTF): Invoke it.
106622         * m4/vasnprintf-posix.m4: New file.
106623         * m4/printf.m4: New file.
106625 2007-03-04  Bruno Haible  <bruno@clisp.org>
106627         Compile progreloc.c only if --enable-relocatable is specified.
106628         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
106629         if --enable-relocatable was specified.
106630         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
106631         lib_SOURCES.
106633 2007-03-04  Jim Meyering  <jim@meyering.net>
106635         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
106636         Use it consistently, rather than enumerating errno constants.
106638 2007-03-04  Bruno Haible  <bruno@clisp.org>
106640         * modules/xvasprintf-tests: New file.
106641         * tests/test-xvasprintf.c: New file.
106643         * modules/vasprintf-tests: New file.
106644         * tests/test-vasprintf.c: New file.
106646         * modules/vasnprintf-tests: New file.
106647         * tests/test-vasnprintf.c: New file.
106649         * modules/vsnprintf-tests: New file.
106650         * tests/test-vsnprintf.c: New file.
106652         * modules/snprintf-tests: New file.
106653         * tests/test-snprintf.c: New file.
106655 2007-03-04  Bruno Haible  <bruno@clisp.org>
106657         Compile relocatable.c only if --enable-relocatable is specified.
106658         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
106659         gl_RELOCATABLE_LIBRARY.
106660         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
106661         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
106662         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
106663         gl_RELOCATABLE_LIBRARY.
106664         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
106665         (Makefile.am): Remove lib_SOURCES.
106666         * modules/relocatable-lib-lgpl (configure.ac): Invoke
106667         gl_RELOCATABLE_LIBRARY.
106668         (Makefile.am): Remove lib_SOURCES.
106669         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
106670         always.
106671         * modules/relocatable-prog-wrapper (configure.ac): Invoke
106672         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
106674 2007-03-04  Bruno Haible  <bruno@clisp.org>
106676         * modules/argmatch-tests: New file.
106677         * tests/test-argmatch.c: New file.
106679         * tests/test-allocsa.c (main): Halve the number of loop runs.
106681         * modules/alloca-opt-tests: New file.
106682         * tests/test-alloca-opt.c: New file.
106684 2007-03-04  Jim Meyering  <jim@meyering.net>
106686         Work around difference between Linux ACLs and Solaris 10 ZFS.
106687         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
106688         for EINVAL.
106690 2007-03-03  Bruno Haible  <bruno@clisp.org>
106692         * modules/relocatable-prog (Depends-on): Add back progreloc's
106693         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
106695 2007-03-03  Bruno Haible  <bruno@clisp.org>
106697         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
106698         * modules/relocatable-lib: New file.
106700 2007-03-03  Bruno Haible  <bruno@clisp.org>
106702         * modules/relocatable-prog: Renamed from modules/relocatable.
106703         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
106705 2007-03-03  Bruno Haible  <bruno@clisp.org>
106707         * modules/relocatable-script (Files): Add doc/relocatable.texi,
106708         m4/relocatable-lib.m4.
106709         (Depends-on): Remove 'relocatable'.
106710         (configure.ac): Add gl_RELOCATABLE_NOP.
106712 2007-03-03  Bruno Haible  <bruno@clisp.org>
106714         * modules/relocatable-prog-wrapper: New file.
106715         * modules/relocatable (Depends-on): Add it. Remove all other
106716         dependencies except progname.
106717         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
106719         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
106720         (gl_FUNC_STRERROR): Nop.
106721         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
106723         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
106724         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
106726         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
106727         (gl_FUNC_READLINK): Update.
106729         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
106731 2007-03-03  Bruno Haible  <bruno@clisp.org>
106733         * lib/xreadlink.c: Include <unistd.h> unconditionally.
106734         * modules/xreadlink (Depends-on): Add unistd.
106735         * modules/xreadlink-with-size (Depends-on): Likewise.
106737 2007-03-03  Bruno Haible  <bruno@clisp.org>
106739         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
106740         extracted from gt_FUNC_SETENV.
106741         (gt_FUNC_SETENV): Remove macro.
106742         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
106743         remove gt_FUNC_SETENV.
106745 2007-03-03  Bruno Haible  <bruno@clisp.org>
106747         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
106748         ENABLE_RELOCATABLE here.
106749         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
106751 2007-03-03  Bruno Haible  <bruno@clisp.org>
106753         * modules/rbtreehash-list-tests (Depends-on): Add progname.
106754         * tests/test-rbtreehash_list.c: Include progname.h.
106755         (main): Call set_program_name.
106757         * modules/rbtree-oset-tests (Depends-on): Add progname.
106758         * tests/test-rbtree_oset.c: Include progname.h.
106759         (main): Call set_program_name.
106761         * modules/rbtree-list-tests (Depends-on): Add progname.
106762         * tests/test-rbtree_list.c: Include progname.h.
106763         (main): Call set_program_name.
106765         * modules/linked-list-tests (Depends-on): Add progname.
106766         * tests/test-linked_list.c: Include progname.h.
106767         (main): Call set_program_name.
106769 2007-03-03  Bruno Haible  <bruno@clisp.org>
106771         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
106772         All uses of __restrict changed to _Restrict_.
106773         * lib/glob_.h (__restrict): Remove macro.
106775 2007-03-02  Bruno Haible  <bruno@clisp.org>
106777         * modules/gettext (configure.ac): Require gettext infrastructure
106778         from version 0.16.1.
106780 2007-03-02  Bruno Haible  <bruno@clisp.org>
106782         * modules/linkedhash-list-tests (Depends-on): Add progname.
106783         * tests/test-linkedhash_list.c: Include progname.h.
106784         (main): Call set_program_name.
106786         * modules/carray-list-tests (Depends-on): Add progname.
106787         * tests/test-carray_list.c: Include progname.h.
106788         (main): Call set_program_name.
106790         * modules/avltreehash-list-tests (Depends-on): Add progname.
106791         * tests/test-avltreehash_list.c: Include progname.h.
106792         (main): Call set_program_name.
106794         * modules/avltree-oset-tests (Depends-on): Add progname.
106795         * tests/test-avltree_oset.c: Include progname.h.
106796         (main): Call set_program_name.
106798         * modules/avltree-list-tests (Depends-on): Add progname.
106799         * tests/test-avltree_list.c: Include progname.h.
106800         (main): Call set_program_name.
106802         * modules/array-oset-tests (Depends-on): Add progname.
106803         * tests/test-array_oset.c: Include progname.h.
106804         (main): Call set_program_name.
106806         * modules/array-list-tests (Depends-on): Add progname.
106807         * tests/test-array_list.c: Include progname.h.
106808         (main): Call set_program_name.
106810         * modules/argp-tests (Depends-on): Add progname.
106811         * tests/test-argp.c: Include argp.h first. Include progname.h.
106812         (main): Call set_program_name.
106814 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
106816         * doc/gnulib-tool.texi (Initial import): Reword description of
106817         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
106818         limited effect even if defined after the first system include.
106820 2007-03-01  Bruno Haible  <bruno@clisp.org>
106822         * build-aux/config.libpath: Update to libtool-1.5.22.
106823         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
106825 2007-03-01  Bruno Haible  <bruno@clisp.org>
106827         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
106828         foo_CFLAGS.
106829         Reported by Ralf Wildenhues.
106831 2007-03-01  Bruno Haible  <bruno@clisp.org>
106833         * build-aux/install-reloc: Remove object files left over by some
106834         compilers.
106835         Reported by Ralf Wildenhues.
106837 2007-03-01  Bruno Haible  <bruno@clisp.org>
106839         * build-aux/install-reloc: Break long lines.
106841 2007-03-01  Bruno Haible  <bruno@clisp.org>
106843         * doc/relocatable.texi: Document that it may not work on OpenBSD.
106844         Reported by Ralf Wildenhues.
106846 2007-03-01  Bruno Haible  <bruno@clisp.org>
106848         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
106849         include ordering constraints.
106851 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106853         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
106854         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
106855         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
106856         as another example.
106857         * lib/time_.h: Fix misspelling.
106858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106859         Require gl_HEADER_TIME_H_DEFAULTS.
106860         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
106861         * m4/time_r.m4 (gl_TIME_R): Likewise.
106862         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
106864 2007-03-01  Bruno Haible  <bruno@clisp.org>
106866         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
106867         * m4/utimens.m4 (gl_UTIMENS): Likewise.
106869 2007-03-01  Jim Meyering  <jim@meyering.net>
106871         * modules/xreadlink (Maintainer): Add my name.
106872         * modules/xreadlink-with-size (Depends-on): Alphabetize.
106874 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
106875             Bruno Haible  <bruno@clisp.org>
106877         * build-aux/install-reloc: Compile also c-ctype.c.
106878         * build-aux/relocatable.sh.in: New file.
106879         * doc/relocatable.texi: New file.
106880         * doc/relocatable-maint.texi: New file.
106881         * doc/gnulib.texi: Include relocatable-maint.texi.
106882         * lib/progreloc.c: Include unistd.h unconditionally.
106883         * lib/relocwrapper.c: Include unistd.h unconditionally.
106884         Include c-ctype.h.
106885         (add_dotbin): Use c_tolower.
106886         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
106887         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
106888         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
106889         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
106890         to m4/relocatable-lib.m4.
106891         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
106892         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
106893         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
106894         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
106895         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
106896         * modules/relocatable: New file.
106897         * modules/relocatable-lib: New file.
106898         * modules/relocatable-script: New file.
106900 2007-02-28  Bruno Haible  <bruno@clisp.org>
106902         Import --enable-relocatable infrastructure.
106903         * build-aux/config.libpath: New file, from GNU gettext.
106904         * build-aux/install-reloc: New file, from GNU gettext.
106905         * build-aux/reloc-ldflags: New file, from GNU gettext.
106906         * lib/relocatable.h: New file, from GNU gettext.
106907         * lib/relocatable.c: New file, from GNU gettext.
106908         * lib/relocwrapper.c: New file, from GNU gettext.
106909         * m4/relocatable.m4: New file, from GNU gettext.
106911 2007-02-28  Bruno Haible  <bruno@clisp.org>
106913         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
106915         * modules/xreadlink: New file, from GNU gettext with modifications.
106916         * lib/xreadlink.c: New file, from GNU gettext.
106917         * lib/xreadlink.h: Add comments.
106918         (xreadlink): New declaration.
106920         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
106921         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
106922         lib/xreadlink-with-size.c.
106923         (configure.ac): Remove gl_XREADLINK invocation.
106924         (Makefile.am): Augment lib_SOURCES.
106925         * m4/xreadlink.m4: Remove file.
106926         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
106927         (xreadlink_with_size): Renamed from xreadink.
106928         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
106929         * modules/canonicalize (Depends-on): Replace xreadlink with
106930         xreadlink-with-size.
106931         * lib/canonicalize.c (canonicalize_filename_mode): Update.
106933 2007-02-25  Jim Meyering  <jim@meyering.net>
106935         * build-aux/announce-gen: When complaining about excess arguments,
106936         list them.
106938 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106940         * README: Document signed integer overflow situation more
106941         accurately.
106943 2007-02-25  Bruno Haible  <bruno@clisp.org>
106945         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
106946         'a' or 'A' conversion.
106948 2007-02-25  Bruno Haible  <bruno@clisp.org>
106950         * modules/filename: Renamed from modules/pathname.
106951         (Files): Replace lib/pathname.h with lib/filename.h. Replace
106952         lib/concatpath.c with lib/concat-filename.c.
106953         (Makefile.am): Update.
106954         (Include): Replace pathname.h with filename.h.
106955         * lib/filename.h: Renamed from lib/pathname.h.
106956         (concatenated_filename): Renamed from concatenated_pathname.
106957         * lib/concat-filename.c: Renamed from lib/concatpath.c.
106958         (concatenated_filename): Renamed from concatenated_pathname.
106959         * lib/findprog.c: Include filename.h instead of pathname.h.
106960         (find_in_path): Update.
106961         * lib/javacomp.c: Include filename.h instead of pathname.h.
106962         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
106963         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
106964         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
106965         is_oldgcj_14_13_usable, is_javac_usable): Update.
106966         * lib/javaexec.c: Include filename.h instead of pathname.h.
106967         (execute_java_class): Update.
106968         * modules/findprog: Update.
106969         * modules/javacomp: Update.
106970         * modules/javaexec: Update.
106971         * MODULES.html.sh (File system functions): Add 'filename', remove
106972         'pathname'.
106974 2007-02-25  Bruno Haible  <bruno@clisp.org>
106976         * modules/printf-frexpl-tests: New file.
106977         * tests/test-printf-frexpl.c: New file.
106979         * modules/printf-frexpl: New file.
106980         * lib/printf-frexpl.h: New file.
106981         * lib/printf-frexpl.c: New file.
106982         * m4/printf-frexpl.m4: New file.
106984 2007-02-25  Bruno Haible  <bruno@clisp.org>
106986         * modules/printf-frexp-tests: New file.
106987         * tests/test-printf-frexp.c: New file.
106989         * modules/printf-frexp: New file.
106990         * lib/printf-frexp.h: New file.
106991         * lib/printf-frexp.c: New file.
106992         * m4/printf-frexp.m4: New file.
106994 2007-02-25  Bruno Haible  <bruno@clisp.org>
106996         Assume automake >= 1.10 for the tests.
106997         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
106998         * modules/arctwo-tests: Likewise.
106999         * modules/argp-tests: Likewise.
107000         * modules/avltree-list-tests: Likewise.
107001         * modules/avltree-oset-tests: Likewise.
107002         * modules/avltreehash-list-tests: Likewise.
107003         * modules/carray-list-tests: Likewise.
107004         * modules/crc-tests: Likewise.
107005         * modules/des-tests: Likewise.
107006         * modules/gc-arcfour-tests: Likewise.
107007         * modules/gc-arctwo-tests: Likewise.
107008         * modules/gc-des-tests: Likewise.
107009         * modules/gc-hmac-md5-tests: Likewise.
107010         * modules/gc-hmac-sha1-tests: Likewise.
107011         * modules/gc-md2-tests: Likewise.
107012         * modules/gc-md4-tests: Likewise.
107013         * modules/gc-md5-tests: Likewise.
107014         * modules/gc-pbkdf2-sha1-tests: Likewise.
107015         * modules/gc-rijndael-tests: Likewise.
107016         * modules/gc-sha1-tests: Likewise.
107017         * modules/gc-tests: Likewise.
107018         * modules/getaddrinfo-tests: Likewise.
107019         * modules/hmac-md5-tests: Likewise.
107020         * modules/hmac-sha1-tests: Likewise.
107021         * modules/linked-list-tests: Likewise.
107022         * modules/linkedhash-list-tests: Likewise.
107023         * modules/lock-tests: Likewise.
107024         * modules/md2-tests: Likewise.
107025         * modules/md4-tests: Likewise.
107026         * modules/md5-tests: Likewise.
107027         * modules/rbtree-list-tests: Likewise.
107028         * modules/rbtree-oset-tests: Likewise.
107029         * modules/rbtreehash-list-tests: Likewise.
107030         * modules/read-file-tests: Likewise.
107031         * modules/rijndael-tests: Likewise.
107032         * modules/stdint-tests: Likewise.
107033         * modules/tls-tests: Likewise.
107035 2007-02-24  Bruno Haible  <bruno@clisp.org>
107037         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
107038         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
107039         function; instead check whether isnan with a double argument links.
107040         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
107041         function; instead check whether isnan with a 'long double' argument
107042         links.
107043         Reported by Eric Blake <ebb9@byu.net>.
107045 2007-02-24  Bruno Haible  <bruno@clisp.org>
107047         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
107048         defined.
107049         * lib/isnanl.c: Remove all code. Just include isnan.c.
107050         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
107052 2007-02-25  Jim Meyering  <jim@meyering.net>
107054         Avoid conflicting types for 'unsetenv' on FreeBSD.
107055         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
107056         conflicting with FreeBSD's (5.0 and 6.1) function declaration
107057         in stdlib.h.
107059 2007-02-24  Bruno Haible  <bruno@clisp.org>
107061         * modules/isnanl-nolibm-tests: New file.
107062         * tests/test-isnanl.c: New file.
107064         * modules/isnanl-nolibm: New file.
107065         * lib/isnanl.h: New file.
107066         * lib/isnanl.c: New file.
107067         * m4/isnanl.m4: New file.
107069 2007-02-24  Bruno Haible  <bruno@clisp.org>
107071         * modules/isnan-nolibm-tests: New file.
107072         * tests/test-isnan.c: New file.
107074         * modules/isnan-nolibm: New file.
107075         * lib/isnan.h: New file.
107076         * lib/isnan.c: New file.
107077         * m4/isnan.m4: New file.
107079 2007-02-24  Bruno Haible  <bruno@clisp.org>
107081         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
107082         assume that an exponent fits in 20 bits.
107084 2007-02-24  Jim Meyering  <jim@meyering.net>
107086         * m4/regex.m4: Update the description of the configure-time option,
107087         --without-included-regex, to state accurately what the defaults are,
107088         and perhaps to give people an idea why using this option is risky.
107090 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
107092         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
107093         loops on small arguments.  This attempts to avoid the problem
107094         Bruno Haible reported for AIX 4.3.2 in
107095         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
107097 2007-02-23  Bruno Haible  <bruno@clisp.org>
107099         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
107100         Needed for help2man.
107102 2007-02-23  Karl Berry  <karl@gnu.org>
107104         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
107105         exists, foo.h should be cvs-ignored, not committed.
107107 2007-02-23  Eric Blake  <ebb9@byu.net>
107109         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
107110         * lib/stat-time.h (includes): Likewise.
107111         * lib/utimecmp.c (includes): Likewise.
107112         * lib/utimens.h (includes): Likewise.
107113         * lib/getdate.y (includes): Also include "timespec.h" for use
107114         internal to the module.
107115         * modules/utimens (Depends-on): Revert yesterday's patch.
107116         * modules/nanosleep (Depends-on): Add missing dependency.
107118 2007-02-22  Bruno Haible  <bruno@clisp.org>
107120         * lib/glob.c: Don't include getlogin_r.h.
107122 2007-02-22  Jim Meyering  <jim@meyering.net>
107124         * modules/utimens (Depends-on): Add timespec, required for
107125         utimens.h's inclusion of timespec.h.
107127 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
107129         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
107130         long unreadable paths in GNU/Linux.  Problem reported by Andreas
107131         Schwab in
107132         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
107133         I'll try to think of a better way to fix the Solaris problem.
107135         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
107136         like glibc; on Solaris 10, it fails with errno == EINVAL.
107137         POSIX says the behavior is unspecified if the first argument is NULL,
107138         so play it safe and never pass NULL to the system getcwd.
107140 2007-02-21  Jim Meyering  <jim@meyering.net>
107142         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
107143         of gettimeofday.  It would conflict with the one now always
107144         provided via sys_time_.h.  Reported by Matthew Woehlke, as
107145         an IRIX 6.5 build failure.
107147 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
107149         Minor fixups to port to Solaris 10 with Sun C 5.8.
107150         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
107151         * modules/getcwd (Depends-on): Add dirfd.
107152         * lib/putenv.c (putenv): #undef it.
107153         (rpl_putenv): New decl.
107154         (malloc, free): Include <stdlib.h> rather than prototyping separately.
107156 2007-02-20  Bruno Haible  <bruno@clisp.org>
107158         * modules/stdio-tests: New file.
107159         * tests/test-stdio.c: New file.
107161         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
107162         (Depends-on): Add stdio.
107163         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107164         (Include): Use <stdio.h> instead of vsnprintf.h.
107165         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107166         HAVE_DECL_VSNPRINTF.
107167         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
107169         * modules/snprintf (Files): Remove lib/snprintf.h.
107170         (Depends-on): Add stdio.
107171         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107172         (Include): Use <stdio.h> instead of snprintf.h.
107173         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107174         HAVE_DECL_SNPRINTF.
107175         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
107176         * lib/getaddrinfo.c: Likewise.
107178         * modules/stdio: New file.
107179         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
107180         * lib/snprintf.h: Remove file.
107181         * lib/vsnprintf.h: Remove file.
107182         * lib/.cppi-disable: Remove snprintf.h.
107183         * m4/stdio_h.m4: New file.
107184         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
107186 2007-02-20  Jim Meyering  <jim@meyering.net>
107188         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
107189         used by e.g., mingw.  From Bruno Haible.
107191 2007-02-19  Bruno Haible  <bruno@clisp.org>
107193         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
107194         warnings.
107195         Reported by Ben Pfaff <blp@cs.stanford.edu>.
107197 2007-02-19  Bruno Haible  <bruno@clisp.org>
107199         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
107200         from mingw users.
107202 2007-02-19  Bruno Haible  <bruno@clisp.org>
107204         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
107205         warnings.
107206         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
107208 2007-02-19  Jim Meyering  <jim@meyering.net>
107210         Don't use FD after a successful "fdopendir (fd)".
107211         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
107212         Reset it by calling dirfd on the just-obtained DIR*.
107214         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
107215         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
107217 2007-02-18  Bruno Haible  <bruno@clisp.org>
107219         * lib/readlink.c: Include <unistd.h>.
107220         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
107221         HAVE_READLINK.
107222         * modules/readlink (Depends-on): Add unistd.
107223         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107224         (Include): Add <unistd.h>.
107226         * lib/getlogin_r.h: Remove file.
107227         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
107228         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
107229         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
107230         HAVE_DECL_GETLOGIN_R.
107231         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
107232         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107233         (Include): Use <unistd.h> instead of getlogin_r.h.
107235         * lib/getcwd.h: Remove file.
107236         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
107237         * lib/xgetcwd.c: Likewise.
107238         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
107239         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
107240         * modules/getcwd (Files): Remove lib/getcwd.h.
107241         (Depends-on): Add unistd.
107242         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107243         (Include): Use <unistd.h> instad of getcwd.h.
107245         * lib/ftruncate.c: Include <unistd.h> first.
107246         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
107247         Set HAVE_FTRUNCATE.
107248         * modules/ftruncate (Depends-on): Add unistd.
107249         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107251         * lib/fchdir.c: Include <unistd.h> first.
107252         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
107253         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
107254         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
107255         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107256         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
107258         * lib/dup2.c: Include <unistd.h> first.
107259         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
107260         HAVE_DUP2.
107261         * modules/dup2 (Depends-on): Add unistd.
107262         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107264         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
107265         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
107266         REPLACE_CHOWN. Don't define chown as a macro here.
107267         * modules/chown (Depends-on): Add unistd.
107268         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107270         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
107271         Add definition for GL_LINK_WARNING.
107272         (chown, dup2): New declarations.
107273         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
107274         link warning.
107275         (ftruncate): New declaration.
107276         (getcwd): New declaration, taken from old getcwd.h.
107277         (getlogin_r): New declaration, taken from old getlogin_r.h.
107278         (readlink): New declaration.
107279         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
107280         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
107281         (gl_PREREQ_UNISTD): Remove macro.
107282         (gl_UNISTD_MODULE_INDICATOR): New macro.
107283         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
107284         many new variables. Don't set UNISTD_H.
107285         * modules/unistd (Description): Change.
107286         (Depends-on): Add link-warning.
107287         (configure.ac): Update.
107288         (Makefile.am): Create unistd.h always. Substitute many new variables
107289         into it.
107291 2007-02-18  Bruno Haible  <bruno@clisp.org>
107293         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
107294         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
107295         HAVE_GETSUBOPT.
107296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
107297         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
107298         * lib/getsubopt.h: Remove file.
107299         * modules/getsubopt (Files): Remove lib/getsubopt.h.
107300         (Depends-on): Add stdlib.
107301         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107302         (Includes): Use <stdlib.h> instead of getsubopt.h.
107303         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
107304         Set HAVE_GETSUBOPT.
107305         * lib/getsubopt.c: Don't include getsubopt.h.
107307 2007-02-18  Bruno Haible  <bruno@clisp.org>
107309         * modules/fchdir (Depends-on): Add dup2.
107311 2007-02-18  Bruno Haible  <bruno@clisp.org>
107313         * lib/stdlib_.h: Handle glibc's special invocation convention
107314         specially.
107316 2007-02-18  Bruno Haible  <bruno@clisp.org>
107318         * modules/stdlib-tests: New file.
107319         * tests/test-stdlib.c: New file.
107321         * modules/mkstemp (Files): Remove lib/mkstemp.h.
107322         (Depends-on): Add stdlib.
107323         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107324         (Includes): Use <stdlib.h> instead of mkstemp.h.
107325         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107326         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
107327         * lib/mkstemp.c: Don't include mkstemp.h.
107328         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
107329         * lib/stdlib--.h: Don't include mkstemp.h.
107331         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
107332         (Depends-on): Add stdlib.
107333         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107334         (Includes): Use <stdlib.h> instead of mkdtemp.h.
107335         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107336         HAVE_MKDTEMP.
107337         * lib/mkdtemp.c: Don't include mkdtemp.h.
107338         * lib/clean-temp.c: Don't include mkdtemp.h.
107340         * modules/exit (Files): Remove lib/exit.h.
107341         (Depends-on): Add stdlib.
107342         (Makefile.am): Remove lib_SOURCES.
107343         (Include): Use <stdlib.h> instead of exit.h.
107344         * lib/argmatch.c: Don't include exit.h.
107345         * lib/execute.c: Likewise.
107346         * lib/pagealign_alloc.c: Likewise.
107347         * lib/pipe.c: Likewise.
107348         * lib/wait-process.c: Likewise.
107349         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
107350         * lib/exitfail.c: Likewise.
107351         * lib/savewd.c: Likewise.
107352         * lib/xsetenv.c: Likewise.
107354         * modules/stdlib: New file.
107355         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
107356         and extra comments about mkstemp().
107357         * lib/exit.h: Remove file.
107358         * lib/mkdtemp.h: Remove file.
107359         * lib/mkstemp.h: Remove file.
107360         * m4/stdlib_h.m4: New file.
107361         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
107363 2007-02-18  Bruno Haible  <bruno@clisp.org>
107365         * modules/math-tests: New file.
107366         * tests/test-math.c: New file.
107368         * modules/math: New file.
107369         * modules/mathl (Files): Remove lib/mathl.h.
107370         (Depends-on): Add math.
107371         (Makefile.am): Don't mention mathl.h.
107372         (Include): Use <math.h> instead of mathl.h.
107373         * lib/math_.h: New file.
107374         * lib/mathl.h: Remove file.
107375         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
107376         mathl.h.
107377         * lib/asinl.c: Likewise.
107378         * lib/atanl.c: Likewise.
107379         * lib/ceill.c: Likewise.
107380         * lib/cosl.c: Likewise.
107381         * lib/expl.c: Likewise.
107382         * lib/floorl.c: Likewise.
107383         * lib/frexpl.c: Likewise.
107384         * lib/ldexpl.c: Likewise.
107385         * lib/logl.c: Likewise.
107386         * lib/sincosl.c: Likewise.
107387         * lib/sinl.c: Likewise.
107388         * lib/sqrtl.c: Likewise.
107389         * lib/tanl.c: Likewise.
107390         * lib/trigl.c: Likewise.
107391         * m4/math_h.m4: New file.
107392         * MODULES.html.sh (Mathematics): Add math.
107394 2007-02-17  Bruno Haible  <bruno@clisp.org>
107396         * modules/wctype-tests: New file.
107397         * tests/test-wctype.c: New file.
107399         * modules/wchar-tests: New file.
107400         * tests/test-wchar.c: New file.
107402         * modules/unistd-tests: New file.
107403         * tests/test-unistd.c: New file.
107405         * modules/time-tests: New file.
107406         * tests/test-time.c: New file.
107408         * modules/sysexits-tests: New file.
107409         * tests/test-sysexits.c: New file.
107411         * modules/sys_time-tests: New file.
107412         * tests/test-sys_time.c: New file.
107414         * modules/sys_stat-tests: New file.
107415         * tests/test-sys_stat.c: New file.
107417         * modules/sys_socket-tests: New file.
107418         * tests/test-sys_socket.c: New file.
107420         * modules/sys_select-tests: New file.
107421         * tests/test-sys_select.c: New file.
107423         * modules/string-tests: New file.
107424         * tests/test-string.c: New file.
107426         * modules/stdbool-tests: New file.
107427         * tests/test-stdbool.c: New file.
107429         * modules/netinet_in-tests: New file.
107430         * tests/test-netinet_in.c: New file.
107432         * modules/inttypes-tests: New file.
107433         * tests/test-inttypes.c: New file.
107435         * modules/fcntl-tests: New file.
107436         * tests/test-fcntl.c: New file.
107438         * modules/byteswap-tests: New file.
107439         * tests/test-byteswap.c: New file.
107441         * modules/arpa_inet-tests: New file.
107442         * tests/test-arpa_inet.c: New file.
107444 2007-02-17  Bruno Haible  <bruno@clisp.org>
107446         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
107447         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
107448         if the corresponding module is not enabled. Emit link warnings if
107449         the function is used nevertheless.
107450         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
107451         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
107452         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
107453         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
107454         * modules/inttypes (Depends-on): Add link-warning.
107455         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107456         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
107457         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
107458         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
107459         * modules/imaxdiv (configure.ac): Likewise.
107460         * modules/strtoimax (configure.ac): Likewise.
107461         * modules/strtoumax (configure.ac): Likewise.
107463 2007-02-17  Bruno Haible  <bruno@clisp.org>
107465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
107466         gl_STRING_MODULE_INDICATOR_DEFAULTS.
107467         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
107468         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
107470 2007-02-17  Bruno Haible  <bruno@clisp.org>
107472         * modules/link-warning: New file.
107473         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
107474         * lib/string_.h (GL_LINK_WARNING): Remove definition.
107475         * modules/string (Depends-on): Add link-warning.
107476         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107477         string.h.
107478         * MODULES.html.sh (Support for building libraries and executables): Add
107479         link-warning.
107481 2007-02-17  Bruno Haible  <bruno@clisp.org>
107483         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
107484         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
107485         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
107486         long lines.
107488 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
107489             Bruno Haible  <bruno@clisp.org>
107491         * modules/tmpfile: New file.
107492         * lib/tmpfile.c: New file.
107493         * m4/tmpfile.m4: New file.
107494         * MODULES.html.sh (func_all_modules): New section "Input/output".
107496 2007-02-15  Bruno Haible  <bruno@clisp.org>
107498         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
107499         (supports_delete_on_close): New function.
107500         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
107502 2007-02-14  Bruno Haible  <bruno@clisp.org>
107504         * modules/mbspcasecmp-tests: New file.
107505         * tests/test-mbspcasecmp.sh: New file.
107506         * tests/test-mbspcasecmp.c: New file.
107508         New module mbspcasecmp.
107509         * modules/mbspcasecmp: New file.
107510         * lib/mbspcasecmp.c: New file.
107511         * lib/string_.h (strncasecmp): Change warning message.
107512         (mbspcasecmp): New declaration.
107513         * m4/mbspcasecmp.m4: New file.
107514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107515         GNULIB_MBSPCASECMP.
107516         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
107517         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
107519 2007-02-14  Bruno Haible  <bruno@clisp.org>
107521         * modules/mbsncasecmp-tests: New file.
107522         * tests/test-mbsncasecmp.sh: New file.
107523         * tests/test-mbsncasecmp.c: New file.
107525         New module mbsncasecmp.
107526         * modules/mbsncasecmp: New file.
107527         * lib/mbsncasecmp.c: New file.
107528         * lib/string_.h (mbsncasecmp): New declaration.
107529         * m4/mbsncasecmp.m4: New file.
107530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107531         GNULIB_MBSNCASECMP.
107532         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
107533         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
107535 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
107537         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
107538         Verify that it doesn't overlap with our flags.
107539         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
107540         do not have the desired effect in multibyte locales; instead, use
107541         mbscasecmp.
107542         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
107543         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
107544         we don't require GNU fnmatch ourselves (if our users require it, they
107545         should do so explicitly).
107547         Fix regex code so it doesn't rely on strcasecmp.
107548         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
107549         Otherwise, include gnulib's langinfo.h.
107550         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
107551         undesirable behavior in non-C locales.  Instead, rely on localecharset.
107552         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
107553         * modules/regex (FILES): Remove m4/codeset.m4.
107554         (Depends-on): Add localcharset.  Remove strcase.
107556 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107558         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
107559         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
107561 2007-02-13  Bruno Haible  <bruno@clisp.org>
107563         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
107564         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107566 2007-02-12  Bruno Haible  <bruno@clisp.org>
107568         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107569         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
107570         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
107571         time warning rather than a link error.
107573 2007-02-12  Bruno Haible  <bruno@clisp.org>
107575         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
107576         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
107577         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107579 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107581         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
107582         args, not 2.
107584 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107586         New module 'time', so that apps can include <time.h> as per
107587         POSIX and GNU instead of separate include files like time_r.h
107588         and timegm.h.  This implementation tries out a simpler approach
107589         for replacing decls in standard include files (as compared to
107590         the string module), somewhat as an experiment.
107592         * config/srclist.txt: Comment out mktime.c for now.
107593         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
107594         since it doesn't apply any more.  Use generic wording instead.
107595         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
107596         'time'.
107597         * lib/time_.h, m4/time_h.m4, modules/time: New files.
107598         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
107599         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
107600         Don't include <sys/types.h>; no longer needed since we assume C89.
107601         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
107602         * lib/strftime.c: Likewise.
107603         * lib/time_r.c: Likewise.
107604         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
107605         * lib/nanosleep.c: Include <time.h> first, to check interface.
107606         * lib/strptime.c: Likewise.
107607         * lib/time_r.c: Likewise.
107608         * lib/timegm.c: Likewise.
107609         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
107610         needed.
107611         * lib/timegm.c: Don't include timegm.h; no longer needed.
107612         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
107613         time.h now handles any problems in that area.
107614         (struct timespec, nanosleep): Remove; time.h now arranges for these.
107615         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
107616         that time.h defines struct timespec.
107617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
107618         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
107619         handles that.
107620         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
107621         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
107622         needed.  Set REPLACE_LOCALTIME.
107623         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
107624         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
107625         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
107626         nanosleep; time_h.m4 now does that.  Don't require
107627         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
107628         module handles this now.
107629         * modules/getdate (Depends-on): Remove timespec.  Add time.
107630         * modules/nanosleep (Depends-on): Likewise.
107631         * modules/stat-time (Depends-on): Likewise.
107632         * modules/nanosleep (Include): Include time.h, not timespec.h.
107633         * modules/strptime (Files): Remove lib/strptime.h.
107634         (Depends-on): Add extensions, time.
107635         (Include): Include time.h, not strptime.h.
107636         * modules/time_r (Files): Remove lib/time_r.h.
107637         (Depends-on): Add time.
107638         (Include): Include time.h, not time_r.h.
107639         * modules/timegm: Likewise.
107640         * modules/timespec (Description): Now does timespec-related decls
107641         of our own, instead of struct timespec itself.
107642         (Depends-on): Add time; remove extensions.
107643         (Maintainer): Add self.
107644         * modules/utimecmp (Depends-on): Add time; remove timespec.
107645         * modules/utimens (Depends-on): Likewise.
107646         * modules/xnanosleep (Depends-on): Likewise.
107648 2007-02-11  Bruno Haible  <bruno@clisp.org>
107650         * lib/c-strstr.c: Include allocsa.h.
107651         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107652         * lib/c-strcasestr.c: Include allocsa.h.
107653         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107654         * lib/strcasestr.c: Include allocsa.h.
107655         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107656         * lib/mbsstr.c: Include allocsa.h.
107657         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107658         allocsa/freesa instead of malloc/free.
107659         * lib/mbscasestr.c: Include allocsa.h.
107660         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107661         allocsa/freesa instead of malloc/free.
107662         * modules/c-strstr (Depends-on): Add allocsa.
107663         * modules/c-strcasestr (Depends-on): Likewise.
107664         * modules/strcasestr (Depends-on): Likewise.
107665         * modules/mbsstr (Depends-on): Likewise.
107666         * modules/mbscasestr (Depends-on): Likewise.
107668 2007-02-11  Bruno Haible  <bruno@clisp.org>
107670         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
107672         * modules/mbsspn-tests: New file.
107673         * tests/test-mbsspn.sh: New file.
107674         * tests/test-mbsspn.c: New file.
107676 2007-02-11  Bruno Haible  <bruno@clisp.org>
107678         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
107680         * modules/mbspbrk-tests: New file.
107681         * tests/test-mbspbrk.sh: New file.
107682         * tests/test-mbspbrk.c: New file.
107684 2007-02-11  Bruno Haible  <bruno@clisp.org>
107686         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
107687         unneeded cast.
107689         * modules/mbscspn-tests: New file.
107690         * tests/test-mbscspn.sh: New file.
107691         * tests/test-mbscspn.c: New file.
107693 2007-02-11  Bruno Haible  <bruno@clisp.org>
107695         * modules/mbscasecmp-tests: New file.
107696         * tests/test-mbscasecmp.sh: New file.
107697         * tests/test-mbscasecmp.c: New file.
107699 2007-02-11  Bruno Haible  <bruno@clisp.org>
107701         Ensure O(n) worst-case complexity of mbscasestr.
107702         * lib/mbscasestr.c: Include stdbool.h.
107703         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107704         functions.
107705         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
107706         the bookkeeping indicates that it's worth it.
107707         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
107709         * modules/mbscasestr-tests: New file.
107710         * tests/test-mbscasestr1.c: New file.
107711         * tests/test-mbscasestr2.sh: New file.
107712         * tests/test-mbscasestr2.c: New file.
107713         * tests/test-mbscasestr3.sh: New file.
107714         * tests/test-mbscasestr3.c: New file.
107715         * tests/test-mbscasestr4.sh: New file.
107716         * tests/test-mbscasestr4.c: New file.
107717         * m4/locale-tr.m4: New file.
107719 2007-02-11  Bruno Haible  <bruno@clisp.org>
107721         Ensure O(n) worst-case complexity of mbsstr.
107722         * lib/mbsstr.c: Include stdbool.h.
107723         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107724         functions.
107725         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
107726         bookkeeping indicates that it's worth it.
107727         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
107729         * modules/mbsstr-tests: New file.
107730         * tests/test-mbsstr1.c: New file.
107731         * tests/test-mbsstr2.sh: New file.
107732         * tests/test-mbsstr2.c: New file.
107733         * tests/test-mbsstr3.sh: New file.
107734         * tests/test-mbsstr3.c: New file.
107735         * m4/locale-fr.m4: New file.
107737 2007-02-11  Bruno Haible  <bruno@clisp.org>
107739         * lib/mbsrchr.c (mbsrchr): Fix bug.
107741         * modules/mbsrchr-tests: New file.
107742         * tests/test-mbsrchr.sh: New file.
107743         * tests/test-mbsrchr.c: New file.
107745 2007-02-11  Bruno Haible  <bruno@clisp.org>
107747         * lib/mbschr.c (mbschr): Fix bug.
107749         * modules/mbschr-tests: New file.
107750         * tests/test-mbschr.sh: New file.
107751         * tests/test-mbschr.c: New file.
107752         * m4/locale-zh.m4: New file.
107754 2007-02-11  Bruno Haible  <bruno@clisp.org>
107756         Support for copying multibyte string iterators.
107757         * lib/mbiter.h: Include <string.h>.
107758         (mbiter_multi_copy): New function.
107759         (mbi_copy): New macro.
107760         * lib/mbuiter.h: Include <string.h>.
107761         (mbuiter_multi_copy): New function.
107762         (mbui_copy): New macro.
107764 2007-02-11  Bruno Haible  <bruno@clisp.org>
107766         New module mbslen.
107767         * modules/mbslen: New file.
107768         * lib/mbslen.c: New file.
107769         * lib/string_.h (mbslen): New declaration.
107770         * m4/mbslen.m4: New file.
107771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107772         GNULIB_MBSLEN.
107773         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
107774         * MODULES.html.sh (Internationalization functions): Add mbslen.
107776 2007-02-11  Bruno Haible  <bruno@clisp.org>
107778         Ensure O(n) worst-case complexity of strcasestr substitute.
107779         * lib/strcasestr.c: Include stdbool.h.
107780         (knuth_morris_pratt): New function.
107781         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107782         bookkeeping indicates that it's worth it.
107783         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
107785         * modules/strcasestr-tests: New file.
107786         * tests/test-strcasestr.c: New file.
107788 2007-02-11  Bruno Haible  <bruno@clisp.org>
107790         Ensure O(n) worst-case complexity of c_strcasestr.
107791         * lib/c-strcasestr.c: Include stdbool.h, string.h.
107792         (knuth_morris_pratt): New function.
107793         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
107794         the bookkeeping indicates that it's worth it.
107795         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
107797         * modules/c-strcasestr-tests: New file.
107798         * tests/test-c-strcasestr.c: New file.
107800 2007-02-11  Bruno Haible  <bruno@clisp.org>
107802         Ensure O(n) worst-case complexity of c_strstr.
107803         * lib/c-strstr.c: Include stdbool.h, string.h.
107804         (knuth_morris_pratt): New function.
107805         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107806         bookkeeping indicates that it's worth it.
107807         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
107809         * lib/c-strstr.c: Complete rewrite for maintainability.
107811         * modules/c-strstr-tests: New file.
107812         * tests/test-c-strstr.c: New file.
107814 2007-02-11  Bruno Haible  <bruno@clisp.org>
107816         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
107817         5.2.1 and earlier, whereby \055 was treated just like the range
107818         delimiter '-'.
107819         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
107821 2007-02-08  Bruno Haible  <bruno@clisp.org>
107823         * modules/regex (Depends-on): Add stdbool.
107824         Reported by Dalibor Topic <robilad@kaffe.org>.
107826 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
107828         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
107829         Prefer returning from main to exiting from it.
107830         Remove unnecessary parens after sizeof.
107832 2007-02-05  Bruno Haible  <bruno@clisp.org>
107834         New module mbssep.
107835         * modules/mbssep: New file.
107836         * lib/mbssep.c: New file.
107837         * lib/string_.h (strsep): Add a conditional link warning.
107838         (mbssep): New declaration.
107839         * m4/mbssep.m4: New file.
107840         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107841         GNULIB_MBSSEP.
107842         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
107843         * MODULES.html.sh (Internationalization functions): Add mbssep.
107845 2007-02-05  Bruno Haible  <bruno@clisp.org>
107847         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
107848         Optimize search in case of 1 delimiter.
107850 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107852         * lib/acl.h: Include sys/types.h before sys/acl.h.
107854 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107856         Merge upstream fix for glibc bugzilla #3957:
107858         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
107860         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
107861         bit for RE_HAT_LISTS_NOT_NEWLINE.
107862         (build_charclass_op): Remove bogus comment.
107864 2007-02-05  Simon Josefsson  <simon@josefsson.org>
107866         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
107868 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107870         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
107871         * lib/memmem.c [!defined _LIBC]: Include config.h.
107873 2007-02-04  Bruno Haible  <bruno@clisp.org>
107875         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
107876         warning message.
107878 2007-02-04  Bruno Haible  <bruno@clisp.org>
107880         New module mbstok_r.
107881         * modules/mbstok_r: New file.
107882         * lib/mbstok_r.c: New file.
107883         * lib/string_.h (strtok_r): Change argument names to match the
107884         comments. Add a conditional link warning.
107885         (mbstok_r): New declaration.
107886         * m4/mbstok_r.m4: New file.
107887         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107888         GNULIB_MBSTOK_R.
107889         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
107890         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
107892 2007-02-04  Bruno Haible  <bruno@clisp.org>
107894         New module mbsspn.
107895         * modules/mbsspn: New file.
107896         * lib/mbsspn.c: New file.
107897         * lib/string_.h (strspn): Add a conditional link warning.
107898         (mbsspn): New declaration.
107899         * m4/mbsspn.m4: New file.
107900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107901         GNULIB_MBSSPN.
107902         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
107903         * MODULES.html.sh (Internationalization functions): Add mbsspn.
107905 2007-02-04  Bruno Haible  <bruno@clisp.org>
107907         New module mbspbrk.
107908         * modules/mbspbrk: New file.
107909         * lib/mbspbrk.c: New file.
107910         * lib/string_.h (strpbrk): Add a conditional link warning.
107911         (mbspbrk): New declaration.
107912         * m4/mbspbrk.m4: New file.
107913         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107914         GNULIB_MBSPBRK.
107915         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
107916         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
107918 2007-02-04  Bruno Haible  <bruno@clisp.org>
107920         New module mbscspn.
107921         * modules/mbscspn: New file.
107922         * lib/mbscspn.c: New file.
107923         * lib/string_.h (strcspn): Add a conditional link warning.
107924         (mbscspn): New declaration.
107925         * m4/mbscspn.m4: New file.
107926         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107927         GNULIB_MBSCSPN.
107928         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
107929         * MODULES.html.sh (Internationalization functions): Add mbscspn.
107931 2007-02-04  Bruno Haible  <bruno@clisp.org>
107933         New module mbscasestr, reduced goal of strcasestr.
107934         * modules/mbscasestr: New file.
107935         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
107936         (mbscasestr): Renamed from strcasestr.
107937         * lib/strcasestr.c: Don't include mbuiter.h.
107938         (strcasestr): Remove support for multibyte locales.
107939         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
107940         Change the conditional link warning.
107941         (mbscasestr): New declaration.
107942         * m4/mbscasestr.m4: New file.
107943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
107944         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
107945         REPLACE_STRCASESTR.
107946         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
107947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107948         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107949         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
107950         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
107951         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107952         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
107953         (Depends-on): Remove mbuiter.
107954         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
107956 2007-02-04  Bruno Haible  <bruno@clisp.org>
107958         Simplify handling of strncasecmp.
107959         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
107960         the conditional link warning.
107961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107962         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
107963         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
107964         * modules/strcase (configure.ac): Don't invoke
107965         gl_STRING_MODULE_INDICATOR.
107966         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
107968 2007-02-04  Bruno Haible  <bruno@clisp.org>
107970         New module mbscasecmp, reduced goal of strcasecmp.
107971         * modules/mbscasecmp: New file.
107972         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
107973         (mbscasecmp): Renamed from strcasecmp.
107974         * lib/strcasecmp.c: Don't include mbuiter.h.
107975         (strcasecmp): Remove support for multibyte locales.
107976         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
107977         Change the conditional link warning.
107978         (mbscasecmp): New declaration.
107979         * m4/mbscasecmp.m4: New file.
107980         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
107981         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
107982         REPLACE_STRCASECMP.
107983         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
107984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107985         GNULIB_MBSCASECMP.
107986         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
107987         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
107988         * modules/strcase (Files): Remove m4/mbrtowc.m4.
107989         (Depends-on): Remove mbuiter.
107990         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
107992 2007-02-04  Bruno Haible  <bruno@clisp.org>
107994         New module mbsstr. Remove module strstr.
107995         * modules/mbsstr: New file.
107996         * modules/strstr: Remove file.
107997         * lib/mbsstr.c: Renamed from lib/strstr.c.
107998         (mbsstr): Renamed from strstr.
107999         * lib/string_.h (strstr): Remove declaration. Change the conditional
108000         link warning.
108001         (mbsstr): New declaration.
108002         * m4/mbsstr.m4: New file.
108003         * m4/strstr.m4: Remove file.
108004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
108005         REPLACE_STRSTR.
108006         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
108007         Don't initialize GNULIB_STRSTR.
108008         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
108009         substitute GNULIB_STRSTR and REPLACE_STRSTR.
108010         * MODULES.html.sh (Internationalization functions): Add mbsstr.
108011         (Support for systems lacking ANSI C 89): Remove strstr.
108013 2007-02-04  Bruno Haible  <bruno@clisp.org>
108015         New module mbsrchr.
108016         * modules/mbsrchr: New file.
108017         * lib/mbsrchr.c: New file.
108018         * lib/string_.h (strrchr): Add a conditional link warning.
108019         (mbsrchr): New declaration.
108020         * m4/mbsrchr.m4: New file.
108021         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108022         GNULIB_MBSRCHR.
108023         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
108024         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
108026 2007-02-04  Bruno Haible  <bruno@clisp.org>
108028         New module mbschr.
108029         * modules/mbschr: New file.
108030         * lib/mbschr.c: New file.
108031         * lib/string_.h (strchr): Add a conditional link warning.
108032         (mbschr): New declaration.
108033         * m4/mbschr.m4: New file.
108034         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108035         GNULIB_MBSCHR.
108036         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
108037         * MODULES.html.sh (Internationalization functions): Add mbschr.
108039 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108041         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
108043         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
108045 2007-02-04  Bruno Haible  <bruno@clisp.org>
108047         New module description section 'configure.ac-early'.
108048         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
108049         (func_get_autoconf_early_snippet): New function.
108050         (func_import, func_create_testdir): Use it. Remove special cases for
108051         modules 'extensions' and 'lock'.
108052         * modules/extensions (configure.ac-early): Require
108053         gl_USE_SYSTEM_EXTENSIONS.
108054         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
108056 2007-02-04  Bruno Haible  <bruno@clisp.org>
108058         Make use of gcj-4.3's -fsource and -ftarget option.
108059         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
108060         and if so try the options -fsource and -ftarget.
108061         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
108062         source_version, ftarget_option, target_version arguments.
108063         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
108064         (is_envjavac_oldgcj_14_14_usable): Renamed from
108065         is_envjavac_gcj_14_14_usable.
108066         (is_envjavac_oldgcj_14_13_usable): Renamed from
108067         is_envjavac_gcj_14_13_usable.
108068         (is_gcj_present): Update.
108069         (is_gcj_43, is_gcj43_usable): New functions.
108070         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
108071         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
108072         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
108073         try the options -fsource and -ftarget.
108075 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
108077         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
108078         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
108079         larger value.
108081 2007-02-03  Jim Meyering  <jim@meyering.net>
108083         Give tools a better chance to allocate space for very large buffers.
108084         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
108086         Make pwd and readlink work also when run with an unreadable parent dir
108087         on systems with openat support.
108088         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
108089         provided getcwd function, even when we have openat support.
108090         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
108092 2007-02-02  Bruno Haible  <bruno@clisp.org>
108094         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108095         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
108096         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
108097         portability problems if one of these functions is only used on specific
108098         platforms.
108099         Reported by Paul Eggert.
108101 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
108103         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
108104         is causing more trouble than it's curing.
108105         * lib/regex_internal.h (__mempcpy): Remove.
108106         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
108107         (and make the code a tad smaller to boot).
108108         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
108110 2007-02-02  Jim Meyering  <jim@meyering.net>
108112         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
108113         section, not in the Makefile.am: one.
108115 2007-02-02  Eric Blake  <ebb9@byu.net>
108117         * lib/strchrnul.c: Always include config.h first.
108119         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
108120         gnulib strstr is not necessary here.
108122 2007-02-02  Simon Josefsson  <simon@josefsson.org>
108124         * m4/socklen.m4: Fix typo.
108126 2007-02-02  Eric Blake  <ebb9@byu.net>
108128         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
108129         * modules/netinet_in (Makefile.am): Likewise.
108131 2007-02-01  Bruno Haible  <bruno@clisp.org>
108133         * lib/string_.h (GL_LINK_WARNING): New macro.
108134         (strcasecmp, strstr, strcasestr): If provided by the system,
108135         conditionally define as a macro that leads to a warning instead of to
108136         an error.
108137         (strncasecmp): Conditionally define as a macro that leads to a warning.
108139 2007-02-01  Karl Berry  <karl@gnu.org>
108141         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
108143 2007-02-01  Bruno Haible  <bruno@clisp.org>
108145         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
108146         renamings.
108148 2007-02-01  Eric Blake  <ebb9@byu.net>
108150         * modules/regex (Depends-on): Revert dependence on mempcpy.
108151         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
108152         module's definition of mempcpy.
108153         Reported by Paul Eggert.
108155 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
108157         * lib/string_.h: If the gnulib module XYZ is not present, undefine
108158         the symbol XYZ before redefining it.  This fixes a problem with
108159         programs that don't use XYZ, when compiled on systems that define
108160         XYZ to something else.
108162 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
108164         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
108165         occurs when "mkdir -m foo" creates a setgid directory that is (1)
108166         writeable to group or other and (2) is intended to have a special
108167         mode bit that is set or cleared.  In such a case, the directory
108168         should be neither group- nor other-writeable until the special
108169         mode bits are right.
108171 2007-01-31  Eric Blake  <ebb9@byu.net>
108173         * modules/mountlist (Depends-on): Add strstr.
108175         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
108176         bug.
108177         * modules/string (Makefile.am): Remove redundant replacement.
108178         * modules/regex (Depends-on): Add mempcpy.
108180 2007-01-31  Bruno Haible  <bruno@clisp.org>
108182         New module description field 'Link'.
108183         * gnulib-tool (func_usage): Document --extract-link-directive.
108184         (sed_extract_prog): Recognize 'Link' directive.
108185         (func_get_link_directive): New function.
108186         (func_import): Show summary of link directives.
108187         Handle --extract-link-directive option.
108188         * modules/acl (Link): New section.
108189         * modules/clock-time (Link): New section.
108190         * modules/euidaccess (Link): New section.
108191         * modules/gettext (Link): New section.
108192         * modules/iconv (Link): New section.
108193         * modules/lock (Link): New section.
108194         * modules/nanosleep (Link): New section.
108195         * modules/readline (Link): New section.
108197 2007-01-27  Bruno Haible  <bruno@clisp.org>
108199         Enforce the use of gnulib modules for unportable <string.h> functions.
108200         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
108201         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
108202         (gl_HEADER_STRING_H_BODY): Require it.
108203         * lib/string_.h: If the gnulib module XYZ is not present, redefine
108204         the symbol XYZ to one that gives a link error.
108205         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
108206         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
108207         * modules/mempcpy (configure.ac): Likewise.
108208         * modules/memrchr (configure.ac): Likewise.
108209         * modules/stpcpy (configure.ac): Likewise.
108210         * modules/stpncpy (configure.ac): Likewise.
108211         * modules/strcase (configure.ac): Likewise.
108212         * modules/strcasestr (configure.ac): Likewise.
108213         * modules/strchrnul (configure.ac): Likewise.
108214         * modules/strdup (configure.ac): Likewise.
108215         * modules/strndup (configure.ac): Likewise.
108216         * modules/strnlen (configure.ac): Likewise.
108217         * modules/strpbrk (configure.ac): Likewise.
108218         * modules/strsep (configure.ac): Likewise.
108219         * modules/strstr (configure.ac): Likewise.
108220         * modules/strtok_r (configure.ac): Likewise.
108222 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
108224         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
108226 2007-01-30  Jim Meyering  <jim@meyering.net>
108228         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
108230 2007-01-29  Bruno Haible  <bruno@clisp.org>
108232         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
108233         * lib/execute.c: Likewise.
108234         * lib/pipe.c: Likewise.
108235         * lib/printf-args.h: Likewise.
108236         * lib/printf-args.c: Likewise.
108237         * lib/printf-parse.c: Likewise.
108238         * lib/vasnprintf.c: Likewise.
108240 2007-01-29  Eric Blake  <ebb9@byu.net>
108242         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
108243         declaration.
108245 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
108247         * lib/strptime.h (strptime): Use 'restrict' for args where
108248         POSIX requires this.
108249         * lib/strptime.c (strptime): Likewise.
108250         Change license notice from LGPL to GPL, since gnulib-tool will
108251         change this as needed.
108252         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
108253         defined.
108254         Include "strptime.h" first, to check interface.
108255         Do not #undef _LIBC and _NL_CURRENT.
108256         Do not include <stdlib.h>; no longer needed.
108257         Include "time_r.h" and declare ptime_locale_status
108258         only if _LIBC is not defined.
108259         (__P): Remove unused macro.
108260         (match_string): Bring back glibc version, but use it only if _LIBC
108261         is defined.
108262         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
108263         Remove unnecessary assertion and abort() call.
108264         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
108265         * m4/strptime.m4: Fix serial number comment.
108266         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
108267         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
108268         (Depends-on): Add time_r.
108270 2007-01-29  Bruno Haible  <bruno@clisp.org>
108272         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108273         strptime.
108274         * modules/strptime (Depends-on): Add stdbool.
108275         * lib/strptime.h: Include <time.h> always. Add comments.
108277 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108279         * modules/strptime: New file.
108280         * lib/strptime.h: New file.
108281         * lib/strptime.c: New file.
108282         * m4/strptime.m4: New file.
108284 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
108286         * MODULES.html.sh: New module mpsort.
108287         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
108289         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
108290         a circularity problem with HP-UX ia64 reported by Bob Proulx in
108291         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
108292         All uses changed.
108293         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
108294         All uses changed.
108295         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
108296         to _Restrict_.
108297         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
108298         the parameter matches the prototype.
108300 2007-01-28  Jim Meyering  <jim@meyering.net>
108302         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
108303         sys/time.h here, reverting that part of the previous patch:
108304         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
108306 2007-01-28  Bruno Haible  <bruno@clisp.org>
108308         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
108309         value of $(SYS_TIME_H).
108310         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
108311         remove it conditionally, too. [added by Jim Meyering]
108312         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
108313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108314         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
108315         GETTIMEOFDAY_REPLACEMENT to 1.
108317 2007-01-28  Bruno Haible  <bruno@clisp.org>
108319         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
108320         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
108321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
108322         Set UNISTD_H instead of UNISTD_H2.
108323         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
108325 2007-01-28  Bruno Haible  <bruno@clisp.org>
108327         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
108328         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
108330 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108332         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
108333         (func_create_testdir): Ensure C locale for `grep' and `tr'
108334         character ranges.
108335         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
108336         ACLOCAL_AMFLAGS parsing state machine.
108338 2007-01-27  Bruno Haible  <bruno@clisp.org>
108340         * modules/unistr/base: Update.
108342 2007-01-27  Bruno Haible  <bruno@clisp.org>
108344         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
108345         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
108346         * modules/unistr/u32-mbtouc-unsafe: Renamed from
108347         modules/unistr/u32-mbtouc.
108348         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
108349         * lib/unistr.h: Update.
108350         * lib/linebreak.c: Update.
108351         * modules/unistr/u32-mbtouc: Renamed from
108352         modules/unistr/u32-mbtouc-safe.
108353         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
108354         * lib/unistr.h: Update.
108355         * lib/unistr/u32-to-u8.c: Update.
108356         * lib/unistr/u32-to-u16.c: Update.
108358 2007-01-27  Bruno Haible  <bruno@clisp.org>
108360         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
108361         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
108362         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
108363         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
108364         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
108365         * modules/unistr/u16-mbtouc-unsafe: Renamed from
108366         modules/unistr/u16-mbtouc.
108367         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
108368         * lib/unistr.h: Update.
108369         * lib/linebreak.c: Update.
108370         * modules/linebreak: Update.
108371         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
108372         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
108373         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
108374         * modules/unistr/u16-mbtouc: Renamed from
108375         modules/unistr/u16-mbtouc-safe.
108376         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
108377         * lib/unistr.h: Update.
108378         * lib/unistr/u16-to-u8.c: Update.
108379         * modules/unistr/u16-to-u8: Update.
108380         * lib/unistr/u16-to-u32.c: Update.
108381         * modules/unistr/u16-to-u32: Update.
108383 2007-01-27  Bruno Haible  <bruno@clisp.org>
108385         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
108386         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
108387         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
108388         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
108389         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
108390         * modules/unistr/u8-mbtouc-unsafe: Renamed from
108391         modules/unistr/u8-mbtouc.
108392         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
108393         * lib/unistr.h: Update.
108394         * lib/striconveh.c: Update.
108395         * modules/striconveh: Update.
108396         * lib/linebreak.c: Update.
108397         * modules/linebreak: Update.
108398         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
108399         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
108400         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
108401         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
108402         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
108403         * lib/unistr.h: Update.
108404         * lib/striconveh.c: Update.
108405         * modules/striconveh: Update.
108406         * lib/unistr/u8-to-u16.c: Update.
108407         * modules/unistr/u8-to-u16: Update.
108408         * lib/unistr/u8-to-u32.c: Update.
108409         * modules/unistr/u8-to-u32: Update.
108411 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108413         Sync from Libtool.
108414         * lib/argz.c: Do not include strings.h nor memory.h, include
108415         string.h unconditionally.  Patch by Simon Josefsson.
108417 2007-01-27  Bruno Haible  <bruno@clisp.org>
108419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
108420         from gl_HEADER_STRING_H_BODY.
108421         (gl_HEADER_STRING_H_BODY): Require it.
108422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
108423         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
108424         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
108425         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
108426         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
108427         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
108428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
108429         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
108430         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
108431         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
108432         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
108433         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
108434         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
108435         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
108436         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
108438 2007-01-27  Bruno Haible  <bruno@clisp.org>
108440         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
108441         check_PROGRAMS into noinst_PROGRAMS.
108442         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
108443         check_PROGRAMS in this case.
108444         (func_import): Set for_test to false.
108445         (func_create_testdir): Set for_test to true.
108447 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108448             Bruno Haible  <bruno@clisp.org>
108450         * modules/strcasestr (Files): Remove lib/strcasestr.h.
108451         (Depends-on): Add string.
108452         (Includes): Use <string.h> instead of strcasestr.h.
108453         * modules/string (Makefile.am): Also substitute the value of
108454         REPLACE_STRCASESTR.
108455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
108456         assume strcasestr is declared in <string.h> not <strings.h>. Also
108457         set REPLACE_STRCASESTR.
108458         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
108459         REPLACE_STRCASESTR.
108460         * lib/strcasestr.h: Remove file.
108461         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
108462         * lib/string_.h (strcasestr): New declaration.
108464 2007-01-27  Bruno Haible  <bruno@clisp.org>
108466         * lib/string_.h: Use 'extern'.
108468 2007-01-27  Jim Meyering  <jim@meyering.net>
108470         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
108471         of set-but-not-used local, "q".
108473         * lib/mempcpy.c: Include <config.h> before <string.h>.
108474         This fixes a compilation error on HP-UX, due to the system's
108475         "restrict"-using mempcpy prototype.
108477 2007-01-26  Bruno Haible  <bruno@clisp.org>
108479         Small optimization.
108480         * lib/javacomp.c: Include c-strstr.h.
108481          (is_envjavac_gcj): Use c_strstr instead of strstr.
108482         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
108484 2007-01-26  Bruno Haible  <bruno@clisp.org>
108486         * MODULES.html.sh (Unicode string functions): Add the new modules.
108488         * modules/uniconv/u32-strconv-to-locale: New file.
108489         * lib/uniconv/u32-strconv-to-locale.c: New file.
108491         * modules/uniconv/u16-strconv-to-locale: New file.
108492         * lib/uniconv/u16-strconv-to-locale.c: New file.
108494         * modules/uniconv/u8-strconv-to-locale: New file.
108495         * lib/uniconv/u8-strconv-to-locale.c: New file.
108497         * modules/uniconv/u32-strconv-from-locale: New file.
108498         * lib/uniconv/u32-strconv-from-locale.c: New file.
108500         * modules/uniconv/u16-strconv-from-locale: New file.
108501         * lib/uniconv/u16-strconv-from-locale.c: New file.
108503         * modules/uniconv/u8-strconv-from-locale: New file.
108504         * lib/uniconv/u8-strconv-from-locale.c: New file.
108506         * modules/uniconv/u32-strconv-to-enc: New file.
108507         * lib/uniconv/u32-strconv-to-enc.c: New file.
108508         * modules/uniconv/u32-strconv-to-enc-tests: New file.
108509         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
108511         * modules/uniconv/u16-strconv-to-enc: New file.
108512         * lib/uniconv/u16-strconv-to-enc.c: New file.
108513         * lib/uniconv/u-strconv-to-enc.h: New file.
108514         * modules/uniconv/u16-strconv-to-enc-tests: New file.
108515         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
108517         * modules/uniconv/u8-strconv-to-enc: New file.
108518         * lib/uniconv/u8-strconv-to-enc.c: New file.
108519         * modules/uniconv/u8-strconv-to-enc-tests: New file.
108520         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
108522         * modules/uniconv/u32-strconv-from-enc: New file.
108523         * lib/uniconv/u32-strconv-from-enc.c: New file.
108524         * modules/uniconv/u32-strconv-from-enc-tests: New file.
108525         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
108527         * modules/uniconv/u16-strconv-from-enc: New file.
108528         * lib/uniconv/u16-strconv-from-enc.c: New file.
108529         * modules/uniconv/u16-strconv-from-enc-tests: New file.
108530         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
108532         * modules/uniconv/u8-strconv-from-enc: New file.
108533         * lib/uniconv/u8-strconv-from-enc.c: New file.
108534         * lib/uniconv/u-strconv-from-enc.h: New file.
108535         * modules/uniconv/u8-strconv-from-enc-tests: New file.
108536         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
108538         * modules/uniconv/u32-conv-from-enc: New file.
108539         * lib/uniconv/u32-conv-from-enc.c: New file.
108540         * modules/uniconv/u32-conv-from-enc-tests: New file.
108541         * tests/uniconv/test-u32-conv-from-enc.c: New file.
108543         * modules/uniconv/u16-conv-from-enc: New file.
108544         * lib/uniconv/u16-conv-from-enc.c: New file.
108545         * lib/uniconv/u-conv-from-enc.h: New file.
108546         * modules/uniconv/u16-conv-from-enc-tests: New file.
108547         * tests/uniconv/test-u16-conv-from-enc.c: New file.
108549         * modules/uniconv/u8-conv-from-enc: New file.
108550         * lib/uniconv/u8-conv-from-enc.c: New file.
108551         * modules/uniconv/u8-conv-from-enc-tests: New file.
108552         * tests/uniconv/test-u8-conv-from-enc.c: New file.
108554         * modules/uniconv/base: New file.
108555         * lib/uniconv.h: New file.
108557 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
108559         * doc/gnulib-tool.texi (Initial import): Update to match current
108560         behavior with strdup module.
108561         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
108562         * lib/memmem.h: Remove; all uses removed.  This is now done
108563         by <string.h>.
108564         * lib/mempcpy.h: Likewise.
108565         * lib/memrchr.h: Likewise.
108566         * lib/stpcpy.h: Likewise.
108567         * lib/stpncpy.h: Likewise.
108568         * lib/strcase.h: Likewise.
108569         * lib/strchrnul.h: Likewise.
108570         * lib/strdup.h: Likewise.
108571         * lib/strndup.h: Likewise.
108572         * lib/strnlen.h: Likewise.
108573         * lib/strpbrk.h: Likewise.
108574         * lib/strsep.h: Likewise.
108575         * lib/strstr.h: Likewise.
108576         * lib/strtok_r.h: Likewise.
108577         * lib/string_.h: New file.
108578         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
108579         Rely on <string.h> instead.
108580         * lib/canon-host.c: Likewise.
108581         * lib/chdir-long.c: Likewise.
108582         * lib/concatpath.c: Likewise.
108583         * lib/exclude.c: Likewise.
108584         * lib/fchdir.c: Likewise.
108585         * lib/getaddrinfo.c: Likewise.
108586         * lib/getcwd.c: Likewise.
108587         * lib/getsubopt.c: Likewise.
108588         * lib/glob.c: Likewise.
108589         * lib/hard-locale.c: Likewise.
108590         * lib/iconvme.c: Likewise.
108591         * lib/javacomp.c: Likewise.
108592         * lib/mempcpy.c: Likewise.
108593         * lib/memrchr.c: Likewise.
108594         * lib/regex_internal.h: Likewise.
108595         * lib/stpncpy.c: Likewise.
108596         * lib/strcasecmp.c: Likewise.
108597         * lib/strchrnul.c: Likewise.
108598         * lib/strdup.c: Likewise.
108599         * lib/striconv.c: Likewise.
108600         * lib/striconveh.c: Likewise.
108601         * lib/striconveha.c: Likewise.
108602         * lib/strncasecmp.c: Likewise.
108603         * lib/strndup.c: Likewise.
108604         * lib/strnlen.c: Likewise.
108605         * lib/strsep.c: Likewise.
108606         * lib/strstr.c: Likewise.
108607         * lib/strtok_r.c: Likewise.
108608         * lib/userspec.c: Likewise.
108609         * lib/w32spawn.h: Likewise.
108610         * lib/xstrndup.c: Likewise.
108611         * lib/mountlist.c (strstr): Remove decl.
108612         * m4/string_h.m4: New file.
108613         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
108614         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
108615         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
108616         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
108617         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
108618         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
108619         Set REPLACE_STRCASECMP if necessary.
108620         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
108621         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
108622         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
108623         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
108624         HAVE_DECL_STRDUP if necessary.
108625         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
108626         since gl_FUNC_STRNDUP does that now.
108627         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
108628         Check for decl here...
108629         (gl_PREREQ_STRNLEN): ... not here.
108630         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
108631         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
108632         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
108633         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
108634         necessary.
108635         * modules/string: New file.
108636         * modules/memmem (Files): Remove special-purpose include file.
108637         (Depends-on): Add string.
108638         (Include): Include <string.h>, not the removed file.
108639         * modules/mempcpy: Likewise.
108640         * modules/memrchr: Likewise.
108641         * modules/stpcpy: Likewise.
108642         * modules/stpncpy: Likewise.
108643         * modules/strcase: Likewise.
108644         * modules/strchrnul: Likewise.
108645         * modules/strdup: Likewise.
108646         * modules/strndup: Likewise.
108647         * modules/strnlen: Likewise.
108648         * modules/strpbrk: Likewise.
108649         * modules/strsep: Likewise.
108650         * modules/strstr: Likewise.
108651         * modules/strtok_r: Likewise.
108652         * tests/test-dirname.c: Don't include "strdup.h", since
108653         <string.h> now suffices.
108654         * tests/test-memmem.c: Don't include "memmem.h", since
108655         <string.h> now suffices.
108657 2007-01-25  Bruno Haible  <bruno@clisp.org>
108659         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
108660         *resultp is 0.
108662         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
108663         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
108664         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
108665         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
108667         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
108668         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
108669         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
108670         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
108671         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
108672         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
108674 2007-01-24  Bruno Haible  <bruno@clisp.org>
108676         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
108677         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
108678         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
108679         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
108680         gl_FUNC_FTS_CORE.
108681         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
108682         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
108683         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108684         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
108685         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
108686         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
108687         gl_FUNC_FCHOWNAT.
108688         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
108689         gl_FUNC_STRFTIME.
108690         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
108691         Reported by Ralf Wildenhues.
108693 2007-01-24  Bruno Haible  <bruno@clisp.org>
108695         Drop AC_REQUIRE calls that are redundant with the module dependencies.
108696         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
108697         gl_GETADDRINFO.
108698         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
108699         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
108700         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
108702 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
108704         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
108705         Don't use 'exit'; just return from 'main'.
108706         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
108708         * lib/fnmatch_.h: Readjust white space and comments to match
108709         glibc, to avoid spurious diffs.
108711 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108713         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
108714         2004-12-01 change by Jakub Jelinek, since this code won't compile
108715         if !LIBC.  Problem reported by Bob Proulx.
108717 2007-01-23  Bruno Haible  <bruno@clisp.org>
108719         * lib/striconveh.c: Include c-strcaseeq.h.
108720         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
108721         * modules/striconveh (Depends-on): Add c-strcaseeq.
108723 2007-01-23  Bruno Haible  <bruno@clisp.org>
108725         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
108727         * modules/c-strcaseeq: New file.
108728         * lib/c-strcaseeq.h: New file.
108730         * modules/streq: New file.
108731         * lib/streq.h: New file.
108733 2007-01-23  Bruno Haible  <bruno@clisp.org>
108735         * modules/striconveha-tests: New file.
108736         * tests/test-striconveha.c: New file.
108738         * lib/striconveha.h: Include <stdbool.h>.
108739         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
108740         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
108741         (mem_iconveha_notranslit): Renamed from mem_iconveha.
108742         (mem_iconveha): New function.
108743         (str_iconveha_notranslit): Renamed from str_iconveha.
108744         (str_iconveha): New function.
108745         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
108746         c-strcase.
108748 2007-01-23  Bruno Haible  <bruno@clisp.org>
108750         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
108751         encodings without forgiving before trying any encoding with handler.
108752         (str_iconveha): Try all encodings without forgiving before trying any
108753         encoding with handler.
108755 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108757         Import the following changes from libc.
108759         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
108761         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
108763         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
108765         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
108766         normal_bracket label.
108768         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
108770         [BZ #361]
108771         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
108772         to normal_bracket after fetching the next character.
108774 2007-01-22  Bruno Haible  <bruno@clisp.org>
108776         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
108777         argument.
108778         * lib/striconveh.c (iconv_carefully_1): New function.
108779         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
108780         argument.
108781         (str_cd_iconveh): Update.
108782         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
108783         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
108784         * tests/test-striconveh.c (MAGIC): New macro.
108785         (new_offsets): New function.
108786         (main): Test call with and without offsets.
108788 2007-01-22  Bruno Haible  <bruno@clisp.org>
108790         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
108791         * modules/sys_select (Makefile.am): Likewise.
108792         * modules/sys_socket (Makefile.am): Likewise.
108793         * modules/sys_time (Makefile.am): Likewise.
108795 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
108797         * modules/gettimeofday (License): Change from GPL to LGPL, since
108798         gettimeofday is a library function.
108800 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108802         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
108804 2007-01-21  Bruno Haible  <bruno@clisp.org>
108806         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
108808 2007-01-21  Bruno Haible  <bruno@clisp.org>
108810         * modules/striconveha: New file.
108811         * lib/striconveha.h: New file.
108812         * lib/striconveha.c: New file.
108813         * MODULES.html.sh (Internationalization functions): Add striconveha.
108814         * lib/striconv.c (str_iconv): Optimize the case of an empty input
108815         string.
108816         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
108818 2007-01-21  Bruno Haible  <bruno@clisp.org>
108820         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
108821         * lib/striconveh.c (str_iconveh): Likewise.
108823 2007-01-21  Bruno Haible  <bruno@clisp.org>
108825         * lib/striconveh.h (mem_iconveh): New declaration.
108826         * lib/striconveh.c (mem_iconveh): New function.
108827         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
108829 2007-01-21  Bruno Haible  <bruno@clisp.org>
108831         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
108833         * lib/striconveh.h (mem_cd_iconveh): Change specification.
108834         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
108835         original result buffer.
108836         (str_cd_iconveh): Update.
108837         * tests/test-striconveh.c (main): Update.
108839         * lib/striconv.h (mem_cd_iconv): Change specification.
108840         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
108841         result buffer.
108842         (str_cd_iconv): Update.
108843         * tests/test-striconv.c (main): Update.
108845 2007-01-21  Bruno Haible  <bruno@clisp.org>
108847         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
108849 2007-01-20  Jim Meyering  <jim@meyering.net>
108851         * lib/userspec.c (parse_with_separator): If a user or group string
108852         starts with "+", skip the corresponding name-to-ID look-up, since
108853         such a look-up must fail: user and group names may not include "+".
108855 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
108857         * lib/poll.c: Include sys/time.h and time.h unconditionally,
108858         since we now assume the sys_time module.
108859         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
108860         check for sys/time.h; no longer needed.
108861         * modules/poll (Depends-on): Depend on sys_time.
108863 2007-01-18  Bruno Haible  <bruno@clisp.org>
108865         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
108866         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108868         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
108869         gettimeofday.
108871         * tests/test-gettimeofday.c: Include <time.h>.
108872         (dummy): Remove variable.
108874         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
108875         gl_HEADER_SYS_TIME_H.
108876         (gl_HEADER_SYS_TIME_H): New macro.
108878         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
108879         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108880         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
108881         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
108882         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108883         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
108884         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
108885         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108886         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
108887         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
108888         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108890         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
108891         last change; it caused a compilation error when cross-compiling to
108892         Cygwin.
108894 2007-01-18  Jim Meyering  <jim@meyering.net>
108896         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
108897         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
108898         than the race-prone "test -d sys || mkdir sys".
108899         (configure.ac): Use AC_PROG_MKDIR_P.
108900         * modules/sys_select: Likewise.
108901         * modules/sys_socket: Likewise.
108902         * modules/sys_time: Likewise.
108904 2007-01-18  Eric Blake  <ebb9@byu.net>
108906         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
108907         replace gettimeofday.
108908         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
108909         name, to avoid infinite recursion.
108911 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
108913         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
108914         module sys_time.
108915         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
108916         assume timespec.h defines struct timeval.
108917         * lib/settime.c: Likewise.
108918         * lib/utimens.c: Likewise.
108919         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
108920         since we now assume the gettimeofday module.
108921         * lib/tempname.c (__gen_tempname): Likewise.
108922         * lib/gettimeofday.h: Remove.
108923         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
108924         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
108925         Include <time.h>, for 'time()'.
108926         (localtime_buffer_addr): Also use this workaround if
108927         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
108928         to simplify the uses.  All uses changed.
108929         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
108930         that #undef is inside {}, and 'const' follows type name consistently.
108931         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
108932         (gettimeofday): Do not use the maximum possible value for
108933         tv->tv_usec, since that might break usages other than ls.c.
108934         Instead, we'll leave ls.c alone.  This undoes today's patch
108935         by Bruno.  Add a compile-time warning for 1s-clock resolution;
108936         we've never observed the problem but might as well keep the
108937         canary.
108938         * lib/nanosleep.c: Include timespec.h first, for interface check.
108939         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
108940         now assume the sys_time module.
108941         * lib/tempname.c: Likewise.
108942         * lib/timespec.h: Likewise.
108943         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
108944         needed.
108945         * lib/strftime.c: Likewise.
108946         * lib/timespec.h: Likewise.
108947         * lib/posixtm.c: Include posixtm.h first, for interface check.
108948         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
108949         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
108950         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
108951         * lib/sys_time_.h: New file.
108952         * lib/timespec.h (struct timespec): Use long int, not long.
108953         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108954         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
108955         Remove obsolescent call to AC_HEADER_TIME.
108956         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
108957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108958         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108959         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
108960         Likewise.
108961         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
108962         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
108963         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
108964         into the sys_time module.  Check for gettimeofday just once.
108965         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
108966         for gettimeofday signature to just check the signature.  Merely
108967         compile it, since linking doesn't test signature.  Improve test for
108968         whether gettimeofday.o is actually needed.
108969         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
108970         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
108971         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
108972         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108973         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
108974         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
108975         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
108976         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
108977         than worrying about sys/time.h.
108978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108979         Don't bother worrying about TIME_WITH_SYS_TIME.
108980         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
108981         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
108982         * m4/sys_time_h.m4: New file.
108983         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
108984         Don't include sys/time.h.  Return from main rather than exiting.
108985         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
108986         all uses changed.
108987         * modules/gethrxtime (Depends-on): Add sys_time.
108988         * modules/gettime (Depends-on): Likewise.
108989         * modules/gettimeofday (Depends-on): Likewise.
108990         * modules/nanosleep (Depends-on): Likewise.
108991         * modules/settime (Depends-on): Likewise.
108992         * modules/tempname (Depends-on): Likewise.
108993         * modules/utimens (Depends-on): Likewise.
108994         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
108995         (Include): Change back to <sys/time.h>.
108996         (Maintainer): Add self.
108997         * modules/sys_time: New file.
108998         * modules/tempname (Depends-on): Add gettimeofday.
108999         * tests/test-gettimeofday.c: Include <sys/time.h>
109000         rather than gettimeofday.h.
109002 2007-01-17  Bruno Haible  <bruno@clisp.org>
109004         * gnulib-tool (func_get_license): Revert last patch. Instead, let
109005         the license default to GPL.
109006         (func_create_testdir): Don't complain if a module is LGPL and its
109007         tests module depends on GPLed modules.
109009 2007-01-17  Bruno Haible  <bruno@clisp.org>
109011         * lib/gettimeofday.c (gettimeofday): Add code for the case
109012         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
109013         maximum possible value for tv->tv_usec, rather than the minimum one.
109015 2005-10-08  Martin Lambers  <marlam@marlam.de>
109016 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
109017 2007-01-16  Bruno Haible  <bruno@clisp.org>
109019         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
109020         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
109021         gl_FUNC_GETTIMEOFDAY.
109022         (Include): Add gettimeofday.h.
109023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
109024         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
109025         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
109026         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
109027         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
109028         * lib/gettimeofday.h: New file.
109029         * lib/gettimeofday.c: Include <sys/timeb.h>.
109030         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
109031         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109032         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
109033         fall back on time().
109035         * tests/test-gettimeofday.c: New file.
109036         * modules/gettimeofday-tests: New file.
109038 2007-01-16  Eric Blake  <ebb9@byu.net>
109040         * modules/fnmatch (Depends-on): Depend on wchar.
109041         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
109042         * m4/fnmatch.m4: Likewise.
109043         * modules/mbchar (Makefile.am): Assume <wchar.h>.
109044         * m4/mbchar.m4: Likewise.
109045         * modules/mbswidth (Depends-on): Depend on wchar.
109046         * lib/mbswidth.c: Assume <wchar.h>.
109047         * m4/mbswidth.m4: Likewise.
109048         * modules/quotearg (Depends-on): Depend on wchar.
109049         * lib/quotearg.c: Assume <wchar.h>.
109050         * m4/quotearg.m4: Likewise.
109051         * modules/regex (Depends-on): Depend on wchar.
109052         * lib/regex_internal.h: Assume <wchar.h>.
109053         * m4/regex.m4: Likewise.
109054         * modules/stdint (Depends-on): Depend on wchar.
109055         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
109056         * m4/stdint.m4: Likewise.
109057         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
109058         * modules/strftime (Depends-on): Depend on wchar.
109059         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
109060         * modules/strtol (Depends-on): Depend on wchar.
109061         * lib/strtol.c: Assume <wchar.h>.
109062         * modules/wcwidth (Depends-on): Depend on wchar.
109063         * lib/wcwidth.h: Assume <wchar.h>.
109064         * m4/wcwidth.m4: Likewise.
109066 2007-01-16  Bruno Haible  <bruno@clisp.org>
109068         * modules/csharpexec-script: New, created from...
109069         * modules/csharpexec: ... this.
109071 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
109073         * modules/javaexec-script: New, created from...
109074         * modules/javaexec: ... this.
109076 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109078         * modules/poll (Dependencies): Add sys_select.
109080 2007-01-15  Jim Meyering  <jim@meyering.net>
109082         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
109083         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
109084         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
109085         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
109087 2007-01-15  Bruno Haible  <bruno@clisp.org>
109089         * modules/striconveh: New file.
109090         * lib/striconveh.h: New file.
109091         * lib/striconveh.c: New file.
109092         * MODULES.html.sh (Internationalization functions): Add striconveh.
109094         * modules/striconveh-tests: New file.
109095         * tests/test-striconveh.c: New file.
109097 2007-01-15  Bruno Haible  <bruno@clisp.org>
109099         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
109100         not from GNU libiconv or GNU libc.
109102 2007-01-15  Bruno Haible  <bruno@clisp.org>
109104         * doc/gnulib-intro.texi (Copyright): Explain the different license
109105         terms for module descriptions, autoconf macros, tests, documentation.
109107 2007-01-14  Bruno Haible  <bruno@clisp.org>
109109         * modules/striconv-tests: New file.
109110         * tests/test-striconv.c: New file.
109112 2007-01-14  Bruno Haible  <bruno@clisp.org>
109114         * modules/iconv-tests: New file.
109115         * tests/test-iconv.c: New file.
109117 2007-01-14  Bruno Haible  <bruno@clisp.org>
109119         * gnulib-tool (func_get_license): For test modules, use the license of
109120         the main module.
109122 2007-01-14  Bruno Haible  <bruno@clisp.org>
109124         * modules/iconv (Include): Clarify that <iconv.h> can only be included
109125         if iconv is found to exist.
109127 2007-01-14  Bruno Haible  <bruno@clisp.org>
109129         * modules/c-ctype-tests: New file.
109130         * tests/test-c-ctype.c: New file.
109132 2007-01-14  Bruno Haible  <bruno@clisp.org>
109134         * modules/binary-io-tests: New file.
109135         * tests/test-binary-io.sh: New file.
109136         * tests/test-binary-io.c: New file.
109138 2007-01-14  Bruno Haible  <bruno@clisp.org>
109140         * modules/array-oset-tests: New file.
109141         * tests/test-array_oset.c: New file.
109143 2007-01-14  Bruno Haible  <bruno@clisp.org>
109145         * modules/array-list-tests: New file.
109146         * tests/test-array_list.c: New file.
109148 2007-01-14  Bruno Haible  <bruno@clisp.org>
109150         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
109151         and make.
109152         Reported by Simon Josefsson in
109153         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
109155 2007-01-14  Bruno Haible  <bruno@clisp.org>
109157         * modules/allocsa-tests: New file.
109158         * tests/test-allocsa.c: New file.
109160 2007-01-14  Bruno Haible  <bruno@clisp.org>
109162         * modules/fchdir (Depends-on): Add absolute-header.
109163         * modules/unistd (Depends-on): Likewise.
109165 2006-12-30  Bruno Haible  <bruno@clisp.org>
109167         * modules/fchdir: New file.
109168         * modules/unistd (Files): Add lib/unistd_.h.
109169         (Makefile.am): Generate unistd.h from unistd_.h.
109170         * lib/fchdir.c: New file.
109171         * lib/dirent_.h: New file.
109172         * lib/unistd_.h: New file.
109173         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
109174         * m4/fchdir.m4: New file.
109175         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
109176         (gl_HEADER_UNISTD): Invoke it.
109177         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
109178         function.
109179         * lib/backupfile.c (opendir, closedir): Undefine.
109180         * lib/chown.c (open, close): Undefine.
109181         * lib/clean-temp.c (open, close): Undefine.
109182         * lib/copy-file.c (open, close): Undefine.
109183         * lib/execute.c (open, close): Undefine.
109184         * lib/fsusage.c (open, close): Undefine.
109185         * lib/gc-gnulib.c (open, close): Undefine.
109186         * lib/getcwd.c (opendir, closedir): Undefine.
109187         * lib/glob.c (opendir, closedir): Undefine.
109188         * lib/javacomp.c (open, close): Undefine.
109189         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
109190         * lib/openat-proc.c (open, close): Undefine.
109191         * lib/pagealign_alloc.c (open, close): Undefine.
109192         * lib/pipe.c (open, close): Undefine.
109193         * lib/progreloc.c (open, close): Undefine.
109194         * lib/savedir.c (opendir, closedir): Undefine.
109195         * lib/utime.c (open, close): Undefine.
109196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
109198 2007-01-10  Bruno Haible  <bruno@clisp.org>
109200         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
109202 2007-01-12  Eric Blake  <ebb9@byu.net>
109204         Provide a robust <wchar.h>.  Further simplifications are now
109205         possible in other modules, but not included here.
109206         * modules/wchar: New module.
109207         * m4/wchar.m4: New file.
109208         * lib/wchar_.h: Likewise.
109209         * modules/mbchar (Depends-on): Depend on wchar, as the first use
109210         of the new module.
109211         * MODULES.html.sh (Extended multibyte and wide character utilities):
109212         New section.
109214 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
109216         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
109217         to a reasonable default for memory allocation.
109218         (xreadlink): Don't allocate a huge buffer, to work around a buggy
109219         file system that reports garbage st_size values for symlinks.
109220         Problem reported by Liyang Hu.
109222 2007-01-11  Simon Josefsson  <simon@josefsson.org>
109224         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
109225         Emacs .#* auto-save files).
109227 2007-01-11  Bruno Haible  <bruno@clisp.org>
109229         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
109230         directory.
109232 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109234         Use @...@ consistently in lib/wctype_.h.
109235         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
109236         on it being set to 1 or 0.
109237         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
109238         go back to AC_SUBSTing it.
109239         * modules/wctype (Makefile.am): Undo previous change.
109241 2007-01-10  Eric Blake  <ebb9@byu.net>
109243         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
109244         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
109245         * modules/wctype (Makefile.am): Likewise.
109246         Reported by Chris McGuire.
109248 2007-01-10  Jim Meyering  <jim@meyering.net>
109250         fts.c: a small readability/maintainability improvement
109251         * lib/fts.c (fts_read): Make this code slightly more readable and
109252         maintainable by hoisting the "sp->fts_cur = p" assignments to
109253         immediately follow the statements that set P.  Derived from
109254         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
109256 2007-01-10  Eric Blake  <ebb9@byu.net>
109258         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
109259         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
109260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109261         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
109262         Reported by Chris McGuire.
109264 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109266         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
109267         in sed script.
109269 2007-01-09  Bruno Haible  <bruno@clisp.org>
109271         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
109272         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
109273         variables.
109274         (func_module): Use them.
109276 2007-01-09  Bruno Haible  <bruno@clisp.org>
109278         * modules/unistr/base: New file.
109279         * lib/unistr.h: New file.
109281         * modules/unistr/u8-to-u16: New file.
109282         * lib/unistr/u8-to-u16.c: New file.
109284         * modules/unistr/u8-to-u32: New file.
109285         * lib/unistr/u8-to-u32.c: New file.
109287         * modules/unistr/u16-to-u8: New file.
109288         * lib/unistr/u16-to-u8.c: New file.
109290         * modules/unistr/u16-to-u32: New file.
109291         * lib/unistr/u16-to-u32.c: New file.
109293         * modules/unistr/u32-to-u8: New file.
109294         * lib/unistr/u32-to-u8.c: New file.
109296         * modules/unistr/u32-to-u16: New file.
109297         * lib/unistr/u32-to-u16.c: New file.
109299         * modules/unistr/u8-check: New file.
109300         * modules/unistr/u16-check: New file.
109301         * modules/unistr/u32-check: New file.
109302         * lib/unistr/u8-check.c: New file.
109303         * lib/unistr/u16-check.c: New file.
109304         * lib/unistr/u32-check.c: New file.
109306         * modules/unistr/u8-chr: New file.
109307         * modules/unistr/u16-chr: New file.
109308         * modules/unistr/u32-chr: New file.
109309         * lib/unistr/u8-chr.c: New file.
109310         * lib/unistr/u16-chr.c: New file.
109311         * lib/unistr/u32-chr.c: New file.
109313         * modules/unistr/u8-cmp: New file.
109314         * modules/unistr/u16-cmp: New file.
109315         * modules/unistr/u32-cmp: New file.
109316         * lib/unistr/u8-cmp.c: New file.
109317         * lib/unistr/u16-cmp.c: New file.
109318         * lib/unistr/u32-cmp.c: New file.
109320         * modules/unistr/u8-cpy: New file.
109321         * modules/unistr/u16-cpy: New file.
109322         * modules/unistr/u32-cpy: New file.
109323         * lib/unistr/u8-cpy.c: New file.
109324         * lib/unistr/u16-cpy.c: New file.
109325         * lib/unistr/u32-cpy.c: New file.
109326         * lib/unistr/u-cpy.h: New file.
109328         * modules/unistr/u8-cpy-alloc: New file.
109329         * modules/unistr/u16-cpy-alloc: New file.
109330         * modules/unistr/u32-cpy-alloc: New file.
109331         * lib/unistr/u8-cpy-alloc.c: New file.
109332         * lib/unistr/u16-cpy-alloc.c: New file.
109333         * lib/unistr/u32-cpy-alloc.c: New file.
109334         * lib/unistr/u-cpy-alloc.h: New file.
109336         * modules/unistr/u8-endswith: New file.
109337         * modules/unistr/u16-endswith: New file.
109338         * modules/unistr/u32-endswith: New file.
109339         * lib/unistr/u8-endswith.c: New file.
109340         * lib/unistr/u16-endswith.c: New file.
109341         * lib/unistr/u32-endswith.c: New file.
109342         * lib/unistr/u-endswith.h: New file.
109344         * modules/unistr/u8-mblen: New file.
109345         * modules/unistr/u16-mblen: New file.
109346         * modules/unistr/u32-mblen: New file.
109347         * lib/unistr/u8-mblen.c: New file.
109348         * lib/unistr/u16-mblen.c: New file.
109349         * lib/unistr/u32-mblen.c: New file.
109351         * modules/unistr/u8-mbtouc: New file.
109352         * modules/unistr/u16-mbtouc: New file.
109353         * modules/unistr/u32-mbtouc: New file.
109354         * lib/unistr/u8-mbtouc.c: New file.
109355         * lib/unistr/u16-mbtouc.c: New file.
109356         * lib/unistr/u32-mbtouc.c: New file.
109358         * modules/unistr/u8-mbtouc-safe: New file.
109359         * modules/unistr/u16-mbtouc-safe: New file.
109360         * modules/unistr/u32-mbtouc-safe: New file.
109361         * lib/unistr/u8-mbtouc-safe.c: New file.
109362         * lib/unistr/u16-mbtouc-safe.c: New file.
109363         * lib/unistr/u32-mbtouc-safe.c: New file.
109365         * modules/unistr/u8-move: New file.
109366         * modules/unistr/u16-move: New file.
109367         * modules/unistr/u32-move: New file.
109368         * lib/unistr/u8-move.c: New file.
109369         * lib/unistr/u16-move.c: New file.
109370         * lib/unistr/u32-move.c: New file.
109371         * lib/unistr/u-move.h: New file.
109373         * modules/unistr/u8-next: New file.
109374         * modules/unistr/u16-next: New file.
109375         * modules/unistr/u32-next: New file.
109376         * lib/unistr/u8-next.c: New file.
109377         * lib/unistr/u16-next.c: New file.
109378         * lib/unistr/u32-next.c: New file.
109380         * modules/unistr/u8-prev: New file.
109381         * modules/unistr/u16-prev: New file.
109382         * modules/unistr/u32-prev: New file.
109383         * lib/unistr/u8-prev.c: New file.
109384         * lib/unistr/u16-prev.c: New file.
109385         * lib/unistr/u32-prev.c: New file.
109387         * modules/unistr/u8-set: New file.
109388         * modules/unistr/u16-set: New file.
109389         * modules/unistr/u32-set: New file.
109390         * lib/unistr/u8-set.c: New file.
109391         * lib/unistr/u16-set.c: New file.
109392         * lib/unistr/u32-set.c: New file.
109393         * lib/unistr/u-set.h: New file.
109395         * modules/unistr/u8-startswith: New file.
109396         * modules/unistr/u16-startswith: New file.
109397         * modules/unistr/u32-startswith: New file.
109398         * lib/unistr/u8-startswith.c: New file.
109399         * lib/unistr/u16-startswith.c: New file.
109400         * lib/unistr/u32-startswith.c: New file.
109401         * lib/unistr/u-startswith.h: New file.
109403         * modules/unistr/u8-stpcpy: New file.
109404         * modules/unistr/u16-stpcpy: New file.
109405         * modules/unistr/u32-stpcpy: New file.
109406         * lib/unistr/u8-stpcpy.c: New file.
109407         * lib/unistr/u16-stpcpy.c: New file.
109408         * lib/unistr/u32-stpcpy.c: New file.
109409         * lib/unistr/u-stpcpy.h: New file.
109411         * modules/unistr/u8-stpncpy: New file.
109412         * modules/unistr/u16-stpncpy: New file.
109413         * modules/unistr/u32-stpncpy: New file.
109414         * lib/unistr/u8-stpncpy.c: New file.
109415         * lib/unistr/u16-stpncpy.c: New file.
109416         * lib/unistr/u32-stpncpy.c: New file.
109417         * lib/unistr/u-stpncpy.h: New file.
109419         * modules/unistr/u8-strcat: New file.
109420         * modules/unistr/u16-strcat: New file.
109421         * modules/unistr/u32-strcat: New file.
109422         * lib/unistr/u8-strcat.c: New file.
109423         * lib/unistr/u16-strcat.c: New file.
109424         * lib/unistr/u32-strcat.c: New file.
109425         * lib/unistr/u-strcat.h: New file.
109427         * modules/unistr/u8-strchr: New file.
109428         * modules/unistr/u16-strchr: New file.
109429         * modules/unistr/u32-strchr: New file.
109430         * lib/unistr/u8-strchr.c: New file.
109431         * lib/unistr/u16-strchr.c: New file.
109432         * lib/unistr/u32-strchr.c: New file.
109434         * modules/unistr/u8-strcmp: New file.
109435         * modules/unistr/u16-strcmp: New file.
109436         * modules/unistr/u32-strcmp: New file.
109437         * lib/unistr/u8-strcmp.c: New file.
109438         * lib/unistr/u16-strcmp.c: New file.
109439         * lib/unistr/u32-strcmp.c: New file.
109441         * modules/unistr/u8-strcpy: New file.
109442         * modules/unistr/u16-strcpy: New file.
109443         * modules/unistr/u32-strcpy: New file.
109444         * lib/unistr/u8-strcpy.c: New file.
109445         * lib/unistr/u16-strcpy.c: New file.
109446         * lib/unistr/u32-strcpy.c: New file.
109447         * lib/unistr/u-strcpy.h: New file.
109449         * modules/unistr/u8-strcspn: New file.
109450         * modules/unistr/u16-strcspn: New file.
109451         * modules/unistr/u32-strcspn: New file.
109452         * lib/unistr/u8-strcspn.c: New file.
109453         * lib/unistr/u16-strcspn.c: New file.
109454         * lib/unistr/u32-strcspn.c: New file.
109455         * lib/unistr/u-strcspn.h: New file.
109457         * modules/unistr/u8-strdup: New file.
109458         * modules/unistr/u16-strdup: New file.
109459         * modules/unistr/u32-strdup: New file.
109460         * lib/unistr/u8-strdup.c: New file.
109461         * lib/unistr/u16-strdup.c: New file.
109462         * lib/unistr/u32-strdup.c: New file.
109463         * lib/unistr/u-strdup.h: New file.
109465         * modules/unistr/u8-strlen: New file.
109466         * modules/unistr/u16-strlen: New file.
109467         * modules/unistr/u32-strlen: New file.
109468         * lib/unistr/u8-strlen.c: New file.
109469         * lib/unistr/u16-strlen.c: New file.
109470         * lib/unistr/u32-strlen.c: New file.
109471         * lib/unistr/u-strlen.h: New file.
109473         * modules/unistr/u8-strmblen: New file.
109474         * modules/unistr/u16-strmblen: New file.
109475         * modules/unistr/u32-strmblen: New file.
109476         * lib/unistr/u8-strmblen.c: New file.
109477         * lib/unistr/u16-strmblen.c: New file.
109478         * lib/unistr/u32-strmblen.c: New file.
109480         * modules/unistr/u8-strmbtouc: New file.
109481         * modules/unistr/u16-strmbtouc: New file.
109482         * modules/unistr/u32-strmbtouc: New file.
109483         * lib/unistr/u8-strmbtouc.c: New file.
109484         * lib/unistr/u16-strmbtouc.c: New file.
109485         * lib/unistr/u32-strmbtouc.c: New file.
109487         * modules/unistr/u8-strncat: New file.
109488         * modules/unistr/u16-strncat: New file.
109489         * modules/unistr/u32-strncat: New file.
109490         * lib/unistr/u8-strncat.c: New file.
109491         * lib/unistr/u16-strncat.c: New file.
109492         * lib/unistr/u32-strncat.c: New file.
109493         * lib/unistr/u-strncat.h: New file.
109495         * modules/unistr/u8-strncmp: New file.
109496         * modules/unistr/u16-strncmp: New file.
109497         * modules/unistr/u32-strncmp: New file.
109498         * lib/unistr/u8-strncmp.c: New file.
109499         * lib/unistr/u16-strncmp.c: New file.
109500         * lib/unistr/u32-strncmp.c: New file.
109502         * modules/unistr/u8-strncpy: New file.
109503         * modules/unistr/u16-strncpy: New file.
109504         * modules/unistr/u32-strncpy: New file.
109505         * lib/unistr/u8-strncpy.c: New file.
109506         * lib/unistr/u16-strncpy.c: New file.
109507         * lib/unistr/u32-strncpy.c: New file.
109508         * lib/unistr/u-strncpy.h: New file.
109510         * modules/unistr/u8-strnlen: New file.
109511         * modules/unistr/u16-strnlen: New file.
109512         * modules/unistr/u32-strnlen: New file.
109513         * lib/unistr/u8-strnlen.c: New file.
109514         * lib/unistr/u16-strnlen.c: New file.
109515         * lib/unistr/u32-strnlen.c: New file.
109516         * lib/unistr/u-strnlen.h: New file.
109518         * modules/unistr/u8-strpbrk: New file.
109519         * modules/unistr/u16-strpbrk: New file.
109520         * modules/unistr/u32-strpbrk: New file.
109521         * lib/unistr/u8-strpbrk.c: New file.
109522         * lib/unistr/u16-strpbrk.c: New file.
109523         * lib/unistr/u32-strpbrk.c: New file.
109524         * lib/unistr/u-strpbrk.h: New file.
109526         * modules/unistr/u8-strrchr: New file.
109527         * modules/unistr/u16-strrchr: New file.
109528         * modules/unistr/u32-strrchr: New file.
109529         * lib/unistr/u8-strrchr.c: New file.
109530         * lib/unistr/u16-strrchr.c: New file.
109531         * lib/unistr/u32-strrchr.c: New file.
109533         * modules/unistr/u8-strspn: New file.
109534         * modules/unistr/u16-strspn: New file.
109535         * modules/unistr/u32-strspn: New file.
109536         * lib/unistr/u8-strspn.c: New file.
109537         * lib/unistr/u16-strspn.c: New file.
109538         * lib/unistr/u32-strspn.c: New file.
109539         * lib/unistr/u-strspn.h: New file.
109541         * modules/unistr/u8-strstr: New file.
109542         * modules/unistr/u16-strstr: New file.
109543         * modules/unistr/u32-strstr: New file.
109544         * lib/unistr/u8-strstr.c: New file.
109545         * lib/unistr/u16-strstr.c: New file.
109546         * lib/unistr/u32-strstr.c: New file.
109547         * lib/unistr/u-strstr.h: New file.
109549         * modules/unistr/u8-strtok: New file.
109550         * modules/unistr/u16-strtok: New file.
109551         * modules/unistr/u32-strtok: New file.
109552         * lib/unistr/u8-strtok.c: New file.
109553         * lib/unistr/u16-strtok.c: New file.
109554         * lib/unistr/u32-strtok.c: New file.
109555         * lib/unistr/u-strtok.h: New file.
109557         * modules/unistr/u8-uctomb: New file.
109558         * modules/unistr/u16-uctomb: New file.
109559         * modules/unistr/u32-uctomb: New file.
109560         * lib/unistr/u8-uctomb.c: New file.
109561         * lib/unistr/u16-uctomb.c: New file.
109562         * lib/unistr/u32-uctomb.c: New file.
109564         * MODULES.html.sh (Unicode string functions): Add the new modules.
109566 2007-01-08  Bruno Haible  <bruno@clisp.org>
109568         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
109569         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
109570         subdirectories.
109572 2007-01-08  Karl Berry  <karl@gnu.org>
109574         * doc/error.texi: mention that main() fns must set program_name
109575         when progname is used.
109577 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
109579         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
109580         WCTYPE_H is empty, for the benefit of builds from non-distclean
109581         directories.  Problem reported by Eric Blake in
109582         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
109584 2007-01-08  Bruno Haible  <bruno@clisp.org>
109586         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
109587         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
109588         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
109589         PROVIDE_CANONICALIZE_FILENAME_MODE.
109590         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
109592 2007-01-08  Bruno Haible  <bruno@clisp.org>
109594         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
109595         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
109596         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
109597         * lib/fts.c: Likewise.
109598         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
109600 2006-12-25  Bruno Haible  <bruno@clisp.org>
109602         * modules/utf8-ucs4-safe: New file.
109603         * lib/utf8-ucs4-safe.h: New file.
109604         * lib/unistr/utf8-ucs4-safe.c: New file.
109606         * modules/utf16-ucs4-safe: New file.
109607         * lib/utf16-ucs4-safe.h: New file.
109608         * lib/unistr/utf16-ucs4-safe.c: New file.
109610         * MODULES.html.sh (Unicode string functions): Add the new modules.
109612 2007-01-08  Bruno Haible  <bruno@clisp.org>
109614         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
109615         (Depends-on): Add unitypes.
109616         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109617         (u8_mbtouc_aux): Move out to separate file.
109618         (u8_mbtouc): Use ucs4_t, uint8_t types.
109619         * lib/unistr/utf8-ucs4.c: New file.
109621         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
109622         (Depends-on): Add unitypes.
109623         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109624         (u16_mbtouc_aux): Move out to separate file.
109625         (u16_mbtouc): Use ucs4_t, uint16_t types.
109626         * lib/unistr/utf16-ucs4.c: New file.
109628         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
109629         (Depends-on): Add unitypes.
109630         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
109631         (u8_uctomb_aux): Move out to separate file.
109632         (u8_uctomb): Use ucs4_t, uint8_t types.
109633         * lib/unistr/ucs4-utf8.c: New file.
109635         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
109636         (Depends-on): Add unitypes.
109637         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
109638         (u16_uctomb_aux): Move out to separate file.
109639         (u16_uctomb): Use ucs4_t, uint16_t types.
109640         * lib/unistr/ucs4-utf16.c: New file.
109642 2006-12-25  Bruno Haible  <bruno@clisp.org>
109644         * modules/unitypes: New file.
109645         * lib/unitypes.h: New file.
109646         * MODULES.html.sh (func_all_modules): New section "Unicode string
109647         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
109648         this section. Add unitypes.
109650 2007-01-08  Bruno Haible  <bruno@clisp.org>
109652         Avoid variable names that conflict with those from libtool.
109653         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
109654         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
109655         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
109656         library_names_spec to acl_library_names_spec, hardcode_* to
109657         acl_hardcode_*.
109658         Reported by Ralf Wildenhues.
109660 2007-01-08  Bruno Haible  <bruno@clisp.org>
109662         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
109663         definition.
109664         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
109665         definition.
109666         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
109667         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
109668         definition.
109669         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
109670         definition.
109671         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
109672         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
109673         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
109674         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
109675         definition.
109676         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
109677         definition.
109678         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
109679         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
109680         GC_USE_<algorithm>.
109681         * lib/gc-libgcrypt.c: Likewise.
109682         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
109683         * modules/gc-arctwo (configure.ac): Likewise.
109684         * modules/gc-des (configure.ac): Likewise.
109685         * modules/gc-hmac-md5 (configure.ac): Likewise.
109686         * modules/gc-hmac-sha1 (configure.ac): Likewise.
109687         * modules/gc-md2 (configure.ac): Likewise.
109688         * modules/gc-md4 (configure.ac): Likewise.
109689         * modules/gc-md5 (configure.ac): Likewise.
109690         * modules/gc-random (configure.ac): Likewise.
109691         * modules/gc-rijndael (configure.ac): Likewise.
109692         * modules/gc-sha1 (configure.ac): Likewise.
109694 2007-01-08  Bruno Haible  <bruno@clisp.org>
109696         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
109697         macro definition.
109698         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
109699         definition.
109700         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
109701         definition.
109702         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
109703         * modules/fcntl-safer (configure.ac): Likewise.
109704         * modules/fopen-safer (configure.ac): Likewise.
109705         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
109706         GNULIB_FWRITEERROR macro definition.
109708 2007-01-08  Bruno Haible  <bruno@clisp.org>
109710         * m4/gnulib-common.m4: New file.
109711         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
109712         (func_get_filelist): Add m4/gnulib-common.m4.
109714 2007-01-08  Bruno Haible  <bruno@clisp.org>
109716         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
109717         command.
109719 2007-01-08  Jim Meyering  <jim@meyering.net>
109721         Use a more robust test for a "can't happen" condition.
109722         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
109723         narrowed the st_size value.  Presuming the "can't happen" condition
109724         is true, that narrowing could conceivably convert an invalid st_size
109725         value into a valid one.  Instead, use a change based on Matthew
109726         Woehlke's original patch.
109728         Slight readability improvement: use an assert-like macro
109729         in place of literal "abort ()" uses.
109730         * lib/fts.c (fts_assert): Define.
109731         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
109732         Use this macro instead of a bare 'abort'.
109734 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
109736         Don't worry about using IRIX 5.3's wctype.h broken definitions;
109737         simply work around them.
109738         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
109739         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
109740         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
109741         declaring.
109742         Don't bother to define as macros, since the standard doesn't require it.
109743         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
109744         longer worry about IRIX 5.3.
109745         (HAVE_WCTYPE_CTMP_BUG): Remove.
109747 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
109749         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
109750         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
109751         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
109752         Problems reported by Georg Schwarz for IRIX 5.3.
109754         * gnulib-tool (autoconf_minversion): Take the maximum version number
109755         found, not the minimum.  Problem reported by James Youngman.
109757 2007-01-03  Karl Berry  <karl@gnu.org>
109759         * doc/error.texi: new file, explaining interaction with progname.
109760         * doc/gnulib.texi: include it.  Update copyright.
109762 2007-01-03  Simon Josefsson  <simon@josefsson.org>
109764         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
109765         AC_CANONICAL_HOST, to improve autobuild outputs.
109767 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
109768             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
109770         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
109771         sockets, server sockets, and other file descriptors.  Count errors
109772         to compute the return value.  Reorder the code a bit to be easier
109773         to follow.  Don't set event bits that were not requested (except
109774         POLLERR and POLLHUP).
109776 2007-01-01  Bruno Haible  <bruno@clisp.org>
109778         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
109780 2007-01-03  Jim Meyering  <jim@meyering.net>
109782         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
109784 2007-01-02  Bruno Haible  <bruno@clisp.org>
109786         * modules/settime (Include): Require timespec.h.
109787         * modules/nanosleep (Include): Likewise.
109789 2007-01-01  Bruno Haible  <bruno@clisp.org>
109791         * gnulib-tool (func_emit_copyright_notice): Bump year.
109792         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
109794 2007-01-01  Bruno Haible  <bruno@clisp.org>
109796         Improve support for OpenBSD.
109797         * build-aux/config.rpath (libname_spec): Export.
109798         (library_names_spec): New variable. Export.
109799         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
109800         library_names_spec from the config.rpath output. Locate shared library
109801         through the name pattern in library_names_spec.
109803 2007-01-01  Eric Blake  <ebb9@byu.net>
109805         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
109807 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
109809         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
109810         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
109811         assume the C locale, and avoid an "eval" that could cause trouble.
109812         Problem with SORT reported by Bob Proulx.
109814         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
109815         Define.  Trivial patch from Henning Nielsen Lund, originally
109816         sent to bug-grep@gnu.org today.
109818 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
109820         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
109821         struct stat.  Problem reported by Henning Nielsen Lund.
109822         * lib/acl.c: Include acl.h first, to check interface.  Don't
109823         bother to include sys/types.h and sys/stat.h again.
109825 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
109827         Import the following change from libc; problem reported by
109828         Sven Verdoolaege.
109830         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
109832         [BZ #1373]
109833         * lib/argp.h: Remove __NTH for __argp_usage inline function.
109835 2006-12-28  Jim Meyering  <jim@meyering.net>
109837         * build-aux/announce-gen: Do not assume that the package
109838         builds any of tar.gz, tar.bz2, and .xdelta files.
109839         Suggestion from Simon Josefsson.
109841 2006-12-28  Simon Josefsson  <simon@josefsson.org>
109843         * modules/announce-gen: New file.
109845 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
109847         * lib/mbchar.h: Just include <wctype.h>; the wctype module
109848         handles its gotchas now.
109849         * lib/mbswidth.c: Likewise.
109850         * lib/wcwidth.h: Likewise.
109851         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
109852         and iswcntrl; the wctype module does this stuff now.
109853         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109855         * modules/mbchar (Depends-on): Add wctype.
109856         * modules/mbswidth (Depends-on): Likewise.
109857         * modules/wcwidth (Depends-on): Likewise.
109859 2006-12-27  Eric Blake  <ebb9@byu.net>
109861         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
109862         module uses more than what <wctype.h> is required to provide.
109864 2006-12-26  Eric Blake  <ebb9@byu.net>
109866         * gnulib-tool (sed_extract_prog): Avoid space-tab.
109868 2006-12-26  Eric Blake  <ebb9@byu.net>
109870         * modules/absolute-header: New module.
109871         * modules/fcntl (Depends-on): Depend on it.
109872         * modules/inttypes (Depends-on): Likewise.
109873         * modules/stdint (Depends-on): Likewise.
109874         * modules/sys_stat (Depends-on): Likewise.
109875         * modules/wctype (Depends-on): Likewise.
109876         * MODULES.html.sh (Support for building libraries and
109877         executables): Document it.
109879 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
109881         * gnulib-tool (SED): Remove, undoing previous change.
109882         The problem was that it broke coreutils on Solaris, because
109883         "sed --posix" leaked into a makefile.
109884         (sed): New alias, if 'alias' and GNU sed.
109886 2006-12-24  Jim Meyering  <jim@meyering.net>
109888         Work around an fchownat bug in glibc-2.4:
109889         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
109890         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
109891         in spite of the -P option.
109892         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
109893         New macros.
109894         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
109895         * modules/openat (Files): Add lib/fchownat.c.
109896         * lib/openat.c (fchownat): Don't define here.  Move to...
109897         * lib/fchownat.c: ...this new file.
109899 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
109901         Fix bug reported by Bruno Haible in
109902         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
109903         where quotearg.c didn't compile on Mac OS X 10.2 because it
109904         lacks <wchar.h> and wint_t.
109905         * lib/wctype_.h (__wctype_wint_t): New type.
109906         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
109907         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
109908         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
109909         Arg is now of type __wctype_wint_t, not wint_t.
109910         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
109911         substitute HAVE_WINT_T.
109912         * modules/wctype (Files): Add m4/wint_t.m4.
109913         (wctype.h): Substitute HAVE_WINT_T.
109915 2006-12-23  Bruno Haible  <bruno@clisp.org>
109917         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
109919 2006-12-23  Bruno Haible  <bruno@clisp.org>
109921         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
109922         S_ISLNK.
109923         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
109924         mingw.
109926 2006-12-22  Bruno Haible  <bruno@clisp.org>
109928         * lib/copy-file.c: Include acl.h.
109929         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
109930         Close the file descriptors only after being done with copy_acl.
109931         * modules/copy-file (Depends-on): Add acl.
109933 2006-12-22  Bruno Haible  <bruno@clisp.org>
109935         * gnulib-tool (SED): New variable.
109936         Use $SED instead of sed everywhere.
109938 2006-12-22  Bruno Haible  <bruno@clisp.org>
109940         * modules/no-c++: New file.
109941         * m4/no-c++.m4: New file.
109942         * MODULES.html.sh (Support for building libraries and executables):
109943         Add no-c++.
109945 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
109947         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109948         Include <limits.h>, and use its INT_MAX to rewrite the
109949         j loop so that it does not overflow 'int'.  Problem reported by
109950         Ralf Wildenhues in
109951         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
109952         Play it safe by shifting left by 1 rather than multiplying by 2,
109953         as GCC is less likely to optimize this away when the value
109954         is signed (when it assumes overflow leads to undefined behavior).
109955         Also, don't assume time_t uses two's complement.
109957 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
109959         * MODULES.html.sh: New module wctype.
109960         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
109961         * lib/fnmatch.c: Don't bother to include <wchar.h> before
109962         <wctype.h>, since the new wctype module should fix this.
109963         * lib/quotearg.c: Include <wctype.h> unconditionally, since
109964         the wctype module should arrange for it.
109965         * lib/regex_internal.h: Likewise.
109966         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
109967         since the wctype module should handle this now.
109968         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
109969         * modules/fnmatch (Depends-on): Add wctype.
109970         * modules/quotearg (Depends-on): Likewise.
109971         * modules/regex (Depends-on): Likewise.
109973 2006-12-19  Bruno Haible  <bruno@clisp.org>
109975         * lib/strdup.h [C++]: Wrap definitions in extern "C".
109976         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
109978 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109980         * modules/savewd (Depends-on): Fix dependency on fcntl.
109982 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109984         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
109985         conforms to C99, rather than relying on the user's environment
109986         setting of STDINT_H.
109988 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109989         and Eric Blake  <ebb9@byu.net>
109991         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
109992         This is more consistent with the other defines here.
109993         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
109994         Port to z/OS.  Problem reported by Paul Gilmartin.
109995         Change local vars to use gl_ prefix rather than ac_.
109996         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
109997         with other defines.
109998         * modules/double-slash-root: New module.
109999         * modules/dirname (Files): Remove m4/double-slash-root.m4.
110000         (Depends-on): Add double-slash-root.
110001         * MODULES.html.sh (File system functions): Mention new module.
110003 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
110005         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
110006         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
110007         This is for the benefit of gzip, which doesn't do i18n.
110009 2006-12-12  Jim Meyering  <jim@meyering.net>
110011         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
110012         Reported by Andreas Schwab <schwab@suse.de>.
110014 2006-12-12  Bruno Haible  <bruno@clisp.org>
110016         Merge these changes.
110017         2006-09-05  Bruno Haible  <bruno@clisp.org>
110018         * lib/iconvme.c (iconv_string): No need to save and restore errno when
110019         iconv_alloc succeeded.
110020         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
110021         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
110022         test for " && dest " at the end - dest is always != NULL there. Call
110023         iconv with 4xNULL arguments initially, to reset the state. Call iconv
110024         with 2xNULL arguments, also to flush the state storage. Handle the
110025         IRIX iconv behaviour. Realloc the final result, to throw away unused
110026         memory.
110028 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
110030         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
110031         and fchmodat unconditionally, since glibc 2.4 has them.
110032         Problem reported by Arkadiusz Miskiewicz.
110034 2006-12-10  Bruno Haible  <bruno@clisp.org>
110036         * gnulib-tool (func_import): Show the include files only for those
110037         modules that are copied and specified.
110038         Reported by Karl Berry.
110040 2006-12-08  Jim Meyering  <jim@meyering.net>
110042         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
110043         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
110045         * build-aux/announce-gen: Add two new options, both optional:
110046         --bootstrap-tools=TOOL_LIST
110047               a comma-separated list of tools, e.g.,
110048               autoconf,automake,bison,gnulib
110049         --gnulib-snapshot-date=DATE
110050               if gnulib is in the bootstrap tool list,
110051               then report this as the snapshot date.
110052               If not specified, use the current date/time.
110053               If you specify a date here, be sure it's UTC.
110055 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110057         * tests/test-argp-2.sh: Fix test to match actual output.
110058         (func_compare): Fix sed script to be portable.
110060 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
110062         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
110063         workaround for this case.  It is not autoconfigured now; offhand
110064         it's hard to see how to autoconfigure it.
110066 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
110068         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
110069         a directory that is about to be chowned.  Such a directory's
110070         initial file permissions should permit the owner only and this
110071         should not be changed until after the chown, since the group and
110072         other bits would be incorrect if they granted permission before
110073         the chown.
110075         Fix porting problem for iswctype reported by Georg Schwarz in:
110076         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
110077         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
110078         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
110079         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
110080         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
110082 2006-12-03  Jim Meyering  <jim@meyering.net>
110084         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
110085         p->fts_statp may not yet be defined.
110086         (fts_read): Instead, set it in the caller, once p->fts_statp is
110087         sure to be defined, and corresponds to a top-level directory.
110088         This bug made du -x fail.  Here's the coreutils test case:
110089         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
110090         Reported by Mike Frysinger.
110092 2006-12-01  Jim Meyering  <jim@meyering.net>
110094         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
110095         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
110096         Reported by Simon Josefsson.
110098 2006-11-30  Jim Meyering  <jim@meyering.net>
110100         * m4/warning.m4: Use the all-permissive copyright notice
110101         recommended by RMS (rather than LGPL).
110102         * m4/vararrays.m4: Likewise.
110103         * m4/flexmember.m4: Likewise.
110105 2006-11-29  Bruno Haible  <bruno@clisp.org>
110107         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110108         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
110109         using +=.
110110         Reported by Simon Josefsson <simon@josefsson.org>.
110112 2006-11-28  James Youngman  <jay@gnu.org>
110114         * README: Advise users that they might find the bug-gnulib@gnu.org
110115         and autotools-announce@gnu.org mailing lists useful.
110117 2006-11-28  Bruno Haible  <bruno@clisp.org>
110119         * m4/ptrdiff_max.m4: Remove file.
110121 2006-11-21  Bruno Haible  <bruno@clisp.org>
110123         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
110124         _AC_COMPUTE_INT.
110125         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110126         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
110127         _AC_COMPUTE_INT.
110128         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110129         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
110130         _AC_COMPUTE_INT.
110131         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110133 2006-11-28  Jim Meyering  <jim@meyering.net>
110135         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
110136         warning from "gcc -Wshadow" about shadowing the builtin.
110138 2006-11-27  Bruno Haible  <bruno@clisp.org>
110140         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
110141         _AC_COMPUTE_INT.
110142         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110144 2006-11-27  Bruno Haible  <bruno@clisp.org>
110145             Paul Eggert  <eggert@cs.ucla.edu>
110147         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
110149 2006-11-26  Bruno Haible  <bruno@clisp.org>
110151         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110152         noinst_LTLIBRARIES.
110154 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
110155             Bruno Haible  <bruno@clisp.org>
110157         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
110158         if compiling with "gcc -ansi".
110160 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
110162         Fix some incompatibilities with gcc -ansi -pedantic.
110163         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
110164         if compiling pedantically with GCC, unless it's C99 or later.
110165         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
110166         it mishandles gcc -ansi -pedantic as well.
110167         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
110168         if gcc -pedantic.
110169         * lib/regexec.c (check_node_accept_bytes): Don't use auto
110170         initializers for struct if -pedantic, unless it's C99 or later.
110172 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
110174         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
110175         Don't close an fd more than once. Identical atimes indicate
110176         success, not failure.
110178 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
110180         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
110182 2006-11-23  Jim Meyering  <jim@meyering.net>
110184         * build-aux/announce-gen: New file.  From coreutils.
110186 2006-11-22  Jim Meyering  <jim@meyering.net>
110188         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
110189         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
110190         (fts_read): Use a temporary to narrow the overused st_size member
110191         before using it in a switch statement.  Reported by Matthew Woehlke.
110193         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
110194         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
110196 2006-11-20  Bruno Haible  <bruno@clisp.org>
110198         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
110199         changequote instead of pairs of brackets.
110200         Reported by Andreas Schwab <schwab@suse.de>.
110202 2006-11-21  Jim Meyering  <jim@meyering.net>
110204         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
110205         so as to remain compatible with older compilers.
110206         Patch from Michael Deutschmann.
110208 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110210         * MODULES.html.sh (File system functions): Add openat.
110212         * lib/openat.h (rpl_fstatat): New macro, if
110213         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
110214         (fstatat): Define to rpl_fstatat under the same conditions,
110215         unless COMPILING_FSTATAT.
110216         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
110217         seems to have the bug.
110218         * lib/fstatat.c: New file.
110219         * modules/openat (Files): Add it.
110221 2006-11-20  Bruno Haible  <bruno@clisp.org>
110223         * Makefile: New file.
110225 2006-11-20  Jim Meyering  <jim@meyering.net>
110227         The beginnings of syntax-related checks for gnulib.
110228         * lib/Makefile: New file.
110229         * lib/t-idcache: New script.  Ensure that the two halves of
110230         idcache.c stay in sync.
110232         * lib/idcache.c: Adjust comments in user- and group- portions to
110233         be more accurate, and to be consistent with one another.
110235 2006-11-20  Jim Meyering  <jim@meyering.net>
110237         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
110238         continue using the flexible array member (thus, this module performs
110239         half as many malloc calls), with the addition that...
110240         (getgroup, getuser): Consistently record a non-match via an empty
110241         "name" string, and map an empty string match to a NULL return value.
110242         * modules/idcache (Depends-on): Re-add flexmember.
110244         * lib/idcache.c (getuser): Remove all uses of the register keyword.
110245         (getuidbyname, getgroup, getgidbyname): Likewise.
110247         Use cleaner syntax: NULL rather than 0.
110248         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
110250 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110252         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
110253         It mishandled the case where the group was missing.
110254         Problem reported by Greg Schafer.
110255         * modules/idcache: Likewise.
110257 2006-11-18  Jim Meyering  <jim@meyering.net>
110259         * check-module (%exempt_header): Add exception for some
110260         conditionally-included headers.
110262         * modules/i-ring (Depends-on): Add verify.
110263         (License): Change to LGPL.
110265 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
110267         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
110268         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
110269         and inttostr.h.  Use snprintf rather than uinttostr, so that
110270         LGPLed code doesn't depend on GPLed.
110272 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
110274         * modules/inline (License): Change from GPL to LGPL.
110276 2006-11-17  Jim Meyering  <jim@meyering.net>
110278         * modules/d-type (License): Switch to LGPL.
110280 2006-11-15  Bruno Haible  <bruno@clisp.org>
110282         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
110284 2006-11-15  Eric Blake  <ebb9@byu.net>
110286         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
110287         the module dependency.
110289 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110290             Bruno Haible  <bruno@clisp.org>
110292         * gnulib-tool (func_create_testdir): Add license consistency check.
110294 2006-11-15  Eric Blake  <ebb9@byu.net>
110296         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
110297         random "(cached)" in configure output.
110299 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110301         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
110302         test for conforming inttypes.h is both announced and cached.
110304         * MODULES.html.sh (seen_modules, seen_files): New variables.
110305         (func_module): Rewrite to use a few less gnulib-tool and sed
110306         invocations.  Avoid a couple of quadratic algorithms for ...
110307         (missed_modules, missed_files): ... these, with ...
110308         (func_append, func_tmpdir): ... these new functions, from
110309         gnulib-tool.  Analogously, install traps for cleanup.
110311         * tests/test-gc.c (main): Remove unused variables.
110312         * tests/test-read-file.c: Include stdlib.h, for 'free'.
110314 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
110316         * modules/inttostr (License): Change to LGPL.
110318 2006-11-14  Eric Blake  <ebb9@byu.net>
110320         * modules/tempname (License): Change to LGPL.
110322 2006-11-14  Eric Blake  <ebb9@byu.net>
110324         * doc/functions.texi (Function Portability): *printf functions on
110325         Cygwin now understand all POSIX size specifiers.
110327 2006-11-14  Bruno Haible  <bruno@clisp.org>
110329         * modules/c-ctype (License): Change to LGPL.
110331 2006-11-12  Bruno Haible  <bruno@clisp.org>
110333         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
110334         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
110335         for GNOME libraries, for which the include files are installed in
110336         subdirectories of $prefix/include.
110338 2006-11-12  Bruno Haible  <bruno@clisp.org>
110340         * m4/lib-link.m4: Require at least autoconf-2.54.
110341         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
110342         name to underscores for the --with option.
110344 2006-11-13  Bruno Haible  <bruno@clisp.org>
110346         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
110347         the tests directory.
110348         Reported by Ralf Wildenhues.
110350 2006-11-13  Bruno Haible  <bruno@clisp.org>
110352         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
110353         (func_emit_initmacro_end): Undo the override here.
110354         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
110355         Works around the famous automake error in coreutils.
110357 2006-11-13  Eric Blake  <ebb9@byu.net>
110359         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
110360         element, not its node.
110362 2006-11-12  Bruno Haible  <bruno@clisp.org>
110364         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
110365         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
110367 2006-11-12  Bruno Haible  <bruno@clisp.org>
110369         * gnulib-tool: New option --local-symlink.
110370         (func_usage): Document it.
110371         (lsymbolic): New variable.
110372         (func_import, func_create_testdir): If --symlink was not specified,
110373         test whether --local-symlink was specified and the file comes from
110374         the local_gnulib_dir.
110376 2006-11-12  Bruno Haible  <bruno@clisp.org>
110378         * gnulib-tool (func_ln): New function.
110379         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
110381 2006-11-12  Bruno Haible  <bruno@clisp.org>
110383         Finish support for source files in subdirectories.
110384         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
110385         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
110386         AUTOMAKE_OPTIONS.
110387         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
110389 2006-11-12  Bruno Haible  <bruno@clisp.org>
110391         * gnulib-tool (func_get_automake_snippet): Synthesize also an
110392         EXTRA_lib_SOURCES augmentation.
110393         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
110395 2006-11-12  Jim Meyering  <jim@meyering.net>
110397         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
110398         file descriptors.  This also averts a failure on systems with
110399         native openat support when a traversed directory lacks "x" access.
110400         * lib/fts_.h: Include "i-ring.h"
110401         (struct FTS) [fts_fd_ring]: New member.
110402         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
110403         (FCHDIR): Add parentheses.
110404         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
110405         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
110406         When descending, rather than simply closing the previous
110407         fts_cwd_fd value, push that file descriptor onto the ring.
110408         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
110409         (fts_open): Initialize the new fd_ring member.
110410         (fts_close): Clear the ring.
110411         (fts_safe_changedir): When possible, use our new fd_ring to skip
110412         the diropen and fstat and dev/ino comparison that would normally
110413         accompany a virtual `chdir ("..")'.
110415         * modules/fts (Depends-on): Add i-ring.
110416         * modules/i-ring: New module.
110417         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
110418         * m4/i-ring.m4: New file.
110420 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110422         * gnulib-tool (func_create_testdir): Fix replacement of
110423         `build-aux' in configure.ac.  Run autotools in gltests
110424         subdirectory.
110425         (func_create_testdir, func_create_megatestdir, test): There is
110426         no need for '--force' in most autotool invocations in a new
110427         tree.  Actually fail the whole test if any of the tools, or the
110428         configure or make stages fail.
110430         Sync from Automake.
110431         * build-aux/gnupload: Revert last change.  Add pointer to upload
110432         instructions of the GNU Maintenance Instructions.
110433         Suggestion by Karl Berry.
110435 2006-11-10  Jim Meyering  <jim@meyering.net>
110437         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
110439 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110441         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
110442         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
110443         (bind_textdomain_codeset) [! ENABLE_NLS]:
110444         Evaluate all the arguments.  That way, callers get compatible behavior
110445         if the arguments have side effects.  Also, it avoids some GCC
110446         diagnostics in some cases; Joel E. Denny reported problems when Bison
110447         was configured with --enable-gcc-warnigs.
110449 2006-11-10  Jim Meyering  <jim@meyering.net>
110451         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
110452         relevant options in CFLAGS (like -O, -fno-inline) are taken into
110453         account.
110455 2006-11-10  Jim Meyering  <jim@meyering.net>
110457         * modules/inline: New file/module.
110458         * modules/xalloc (Files): Remove m4/inline.m4.
110459         (Depends-on): Add inline, instead.
110460         * modules/oset: Likewise.
110461         * modules/list: Likewise.
110463 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110465         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
110466         Problem reported by Matthew Woehlke.
110468 2006-11-09  Bruno Haible  <bruno@clisp.org>
110470         * lib/tempname.c (gen_tempname): Remove variant that invokes
110471         __gen_tempname.
110472         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
110473         __gen_tempname.
110475 2006-11-08  Bruno Haible  <bruno@clisp.org>
110477         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
110478         to 'yes' instead of 'cross-compiling'.
110480 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
110482         * lib/quotearg.h (quotearg_free): New decl.
110483         * lib/quotearg.c (quotearg_free): New function.
110484         (slot0, nslots, slotvec0, slotvec):
110485         Now file-scope so that quotearg_free can get at them.
110487 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110489         Sync from Automake.
110490         * build-aux/gnupload: Add missing 'gnu' to example URL.
110491         Report by Karl Berry.
110493 2006-11-08  Bruno Haible  <bruno@clisp.org>
110495         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
110496         Suggested by Paul Eggert.
110498 2006-11-08  Jim Meyering  <jim@meyering.net>
110500         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
110501         It's already included if !_LIBC.
110502         (fts_safe_changedir): Add a comment.
110504 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110506         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
110507         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
110508         Matthew Woehlke.
110510         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
110511         definitions up, to avoid colliding with change below.
110512         (static_inline) [HAVE_INLINE]: New macro.
110513         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
110514         Provide extern decls when !HAVE_INLINE.  Do not define unless
110515         static_inline is defined, either by us or by xmalloc.c.  Use
110516         static_inline rather than static inline.
110517         (XCALLOC): Optimize sizeof(T) = 1 case.
110518         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
110520 2006-11-07  Bruno Haible  <bruno@clisp.org>
110522         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
110523         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
110524         AC_C_INLINE.
110525         * modules/xalloc (Files): Add m4/inline.m4.
110527 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110529         * README: Fix typo.
110530         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
110531         (Miscellanous Notes): ...from this.
110533 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110535         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
110536         Mention that offsetof should be used instead of sizeof.
110537         From Bruno Haible.
110539 2006-11-07  Bruno Haible  <bruno@clisp.org>
110541         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
110543 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110545         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110546         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
110547         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110548         (gl_tree_add_before, gl_tree_add_after):
110549         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
110550         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
110551         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
110552         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
110553         (gl_linked_add_after, gl_linked_add_at): Likewise.
110554         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
110555         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110556         (gl_tree_add_before, gl_tree_add_after): Likewise.
110557         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
110558         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
110559         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
110561 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110563         * lib/gl_oset.h: Use C comment style, not C++ comment style.
110565 2006-11-06  Bruno Haible  <bruno@clisp.org>
110567         * m4/inline.m4: New file.
110568         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
110569         * modules/list (Files): Add m4/inline.m4.
110570         * modules/oset (Files): Likewise.
110572 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110574         * lib/idcache.c: Include <stddef.h>, for offsetof.
110575         (struct userid.name): Change from char * to a flexible array member.
110576         All uses changed.
110577         * modules/idcache (Depends-on): Add flexmember.
110579         * MODULES.html.sh (Core language properties): New module flexmember.
110580         * modules/flexmember, m4/flexmember.m4: New files.
110582         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
110583         inline functions that are identical with the old xnmalloc_inline,
110584         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
110585         that we can avoid some unnecessary integer multiplications and
110586         divisions in the common case where the element size is known at
110587         compile time.
110588         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
110589         needed.
110590         (xnboundedmalloc): Remove.
110591         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
110592         arguments, for consistency with rest of this header.
110593         (xcharalloc): Rewrite using XNMALLOC.
110594         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
110595         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
110596         versions have been moved to lib/xalloc.h and renamed to be the
110597         non-*_inline versions.
110598         (xmalloc, xrealloc): Implement without reference to the xnmalloc
110599         and xnrealloc functions, since those functions are now inline and
110600         now call us.
110601         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
110602         renaming described above.
110603         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
110604         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
110605         captures the dependency in AC_C_INLINE.
110607         New module canonicalize-lgpl, proposed by Charles Wilson in
110608         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
110609         with a few small changes afterwards.
110610         * MODULES.html.sh (File system functions): New module
110611         canonicalize-lgpl.
110612         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
110613         and canonicalize_file_name.
110614         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
110615         * modules/canonicalize-lgpl: New files.
110617 2006-11-05  Bruno Haible  <bruno@clisp.org>
110619         * gnulib-tool (func_import, func_create_testdir): Create directories
110620         also for files in subdirectories of lib/.
110622 2006-11-05  Bruno Haible  <bruno@clisp.org>
110624         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
110625         ANSI C compliant.
110627 2006-11-03  Bruno Haible  <bruno@clisp.org>
110629         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110630         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
110631         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
110632         (xnboundedmalloc): New inline function.
110633         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
110634         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
110635         xmalloc.
110636         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
110637         xmalloc.
110638         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
110639         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
110640         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
110641         xmalloc.
110642         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110643         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
110644         xmalloc.
110645         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
110646         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110647         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
110648         xmalloc.
110649         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110650         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
110651         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110652         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
110653         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
110654         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
110655         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
110657 2006-11-03  Bruno Haible  <bruno@clisp.org>
110659         * lib/c-ctype.h [C++]: Define functions without name mangling.
110660         * lib/fwriteerror.h [C++]: Likewise.
110661         * lib/gcd.h [C++]: Likewise.
110662         * lib/linebreak.h [C++]: Likewise.
110664 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
110666         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
110667         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
110668         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
110669         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110670         Check for functions and headers just once.
110671         Check for declaration of canonicalize_file_name.
110672         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
110674 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110676         * gnulib-tool (func_import): Fix typo in actioncmd.
110678 2006-11-02  Bruno Haible  <bruno@clisp.org>
110680         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
110681         newline sequence in the Makefile.am snippet as a space, like "make"
110682         does.
110683         Reported by Roger Persson <perrog@gmail.com>.
110685 2006-11-01  Bruno Haible  <bruno@clisp.org>
110687         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
110688         already declared in <string.h>.
110689         * lib/strcase.h (strncasecmp): Don't declare it if yes.
110691 2006-11-01  Bruno Haible  <bruno@clisp.org>
110693         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
110694         * lib/strcase.h: Include <string.h>.
110695         (strcasecmp): Define to rpl_strcasecmp here.
110697 2006-11-01  Bruno Haible  <bruno@clisp.org>
110699         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
110701 2006-11-01  Eric Blake  <ebb9@byu.net>
110703         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
110705         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
110707 2006-10-29  Bruno Haible  <bruno@clisp.org>
110709         Make it compile in C++ mode.
110710         * lib/full-write.c (full_rw): Add a cast.
110712 2006-11-01  Bruno Haible  <bruno@clisp.org>
110714         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
110715         be POSIX compliant.
110716         Reported by Roger Persson <perrog@gmail.com>.
110718 2006-11-01  Eric Blake  <ebb9@byu.net>
110720         * lib/getopt_.h: Fix comments.
110722 2006-10-31  Eric Blake  <ebb9@byu.net>
110724         * modules/tmpdir (Depends-on): Add sys_stat.
110725         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
110726         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
110727         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
110728         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
110729         tempname.
110731 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
110733         Avoid some C++ diagnostics reported by Bruno Haible.
110734         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
110735         xmalloc.
110736         (quotearg_alloc): Use xcharalloc rather than xmalloc.
110737         (struct slotvec): Move to top level.
110738         (quotearg_n_options): Rewrite to avoid xmalloc.
110739         * lib/xalloc.h (xcharalloc): New function.
110740         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
110741         [defined __cplusplus]: Add function template that provides result
110742         type propagation.  This part of the change is from Bruno Haible.
110744 2006-10-29  Bruno Haible  <bruno@clisp.org>
110746         Make it compile in C++ mode.
110747         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
110748         * lib/strnlen1.c (strnlen1): Cast memchr result.
110749         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
110750         * lib/clean-temp.c (string_equals, string_hash): Add casts.
110751         (create_temp_dir): Rename local variable 'template'.
110752         (compile_csharp_using_sscli): Add cast.
110753         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
110754         * lib/findprog.c (find_in_path): Likewise.
110755         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
110756         * lib/wait-process.c (register_slave_subprocess): Likewise.
110758 2006-10-22  Bruno Haible  <bruno@clisp.org>
110760         * modules/tsearch: New file.
110761         * lib/tsearch.h: New file.
110762         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
110763         * m4/tsearch.m4: New file.
110764         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
110766 2006-10-29  Eric Blake  <ebb9@byu.net>
110768         * lib/arcfour.c: Assume config.h.
110769         * lib/arctwo.c: Likewise.
110770         * lib/base64.c: Likewise.
110771         * lib/check-version.c: Likewise.
110772         * lib/crc.c: Likewise.
110773         * lib/des.c: Likewise.
110774         * lib/gc-gnulib.c: Likewise.
110775         * lib/gc-libgcrypt.c: Likewise.
110776         * lib/gc-pbkdf2-sha1.c: Likewise.
110777         * lib/getaddrinfo.c: Likewise.
110778         * lib/getdelim.c: Likewise.
110779         * lib/getline.c: Likewise.
110780         * lib/hmac-md5.c: Likewise.
110781         * lib/hmac-sha1.c: Likewise.
110782         * lib/iconvme.c: Likewise.
110783         * lib/md2.c: Likewise.
110784         * lib/md4.c: Likewise.
110785         * lib/memxor.c: Likewise.
110786         * lib/read-file.c: Likewise.
110787         * lib/readline.c: Likewise.
110788         * lib/rijndael-alg-fst.c: Likewise.
110789         * lib/rijndael-api-fst.c: Likewise.
110790         * lib/xgetdomainname.c: Likewise.
110792 2006-10-28  Eric Blake  <ebb9@byu.net>
110794         * lib/xstrndup.c: Assume config.h.
110796 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110798         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
110799         stat-macros.h is now for our own macros, whereas stat_h is for
110800         macros in the <sys/stat.h> name space.
110801         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
110802         (STAT_MACROS_H): Remove.
110803         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
110804         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
110805         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
110806         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
110807         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
110808         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
110809         Move these macros to ...
110810         * lib/stat_.h: here.  Don't include stat-macros.h.
110811         * lib/canonicalize.c: Don't include stat-macros.h.
110812         * lib/chown.c: Likewise.
110813         * lib/euidaccess.c: Likewise.
110814         * lib/file-type.c: Likewise.
110815         * lib/filemode.c: Likewise.
110816         * lib/glob.c: Likewise.
110817         * lib/isapipe.c: Likewise.
110818         * lib/lchown.c: Likewise.
110819         * lib/lstat.c: Likewise.
110820         * lib/mkdir-p.c: Likewise.
110821         * lib/rmdir.c: Likewise.
110822         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
110823         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
110824         unless mkdir isn't declared, to speed up 'configure'.
110825         Always create sys/stat.h, since it's unlikely any real sys/stat.h
110826         would define all the S_* symbols.
110827         * modules/canonicalize (Depends-on):
110828         Depend on sys_stat, not stat-macros.
110829         * modules/chown: Likewise.
110830         * modules/euidaccess: Likewise.
110831         * modules/filemode: Likewise.
110832         * modules/file-type: Likewise.
110833         * modules/glob: Likewise.
110834         * modules/isapipe: Likewise.
110835         * modules/lchown: Likewise.
110836         * modules/lstat: Likewise.
110837         * modules/mkancesdirs: Likewise.
110838         * modules/rmdir: Likewise.
110839         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
110840         * modules/modechange: Likewise.
110841         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
110842         (configure.ac): Remove gl_STAT_MACROS.
110843         * modules/sys_stat (Depends-on): Remove stat-macros.
110845 2006-10-27  Bruno Haible  <bruno@clisp.org>
110847         * m4/signed.m4: Remove file.
110848         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
110849         invocation.
110850         * modules/vasnprintf (Files): Remove m4/signed.m4.
110852 2006-10-27  Bruno Haible  <bruno@clisp.org>
110854         Update to GNU gettext 0.16.
110855         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
110856         m4/inttypes-h.m4, m4/signed.m4.
110857         * m4/gettext.m4: Update to GNU gettext 0.16.
110858         * m4/intl.m4: New file, from GNU gettext.
110859         * m4/intldir.m4: New file, from GNU gettext.
110860         * config/srclist.txt: Update
110862 2006-10-27  Eric Blake  <ebb9@byu.net>
110864         * MODULES.html.sh: Document tempname.
110865         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
110866         dependencies.
110867         (Files): Move lib/tempname.c...
110868         * modules/tempname: ...to this new module.
110869         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
110870         (gl_PREREQ_TEMPNAME): Move...
110871         * m4/tempname.m4: ...to this new file.
110872         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
110873         * modules/sys_stat (Depends-on): Add stat-macros.
110874         * lib/stat_.h (includes): Pick up stat macros.
110875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
110876         if stat macros are broken.
110877         * lib/tempname.c (includes): No need to include "stat-macros.h".
110878         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
110879         (direxists, __path_search) [!_LIBC]: Don't compile these in
110880         gnulib; the tmpdir module covers that.
110881         * lib/tempname.h: New file.
110883 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
110885         * COPYING: Explain how gnulib-tool converts licence headers.
110886         Almost all wording by Eric Blake.
110888 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
110890         * lib/mbchar.h (is_basic_table): Make read-only.
110891         * lib/mbchar.c (is_basic_table): Likewise.
110892         Reported by John Darrington.
110894 2006-10-25  Bruno Haible  <bruno@clisp.org>
110896         * lib/progname.h (set_program_name): Undefine before defining.
110898 2006-10-25  Bruno Haible  <bruno@clisp.org>
110900         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
110901         false for non-gcc C++ compilers.
110902         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
110904 2006-10-24  Bruno Haible  <bruno@clisp.org>
110906         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
110907         iconv implementations like Irix iconv.
110909 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110911         * modules/vararrays: New file.
110912         * m4/vararrays.m4: New file, taken from diffutils.
110913         * MODULES.html.sh: New module vararrays.
110915 2006-10-24  Karl Berry  <karl@gnu.org>
110917         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
110918         Don't call GNU Unix.
110920 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110922         * users.txt: Add Libtool.
110924         Sync from Libtool:
110926         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110928         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
110929         to gnulib's policy of including config.h unconditionally.
110931 2006-10-24  Bruno Haible  <bruno@clisp.org>
110933         * modules/wcwidth (Files): Add m4/wint_t.m4.
110934         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
110935         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
110937 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110939         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
110940         to pacify GCC with some -W flags enabled.  Problem reported by
110941         Bruno Haible.
110943 2006-10-24  Jim Meyering  <jim@meyering.net>
110945         * MODULES.html.sh: Remove uinttostr.  It's not a module.
110946         Reported by Karl Berry.
110948 2006-10-23  Bruno Haible  <bruno@clisp.org>
110950         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
110952 2006-10-24  Bruno Haible  <bruno@clisp.org>
110954         * lib/gl_list.h: Use C comment style, not C++ comment style.
110956 2006-10-23  Eric Blake  <ebb9@byu.net>
110958         * lib/getaddrinfo.c (includes): Add missing include.
110960 2006-10-23  Bruno Haible  <bruno@clisp.org>
110961             Paul Eggert  <eggert@cs.ucla.edu>
110963         Ability to rename obstack_free.
110964         * lib/obstack.h (__obstack_free): New macro. Declare instead of
110965         obstack_free.
110966         (obstack_free): Invoke the __obstack_free macro.
110967         * lib/obstack.c (obstack_free): Use __obstack_free macro.
110969 2006-10-23  Bruno Haible  <bruno@clisp.org>
110970             Paul Eggert  <eggert@cs.ucla.edu>
110972         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
110973         __argc, __argv from the declaration. (They are defined as macros on
110974         mingw.)
110976 2006-10-22  Bruno Haible  <bruno@clisp.org>
110978         * doc/gnulib-intro.texi: New file.
110979         * doc/gnulib.texi: Include it.
110981 2006-10-21  Bruno Haible  <bruno@clisp.org>
110983         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
110984         "Introduction", "Miscellanous Notes", "Particular Modules".
110986 2006-10-21  Bruno Haible  <bruno@clisp.org>
110988         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110989         Change mostlyclean-local rule to avoid sh syntax error from bash
110990         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
110992 2006-10-23  Jim Meyering  <jim@meyering.net>
110994         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
110995         in place of snprintf.
110997         * modules/inttostr (Files): Add lib/uinttostr.c.
110998         * lib/uinttostr.c (inttostr): New file/function.
110999         * lib/inttostr.h (uinttostr): Declare.
111000         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
111001         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
111002         Add uinttostr.
111003         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
111005 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111007         * lib/canonicalize.c (ELOOP): Define if not already defined.
111008         Problem reported by Bruno Haible in
111009         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
111011 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111013         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
111014         Problem reported by Perry Smith and Ville Laurikari.
111016         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
111017         uses.
111019 2006-10-19  Bruno Haible  <bruno@clisp.org>
111021         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
111022         for mingw.
111024 2006-10-19  Bruno Haible  <bruno@clisp.org>
111026         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
111027         Needed for mingw.
111029 2006-10-19  Bruno Haible  <bruno@clisp.org>
111031         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
111033 2006-10-19  Bruno Haible  <bruno@clisp.org>
111035         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
111036         it.
111038 2006-10-19  Bruno Haible  <bruno@clisp.org>
111040         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
111041         invocation.
111043 2006-10-19  Bruno Haible  <bruno@clisp.org>
111045         * gnulib-tool (func_create_testdir): Don't include ftruncate and
111046         mountlist by default.
111048 2006-10-16  Bruno Haible  <bruno@clisp.org>
111050         * lib/c-strstr.c: Include c-strstr.h.
111052 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111054         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
111055         in a slash.
111057 2006-10-18  Bruno Haible  <bruno@clisp.org>
111059         * lib/lock.h [C++]: Wrap definitions in extern "C".
111061 2006-10-18  Bruno Haible  <bruno@clisp.org>
111063         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
111064         gl_LIBOBJS list.
111066 2006-10-18  Bruno Haible  <bruno@clisp.org>
111068         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
111070 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
111072         * lib/xstrtol.h: Include gettext.h.
111073         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
111074         Problem reported by Eric Blake.
111075         * modules/xstrtol (Depends-on): Add gettext-h.
111077 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
111079         * lib/strftime.c (advance): New macro.
111080         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
111081         incomplete type, so you can't add 0 to it.  Problem and patch
111082         reported by Eelco Dolstra for dietlibc.
111084 2006-10-18  Jim Meyering  <jim@meyering.net>
111086         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
111087         type for a local, and rename it: s/up/user_proc/.
111089 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
111091         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
111092         READ_UTMP_USER_PROCESS.
111093         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
111095 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
111097         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
111098         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
111100 2006-10-17  Eric Blake  <ebb9@byu.net>
111102         * lib/sigprocmask.c (sigprocmask): Fix typo.
111104         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
111106         * modules/clean-temp (Makefile.am): Don't add to make output...
111107         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
111108         config.h.
111110 2006-10-17  Bruno Haible  <bruno@clisp.org>
111112         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
111113         differently if DEFAULT_TEXT_DOMAIN is set.
111115 2006-10-16  Bruno Haible  <bruno@clisp.org>
111117         * lib/clean-temp.c: Include fwriteerror.h.
111119 2006-10-16  Bruno Haible  <bruno@clisp.org>
111121         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
111123 2006-10-16  Bruno Haible  <bruno@clisp.org>
111125         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
111126         * lib/sigprocmask.h: Include <sys/types.h>.
111127         (sigset_t): Use the system's definition if present.
111129 2006-10-17  Eric Blake  <ebb9@byu.net>
111131         * lib/xvasprintf.c (includes): Assume config.h.
111132         * lib/xasprintf.c (includes): Likewise.
111134 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
111136         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
111137         at least as wide as intmax_t.
111139 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
111141         (Imported from Automake.)
111142         * build-aux/gnupload: Update to version 1.1 of directive file.
111144 2006-10-16  Eric Blake  <ebb9@byu.net>
111146         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
111147         match Automake 1.10a.
111149 2006-10-14  Bruno Haible  <bruno@clisp.org>
111151         * modules/sigprocmask: New file.
111152         * lib/sigprocmask.h: New file.
111153         * lib/sigprocmask.c: New file.
111154         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
111155         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
111156         request sigprocmask.o.
111157         (gl_PREREQ_SIGPROCMASK): New macro.
111158         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
111159         (Depends-on): Add sigprocmask.
111160         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
111161         gt_SIGNALBLOCKING. Test for 'raise' only once.
111162         * lib/fatal-signal.c: Include sigprocmask.h.
111163         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
111164         unblock_fatal_signals): Define always.
111165         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
111166         sigprocmask.
111168 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
111170         Sync from Automake.
111171         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
111172         which incorrectly sets the mode of an existing destination
111173         directory.  In some cases the unpatched install-sh could do the
111174         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
111175         system.  We hope this is rare in practice, but it's clearly worth
111176         fixing.  Problem reported by Alex Unleashed in
111177         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
111178         Also, don't bother to check for -m bugs unless we're using -m;
111179         suggested by Stepan Kasal.
111181 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111183         Sync from Automake.
111184         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
111185         `-c' flag, so they appear at the same position as in %FASTDEP%
111186         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
111187         which ignores unknown options only after the first non-option.
111188         Bug report against M4 by Nelson H. F. Beebe.
111190 2006-10-13  Jim Meyering  <jim@meyering.net>
111192         Fix a bug in yesterday's change.
111193         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
111194         p->fts_statp->st_dev would be used uninitialized.
111195         Ensures that we always call fts_stat on the very first entry.
111196         Miklos Szeredi reported that find -xdev stopped working.
111198 2006-10-12  Bruno Haible  <bruno@clisp.org>
111200         * gnulib-tool (func_get_automake_snippet): Append an automatically
111201         computed EXTRA_DIST augmentation.
111202         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
111203         * modules/alloca-opt (Makefile.am): Likewise.
111204         * modules/allocsa (Makefile.am): Likewise.
111205         * modules/arcfour (Makefile.am): Likewise.
111206         * modules/arctwo (Makefile.am): Likewise.
111207         * modules/argmatch (Makefile.am): Likewise.
111208         * modules/argz (Makefile.am): Likewise.
111209         * modules/atexit (Makefile.am): Likewise.
111210         * modules/backupfile (Makefile.am): Likewise.
111211         * modules/byteswap (Makefile.am): Likewise.
111212         * modules/c-strtod (Makefile.am): Likewise.
111213         * modules/c-strtold (Makefile.am): Likewise.
111214         * modules/calloc (Makefile.am): Likewise.
111215         * modules/canon-host (Makefile.am): Likewise.
111216         * modules/canonicalize (Makefile.am): Likewise.
111217         * modules/chdir-long (Makefile.am): Likewise.
111218         * modules/chdir-safer (Makefile.am): Likewise.
111219         * modules/check-version (Makefile.am): Likewise.
111220         * modules/chown (Makefile.am): Likewise.
111221         * modules/cloexec (Makefile.am): Likewise.
111222         * modules/close-stream (Makefile.am): Likewise.
111223         * modules/closeout (Makefile.am): Likewise.
111224         * modules/crc (Makefile.am): Likewise.
111225         * modules/csharpexec (Makefile.am): Likewise.
111226         * modules/cycle-check (Makefile.am): Likewise.
111227         * modules/des (Makefile.am): Likewise.
111228         * modules/dev-ino (Makefile.am): Likewise.
111229         * modules/dirfd (Makefile.am): Likewise.
111230         * modules/dirname (Makefile.am): Likewise.
111231         * modules/dup2 (Makefile.am): Likewise.
111232         * modules/eealloc (Makefile.am): Likewise.
111233         * modules/error (Makefile.am): Likewise.
111234         * modules/euidaccess (Makefile.am): Likewise.
111235         * modules/exclude (Makefile.am): Likewise.
111236         * modules/exitfail (Makefile.am): Likewise.
111237         * modules/fcntl-safer (Makefile.am): Likewise.
111238         * modules/fcntl (Makefile.am): Likewise.
111239         * modules/file-type (Makefile.am): Likewise.
111240         * modules/fileblocks (Makefile.am): Likewise.
111241         * modules/filemode (Makefile.am): Likewise.
111242         * modules/filenamecat (Makefile.am): Likewise.
111243         * modules/fnmatch (Makefile.am): Likewise.
111244         * modules/fopen-safer (Makefile.am): Likewise.
111245         * modules/fpending (Makefile.am): Likewise.
111246         * modules/fprintftime (Makefile.am): Likewise.
111247         * modules/free (Makefile.am): Likewise.
111248         * modules/fsusage (Makefile.am): Likewise.
111249         * modules/ftruncate (Makefile.am): Likewise.
111250         * modules/fts (Makefile.am): Likewise.
111251         * modules/gc-arcfour (Makefile.am): Likewise.
111252         * modules/gc-des (Makefile.am): Likewise.
111253         * modules/gc-hmac-md5 (Makefile.am): Likewise.
111254         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
111255         * modules/gc-md4 (Makefile.am): Likewise.
111256         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111257         * modules/gc-sha1 (Makefile.am): Likewise.
111258         * modules/gc (Makefile.am): Likewise.
111259         * modules/getaddrinfo (Makefile.am): Likewise.
111260         * modules/getcwd (Makefile.am): Likewise.
111261         * modules/getdelim (Makefile.am): Likewise.
111262         * modules/getdomainname (Makefile.am): Likewise.
111263         * modules/getgroups (Makefile.am): Likewise.
111264         * modules/gethostname (Makefile.am): Likewise.
111265         * modules/gethrxtime (Makefile.am): Likewise.
111266         * modules/getline (Makefile.am): Likewise.
111267         * modules/getloadavg (Makefile.am): Likewise.
111268         * modules/getlogin_r (Makefile.am): Likewise.
111269         * modules/getndelim2 (Makefile.am): Likewise.
111270         * modules/getopt (Makefile.am): Likewise.
111271         * modules/getpagesize (Makefile.am): Likewise.
111272         * modules/getpass-gnu (Makefile.am): Likewise.
111273         * modules/getpass (Makefile.am): Likewise.
111274         * modules/getsubopt (Makefile.am): Likewise.
111275         * modules/gettime (Makefile.am): Likewise.
111276         * modules/gettimeofday (Makefile.am): Likewise.
111277         * modules/getugroups (Makefile.am): Likewise.
111278         * modules/getusershell (Makefile.am): Likewise.
111279         * modules/glob (Makefile.am): Likewise.
111280         * modules/group-member (Makefile.am): Likewise.
111281         * modules/hard-locale (Makefile.am): Likewise.
111282         * modules/hash (Makefile.am): Likewise.
111283         * modules/hmac-md5 (Makefile.am): Likewise.
111284         * modules/hmac-sha1 (Makefile.am): Likewise.
111285         * modules/human (Makefile.am): Likewise.
111286         * modules/idcache (Makefile.am): Likewise.
111287         * modules/imaxabs (Makefile.am): Likewise.
111288         * modules/imaxdiv (Makefile.am): Likewise.
111289         * modules/inet_ntop (Makefile.am): Likewise.
111290         * modules/inet_pton (Makefile.am): Likewise.
111291         * modules/intprops (Makefile.am): Likewise.
111292         * modules/inttostr (Makefile.am): Likewise.
111293         * modules/inttypes (Makefile.am): Likewise.
111294         * modules/isapipe (Makefile.am): Likewise.
111295         * modules/javaversion (Makefile.am): Likewise.
111296         * modules/lchmod (Makefile.am): Likewise.
111297         * modules/lchown (Makefile.am): Likewise.
111298         * modules/localcharset (Makefile.am): Likewise.
111299         * modules/long-options (Makefile.am): Likewise.
111300         * modules/lstat (Makefile.am): Likewise.
111301         * modules/malloc (Makefile.am): Likewise.
111302         * modules/mathl (Makefile.am): Likewise.
111303         * modules/mbchar (Makefile.am): Likewise.
111304         * modules/md2 (Makefile.am): Likewise.
111305         * modules/md4 (Makefile.am): Likewise.
111306         * modules/md5 (Makefile.am): Likewise.
111307         * modules/memcasecmp (Makefile.am): Likewise.
111308         * modules/memchr (Makefile.am): Likewise.
111309         * modules/memcmp (Makefile.am): Likewise.
111310         * modules/memcoll (Makefile.am): Likewise.
111311         * modules/memcpy (Makefile.am): Likewise.
111312         * modules/memmem (Makefile.am): Likewise.
111313         * modules/memmove (Makefile.am): Likewise.
111314         * modules/mempcpy (Makefile.am): Likewise.
111315         * modules/memrchr (Makefile.am): Likewise.
111316         * modules/memset (Makefile.am): Likewise.
111317         * modules/memxor (Makefile.am): Likewise.
111318         * modules/mkancesdirs (Makefile.am): Likewise.
111319         * modules/mkdir-p (Makefile.am): Likewise.
111320         * modules/mkdir (Makefile.am): Likewise.
111321         * modules/mkdtemp (Makefile.am): Likewise.
111322         * modules/mkstemp (Makefile.am): Likewise.
111323         * modules/mktime (Makefile.am): Likewise.
111324         * modules/modechange (Makefile.am): Likewise.
111325         * modules/mountlist (Makefile.am): Likewise.
111326         * modules/nanosleep (Makefile.am): Likewise.
111327         * modules/obstack (Makefile.am): Likewise.
111328         * modules/openat (Makefile.am): Likewise.
111329         * modules/pagealign_alloc (Makefile.am): Likewise.
111330         * modules/pathmax (Makefile.am): Likewise.
111331         * modules/physmem (Makefile.am): Likewise.
111332         * modules/poll (Makefile.am): Likewise.
111333         * modules/posixtm (Makefile.am): Likewise.
111334         * modules/posixver (Makefile.am): Likewise.
111335         * modules/putenv (Makefile.am): Likewise.
111336         * modules/quote (Makefile.am): Likewise.
111337         * modules/quotearg (Makefile.am): Likewise.
111338         * modules/raise (Makefile.am): Likewise.
111339         * modules/read-file (Makefile.am): Likewise.
111340         * modules/readline (Makefile.am): Likewise.
111341         * modules/readlink (Makefile.am): Likewise.
111342         * modules/readtokens (Makefile.am): Likewise.
111343         * modules/readutmp (Makefile.am): Likewise.
111344         * modules/realloc (Makefile.am): Likewise.
111345         * modules/regex (Makefile.am): Likewise.
111346         * modules/rename-dest-slash (Makefile.am): Likewise.
111347         * modules/rename (Makefile.am): Likewise.
111348         * modules/rijndael (Makefile.am): Likewise.
111349         * modules/rmdir (Makefile.am): Likewise.
111350         * modules/rpmatch (Makefile.am): Likewise.
111351         * modules/safe-read (Makefile.am): Likewise.
111352         * modules/safe-write (Makefile.am): Likewise.
111353         * modules/same-inode (Makefile.am): Likewise.
111354         * modules/same (Makefile.am): Likewise.
111355         * modules/save-cwd (Makefile.am): Likewise.
111356         * modules/savedir (Makefile.am): Likewise.
111357         * modules/setenv (Makefile.am): Likewise.
111358         * modules/settime (Makefile.am): Likewise.
111359         * modules/sha1 (Makefile.am): Likewise.
111360         * modules/sig2str (Makefile.am): Likewise.
111361         * modules/snprintf (Makefile.am): Likewise.
111362         * modules/stat-macros (Makefile.am): Likewise.
111363         * modules/stat-time (Makefile.am): Likewise.
111364         * modules/stdbool (Makefile.am): Likewise.
111365         * modules/stdint (Makefile.am): Likewise.
111366         * modules/stdlib-safer (Makefile.am): Likewise.
111367         * modules/stpcpy (Makefile.am): Likewise.
111368         * modules/stpncpy (Makefile.am): Likewise.
111369         * modules/strcase (Makefile.am): Likewise.
111370         * modules/strcasestr (Makefile.am): Likewise.
111371         * modules/strchrnul (Makefile.am): Likewise.
111372         * modules/strcspn (Makefile.am): Likewise.
111373         * modules/strdup (Makefile.am): Likewise.
111374         * modules/strerror (Makefile.am): Likewise.
111375         * modules/strftime (Makefile.am): Likewise.
111376         * modules/strndup (Makefile.am): Likewise.
111377         * modules/strnlen (Makefile.am): Likewise.
111378         * modules/strpbrk (Makefile.am): Likewise.
111379         * modules/strsep (Makefile.am): Likewise.
111380         * modules/strstr (Makefile.am): Likewise.
111381         * modules/strtod (Makefile.am): Likewise.
111382         * modules/strtoimax (Makefile.am): Likewise.
111383         * modules/strtok_r (Makefile.am): Likewise.
111384         * modules/strtol (Makefile.am): Likewise.
111385         * modules/strtoll (Makefile.am): Likewise.
111386         * modules/strtoul (Makefile.am): Likewise.
111387         * modules/strtoull (Makefile.am): Likewise.
111388         * modules/strtoumax (Makefile.am): Likewise.
111389         * modules/strverscmp (Makefile.am): Likewise.
111390         * modules/sys_socket (Makefile.am): Likewise.
111391         * modules/sys_stat (Makefile.am): Likewise.
111392         * modules/sysexits (Makefile.am): Likewise.
111393         * modules/time_r (Makefile.am): Likewise.
111394         * modules/timegm (Makefile.am): Likewise.
111395         * modules/timespec (Makefile.am): Likewise.
111396         * modules/tmpfile-safer (Makefile.am): Likewise.
111397         * modules/trim (Makefile.am): Likewise.
111398         * modules/unistd-safer (Makefile.am): Likewise.
111399         * modules/unlinkdir (Makefile.am): Likewise.
111400         * modules/unlocked-io (Makefile.am): Likewise.
111401         * modules/userspec (Makefile.am): Likewise.
111402         * modules/utime (Makefile.am): Likewise.
111403         * modules/utimecmp (Makefile.am): Likewise.
111404         * modules/utimens (Makefile.am): Likewise.
111405         * modules/vasnprintf (Makefile.am): Likewise.
111406         * modules/vasprintf (Makefile.am): Likewise.
111407         * modules/vsnprintf (Makefile.am): Likewise.
111408         * modules/xalloc (Makefile.am): Likewise.
111409         * modules/xgetcwd (Makefile.am): Likewise.
111410         * modules/xnanosleep (Makefile.am): Likewise.
111411         * modules/xreadlink (Makefile.am): Likewise.
111412         * modules/xstrtod (Makefile.am): Likewise.
111413         * modules/xstrtol (Makefile.am): Likewise.
111414         * modules/xstrtold (Makefile.am): Likewise.
111415         * modules/yesno (Makefile.am): Likewise.
111416         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
111418 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111420         * modules/error (Makefile.am): Distribute files through
111421         EXTRA_DIST, not lib_SOURCES.
111423 2006-10-12  Eric Blake  <ebb9@byu.net>
111425         * modules/error (Makefile.am): Distribute files in /lib.
111426         * modules/obstack (Makefile.am): Likewise.
111428 2006-10-12  Bruno Haible  <bruno@clisp.org>
111430         * modules/acl (Makefile.am): Distribute all files in lib/ through
111431         EXTRA_DIST.
111432         * modules/arcfour (Makefile.am): Likewise.
111433         * modules/arctwo (Makefile.am): Likewise.
111434         * modules/argmatch (Makefile.am): Likewise.
111435         * modules/argz (Makefile.am): Likewise.
111436         * modules/atexit (Makefile.am): Likewise.
111437         * modules/backupfile (Makefile.am): Likewise.
111438         * modules/c-strtod (Makefile.am): Likewise.
111439         * modules/c-strtold (Makefile.am): Likewise.
111440         * modules/calloc (Makefile.am): Likewise.
111441         * modules/canon-host (Makefile.am): Likewise.
111442         * modules/canonicalize (Makefile.am): Likewise.
111443         * modules/chdir-long (Makefile.am): Likewise.
111444         * modules/chdir-safer (Makefile.am): Likewise.
111445         * modules/check-version (Makefile.am): Likewise.
111446         * modules/chown (Makefile.am): Likewise.
111447         * modules/cloexec (Makefile.am): Likewise.
111448         * modules/close-stream (Makefile.am): Likewise.
111449         * modules/closeout (Makefile.am): Likewise.
111450         * modules/crc (Makefile.am): Likewise.
111451         * modules/cycle-check (Makefile.am): Likewise.
111452         * modules/des (Makefile.am): Likewise.
111453         * modules/dirfd (Makefile.am): Likewise.
111454         * modules/dirname (Makefile.am): Likewise.
111455         * modules/dup2 (Makefile.am): Likewise.
111456         * modules/euidaccess (Makefile.am): Likewise.
111457         * modules/exclude (Makefile.am): Likewise.
111458         * modules/exitfail (Makefile.am): Likewise.
111459         * modules/fcntl-safer (Makefile.am): Likewise.
111460         * modules/file-type (Makefile.am): Likewise.
111461         * modules/fileblocks (Makefile.am): Likewise.
111462         * modules/filemode (Makefile.am): Likewise.
111463         * modules/filenamecat (Makefile.am): Likewise.
111464         * modules/fnmatch (Makefile.am): Likewise.
111465         * modules/fopen-safer (Makefile.am): Likewise.
111466         * modules/fpending (Makefile.am): Likewise.
111467         * modules/fprintftime (Makefile.am): Likewise.
111468         * modules/free (Makefile.am): Likewise.
111469         * modules/fsusage (Makefile.am): Likewise.
111470         * modules/ftruncate (Makefile.am): Likewise.
111471         * modules/fts (Makefile.am): Likewise.
111472         * modules/gc (Makefile.am): Likewise.
111473         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111474         * modules/getaddrinfo (Makefile.am): Likewise.
111475         * modules/getcwd (Makefile.am): Likewise.
111476         * modules/getdelim (Makefile.am): Likewise.
111477         * modules/getdomainname (Makefile.am): Likewise.
111478         * modules/getgroups (Makefile.am): Likewise.
111479         * modules/gethostname (Makefile.am): Likewise.
111480         * modules/gethrxtime (Makefile.am): Likewise.
111481         * modules/getline (Makefile.am): Likewise.
111482         * modules/getloadavg (Makefile.am): Likewise.
111483         * modules/getlogin_r (Makefile.am): Likewise.
111484         * modules/getopt (Makefile.am): Likewise.
111485         * modules/getpass (Makefile.am): Likewise.
111486         * modules/getpass-gnu (Makefile.am): Likewise.
111487         * modules/getsubopt (Makefile.am): Likewise.
111488         * modules/gettime (Makefile.am): Likewise.
111489         * modules/gettimeofday (Makefile.am): Likewise.
111490         * modules/getugroups (Makefile.am): Likewise.
111491         * modules/getusershell (Makefile.am): Likewise.
111492         * modules/glob (Makefile.am): Likewise.
111493         * modules/group-member (Makefile.am): Likewise.
111494         * modules/hard-locale (Makefile.am): Likewise.
111495         * modules/hash (Makefile.am): Likewise.
111496         * modules/hmac-md5 (Makefile.am): Likewise.
111497         * modules/hmac-sha1 (Makefile.am): Likewise.
111498         * modules/human (Makefile.am): Likewise.
111499         * modules/idcache (Makefile.am): Likewise.
111500         * modules/imaxabs (Makefile.am): Likewise.
111501         * modules/imaxdiv (Makefile.am): Likewise.
111502         * modules/inet_ntop (Makefile.am): Likewise.
111503         * modules/inet_pton (Makefile.am): Likewise.
111504         * modules/inttostr (Makefile.am): Likewise.
111505         * modules/isapipe (Makefile.am): Likewise.
111506         * modules/lchown (Makefile.am): Likewise.
111507         * modules/long-options (Makefile.am): Likewise.
111508         * modules/lstat (Makefile.am): Likewise.
111509         * modules/malloc (Makefile.am): Likewise.
111510         * modules/mathl (Makefile.am): Likewise.
111511         * modules/mbchar (Makefile.am): Likewise.
111512         * modules/md2 (Makefile.am): Likewise.
111513         * modules/md4 (Makefile.am): Likewise.
111514         * modules/md5 (Makefile.am): Likewise.
111515         * modules/memcasecmp (Makefile.am): Likewise.
111516         * modules/memchr (Makefile.am): Likewise.
111517         * modules/memcmp (Makefile.am): Likewise.
111518         * modules/memcoll (Makefile.am): Likewise.
111519         * modules/memcpy (Makefile.am): Likewise.
111520         * modules/memmem (Makefile.am): Likewise.
111521         * modules/memmove (Makefile.am): Likewise.
111522         * modules/mempcpy (Makefile.am): Likewise.
111523         * modules/memrchr (Makefile.am): Likewise.
111524         * modules/memset (Makefile.am): Likewise.
111525         * modules/memxor (Makefile.am): Likewise.
111526         * modules/mkancesdirs (Makefile.am): Likewise.
111527         * modules/mkdir (Makefile.am): Likewise.
111528         * modules/mkdir-p (Makefile.am): Likewise.
111529         * modules/mkdtemp (Makefile.am): Likewise.
111530         * modules/mkstemp (Makefile.am): Likewise.
111531         * modules/mktime (Makefile.am): Likewise.
111532         * modules/modechange (Makefile.am): Likewise.
111533         * modules/mountlist (Makefile.am): Likewise.
111534         * modules/nanosleep (Makefile.am): Likewise.
111535         * modules/openat (Makefile.am): Likewise.
111536         * modules/pagealign_alloc (Makefile.am): Likewise.
111537         * modules/physmem (Makefile.am): Likewise.
111538         * modules/poll (Makefile.am): Likewise.
111539         * modules/posixtm (Makefile.am): Likewise.
111540         * modules/posixver (Makefile.am): Likewise.
111541         * modules/putenv (Makefile.am): Likewise.
111542         * modules/quote (Makefile.am): Likewise.
111543         * modules/quotearg (Makefile.am): Likewise.
111544         * modules/raise (Makefile.am): Likewise.
111545         * modules/read-file (Makefile.am): Likewise.
111546         * modules/readline (Makefile.am): Likewise.
111547         * modules/readlink (Makefile.am): Likewise.
111548         * modules/readtokens (Makefile.am): Likewise.
111549         * modules/readutmp (Makefile.am): Likewise.
111550         * modules/realloc (Makefile.am): Likewise.
111551         * modules/regex (Makefile.am): Likewise.
111552         * modules/rename (Makefile.am): Likewise.
111553         * modules/rename-dest-slash (Makefile.am): Likewise.
111554         * modules/rijndael (Makefile.am): Likewise.
111555         * modules/rmdir (Makefile.am): Likewise.
111556         * modules/rpmatch (Makefile.am): Likewise.
111557         * modules/safe-read (Makefile.am): Likewise.
111558         * modules/safe-write (Makefile.am): Likewise.
111559         * modules/same (Makefile.am): Likewise.
111560         * modules/save-cwd (Makefile.am): Likewise.
111561         * modules/savedir (Makefile.am): Likewise.
111562         * modules/setenv (Makefile.am): Likewise.
111563         * modules/settime (Makefile.am): Likewise.
111564         * modules/sha1 (Makefile.am): Likewise.
111565         * modules/sig2str (Makefile.am): Likewise.
111566         * modules/snprintf (Makefile.am): Likewise.
111567         * modules/stdlib-safer (Makefile.am): Likewise.
111568         * modules/stpcpy (Makefile.am): Likewise.
111569         * modules/stpncpy (Makefile.am): Likewise.
111570         * modules/strcase (Makefile.am): Likewise.
111571         * modules/strcasestr (Makefile.am): Likewise.
111572         * modules/strchrnul (Makefile.am): Likewise.
111573         * modules/strcspn (Makefile.am): Likewise.
111574         * modules/strdup (Makefile.am): Likewise.
111575         * modules/strerror (Makefile.am): Likewise.
111576         * modules/strftime (Makefile.am): Likewise.
111577         * modules/strndup (Makefile.am): Likewise.
111578         * modules/strnlen (Makefile.am): Likewise.
111579         * modules/strpbrk (Makefile.am): Likewise.
111580         * modules/strsep (Makefile.am): Likewise.
111581         * modules/strstr (Makefile.am): Likewise.
111582         * modules/strtod (Makefile.am): Likewise.
111583         * modules/strtoimax (Makefile.am): Likewise.
111584         * modules/strtok_r (Makefile.am): Likewise.
111585         * modules/strtol (Makefile.am): Likewise.
111586         * modules/strtoll (Makefile.am): Likewise.
111587         * modules/strtoul (Makefile.am): Likewise.
111588         * modules/strtoull (Makefile.am): Likewise.
111589         * modules/strtoumax (Makefile.am): Likewise.
111590         * modules/strverscmp (Makefile.am): Likewise.
111591         * modules/time_r (Makefile.am): Likewise.
111592         * modules/timegm (Makefile.am): Likewise.
111593         * modules/tmpfile-safer (Makefile.am): Likewise.
111594         * modules/unistd-safer (Makefile.am): Likewise.
111595         * modules/unlinkdir (Makefile.am): Likewise.
111596         * modules/userspec (Makefile.am): Likewise.
111597         * modules/utime (Makefile.am): Likewise.
111598         * modules/utimecmp (Makefile.am): Likewise.
111599         * modules/utimens (Makefile.am): Likewise.
111600         * modules/vasnprintf (Makefile.am): Likewise.
111601         * modules/vasprintf (Makefile.am): Likewise.
111602         * modules/vsnprintf (Makefile.am): Likewise.
111603         * modules/xalloc (Makefile.am): Likewise.
111604         * modules/xgetcwd (Makefile.am): Likewise.
111605         * modules/xnanosleep (Makefile.am): Likewise.
111606         * modules/xreadlink (Makefile.am): Likewise.
111607         * modules/xstrtod (Makefile.am): Likewise.
111608         * modules/xstrtol (Makefile.am): Likewise.
111609         * modules/xstrtold (Makefile.am): Likewise.
111610         * modules/yesno (Makefile.am): Likewise.
111612 2006-10-12  Jim Meyering  <jim@meyering.net>
111614         * m4/getloadavg.m4: Revert the change below.
111616         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
111617         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
111618         fail with a symlink, which is what coreutils' ./bootstrap now
111619         creates by default.
111621 2006-10-12  Bruno Haible  <bruno@clisp.org>
111623         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
111624         mingw.
111625         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
111626         MSVC and mingw explicitly.
111628 2006-10-11  Simon Josefsson  <jas@extundo.com>
111629             Bruno Haible  <bruno@clisp.org>
111631         Add support for multiple gnulib-tool invocations in the scope of a
111632         single configure.ac file.
111633         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
111634         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
111635         with the same contents as the _LIBADD variable.
111636         (func_emit_initmacro_start, func_emit_initmacro_end,
111637         func_emit_initmacro_done): New functions.
111638         (func_import, func_create_testdir): Invoke them. Allow the identifiers
111639         gl_LIBOBJS and gl_LTLIBOBJS.
111641 2006-10-11  Bruno Haible  <bruno@clisp.org>
111643         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
111644         (func_create_testdir): Don't create po/Makefile.am, don't invoke
111645         autoreconf. Instead, invoke autopoint explicitly but move back the
111646         *.m4 files from gnulib.
111648 2006-10-11  Bruno Haible  <bruno@clisp.org>
111650         * gnulib-tool (func_usage): Make module names after --create-testdir
111651         optional.
111652         (func_create_testdir): If no module was specified, use nearly all
111653         modules.
111655 2006-10-12  Jim Meyering  <jim@meyering.net>
111657         Big performance improvement for fts-based tools that use FTS_NOSTAT.
111658         Avoid spurious inode-mismatch problems on non-POSIX file systems.
111659         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
111660         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
111661         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
111662         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
111663         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
111664         (fts_set_stat_required): New function.
111665         (fts_open): Defer the calls to fts_stat, if possible or requested.
111666         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
111667         into fts_stat itself.
111668         (fts_read): Perform any required (deferred) fts_stat call.
111669         (fts_build): Likewise, for the directory we're about to open and read.
111670         In the readdir loop, carefully decide whether each entry will require
111671         an eventual call to fts_stat, using dirent.d_type info if available.
111672         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
111673         a command line argument into this function.  Update all callers.
111674         Map a return value of FTS_DOT to FTS_D for a command line argument.
111675         * modules/fts (Depends-on): Add d-type.  Alphabetize.
111676         Thanks to Miklos Szeredi for his tenacity and for the initial
111677         bug report about "find" failing on a FUSE-based file system.
111679         * lib/fts.c (fts_open): Use consistent indentation.
111681 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111683         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
111684         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
111685         reported by Jim Meyering.  All uses of cache variables renamed
111686         to match Autoconf's.
111687         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
111688         the other one.
111690         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
111691         Fix misspelling in diagnostic.
111693 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111695         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
111696         defined.  Problem reported by Matthew Woehlke.
111698         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
111699         Add support for Tandem NonStop R series.
111700         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
111701         Use new macro.
111703         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
111704         (has_trailing_slash): Omit size arg; all callers changed.
111705         Omit 'inline', since it doesn't help performance and we'd
111706         need to configure it.
111707         Don't count //, ///, etc. as having a trailing slash.
111708         As a side effect, this removes a C99ism reported by Matthew Woehlke.
111709         (rpl_rename_dest_slash): On failure, use rename's errno rather
111710         than (in some cases) an incorrect or junk errno.
111711         Simplify code by removing need to compute length; this does
111712         cause it to make two passes instead of one over the file name,
111713         but it's worth it.
111715         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
111716         change, since Autoconf's version may no longer be appropriate now
111717         that we are using CVS Autoconf's version.  Add support for Tandem.
111719 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111720             Bruno Haible  <bruno@clisp.org>
111722         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
111723         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
111724         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
111725         gl_AC_TYPE_LONG_LONG.
111727         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
111728         instead of HAVE_LONG_LONG.
111729         * lib/printf-args.c (printf_fetchargs): Likewise.
111730         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
111731         * lib/vasnprintf.c (VASNPRINTF): Likewise.
111732         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
111733         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
111734         gl_AC_TYPE_LONG_LONG.
111736 2006-10-11  Bruno Haible  <bruno@clisp.org>
111738         * m4/longlong.m4: Add comments.
111739         * m4/ulonglong.m4: Likewise.
111741 2006-10-10  Bruno Haible  <bruno@clisp.org>
111743         Make it possible to #define stpcpy, strdup to aliases.
111744         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
111745         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
111747 2006-10-10  Bruno Haible  <bruno@clisp.org>
111749         Make it possible to #define gcd to an alias.
111750         * lib/gcd.c: Include config.h.
111752 2006-10-10  Bruno Haible  <bruno@clisp.org>
111754         Make it possible to #define c_isascii to an alias.
111755         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
111756         defined. Undefine the macros before defining them, to avoid gcc
111757         warnings.
111758         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
111759         define NO_C_CTYPE_MACROS early.
111761 2006-10-10  Bruno Haible  <bruno@clisp.org>
111763         Make it possible to #define set_program_name to an alias.
111764         * lib/progname.c: Don't undefine set_program_name; instead, undefine
111765         ENABLE_RELOCATABLE early.
111767 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
111769         Port to Tandem NSK OSS, which has 64-bit signed int but at most
111770         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
111771         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
111772         More generally, don't assume that 64-bit signed int is available
111773         if unsigned int is, and vice versa.
111774         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
111775         unsigned symbols, not on their signed counterparts.
111776         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
111777         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
111778         (UINT64_C, UINTMAX_C):
111779         Likewise.
111780         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
111781         unsigned counterparts.
111782         (Have_long_long, Unsigned): New macros.
111783         (Int): Renamed from INT.
111784         (strtoimax): Use the new macros.
111785         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
111786         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
111787         * modules/inttypes (inttypes.h): Substitute
111788         HAVE_UNSIGNED_LONG_LONG_INT.
111789         * modules/stdint (stdint.h): Likewise.
111790         (Files): Add m4/ulonglong.m4.
111792 2006-10-10  Bruno Haible  <bruno@clisp.org>
111794         Fix a gcc -Wshadow warning.
111795         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
111796         to 'bucket'.
111797         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
111798         gl_linked_indexof_from_to): Likewise.
111799         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
111800         Likewise.
111801         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
111802         Likewise.
111803         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
111804         Reported by Eric Blake.
111806 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
111808         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
111809         for NetBSD.  Problem reported by Bruno Haible.
111811 2006-10-09  Jim Meyering  <jim@meyering.net>
111813         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
111814         Patch from Bruno Haible.
111816 2006-10-09  Jim Meyering  <jim@meyering.net>
111818         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
111819         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
111820         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
111822 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
111824         Don't include <config.h> twice; this doesn't work in some cases,
111825         e.g., when config.h has "#define intmax_t long long int" and
111826         we include <config.h>, <inttypes.h>, <config.h> in that order.
111827         Problem reported by Matthew Woehlke in:
111828         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
111829         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
111830         * lib/fts-cycle.c: Don't include config.h.
111831         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
111832         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
111833         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
111834         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
111835         inttypes.h.
111836         * lib/xstrtoumax.c: Likewise.
111837         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
111838         __strtol and the like, so that this module is more like its siblings.
111839         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
111840         Remove; no longer needed now that we assume gnulib inttypes.h.
111842 2006-10-08  Bruno Haible  <bruno@clisp.org>
111844         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
111845         option.
111847 2006-10-07  Jim Meyering  <jim@meyering.net>
111849         * modules/inttypes (inttypes.h): Revert what seems to have been
111850         an inadvertent part of today's change: use "|", not "/" in the
111851         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
111853 2006-10-07  Bruno Haible  <bruno@clisp.org>
111855         * modules/sublist: New file.
111857 2006-10-07  Bruno Haible  <bruno@clisp.org>
111859         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
111860         * modules/argz (argz.h): Likewise.
111861         * modules/arpa_inet (arpa/inet.h): Likewise.
111862         * modules/byteswap (byteswap.h): Likewise.
111863         * modules/configmake (configmake.h): Likewise.
111864         * modules/fcntl (fcntl.h): Likewise.
111865         * modules/fnmatch (fnmatch.h): Likewise.
111866         * modules/getopt (getopt.h): Likewise.
111867         * modules/glob (glob.h): Likewise.
111868         * modules/inttypes (inttypes.h): Likewise.
111869         * modules/netinet_in (netinet/in.h): Likewise.
111870         * modules/poll (poll.h): Likewise.
111871         * modules/stdbool (stdbool.h): Likewise.
111872         * modules/stdint (stdint.h): Likewise.
111873         * modules/sys_select (sys/select.h): Likewise.
111874         * modules/sys_socket (sys/socket.h): Likewise.
111875         * modules/sys_stat (sys/stat.h): Likewise.
111876         * modules/sysexits (sysexits.h): Likewise.
111877         * modules/unistd (unistd.h): Likewise.
111878         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111879         Add a "DO NOT EDIT" comment to the generated file.
111880         (func_import): Likewise for gnulib-comp.m4.
111882 2006-10-07  Bruno Haible  <bruno@clisp.org>
111884         * lib/gl_sublist.h: New file.
111885         * lib/gl_sublist.c: New file.
111887 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
111889         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
111890         name (relative to the original working directory) and the file
111891         name component (relative to the temporary working directory).  All
111892         callers changed.
111893         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
111894         * lib/mkdir-p.c (make_dir_parents): Likewise.
111895         * lib/mkdir-p.h (make_dir_parents): Likewise.
111897 2006-10-06  Eric Blake  <ebb9@byu.net>
111899         Define several macros for use by the clean-temp module.
111900         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
111901         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
111902         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
111904         * lib/clean-temp.h (close_stream_temp): New declaration.
111905         * lib/clean-temp.c (includes): Pull in headers according to what
111906         other modules are in use.
111907         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
111909 2006-10-06  Bruno Haible  <bruno@clisp.org>
111911         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
111912         instead of fopen, fwriteerror.
111914 2006-10-06  Bruno Haible  <bruno@clisp.org>
111916         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
111917         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
111918         int.
111919         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
111920         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
111921         Return an error indicator.
111922         Suggested by Eric Blake.
111924 2006-10-06  Bruno Haible  <bruno@clisp.org>
111926         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
111927         Reported by Eric Blake.
111929 2006-10-06  Bruno Haible  <bruno@clisp.org>
111931         * modules/closeout (Description): Mention stderr too.
111933 2006-10-06  Bruno Haible  <bruno@clisp.org>
111934         and Paul Eggert  <eggert@cs.ucla.edu>
111936         * lib/closeout.c (close_stdout): Also close stderr.
111937         * lib/closeout.h: Update comment.
111939 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
111941         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
111942         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
111943         * lib/dirchownmod.c: Include lchown.h.
111944         * lib/lchown.c: Don't include files that lchown.h now includes.
111945         Don't declare chown, since lchown.h now does that.
111946         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
111947         (lchown): Define to rpl_chown if lchown is declared but
111948         does not exist.  Declare using a prototype if lchown is not
111949         declared.  Add a copyright notice.
111950         * lib/mkstemp.h: Include <unistd.h>.
111951         * lib/openat.c: Include lchown.h.
111953         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
111954         we now test for that separately.
111955         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
111956         rather than O_NOFOLLOW, when testing whether it's possible to
111957         avoid a race condition reliably.
111958         * lib/savewd.c (savewd_chdir): Likewise.
111960         Remove macros that are no longer needed now that stdint.h is
111961         reliable.
111962         * lib/fsusage.c (UINTMAX_MAX): Remove.
111963         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
111964         * lib/utimecmp.c (SIZE_MAX): Remove.
111966         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
111968         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
111969         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
111970         O_NOATIME works.
111972 2006-10-05  Bruno Haible  <bruno@clisp.org>
111974         * lib/gl_list.h (gl_sortedlist_search_from_to,
111975         gl_sortedlist_indexof_from_to): New declarations.
111976         (gl_list_implementation): New fields sortedlist_search_from_to,
111977         sortedlist_indexof_from_to.
111978         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
111979         inline functions.
111980         * lib/gl_list.c (gl_sortedlist_search_from_to,
111981         gl_sortedlist_indexof_from_to): New functions.
111982         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
111983         function.
111984         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
111985         (gl_array_sortedlist_search_from_to): New function.
111986         (gl_array_list_implementation): Update.
111987         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
111988         function.
111989         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
111990         (gl_carray_sortedlist_search_from_to): New function.
111991         (gl_carray_list_implementation): Update.
111992         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
111993         gl_linked_sortedlist_indexof_from_to): New functions.
111994         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111995         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111996         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
111997         gl_tree_sortedlist_indexof_from_to): New functions.
111998         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111999         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112000         Update.
112001         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112002         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
112003         Update.
112005 2006-10-05  Bruno Haible  <bruno@clisp.org>
112007         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
112008         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
112009         (struct gl_list_implementation): Add fields search_from_to,
112010         indexof_from_to. Remove fields search, indexof.
112011         (gl_list_search): Use the search_from_to method.
112012         (gl_list_search_from, gl_list_search_from_to): New functions.
112013         (gl_list_indexof): Use the indexof_from_to method.
112014         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112015         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
112016         (gl_list_search_from, gl_list_search_from_to): New functions.
112017         (gl_list_indexof): Use the indexof_from_to method.
112018         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112019         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
112020         gl_array_indexof. Add start_index, end_index arguments.
112021         (gl_array_search_from_to): Renamed from gl_array_search. Add
112022         start_index, end_index arguments.
112023         (gl_array_remove, gl_array_list_implementation): Update.
112024         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
112025         gl_carray_indexof. Add start_index, end_index arguments.
112026         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
112027         start_index, end_index arguments.
112028         (gl_carray_remove, gl_carray_list_implementation): Update.
112029         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
112030         gl_linked_search. Add start_index, end_index arguments.
112031         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
112032         start_index, end_index arguments.
112033         (gl_linked_remove): Update.
112034         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112035         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112036         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
112037         field to 'size_t'.
112038         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
112039         gl_tree_search. Add start_index, end_index arguments.
112040         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112041         start_index, end_index arguments.
112042         (gl_tree_remove): Update.
112043         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112044         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112045         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
112046         function.
112047         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
112048         gl_tree_search. Add start_index, end_index arguments.
112049         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112050         start_index, end_index arguments.
112051         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112052         Update.
112053         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
112055 2006-10-05  Bruno Haible  <bruno@clisp.org>
112057         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
112059         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
112060         fwriteerror_temp): New declarations.
112061         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
112062         (descriptors): New variable.
112063         (cleanup): First, close the descriptors.
112064         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
112065         fclose_temp, fwriteerror_temp): New functions.
112067 2006-10-04  Jim Meyering  <jim@meyering.net>
112069         * lib/fts.c (fts_open): Tiny comment change.
112071 2006-10-04  Bruno Haible  <bruno@clisp.org>
112073         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
112074         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
112075         gl_LOCK_BODY.
112076         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
112077         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
112078         gl_LOCK_EARLY_BODY.
112079         (gl_LOCK): Require gl_LOCK_BODY.
112081 2006-10-04  Bruno Haible  <bruno@clisp.org>
112083         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
112084         (gl_oset_search_atleast): New declaration.
112085         (struct gl_oset_implementation): Add field 'search_atleast'.
112086         (gl_oset_search_atleast): New inline function.
112087         * lib/gl_oset.c (gl_oset_search_atleast): New function.
112088         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
112089         (gl_array_oset_implementation): Update.
112090         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
112091         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
112092         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
112094 2006-10-04  Bruno Haible  <bruno@clisp.org>
112096         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
112098 2006-10-03  Bruno Haible  <bruno@clisp.org>
112100         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
112101         from gl_avltreehash_list_implementation.
112103 2006-10-03  Bruno Haible  <bruno@clisp.org>
112105         * lib/gl_oset.c (gl_oset_add): Fix return type.
112107 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
112109         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
112111 2006-10-02  Eric Blake  <ebb9@byu.net>
112113         * modules/strnlen (Depends-on): Add extensions.
112115 2006-10-02  Eric Blake  <ebb9@byu.net>
112117         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
112118         definition in 2.60+.
112120 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
112122         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
112123         checks.
112125 2006-10-02  Bruno Haible  <bruno@clisp.org>
112127         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
112128         to the AUTOMAKE_OPTIONS.
112129         Reported by Jim Meyering.
112131 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
112133         Work around bug in Solaris 10 /proc file system:
112134         /proc/self/fd/NNN/.. isn't the parent directory of
112135         the directory whose file descriptor is NNN.  This needs to
112136         be worked around at run time, not compile time, since a
112137         program might be built on Solaris 8, where things work, and
112138         run on Solaris 10.
112139         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
112140         to use the following interface instead:
112141         (OPENAT_BUFFER_SIZE): New macro.
112142         (openat_proc_name): New function.
112143         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
112144         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
112145         Likewise.
112146         * lib/openat-proc.c: New file.
112147         * modules/openat (Files): Add lib/openat-proc.c.
112148         (Depends-on): Add same-inode, stdbool.
112149         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
112151 2006-09-29  Bruno Haible  <bruno@clisp.org>
112153         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
112154         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
112155         argument. Set stdout_closed before testing for ferror, not after.
112156         (fwriteerror, fwriteerror_no_ebadf): New functions.
112158 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112160         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
112162 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
112164         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
112165         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
112167 2006-09-28  Jim Meyering  <jim@meyering.net>
112169         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
112170         Include <unistd.h>.
112172 2006-09-28  Bruno Haible  <bruno@clisp.org>
112174         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
112175         * modules/linkedhash-list (Depends-on): Likewise.
112176         * modules/rbtreehash-list (Depends-on): Likewise.
112178 2006-09-28  Bruno Haible  <bruno@clisp.org>
112180         * lib/strndup.h: Simplify the redefinition of strndup.
112181         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
112182         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
112184 2006-09-28  Bruno Haible  <bruno@clisp.org>
112186         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
112187         * lib/gl_linkedhash_list.c: Likewise.
112188         * lib/gl_rbtreehash_list.c: Likewise.
112190 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
112192         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
112193         getaddrinfo.
112195         * lib/__fpending.h: Don't include <stdio_ext.h> unless
112196         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
112197         it causes <stdio_ext.h> to cause a compile-time error.
112198         Problem reported by Nelson H. F. Beebe.
112199         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
112200         of HAVE_DECL___PENDING.
112202         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
112203         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
112204         declaration.
112206 2006-09-27  Jim Meyering  <jim@meyering.net>
112208         This file could end up with a definition for a function
112209         named __strndup, rather than rpl_strndup on a system with
112210         incomplete weak_alias support.
112211         * lib/strndup.c (strndup): Rename from __strndup.
112212         Remove #defines that used to map __strndup to strndup.
112213         Don't use K&R prototypes.
112214         Remove LIBC-related code, since this file is not sync'd with glibc.
112215         * lib/strndup.h: Revamp, accordingly.
112216         * m4/strndup.m4: Modernize.
112218 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
112220         * modules/savewd (Depends-on): Add 'raise'.
112221         * lib/savewd.c: Include <signal.h>, for 'raise'.
112223 2006-09-26  Jim Meyering  <jim@meyering.net>
112225         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
112226         when we detect Darwin 8.7.0's acl_get_file bug.
112227         Rearrange to perform the new (below) run-test while $LIBS
112228         contains any acl-related library.  Set USE_ACL at the end.
112229         (gl_ACL_GET_FILE): New function.
112231 2006-09-26  Eric Blake  <ebb9@byu.net>
112233         * lib/verror.c: Include <config.h> unconditionally.
112235 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
112237         * modules/clock-time (Maintainer): Add self.
112238         * modules/getlogin_r (Depends-on): Add extensions.
112240 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112242         * modules/clock-time: New module.
112243         * modules/nanosleep (Depends-on): Add clock-time.
112244         * modules/gethrxtime (Depends-on): Likewise.
112245         * modules/gettime (Depends-on): Likewise.
112246         * modules/settime (Depends-on): Likewise.
112248         * modules/fts-lgpl: Depend on openat.
112249         * modules/mkancesdirs: Depend on savewd.
112250         * modules/mkdir-p: Likewise.
112252 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112254         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
112256         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
112257         `gl_have_arbitrary_file_name_length_limit' to
112258         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
112259         actually works between configure runs.
112261 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112262             Bruno Haible  <bruno@clisp.org>
112264         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
112266 2006-09-25  Jim Meyering  <jim@meyering.net>
112268         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
112269         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
112271 2006-09-25  Eric Blake  <ebb9@byu.net>
112273         * gnulib-tool (func_import, func_create_testdir): Fix typos in
112274         exec's in 2006-09-18 patch when shuffling fds.
112276 2006-09-25  Bruno Haible  <bruno@clisp.org>
112278         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
112279         Reported by Jim Meyering.
112281 2006-09-24  Jim Meyering  <jim@meyering.net>
112283         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
112284         compare a pointer against a literal "0".  That caused failures with
112285         at least HP-UX's hpcc.
112287 2006-09-22  Simon Josefsson  <jas@extundo.com>
112289         * modules/gc-sha1:
112290         * modules/gc-md4:
112291         * modules/gc-hmac-sha1:
112292         * modules/gc-hmac-md5:
112293         * modules/gc-des:
112294         * modules/gc-arcfour: Distribute more files.
112296 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112298         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
112299         (gl_linked_iterator_from_to): Initialize struct completely.
112300         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
112301         (gl_tree_iterator_from_to): Likewise
112302         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
112303         * lib/gl_array_list.c [lint] (gl_array_iterator)
112304         (gl_array_iterator_from_to): Likewise.
112305         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
112306         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
112307         (gl_carray_iterator_from_to): Likewise.
112309         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
112310         * lib/md4.c (md4_process_block): Remove unused variable.
112311         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
112312         parentheses for clarity.
112314 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112316         * modules/bison-i18n (Depends-on): Add gettext.
112318 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112320         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
112321         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
112322         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
112323         also add missing comma that caused broken test.
112324         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
112325         stdlib.h, for `abort'.
112326         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
112327         variables.
112328         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
112329         include unistd.h if present, for `rmdir'.
112330         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
112331         variables.
112332         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
112333         in the process include standard headers for prototypes.
112334         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
112335         gets declared on GNU/Linux.
112336         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
112337         unistd.h, for `rmdir'.
112338         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
112340         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
112341         always true.
112342         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
112344         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
112346 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112348         * gnulib-tool (func_version): Create output all at once.  This
112349         may help avoid triggering unnecessary SIGPIPEs, and at any
112350         rate it doesn't hurt.
112352 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112353             Bruno Haible  <bruno@clisp.org>
112355         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
112356         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
112357         * m4/signed.m4 (bh_C_SIGNED): Likewise.
112359         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
112360         (gl_FUNC_VASPRINTF): Invoke it.
112362 2006-09-22  Bruno Haible  <bruno@clisp.org>
112364         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
112365         getloadavg.c as first argument.
112367 2006-09-22  Bruno Haible  <bruno@clisp.org>
112369         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
112370         at the beginning of the gl_INIT macro.
112371         * modules/getloadavg (configure.ac): Pass $gl_source_base to
112372         gl_GETLOADAVG.
112374 2006-09-22  Bruno Haible  <bruno@clisp.org>
112376         * gnulib-tool (func_create_megatestdir): Don't include the config-h
112377         module.
112378         Suggested by Ralf Wildenhues.
112380 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
112382         Import this patch from libc:
112384         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
112386         * lib/regex_internal.c (re_string_reconstruct): Handle
112387         offset < pstr->valid_raw_len && pstr->offsets_needed case.
112388         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
112389         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
112390         re_string_context_at.
112392         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
112393         now requires it.
112394         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
112395         gl_REGEX now does it for us.
112396         (gl_REGEX): Add test taken from
112397         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
112399         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
112400         Check that large offsets work.  Modernize Autoconf usages.
112401         Prefer "yes" to mean a good thing rather than a bad.
112402         Don't put "#define mkstemp" in config.h, as this might interfere
112403         with standard system headers that "#define mkstemp mkstemp64".
112405         * modules/mkstemp (Depends-on): Add extensions, so that
112406         mkstemp is visible on some platforms.
112407         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
112408         (Include): Change to "mkstemp.h" from <stdlib.h>.
112409         (Files): Add mkstemp.h.
112411         * lib/mkstemp.h: New file, since some standard headers
112412         #define mkstemp.
112413         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
112414         Include "mkstemp.h".
112415         Make the _LIBC code resemble glibc original more,
112416         e.g., use K&R style.
112417         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
112418         (mkstemp): Remove, since mkstemp.h does this for us.
112419         * lib/stdlib--.h: Include mkstemp.h.
112421         Import this patch from libc:
112423         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112425         * lib/tempname.c (__gen_tempname): Change attempts_min
112426         into a macro.  Use preprocessor to decide how to initialize
112427         attempts [Coverity CID 67].
112429 2006-09-20  Bruno Haible  <bruno@clisp.org>
112431         * lib/mkdtemp.c: Import from libc.
112432         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112433                 * sysdeps/posix/tempname.c (__gen_tempname): Change
112434                 attempts_min into a macro.  Use preprocessor to decide how to
112435                 initialize attempts [Coverity CID 67].
112436         2001-11-27  Paul Eggert  <eggert@twinsun.com>
112437                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
112438                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
112440 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112442         * gnulib-tool (func_exit): New function, to allow to pass the
112443         exit status portably through the trap.  Use everywhere.
112444         (--help, --version): Signal a write error.
112445         (trap): catch SIGPIPE, for write errors.
112446         Exit at the end of the trap, with the correct exit status.
112448 2006-09-19  Karl Berry  <karl@gnu.org>
112450         * doc/gnulib.texi: note about the license texinfo files.
112452 2006-09-19  Eric Blake  <ebb9@byu.net>
112454         * gnulib-tool: Avoid space-tab.
112456 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112458         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
112459         that prevented coreutils 6.1 from building.  Problem reported
112460         by Petter Reinholdtsen.
112462 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112464         * gnulib-tool (avoidlist): Fix typo that broke options like
112465         --avoid=lock that are used by coreutils bootstrap.
112467 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
112469         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
112470         more systematically.
112472 2006-09-18  Jim Meyering  <jim@meyering.net>
112474         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
112476 2006-09-18  Bruno Haible  <bruno@clisp.org>
112478         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
112480 2006-09-18  Bruno Haible  <bruno@clisp.org>
112482         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
112483         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
112484         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
112485         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
112486         * m4/gettext.m4: Require autoconf >= 2.52.
112487         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
112488         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
112489         of gl_cv_header_inttypes_h.
112491 2006-09-18  Bruno Haible  <bruno@clisp.org>
112493         * lib/javaversion.c: Include configmake.h.
112495 2006-09-18  Bruno Haible  <bruno@clisp.org>
112497         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
112498         avoid that the while loops be executed in a subshell.
112500 2006-09-18  Bruno Haible  <bruno@clisp.org>
112502         * MODULES.html.sh (func_module): Break long lines.
112503         Suggested by Bruce Korb <bkorb@gnu.org>.
112505 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112507         Speed up by a factor of 1.12.
112508         * gnulib-tool (nl): New variable.
112509         (func_import): Rewrite include directive extraction to only read each
112510         directive once.
112512 2006-09-17  Bruno Haible  <bruno@clisp.org>
112514         * modules/javaversion (Makefile.am): Remove DEFS setting.
112515         (Depends-on): Add configmake, for PKGDATADIR definition.
112517 2006-09-17  Bruno Haible  <bruno@clisp.org>
112519         * gnulib-tool (func_create_testdir): Rewrite all files at once.
112521 2006-09-17  Bruno Haible  <bruno@clisp.org>
112523         * gnulib-tool (func_append): New function, stolen from libtool.m4.
112524         (func_modules_transitive_closure, func_modules_add_dummy,
112525         func_modules_to_filelist, func_import, func_create_testdir,
112526         func_create_megatestdir, ...): Use it wherever possible.
112527         Suggested by Ralf Wildenhues.
112529 2006-09-16  Karl Berry  <karl@gnu.org>
112531         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
112532         to avoid sectioning errors.
112533         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
112534         [ifinfo]: blank line after @center-ed titles.
112535         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
112536         Spell FSF address consistently with others.
112537         (These changes approved by rms.)
112539 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112541         Speed up by a factor of 1.61.
112542         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
112543         already checked module names again.
112545 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112547         Speed up by a factor of 1.13.
112548         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
112549         for new_files, and the input to func_add_or_update.
112551 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112553         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
112554         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
112556 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112558         * modules/mkancesdirs (Depends-on): Add fcntl.
112559         * modules/savewd: New file.
112560         * MODULES.html.sh (File system functions): Add savewd.
112562         * modules/configmake (Makefile.am): Add support for the
112563         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
112565 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112567         * m4/savewd.m4: New file.
112569 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112571         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
112572         (dirchownmod): New arg FD.  All callers changed.
112573         Use FD rather than opening the directory ourself, as opening is
112574         now the caller's responsibility.
112575         * lib/dirchownmod.h: Likewise.
112576         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
112577         hosts that require <sys/types.h> before <sys/stat.h>.  Include
112578         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
112579         (test_dir): Remove.
112580         (mkancesdirs): Return length of prefix of FILE that has already
112581         been made, or -2 if there is a child doing the work.  Redo
112582         algorithm so that it is O(N) rather than O(N**2).  Optimize away
112583         ".", and treat ".." specially since it might stray back into
112584         already-created areas.  Use a subprocess if necessary.  New arg
112585         WD; all users changed.  MAKE_DIR function should now return 1
112586         if it creates a directory that is not readable.  Return -2 if
112587         a child process is spun off.
112588         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
112589         Adjust signature to match code.
112590         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
112591         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
112592         all users changed.
112593         * lib/savewd.c, lib/savewd.h: New files.
112595 2006-09-15  Jim Meyering  <jim@meyering.net>
112597         * modules/rename-dest-slash: New module.
112598         * MODULES.html.sh (posix_compat): Add it here.
112600         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
112602 2006-09-15  Jim Meyering  <jim@meyering.net>
112604         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
112605         file.
112607         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
112609 2006-09-15  Jim Meyering  <jim@meyering.net>
112611         * lib/rename-dest-slash.c (has_trailing_slash): Use
112612         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
112613         (rpl_rename_dest_slash): Perform the cheaper trailing slash
112614         test before testing whether SRC is a directory.
112615         Suggestions from Bruno Haible.
112617         Avoid a warning about an unused variable.
112618         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
112619         into the #ifdef block where it's used.
112621         * lib/rename-dest-slash.c: New file.
112623 2006-09-14  Bruno Haible  <bruno@clisp.org>
112625         * lib/allocsa.c: Include <config.h> unconditionally.
112626         * lib/asnprintf.c: Likewise.
112627         * lib/asprintf.c: Likewise.
112628         * lib/c-strcasecmp.c: Likewise.
112629         * lib/c-strcasestr.c: Likewise.
112630         * lib/c-strncasecmp.c: Likewise.
112631         * lib/c-strstr.c: Likewise.
112632         * lib/classpath.c: Likewise.
112633         * lib/clean-temp.c: Likewise.
112634         * lib/concatpath.c: Likewise.
112635         * lib/copy-file.c: Likewise.
112636         * lib/csharpcomp.c: Likewise.
112637         * lib/csharpexec.c: Likewise.
112638         * lib/execute.c: Likewise.
112639         * lib/fatal-signal.c: Likewise.
112640         * lib/findprog.c: Likewise.
112641         * lib/fwriteerror.c: Likewise.
112642         * lib/gl_array_list.c: Likewise.
112643         * lib/gl_array_oset.c: Likewise.
112644         * lib/gl_avltree_list.c: Likewise.
112645         * lib/gl_avltree_oset.c: Likewise.
112646         * lib/gl_avltreehash_list.c: Likewise.
112647         * lib/gl_carray_list.c: Likewise.
112648         * lib/gl_linked_list.c: Likewise.
112649         * lib/gl_linkedhash_list.c: Likewise.
112650         * lib/gl_list.c: Likewise.
112651         * lib/gl_oset.c: Likewise.
112652         * lib/gl_rbtree_list.c: Likewise.
112653         * lib/gl_rbtree_oset.c: Likewise.
112654         * lib/gl_rbtreehash_list.c: Likewise.
112655         * lib/imaxabs.c: Likewise.
112656         * lib/imaxdiv.c: Likewise.
112657         * lib/javacomp.c: Likewise.
112658         * lib/javaexec.c: Likewise.
112659         * lib/javaversion.c: Likewise.
112660         * lib/linebreak.c: Likewise.
112661         * lib/localcharset.c: Likewise.
112662         * lib/lock.c: Likewise.
112663         * lib/mbchar.c: Likewise.
112664         * lib/mbswidth.c: Likewise.
112665         * lib/mkdtemp.c: Likewise.
112666         * lib/pipe.c: Likewise.
112667         * lib/printf-args.c: Likewise.
112668         * lib/printf-parse.c: Likewise.
112669         * lib/progname.c: Likewise.
112670         * lib/progreloc.c: Likewise.
112671         * lib/readlink.c: Likewise.
112672         * lib/sh-quote.c: Likewise.
112673         * lib/stpcpy.c: Likewise.
112674         * lib/stpncpy.c: Likewise.
112675         * lib/strcasecmp.c: Likewise.
112676         * lib/strcasestr.c: Likewise.
112677         * lib/strcspn.c: Likewise.
112678         * lib/striconv.c: Likewise.
112679         * lib/strncasecmp.c: Likewise.
112680         * lib/strnlen1.c: Likewise.
112681         * lib/strstr.c: Likewise.
112682         * lib/strtok_r.c: Likewise.
112683         * lib/tls.c: Likewise.
112684         * lib/tmpdir.c: Likewise.
112685         * lib/unicodeio.c: Likewise.
112686         * lib/unsetenv.c: Likewise.
112687         * lib/vasnprintf.c: Likewise.
112688         * lib/vasprintf.c: Likewise.
112689         * lib/wait-process.c: Likewise.
112690         * lib/xallocsa.c: Likewise.
112691         * lib/xsetenv.c: Likewise.
112692         * lib/xstriconv.c: Likewise.
112694 2006-09-13  Simon Josefsson  <jas@extundo.com>
112696         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
112697         that internally, suggested by Ralf Wildenhues
112698         <Ralf.Wildenhues@gmx.de>.
112700 2006-09-13  Simon Josefsson  <jas@extundo.com>
112702         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
112703         @LIBOBJS@.
112704         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112706 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
112708         * lib/_fpending.c: Include <config.h> unconditionally, since we no
112709         longer worry about uses that don't define HAVE_CONFIG_H.
112710         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
112711         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
112712         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
112713         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
112714         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
112715         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
112716         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
112717         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
112718         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
112719         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
112720         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
112721         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
112722         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
112723         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
112724         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
112725         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
112726         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
112727         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
112728         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
112729         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
112730         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
112731         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
112732         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
112733         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
112734         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
112735         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
112736         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
112737         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
112738         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
112739         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
112740         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
112741         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
112742         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
112743         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
112744         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
112745         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
112746         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
112747         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
112748         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
112749         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
112750         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
112751         Likewise.
112753 2006-09-13  Eric Blake  <ebb9@byu.net>
112755         * lib/getopt.c: Fix typo in last commit.
112757 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
112759         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
112760         dgettext.
112762 2006-09-12  Jim Meyering  <jim@meyering.net>
112764         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
112765         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
112766         Reported by Nelson H. F. Beebe.
112768 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112770         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
112771         program_invocation_name and program_invocation_short_name are
112772         initialized.
112773         * lib/argp-namefrob.h: Move declarations of program_invocation_name
112774         and program_invocation_short_name to argp.h, so they are visible
112775         to user programs.
112776         * lib/argp.h: Likewise
112778 2006-09-10  Bruno Haible  <bruno@clisp.org>
112780         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
112781         m4/inttypes_h.m4, m4/uintmax_t.m4.
112783 2006-09-10  Bruno Haible  <bruno@clisp.org>
112785         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
112786         gl_AC_TYPE_UINTMAX_T.
112788 2006-09-10  Bruno Haible  <bruno@clisp.org>
112790         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
112792 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112794         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
112795         convention.  Text proposed by Bruno Haible.
112796         (struct argp_option): Document the use of N_() wrappers.
112798         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
112799         '\v', and translate the two parts separately, instead of feeding
112800         the whole string to gettext.  This allows to exclude
112801         '\v' from the strings visible to the translator by writing doc
112802         strings as N_("..") "\v" N_("..").
112804 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
112806         * config/srclist.txt: Undo latest change; the bug was fixed.
112808 2006-09-09  Bruno Haible  <bruno@clisp.org>
112810         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
112811         assignments if building a library without libtool.
112812         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
112813         in func_emit_lib_Makefile_am.
112814         (func_import): When building a static library libfoo.a, arrange to
112815         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
112816         (func_create_testdir): Likewise.
112817         * modules/gc (configure.ac, Makefile.am): If building statically,
112818         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
112819         * modules/iconvme (configure.ac, Makefile.am): Likewise.
112820         * modules/striconv (configure.ac, Makefile.am): Likewise.
112821         Based on a suggestion by Ralf Wildenhues.
112823 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112825         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
112826         Check for unistd.h too, since Autoconf doesn't assume POSIX.
112827         Also:
112829         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112830         Add year_2050_test to catch glibc bug 2821
112831         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112833         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112834         Prefer #ifdef to #if.
112836         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
112837         Return from 'main' instead of calling 'exit'.
112839 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112841         * lib/mktime.c (guess_time_tm): Fix bug where mktime
112842         returned the maximum time_t value rather than (time_t) -1.
112843         Problem originally reported by William Bardwell
112844         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112846         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112847         Moved to here ...
112848         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112849         ... from here.
112851 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112853         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
112854         2821 is fixed.
112856 2006-09-08  Jim Meyering  <jim@meyering.net>
112858         Don't make generated files read-only.  That would bother too many
112859         people.  However, do retain the ability to work when targets are
112860         read-only: remove the destination and temporary files before writing
112861         them (when generated via sed or echo), or by using the -f option for
112862         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
112863         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112864         * modules/byteswap, modules/configmake, modules/fcntl:
112865         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112866         * modules/localcharset, modules/netinet_in, modules/poll:
112867         * modules/stdbool, modules/stdint, modules/sys_select:
112868         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112870 2006-09-08  Jim Meyering  <jim@meyering.net>
112872         Avoid new build failure on FreeBSD 6.0.
112873         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
112874         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
112875         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
112877 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112879         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
112881 2006-09-07  Jim Meyering  <jim@meyering.net>
112883         Fix global typo in last change: use chmod u-w, not chmod u-x.
112884         Spotted by Paul Eggert and Bruce Korb.
112885         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112886         * modules/byteswap, modules/configmake, modules/fcntl:
112887         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112888         * modules/localcharset, modules/netinet_in, modules/poll:
112889         * modules/stdbool, modules/stdint, modules/sys_select:
112890         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112892 2006-09-06  Jim Meyering  <jim@meyering.net>
112894         Make generated files be read-only.
112895         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
112896         Ensure that each generated file is now read-only.
112897         * modules/argz: Likewise.
112898         * modules/arpa_inet: Likewise.
112899         * modules/byteswap: Likewise.
112900         * modules/configmake: Likewise.
112901         * modules/fcntl: Likewise.
112902         * modules/fnmatch: Likewise.
112903         * modules/getopt: Likewise.
112904         * modules/glob: Likewise.
112905         * modules/inttypes: Likewise.
112906         * modules/netinet_in: Likewise.
112907         * modules/poll: Likewise.
112908         * modules/stdbool: Likewise.
112909         * modules/stdint: Likewise.
112910         * modules/sys_select: Likewise.
112911         * modules/sys_socket: Likewise.
112912         * modules/sys_stat: Likewise.
112913         * modules/sysexits: Likewise.
112914         * modules/localcharset: Same as above, but continue using temporary
112915         file named "t-$@" (why different?) rather than the "$@-t" used
112916         everywhere else.
112918         * modules/sysexits (Makefile.am): Replace literal occurrences
112919         of "sysexit.h" more readable, and more consistent, "$@".
112921 2006-09-06  Bruno Haible  <bruno@clisp.org>
112923         * modules/striconv: New file.
112924         * modules/xstriconv: New file.
112925         * MODULES.html.sh (Internationalization functions): Add striconv,
112926         xstriconv.
112928 2006-09-06  Bruno Haible  <bruno@clisp.org>
112930         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
112931         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
112932         not using libtool correctly.
112934 2006-09-06  Bruno Haible  <bruno@clisp.org>
112936         * lib/striconv.h: New file.
112937         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
112938         iconvstring.c.
112939         * lib/xstriconv.h: New file.
112940         * lib/xstriconv.c: New file.
112942 2006-09-06  Bruno Haible  <bruno@clisp.org>
112944         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
112945         lib_..._LDFLAGS.
112947 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112949         * lib/argz_.h: Sync from Libtool.
112951         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
112952                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112954         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
112956 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112958         * modules/trim: New file.
112960 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112962         * lib/trim.h: New file.
112963         * lib/trim.c: New file.
112965 2006-09-05  Bruno Haible  <bruno@clisp.org>
112967         * MODULES.html.sh (String handling): Add trim.
112969 2006-09-04  Karl Berry  <karl@gnu.org>
112971         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
112972         until next release.
112974 2006-09-03  Bruno Haible  <bruno@clisp.org>
112976         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
112977         correctly.
112979 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112981         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
112982         not gl_GETLOADAVG.  Omit unneeded semicolons.
112983         Problems reported by Ralf Wildenhues in
112984         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112985         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
112986         at the end, which is the usual gnulib style.
112988         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
112989         of doing all the work ourselves.
112990         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
112991         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
112993 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112995         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
112996         Problem reported by Ralf Wildenhues in
112997         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112999         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
113000         HAVE_STRUCT_STATFS_F_FSTYPENAME.
113002 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113004         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
113005         yesterday's patch by changing test -n to test -z.
113007 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113009         * modules/getloadavg (Files): Add m4/getloadavg.m4.
113010         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
113011         the former is now obsolescent.
113013         * modules/chdir-long (Depends-on): Add fcntl.
113015 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113017         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
113018         obsolescent, and programs should use gnulib instead.
113019         * m4/getloadavg.m4: New file, with contents taken from Autoconf
113020         but with prefixes changed.
113022 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113024         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
113025         or stdbool.h, because they might not exist while configuring.
113027         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
113028         Don't include unistd.h or limits.h; not needed, since chdir-long.h
113029         does that for us.
113030         (O_DIRECTORY): Remove.
113032 2006-08-31  Eric Blake  <ebb9@byu.net>
113034         * gnulib-tool: Don't let emacs change spaces to TAB.
113036 2006-08-31  Bruno Haible  <bruno@clisp.org>
113038         * gnulib-tool: When calling func_import more than once, do it in a
113039         subshell.
113040         Reported by Eric Blake <ebb9@byu.net>.
113042 2006-08-31  Bruno Haible  <bruno@clisp.org>
113044         * gnulib-tool (nl): Remove variable.
113045         (sed_transform_lib_file): Use more robust test for config-h module.
113046         (func_import): Fix typo in 2006-08-25 patch.
113048 2006-08-31  Bruno Haible  <bruno@clisp.org>
113050         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
113051         specified, augment Makefile.am variables instead of assigning them.
113053 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113055         Work around a bug in both the Linux and SunOS 64-bit kernels:
113056         nanosleep mishandles sleeps for longer than 2**31 seconds.
113057         Problem reported by Frank v Waveren in
113058         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
113060         Check for nanosleep bug.
113061         (LIB_NANOSLEEP): Append clock_gettime library if needed.
113063 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113065         Work around a bug in both the Linux and SunOS 64-bit kernels:
113066         nanosleep mishandles sleeps for longer than 2**31 seconds.
113067         Problem reported by Frank v Waveren in
113068         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113069         * lib/nanosleep.c (BILLION): New constant.
113070         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
113071         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
113072         implementation.
113074 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113076         * modules/nanosleep (Depends-on): Add gettime.
113078 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113079         and Simon Josefsson  <jas@extundo.com>
113080         and Oskar Liljeblad  <oskar@osk.mine.nu>
113082         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
113083         * gnulib-tool (func_import): New license type 'unmodifiable license
113084         text'.
113085         * modules/fdl: Use it.  Longer description.
113086         * module/gpl, module/lgpl: New files.
113088 2006-08-30  Jim Meyering  <jim@meyering.net>
113090         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
113091         shadowing the parameter.
113093 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113095         Sync from Libtool:
113097         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113099         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
113100         sharing with gnulib.  Report by Eric Blake.
113102 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113104         * modules/isapipe: New file.
113105         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
113107 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113109         * modules/configmake (Makefile.am): Add a comment, and omit
113110         the CONFIGMAKE_ prefix from generated macro names.  Suggested
113111         by Bruno Haible.
113113 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113115         * m4/isapipe.m4: New file.
113117 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113119         * lib/isapipe.c, lib/isapipe.h: New files.
113121 2006-08-29  Jim Meyering  <jim@meyering.net>
113123         * modules/configmake (Makefile.am): Make configmake.h depend on
113124         Makefile.  Otherwise, a stale configmake.h could hang around.
113126 2006-08-29  Eric Blake  <ebb9@byu.net>
113128         * lib/error.c (error_at_line, print_errno_message): Match libc, after
113129         resolution of upstream bug 3044.
113131 2006-08-29  Bruno Haible  <bruno@clisp.org>
113133         * modules/localcharset (Depends-on): Add configmake.
113134         (Makefile.am): Remove setting of LIBDIR through DEFS.
113136 2006-08-29  Bruno Haible  <bruno@clisp.org>
113138         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
113139         defined.
113141 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113143         * modules/fcntl: New file.
113144         * modules/chdir-safer (Depends-on): Add fcntl.
113145         * modules/fts: Likewise.
113146         * modules/mkdir-p: Likewise.
113148         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
113149         This undoes the most recent change, since we're now addressing the
113150         problem in a different way.
113152         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
113153         into output, since the output might be called Makefile.am even
113154         if $makefile_name is something different.
113155         (func_import): Use $makefile_am rather than
113156         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
113157         empty.
113159         * modules/inttypes (Files): Add m4/inttypes-h.m4.
113161 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113163         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
113164         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
113165         recent change to stdint.m4, since we're now addressing the problem in a
113166         different way.
113168 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113170         * m4/fcntl_h.m4: New file.
113172 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113174         * lib/fcntl_.h: New file.
113175         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
113176         the fcntl module.
113177         * lib/dirchownmod.c: Likewise.
113178         * lib/fts.c: Likewise.
113180         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
113181         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
113182         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
113183         just before including <inttypes.h>, to avoid circular inclusion.
113185 2006-08-28  Jim Meyering  <jim@meyering.net>
113187         * doc/visibility.texi: Actually read and correct the grammar of the
113188         sentence affected by yesterday's change.
113190 2006-08-28  Eric Blake  <ebb9@byu.net>
113192         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
113193         needs wrapper.
113195 2006-08-28  Eric Blake  <ebb9@byu.net>
113197         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
113199 2006-08-28  Eric Blake  <ebb9@byu.net>
113201         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
113203 2006-08-28  Bruno Haible  <bruno@clisp.org>
113205         * modules/c-strstr: New file, from GNU gettext.
113206         * MODULES.html.sh (String handling): Add c-strstr.
113208 2006-08-28  Bruno Haible  <bruno@clisp.org>
113210         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
113211         macros.
113212         Reported by Eric Blake.
113214 2006-08-28  Bruno Haible  <bruno@clisp.org>
113216         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
113217         (VASNPRINTF): Return a string of length > INT_MAX without failing.
113218         * lib/vasprintf.c: Include errno.h, limits.h.
113219         (EOVERFLOW): New fallback definition.
113220         (vasprintf): Test here whether the string length is > INT_MAX.
113221         * lib/vsnprintf.c: Include errno.h, limits.h.
113222         (EOVERFLOW): New fallback definition.
113223         (vsnprintf): Fix bug when generated string was too long for the buffer.
113224         Test here whether the string length is > INT_MAX.
113226 2006-08-28  Bruno Haible  <bruno@clisp.org>
113228         * lib/inttypes_.h (SCNX*): Remove definitions.
113229         Reported by Eric Blake.
113231 2006-08-28  Bruno Haible  <bruno@clisp.org>
113233         * lib/c-strstr.h: New file, from GNU gettext.
113234         * lib/c-strstr.c: New file, from GNU gettext.
113236 2006-08-28  Bruno Haible  <bruno@clisp.org>
113238         * gnulib-tool: Reorder some statements.
113240 2006-08-28  Bruno Haible  <bruno@clisp.org>
113242         * gnulib-tool: New option --makefile-name.
113243         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
113244         $makefile_name.
113245         (func_import): Write $makefile_name to the cache file, and read it from
113246         there unless explicitly specified. Use $makefile_name as file name
113247         instead of Makefile.am. Adjust the recommendations accordingly.
113249 2006-08-28  Bruno Haible  <bruno@clisp.org>
113251         * gnulib-tool (func_verify_module): Check against misapplying patch.
113253 2006-08-28  Bruno Haible  <bruno@clisp.org>
113255         * gnulib-tool (func_relativize, func_relconcat): New functions.
113256         Give an error if --local-dir is given with --update.
113257         Remove trailing slashes from $local_gnulib_dir.
113258         (func_import): Store the relativized $local_gnulib_dir in
113259         gnulib-cache.m4, and read it from there if not specified explicitly.
113261 2006-08-28  Bruno Haible  <bruno@clisp.org>
113263         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
113264         is the current directory. Respect also $local_gnulib_dir.
113266 2006-08-28  Bruno Haible  <bruno@clisp.org>
113267             Simon Josefsson  <jas@extundo.com>
113269         BeOS portability.
113270         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
113272 2006-08-27  Jim Meyering  <jim@meyering.net>
113274         * doc/visibility.texi: Remove duplicate word: "pointer".
113276 2006-08-26  Bruno Haible  <bruno@clisp.org>
113278         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
113279         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
113280         (Makefile.am): Create inttypes.h from inttypes_.h.
113281         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
113283         * modules/imaxabs: New file.
113285         * modules/imaxdiv: New file.
113287 2006-08-26  Bruno Haible  <bruno@clisp.org>
113289         * m4/inttypes.m4: New file.
113290         * m4/_inttypes_h.m4: Remove file.
113291         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
113292         PRI_MACROS_BROKEN.
113293         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
113295         * m4/imaxabs.m4: New file.
113297         * m4/imaxdiv.m4: New file.
113299 2006-08-26  Bruno Haible  <bruno@clisp.org>
113301         * lib/inttypes_.h: New file.
113302         * lib/inttypes.h: Remove file.
113303         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
113305         * lib/imaxabs.c: New file.
113307         * lib/imaxdiv.c: New file.
113309 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113311         New config-h module, so that "make" output needn't be cluttered
113312         by -DHAVE_CONFIG_H.
113313         * MODULES.html.sh (Support for building libraries and executables):
113314         Add config-h.
113315         * modules/config-h: New file.
113316         * gnulib-tool (nl, sed_transform_lib_file): New vars.
113317         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
113318         the config-h module is used.
113320         New configmake module, so that "make" output needn't be cluttered
113321         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
113322         * MODULES.html.sh (Support for building libraries and executables):
113323         Add configmake.
113324         * modules/configmake: New file.
113326 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113328         * m4/config-h.m4: New file.
113330 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113332         * config/srclist.txt: Add elisp-comp.
113334 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113336         * MODULES.html.sh (Support for building libraries and executables):
113337         Add elisp-comp.
113338         * build-aux/elisp-comp: New file.
113339         * modules/elisp-comp: New file.
113341 2006-08-24  Bruno Haible  <bruno@clisp.org>
113343         * gnulib-tool (func_create_testdir): Use non-default values of
113344         sourcebase and m4base.
113346 2006-08-24  Bruno Haible  <bruno@clisp.org>
113348         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
113349         HTML structure.
113351 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
113353         * modules/openat (Depends-on): Add lchown.
113355 2006-08-23  Bruno Haible  <bruno@clisp.org>
113357         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
113358         of gl_LOCK_EARLY instead of gl_LOCK.
113360 2006-08-23  Bruno Haible  <bruno@clisp.org>
113362         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
113363         on OSF/1 to no.
113364         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
113366 2006-08-23  Bruno Haible  <bruno@clisp.org>
113368         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
113369         as unusable.
113371         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
113372         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
113373         (gl_LOCK): New macro.
113375 2006-08-22  Simon Josefsson  <jas@extundo.com>
113377         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
113378         to md5 module.
113380 2006-08-22  Simon Josefsson  <jas@extundo.com>
113382         * MODULES.html.sh: Add "Support for maintaining and release
113383         projects".
113385         * build-aux/gnupload: New file, from coreutils.
113387 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113389         Avoid the need for AC_LIBSOURCES in m4 macros.
113390         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
113391         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
113392         * modules/check-version (EXTRA_DIST): Add check-version.h.
113393         * modules/crc (EXTRA_DIST): Add crc.h.
113394         * modules/des (EXTRA_DIST): Add des.h.
113395         * modules/gc (EXTRA_DIST): Add gc.h.
113396         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
113397         * modules/getline (EXTRA_DIST): Add getline.h.
113398         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
113399         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
113400         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
113401         * modules/md2 (EXTRA_DIST): Add md2.h.
113402         * modules/md4 (EXTRA_DIST): Add md4.h.
113403         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
113404         * modules/read-file (EXTRA_DIST): Add read-file.h.
113405         * modules/readline (EXTRA_DIST): Add readline.h.
113406         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
113407         rijndael-api-fst.h.
113409 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113411         * m4/rijndael.m4 (gl_ARCFOUR):
113412         * m4/arctwo.m4 (gl_ARCTWO):
113413         * m4/check-version.m4 (gl_CHECK_VERSION):
113414         * m4/crc.m4 (gl_CRC):
113415         * m4/des.m4 (gl_DES):
113416         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
113417         * m4/gc.m4 (gl_GC):
113418         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
113419         * m4/getline.m4 (gl_FUNC_GETLINE):
113420         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
113421         * m4/hmac-md5.m4 (gl_HMAC_MD5):
113422         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
113423         * m4/md2.m4 (gl_MD2):
113424         * m4/md4.m4 (gl_MD4):
113425         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
113426         * m4/read-file.m4 (gl_FUNC_READ_FILE):
113427         * m4/readline.m4 (gl_FUNC_READLINE):
113428         * m4/rijndael.m4 (gl_RIJNDAEL):
113429         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113430         to get the necessary .h files and whatnot.
113432 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113434         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
113435         gnulib rather than the other way around.
113436         * config/srclistvars.sh (COREUTILS): Remove.
113438 2006-08-22  Jim Meyering  <jim@meyering.net>
113440         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
113442         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
113444 2006-08-22  Eric Blake  <ebb9@byu.net>
113446         * modules/regexprops-generic: New file.
113447         * MODULES.html.sh (Support for building documentation): List it.
113449 2006-08-22  Eric Blake  <ebb9@byu.net>
113451         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
113452         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
113453         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
113454         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
113456 2006-08-22  Bruno Haible  <bruno@clisp.org>
113458         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
113459         and lib_LTLIBRARIES like the other lib_* variables.
113461 2006-08-22  Bruno Haible  <bruno@clisp.org>
113463         * build-aux/x-to-1.in: New file, from GNU gettext.
113465 2006-08-22  Bruno Haible  <bruno@clisp.org>
113467         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
113468         <utmpx.h> exists.
113470 2006-08-22  Bruno Haible  <bruno@clisp.org>
113472         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
113473         <utmpx.h> exists.
113475 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113477         BeOS portability.
113478         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
113479         exist.
113480         Problem reported by Bruno Haible.
113482 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113484         Avoid the need for AC_LIBSOURCES in m4 macros.
113485         * modules/acl (EXTRA_DIST): Add acl.h.
113486         * modules/argmatch (Files): Add m4/argmatch.m4.
113487         (configure.ac): Add gl_ARGMATCH.
113488         (EXTRA_DIST): Renamed from lib_SOURCES, for
113489         consistency with the other modules.  Remove argmatch.c.
113490         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
113491         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
113492         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
113493         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
113494         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
113495         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
113496         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
113497         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
113498         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
113499         * modules/closeout (EXTRA_DIST): Add closeout.h.
113500         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
113501         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
113502         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
113503         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
113504         dirname.h; remove basename.c and stripslash.c.
113505         * modules/exclude (EXTRA_DIST): Add exclude.h.
113506         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
113507         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
113508         * modules/file-type (EXTRA_DIST): Add file-type.h.
113509         * modules/filemode (EXTRA_DIST): Add filemode.h.
113510         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
113511         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113512         * modules/fpending (EXTRA_DIST): Add __fpending.h.
113513         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
113514         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
113515         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
113516         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
113517         * modules/getdate (EXTRA_DIST): Add getdate.c.
113518         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
113519         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
113520         * modules/getpass (EXTRA_DIST): Add getpass.h.
113521         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
113522         * modules/group-member (EXTRA_DIST): Add group-member.h.
113523         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
113524         * modules/hash (EXTRA_DIST): Add hash.h.
113525         * modules/human (EXTRA_DIST): Add human.h.
113526         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
113527         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
113528         * modules/lchown (EXTRA_DIST): Add lchown.h.
113529         * modules/long-options (EXTRA_DIST): Add long-options.h.
113530         * modules/lstat (EXTRA_DIST): Add lstat.h.
113531         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
113532         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
113533         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
113534         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
113535         * modules/memxor (EXTRA_DIST): Add memxor.h.
113536         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
113537         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
113538         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
113539         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
113540         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
113541         * modules/physmem (EXTRA_DIST): Add physmem.h.
113542         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
113543         * modules/posixver (EXTRA_DIST): Add posixver.h.
113544         * modules/quote (EXTRA_DIST): Add quote.h.
113545         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
113546         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
113547         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
113548         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
113549         regex_internal.h regexec.c.
113550         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
113551         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
113552         * modules/same (EXTRA_DIST): Add same.h.
113553         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
113554         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
113555         * modules/savedir (EXTRA_DIST): Add savedir.h.
113556         * modules/sha1 (EXTRA_DIST): Add sha1.h.
113557         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
113558         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
113559         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
113560         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
113561         * modules/strdup (EXTRA_DIST): Add strdup.h.
113562         * modules/strftime (EXTRA_DIST): Add strftime.h.
113563         * modules/strndup (EXTRA_DIST): Add strndup.h.
113564         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
113565         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
113566         * modules/time_r (EXTRA_DIST): Add time_r.h.
113567         * modules/timespec (EXTRA_DIST): Add timespec.h.
113568         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113569         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
113570         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
113571         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
113572         * modules/userspec (EXTRA_DIST): Add userspec.h.
113573         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
113574         * modules/utimens (EXTRA_DIST): Add utimens.h.
113575         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
113576         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
113577         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
113578         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
113579         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
113580         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
113581         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
113582         * modules/yesno (EXTRA_DIST): Add yesno.h.
113584 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113586         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
113588         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
113589         * m4/dev-ino.m4, same-inode.m4: Remove.
113591         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
113592         * m4/acl.m4 (AC_FUNC_ACL):
113593         * m4/backupfile.m4 (gl_BACKUPFILE):
113594         * m4/c-strtod.m4 (gl_C99_STRTOLD):
113595         * m4/canon-host.m4 (gl_CANON_HOST):
113596         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
113597         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
113598         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
113599         * m4/cloexec.m4 (gl_CLOEXEC):
113600         * m4/close-stream.m4 (gl_CLOSE_STREAM):
113601         * m4/closeout.m4 (gl_CLOSEOUT):
113602         * m4/dirfd.m4 (gl_FUNC_DIRFD):
113603         * m4/dirname.m4 (gl_DIRNAME):
113604         * m4/exclude.m4 (gl_EXCLUDE):
113605         * m4/exitfail.m4 (gl_EXITFAIL):
113606         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
113607         * m4/file-type.m4 (gl_FILE_TYPE):
113608         * m4/filemode.m4 (gl_FILEMODE):
113609         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
113610         * m4/fpending.m4 (gl_FUNC_FPENDING):
113611         * m4/fprintftime.m4 (gl_FPRINTFTIME):
113612         * m4/fts.m4 (gl_FUNC_FTS):
113613         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
113614         * m4/getdate.m4 (gl_GETDATE):
113615         * m4/gethrxtime.m4 (gl_GETHRXTIME):
113616         * m4/getpagesize.m4 (gl_GETPAGESIZE):
113617         * m4/getpass.m4 (gl_FUNC_GETPASS):
113618         * m4/gettime.m4 (gl_GETTIME):
113619         * m4/getugroups.m4 (gl_GETUGROUPS):
113620         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
113621         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
113622         * m4/hard-locale.m4 (gl_HARD_LOCALE):
113623         * m4/hash.m4 (gl_HASH):
113624         * m4/idcache.m4 (gl_IDCACHE):
113625         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
113626         * m4/lchown.m4 (gl_FUNC_LCHOWN):
113627         * m4/long-options.m4 (gl_LONG_OPTIONS):
113628         * m4/lstat.m4 (gl_FUNC_LSTAT):
113629         * m4/md5.m4 (gl_MD5):
113630         * m4/memcasecmp.m4 (gl_MEMCASECMP):
113631         * m4/memcoll.m4 (gl_MEMCOLL):
113632         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
113633         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
113634         * m4/memxor.m4 (gl_MEMXOR):
113635         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
113636         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
113637         * m4/modechange.m4 (gl_MODECHANGE):
113638         * m4/mountlist.m4 (gl_MOUNTLIST):
113639         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
113640         * m4/openat.m4 (gl_FUNC_OPENAT):
113641         * m4/pathmax.m4 (gl_PATHMAX):
113642         * m4/physmem.m4 (gl_PHYSMEM):
113643         * m4/posixtm.m4 (gl_POSIXTM):
113644         * m4/posixver.m4 (gl_POSIXVER):
113645         * m4/quote.m4 (gl_QUOTE):
113646         * m4/quotearg.m4 (gl_QUOTEARG):
113647         * m4/readtokens.m4 (gl_READTOKENS):
113648         * m4/readutmp.m4 (gl_READUTMP):
113649         * m4/regex.m4 (gl_REGEX):
113650         * m4/safe-read.m4 (gl_SAFE_READ):
113651         * m4/safe-write.m4 (gl_SAFE_WRITE):
113652         * m4/same.m4 (gl_SAME):
113653         * m4/save-cwd.m4 (gl_SAVE_CWD):
113654         * m4/savedir.m4 (gl_SAVEDIR):
113655         * m4/settime.m4 (gl_SETTIME):
113656         * m4/sha1.m4 (gl_SHA1):
113657         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
113658         * m4/stat-macros.m4 (gl_STAT_MACROS):
113659         * m4/stat-time.m4 (gl_STAT_TIME):
113660         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
113661         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
113662         * m4/strdup.m4 (gl_FUNC_STRDUP):
113663         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
113664         * m4/strndup.m4 (gl_FUNC_STRNDUP):
113665         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
113666         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
113667         * m4/time_r.m4 (gl_TIME_R):
113668         * m4/timespec.m4 (gl_TIMESPEC):
113669         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
113670         * m4/unlinkdir.m4 (gl_UNLINKDIR):
113671         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
113672         * m4/userspec.m4 (gl_USERSPEC):
113673         * m4/utimecmp.m4 (gl_UTIMECMP):
113674         * m4/utimens.m4 (gl_UTIMENS):
113675         * m4/xalloc.m4 (gl_XALLOC):
113676         * m4/xgetcwd.m4 (gl_XGETCWD):
113677         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
113678         * m4/xreadlink.m4 (gl_XREADLINK):
113679         * m4/xstrtod.m4 (gl_XSTRTOD):
113680         * m4/yesno.m4 (gl_YESNO):
113681         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113682         to get the necessary .h files and whatnot.
113684 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
113685             Bruno Haible  <bruno@clisp.org>
113687         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
113688         /bin/sh understanding of '!' conditional negation.
113690 2006-08-21  Jim Meyering  <jim@meyering.net>
113692         * modules/openat (Depends-on): Really alphabetize.
113694         * modules/acl (Depends-on): Add error and quote.
113696         * check-module (find_included_lib_files): Add at-func.c to the
113697         ok-to-include-more-than-once white list.
113699         * modules/openat (Depends-on): Add lstat.  Alphabetize.
113701 2006-08-21  Bruno Haible  <bruno@clisp.org>
113703         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113704         Emit a pkgdata_DATA variable only if some snippets add contents to it.
113705         Reported by Martin Lambers <marlam@marlam.de>.
113707 2006-08-21  Bruno Haible  <bruno@clisp.org>
113709         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
113710         specify an installation location, don't emit a noinst_LIBRARIES or
113711         noinst_LTLIBRARIES assignment.
113713 2006-08-21  Bruno Haible  <bruno@clisp.org>
113715         BeOS portability.
113716         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
113717         BeOS has mbrtowc() but no <wctype.h>.
113719 2006-08-21  Bruno Haible  <bruno@clisp.org>
113721         BeOS portability.
113722         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
113723         exist.
113725 2006-08-21  Bruno Haible  <bruno@clisp.org>
113727         BeOS portability.
113728         * lib/mbchar.h: Include <wctype.h> only if it exists.
113730 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113732         Remove files that are no longer needed by their respective modules.
113733         * m4/obstack.m4: Remove.
113734         * m4/strerror_r.m4: Remove.
113735         * m4/uint32_t.m4: Remove.
113736         * m4/uintptr_t.m4: Remove.
113737         * m4/ullong_max.m4: Remove.
113738         * m4/xstrtoimax.m4: Remove.
113739         * m4/xstrtoumax.m4: Remove.
113741         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
113742         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
113743         dependencies now capture this.
113745         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
113746         Do not use AC_LIBSOURCES, since gnulib modules now do this.
113747         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
113748         * m4/human.m4 (gl_HUMAN): Likewise.
113749         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
113750         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
113752         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
113754         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
113755         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
113756         stdint.
113757         * m4/human.m4 (gl_HUMAN): Likewise.
113758         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
113759         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
113760         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113761         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113762         * m4/xstrtol (gl_XSTRTOL): Likewise.
113764         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
113765         AC_TYPE_LONG_LONG_INT.
113766         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113767         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
113768         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
113769         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113771         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
113772         on stdbool.
113774         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
113775         (gl_PREREQ_XSTRTOUL): Remove.
113777         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
113779         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
113780         mode.
113782 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113784         Add and change modules to make it easier for coreutils to use
113785         gnulib-tool.
113786         * modules/backupfile (Files): Remove m4/d-ino.m4.
113787         (Depends-on): Add d-ino.
113788         * modules/cycle-check (Depends-on): Add stdint.
113789         (lib_SOURCES): Add cycle-check.h.
113790         * modules/d-ino: New module.
113791         * modules/d-type: New module.
113792         * modules/error (Files): Remove m4/strerror_r.m4.
113793         * modules/filemode (Files): Add m4/st_dm_mode.m4.
113794         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113795         m4/inttypes_h.m4, m4/uintmax_t.m4.
113796         (Depends-on): Add stdint.
113797         (lib_SOURCES): Add fsusage.h.
113798         * modules/getcwd (Files): Remove d-ino.m4.
113799         (Depends-on): Add d-ino.
113800         * modules/getndelim2 (Depends-on): Add stdint.
113801         * modules/glob (Files): Remove m4/d-type.m4.
113802         (Depends-on): Add d-type.
113803         * modules/host-os: New module.
113804         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
113805         m4/inttypes_h.m4, m4/uintmax_t.m4.
113806         * Depends-on: Add stdint.
113807         (lib_SOURCES): Add human.h.
113808         * modules/inttostr (Files): Remove m4/intmax_t.m4,
113809         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
113810         m4/uintmax_t.m4, m4/ulonglong.m4.
113811         (Depends-on): Add stdint.
113812         (EXTRA_DIST): Add inttostr.h.
113813         * modules/lchmod: New module.
113814         * modules/link-follow: New module.
113815         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
113816         (Depends-on): Add lchmod.
113817         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
113818         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
113819         (Depends-on): Add stdint.
113820         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
113821         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
113822         (Depends-on): Add stdint.
113823         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
113824         * modules/perl: New module.
113825         * modules/regex (Depends-on): Add stdint.
113826         * modules/rmdir-errno: New module.
113827         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113828         m4/intmax_t.m4.
113829         (Depends-on): Add stdint.
113830         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113831         m4/uintmax_t.m4.
113832         (Depends-on): Add stdint.
113833         * modules/unlink-busy: New module.
113834         * modules/utimecmp (Depends-on): Add stdint.
113835         * modules/uptime: New module.
113836         * modules/winsz-ioctl: New module.
113837         * modules/winsz-termios: New module.
113838         * modules/xnanosleep (Depends-on): Add nanosleep.
113839         * modules/ullong_max: Remove.
113840         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
113841         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
113842         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
113843         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
113844         (Depends-on): Add inttypes.
113845         (lib_SOURCES): Add xstrtol.h.
113846         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
113847         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
113848         * MODULES.html.sh: Move 'assert' into the assert section.
113849         Move 'dummy' into the linking section.
113850         Remove ullong_max.
113851         Add section for compatibility checks for POSIX:2001 functions,
113852         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
113853         winsz-ioctl, and winsz-termios into it.
113854         Add lchmod.
113855         Add top-level Misc section and put host-os, perl, and uptime
113856         into it.
113858 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113860         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
113861         now assume the stdint module.  Do not include inttypes.h.
113862         * lib/fsusage.h: Likewise.
113863         * lib/getndelim2.c: Likewise.
113864         * lib/human.h: Likewise.
113865         * lib/inttostr.h: Likewise.
113866         * lib/obstack.c: Likewise.
113867         * lib/regex_internal.h: Likewise.
113868         * lib/tempname.c: Likewise.
113869         * lib/utimecmp.c: Likewise.
113870         * lib/xstrtol.h: Likewise.
113872         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
113874         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
113875         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
113876         * lib/xtime.h: Likewise.
113878 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113880         * modules/openat (Files): Add lib/fchmodat.c.
113881         Fixes problem reported by Jay Youngman.
113883 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113885         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
113886         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
113888 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
113889             Bruno Haible  <bruno@clisp.org>
113891         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
113892         and is a script that invokes bison. Tighten the code. Add comments.
113894 2006-08-18  Jim Meyering  <jim@meyering.net>
113896         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
113897         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
113898         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
113899         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
113901 2006-08-18  Bruno Haible  <bruno@clisp.org>
113903         * modules/bison-i18n: New file.
113904         * MODULES.html.sh (Internationalization functions): Add it.
113906 2006-08-18  Bruno Haible  <bruno@clisp.org>
113908         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
113909         sys/statvfs.h. When getmntinfo was found, check its declaration and
113910         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
113912 2006-08-18  Bruno Haible  <bruno@clisp.org>
113914         * m4/bison-i18n.m4: New file, from bison.
113916 2006-08-18  Bruno Haible  <bruno@clisp.org>
113918         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
113919         (ME_DUMMY): Treat "kernfs" as a dummy.
113920         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
113922 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113924         Update from coreutils.
113926         2006-08-15  Jim Meyering  <jim@meyering.net>
113928         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
113930         2006-01-17  Jim Meyering  <jim@meyering.net>
113932         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
113934         2006-01-11  Jim Meyering  <jim@meyering.net>
113936         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
113937         Check for the lchmod function.
113939 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113941         Update from coreutils.
113943         * lib/__fpending.h: Add copyright notice.
113944         * lib/fprintftime.h: Likewise.
113945         * lib/savedir.c: Use (C) in copyright notice.
113946         * lib/savedir.h: Likewise.
113948         2006-08-15  Jim Meyering  <jim@meyering.net>
113950         * lib/at-func.c: New file, with the logic of all emulated at-functions.
113951         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
113952         in support of the EXPECTED_ERRNO macro.
113953         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
113954         definitions.  Instead, define the appropriate symbols and include
113955         "at-func.c".
113956         * lib/mkdirat.c (mkdirat): Likewise.
113957         * lib/fchmodat.c (fchmodat): Likewise.
113958         (ENOSYS): Remove definition.
113959         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
113960         it.  Don't include "unistd--.h" -- it wasn't ever used.
113962         2006-01-17  Jim Meyering  <jim@meyering.net>
113964         Rewrite fts.c not to change the current working directory,
113965         by using openat, fstatat, fdopendir, etc..
113967         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
113968         (HAVE_OPENAT_SUPPORT): Define.
113969         [_LIBC] (fchdir): Don't undef or define; no longer used.
113970         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
113971         Now, this `function' always succeeds, and consumes its file descriptor
113972         parameter -- so callers must not close such FDs.  Update callers.
113973         (diropen_fd, opendirat, cwd_advance_fd): New functions.
113974         (diropen): Add parameter, SP.  Adjust all callers.
113975         Implement using diropen_fd, rather than open.
113976         (fts_open): Initialize new member, fts_cwd_fd.
113977         Remove fts_rft-setting code.
113978         (fts_close): Close fts_cwd_fd, if necessary.
113979         (__opendir2): Define in terms of opendir or opendirat,
113980         depending on whether the FST_NOCHDIR flag is set.
113981         (fts_build): Since fts_safe_changedir consumes its FD, and since
113982         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
113983         and close the dup'd file descriptor upon failure.
113984         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
113985         (fts_safe_changedir): Tweak semantics to reflect that this function
113986         now calls cwd_advance_fd and hence consumes its FD argument.
113987         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
113988         [struct FTS] (fts_rft): Remove now-unused member.
113989         [struct FTS] (fts_cycle.state): Improve comment.
113991         * lib/openat.c (openat_needs_fchdir): New function.
113992         * lib/openat.h (openat_needs_fchdir): Declare it.
113994 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
113996         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
113997         Problem and fix reported by Pádraig Brady in
113998         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
114000 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114002         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
114004 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114006         * lib/memcoll.c (memcoll): Optimize for the common case where the
114007         arguments are bytewise equal.
114009 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114011         * doc/regexprops-generic.texi: Add a copyright notice.
114013 2006-08-15  Bruno Haible  <bruno@clisp.org>
114015         * modules/tmpdir (License): Change to LGPL.
114017 2006-08-15  Bruno Haible  <bruno@clisp.org>
114019         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
114020         module.
114022 2006-08-14  Simon Josefsson  <jas@extundo.com>
114024         * config/srclist.txt: Add gnupload.
114026 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114028         Change copyright notice from LGPL 2 to GPL 2, since that's the
114029         standard form used in the gnulib repository.
114030         * tests/test-lock.c: Likewise.
114031         * tests/test-stdint.c: Likewise.
114032         * tests/test-tls.c: Likewise.
114034         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
114035         prelude-manager.  User shorter URLs for GNU projects, without '?'.
114036         Add copyright notice.
114038         * check-module: Add copyright notice.  Output a copyright
114039         notice if "--version" is specified.
114040         * modules/COPYING: New file.
114041         * tests/test-getaddrinfo.c: Add copyright notice.
114042         * tests/test-verify.c: Likewise.
114044 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114046         Change copyright notice from LGPL 2 to GPL 2, since that's the
114047         standard form used in the gnulib repository.
114048         * lib/lock.c: LGPL -> GPL.
114049         * lib/lock.h: Likewise.
114050         * lib/strnlen1.c: Likewise.
114051         * lib/strnlen1.h: Likewise.
114052         * lib/tls.c: Likewise.
114053         * lib/tls.h: Likewise.
114054         * lib/tmpdir.c: Likewise.
114056         * lib/TODO: Remove; this belongs only in coreutils.
114058 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114060         Add copyright notices to long-enough files that lack them, since
114061         otherwise the files aren't clearly free.  Use the same notice that
114062         getdate.texi already uses.
114063         * doc/alloca-opt.texi: Add copyright notice.
114064         * doc/alloca.texi: Likewise.
114065         * doc/ctime.texi: Likewise.
114066         * doc/functions.texi: Likewise.
114067         * doc/gcd.texi: Likewise.
114068         * doc/gnulib-tool.texi: Likewise.
114069         * doc/inet_ntoa.texi: Likewise.
114070         * doc/visibility.texi: Likewise.
114072         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
114073         * doc/quote.texi: Add copyright notice.
114075         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
114076         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
114077         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
114078         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
114079         is now obsolete, and give a pointer to the Sun list.
114080         Add copyright notice.
114082 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114084         * config/srclistvars.sh: Add copyright notice.
114086 2006-08-14  Eric Blake  <ebb9@byu.net>
114088         Import the following change from libc:
114090         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
114092         Upstream bug 2997.
114093         * lib/misc/error.c: Add space between program name and message if file
114094         name is missing.
114096 2006-08-12  Karl Berry  <karl@gnu.org>
114098         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
114099         remove, these originate in gnulib now.
114101 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114103         * doc/Makefile (standards.info standards.html standards.dvi):
114104         Also depend on make-stds.texi.
114106 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114108         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
114109         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
114111         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
114112         in wchar_t.  Problem reported by Eric Blake.
114114         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
114115         LEN is smaller than SIZE.  Suggested by Bruno Haible.
114116         Also, help the compiler to keep LEN in a register.
114118 2006-08-11  Eric Blake  <ebb9@byu.net>
114120         * users.txt: Sort.  Add tar.
114122 2006-08-11  Bruno Haible  <bruno@clisp.org>
114124         * users.txt: New file.
114126 2006-08-11  Bruno Haible  <bruno@clisp.org>
114128         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
114129         before <wchar.h>. Needed for OSF/1 and BSD/OS.
114131 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114133         * modules/snprintf (Depends-on): Remove minmax.
114134         (Maintainer): Add self and Bruno.
114136 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114138         * lib/.cppi-disable: Add snprintf.h, socket_.h.
114139         * lib/snprintf.c: Include <errno.h> and <limits.h>.
114140         (EOVERFLOW): Define if the system does not.
114141         Do not include "minmax.h"; it wasn't used.
114142         (snprintf): Don't assume size_t promotes to an unsigned type.
114143         Fix bug when generated string was too long for the buffer: the
114144         buffer's contents are supposed to be the initial prefix of the
114145         output.  Don't assume vasnprintf returns EOVERFLOW if the size
114146         exceeds INT_MAX; do the check ourselves.
114148         Import the following changes from libc:
114150         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
114152         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
114153         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
114154         set wc to the byte which couldn't be converted.
114155         (re_string_reconstruct): Don't clear valid_raw_len before calling
114156         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
114157         tip_context using re_string_context_at.
114159         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
114161         * lib/posix/regex.h: g++ still cannot handled [restrict].
114163         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
114165         * lib/posix/regex.h: Remove special handling for VMS.
114167 2006-08-10  Jim Meyering  <jim@meyering.net>
114169         * modules/same-inode: New module.
114170         * modules/dev-ino: New module.
114171         * modules/cycle-check: Depend on these modules, rather than simply
114172         including their .h files.
114173         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
114174         required via m4/cycle-check.m4.
114175         * modules/same: Depend on new same-inode module, rather than
114176         including same-inode.h.
114177         * modules/chdir-safer: New file.
114179         * modules/chown (Depends-on): Add stat-macros.
114181 2006-08-10  Jim Meyering  <jim@meyering.net>
114183         * m4/cycle-check.m4: New file.
114184         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
114185         * m4/dev-ino.m4, m4/same-inode.m4: New files.
114187 2006-08-10  Eric Blake  <ebb9@byu.net>
114189         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
114190         in from original proposal.
114192 2006-08-10  Eric Blake  <ebb9@byu.net>
114193         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114195         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
114196         namespace.
114198 2006-08-10  Bruno Haible  <bruno@clisp.org>
114200         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
114201         as well.
114203 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114205         Sync from coreutils.
114207         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
114209         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
114210         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
114212 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114214         * modules/restrict: Remove; no longer needed now that we assume
114215         Autoconf 2.59 or later.
114216         * MODULES.html.sh: Remove 'restrict'.
114217         * modules/argp (Depends-on): Remove 'restrict'.
114218         * modules/base64 (Depends-on): Likewise.
114219         * modules/gc (Depends-on): Likewise.
114220         * modules/getaddrinfo (Depends-on): Likewise.
114221         * modules/glob (Depends-on): Likewise.
114222         * modules/inet_ntop (Depends-on): Likewise.
114223         * modules/inet_pton (Depends-on): Likewise.
114224         * modules/memxor (Depends-on): Likewise.
114225         * modules/regex (Depends-on): Likewise.
114226         * modules/strtok_r (Depends-on): Likewise.
114227         * modules/time_r (Depends-on): Likewise.
114229 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114231         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
114232         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
114233         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114234         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
114235         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
114236         * m4/memxor.m4 (gl_MEMXOR): Likewise.
114237         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
114238         gl_C_RESTRICT replaced by AC_C_RESTRICT.
114240         Merge from coreutils.
114241         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
114242         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
114243         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
114244         * m4/time_r.m4 (gl_TIME_R): Likewise.
114246 2006-08-09  Karl Berry  <karl@gnu.org>
114248         * config/srclist.txt: no more gettext-tools, per Bruno.
114250 2006-08-08  Eric Blake  <ebb9@byu.net>
114252         * modules/verror: New module.
114253         * MODULES.html.sh: Document it.
114255 2006-08-08  Eric Blake  <ebb9@byu.net>
114257         * lib/verror.h, lib/verror.c: New files.
114259 2006-08-08  Eric Blake  <ebb9@byu.net>
114261         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
114262         verror_at_line output complies with GNU Coding Standards even when
114263         file is NULL.
114265 2006-08-07  Bruno Haible  <bruno@clisp.org>
114267         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
114268         versions of AIX.
114269         Reported by Ralf Wildenhues.
114271 2006-08-07  Bruno Haible  <bruno@clisp.org>
114273         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
114274         in an AC_DEFUN. Needed so that the autoconf snippets can use
114275         AC_REQUIRE.
114277 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114279         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114280         Initialize pkgdata_DATA.
114281         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
114282         overriding it.
114284 2006-08-06  Eric Blake  <ebb9@byu.net>
114286         * lib/error.h: Fold in some upstream changes from glibc.
114287         * lib/error.c: Likewise.
114289 2006-08-04  Bruno Haible  <bruno@clisp.org>
114291         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114292         Make the mostlyclean-local rule depend on mostlyclean-generic.
114293         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
114295 2006-07-31  Bruno Haible  <bruno@clisp.org>
114297         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
114298         <stdlib.h>, <string.h>.
114300 2006-07-30  Bruno Haible  <bruno@clisp.org>
114302         * modules/readlink (License): Change to LGPL.
114304 2006-07-30  Bruno Haible  <bruno@clisp.org>
114306         * modules/javaversion (Makefile.am): Distribute javaversion.java and
114307         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
114308         set PKGDATADIR to point to it.
114310 2006-07-30  Bruno Haible  <bruno@clisp.org>
114312         * modules/csharpexec (configure.ac): Comment out macro invocation.
114313         * modules/javaexec (configure.ac): Likewise.
114314         * modules/javacomp-script (configure.ac): Likewise.
114316         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
114318 2006-07-30  Bruno Haible  <bruno@clisp.org>
114320         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
114321         linked-list.
114323 2006-07-30  Bruno Haible  <bruno@clisp.org>
114325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
114327 2006-07-30  Bruno Haible  <bruno@clisp.org>
114329         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114330         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
114331         get removed.
114333 2006-07-29  Bruno Haible  <bruno@clisp.org>
114335         Make it possible for gnulib-tool to work with locally modified or
114336         augmented gnulib repositories.
114337         * gnulib-tool (func_usage): Document --local-dir option.
114338         (local_gnulib_dir): New variable.
114339         Handle --local-dir option.
114340         (func_lookup_file): New function.
114341         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
114342         (func_get_description, func_get_filelist, func_get_description,
114343         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
114344         func_get_automake_snippet, func_get_include_directive,
114345         func_get_license, func_get_maintainer): Use func_lookup_file.
114346         (func_import, func_create_testdir): Use func_lookup_file.
114348 2006-07-29  Bruno Haible  <bruno@clisp.org>
114350         * modules/setenv (Depends-on): Add unistd.
114352 2006-07-29  Bruno Haible  <bruno@clisp.org>
114354         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
114356 2006-07-29  Bruno Haible  <bruno@clisp.org>
114358         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
114360 2006-07-29  Bruno Haible  <bruno@clisp.org>
114362         * gnulib-tool (import, update): If there is no Makefile.am, look at
114363         aclocal.m4, instead of bailing out.
114365 2006-07-29  Bruno Haible  <bruno@clisp.org>
114367         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
114368         Categorize the options by when they are useful.
114370 2006-07-29  Bruno Haible  <bruno@clisp.org>
114372         * gnulib-tool (func_usage): Document option --no-libtool.
114373         Handle option --no-libtool.
114374         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
114375         for changed semantics of $libtool variable.
114376         (func_import): Likewise. If libtool is not used, show this through
114377         an option --no-libtool.
114378         (func_create_testdir): Update.
114380 2006-07-29  Bruno Haible  <bruno@clisp.org>
114382         * gnulib-tool (func_import): Extend error message about missing
114383         --doc-base.
114385 2006-07-29  Bruno Haible  <bruno@clisp.org>
114387         * gnulib-tool (func_import): Don't create the $docbase directory if
114388         there is no file to store there.
114390 2006-07-29  Bruno Haible  <bruno@clisp.org>
114392         * gnulib-tool (autoconf_minversion): If a --dir option is given and
114393         relevant, look for configure.ac there, not in the current directory.
114394         Also use a simple search for AC_PREREQ, not "autoconf --trace".
114396 2006-07-29  Bruno Haible  <bruno@clisp.org>
114398         * gnulib-tool (SORT): New variable.
114399         (func_usage): Undocument --assume-autoconf option.
114400         Remove --assume-autoconf option handling.
114401         (autoconf_minversion): Determine from the contents of configure.ac.
114402         (func_import): Remove autoconf_minversion handling.
114403         Suggested by Eric Blake.
114405 2006-07-29  Bruno Haible  <bruno@clisp.org>
114407         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
114409 2006-07-29  Bruno Haible  <bruno@clisp.org>
114411         * config/srclist.txt (*setenv.[ch]): Remove rules.
114413 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114415         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
114417 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114419         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
114420         arpa/inet.h.
114422 2006-07-28  Simon Josefsson  <jas@extundo.com>
114424         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
114425         * modules/inet_pton (Depends-on): Likewise.
114427 2006-07-28  Simon Josefsson  <jas@extundo.com>
114429         * m4/netinet_in_h.m4: New file.
114431 2006-07-28  Simon Josefsson  <jas@extundo.com>
114433         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
114434         #include's.
114436 2006-07-28  Simon Josefsson  <jas@extundo.com>
114438         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
114439         #include's.
114441 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
114443         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
114444         setgid on directories only if they set these bits.
114445         * lib/modechange.h: Remove obsolete comment about masks.
114447 2006-07-28  Eric Blake  <ebb9@byu.net>
114449         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
114450         macro expansion.
114452 2006-07-28  Bruno Haible  <bruno@clisp.org>
114454         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
114456 2006-07-28  Bruno Haible  <bruno@clisp.org>
114458         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
114460 2006-07-28  Bruno Haible  <bruno@clisp.org>
114462         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
114463         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
114464         Define fallbacks.
114465         Avoids link error on FreeBSD 4.x.
114466         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
114468         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
114469         encoding.
114470         * lib/mbswidth.c (iswcntrl): Likewise.
114472 2006-07-27  Bruno Haible  <bruno@clisp.org>
114474         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
114475         test.
114477 2006-07-27  Bruno Haible  <bruno@clisp.org>
114479         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
114480         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
114481         defined.
114483 2006-07-26  Eric Blake  <ebb9@byu.net>
114485         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
114487 2006-07-26  Eric Blake  <ebb9@byu.net>
114489         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
114490         like mingw that lack mkstemp.
114491         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
114492         avoid compilation warning on mingw.
114494 2006-07-26  Bruno Haible  <bruno@clisp.org>
114496         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
114497         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
114498         INT_FAST*_MIN, INTPTR_MIN.
114500 2006-07-25  Bruno Haible  <bruno@clisp.org>
114502         * modules/version-etc (Depends-on): Add stdarg.
114504 2006-07-25  Bruno Haible  <bruno@clisp.org>
114506         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
114507         complex commands.
114509 2006-07-25  Bruno Haible  <bruno@clisp.org>
114511         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
114512         defined in <stdarg.h> or config.h.
114514 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114516         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
114517         (gl_STDIO_SAFER): Remove.
114519 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114521         * MODULES.html.sh (File stream based Input/Output):
114522         Add fopen-safer, tmpfile-safer; remove stdio-safer.
114523         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
114524         * modules/fopen-safer, modules/tmpfile-safer: New files.
114525         * modules/stdio-safer: Remove.
114527 2006-07-24  Bruno Haible  <bruno@clisp.org>
114529         * modules/tmpdir: New file.
114530         * MODULES.html.sh (File system functions): Add it.
114532 2006-07-24  Bruno Haible  <bruno@clisp.org>
114534         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
114535         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
114537 2006-07-24  Bruno Haible  <bruno@clisp.org>
114539         * modules/clean-temp: New file.
114541 2006-07-24  Bruno Haible  <bruno@clisp.org>
114543         * m4/tmpdir.m4: New file, from GNU gettext.
114545 2006-07-24  Bruno Haible  <bruno@clisp.org>
114547         * lib/tmpdir.h: New file, from GNU gettext.
114548         * lib/tmpdir.c: New file, from GNU gettext.
114550 2006-07-24  Bruno Haible  <bruno@clisp.org>
114552         * lib/clean-temp.h: New file, from GNU gettext.
114553         * lib/clean-temp.c: New file, from GNU gettext.
114555 2006-07-23  Eric Blake  <ebb9@byu.net>
114557         * modules/stdio-safer (Files): Add tmpfile-safer.c.
114558         (Depends-on): Add binary-io.
114560 2006-07-23  Eric Blake  <ebb9@byu.net>
114562         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
114564 2006-07-23  Eric Blake  <ebb9@byu.net>
114566         * lib/tmpfile-safer.c: New file.
114567         * lib/stdio-safer.h (fopen_safer): Add prototype.
114568         * lib/stdio--.h (tmpfile): Make safer.
114570 2006-07-23  Bruno Haible  <bruno@clisp.org>
114572         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
114573         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
114574         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
114575         gl_linked_remove_at): Use it.
114577 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114578         and Simon Josefsson <jas@extundo.com>
114580         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
114582         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
114584 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114586         * modules/close-stream: New file.
114587         * modules/closeout (Description): Make it clear that it exits
114588         with a diagnostic on error.
114589         (Depends-on): Add close-stream.  Remove fpending, stdbool.
114590         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
114592 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114594         * m4/close-stream.m4: New file.
114596 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114598         * lib/close-stream.c, lib/close-stream.h: New files.
114600 2006-07-22  Bruno Haible  <bruno@clisp.org>
114602         Merge from GNU gettext 0.15.
114604         2006-05-01  Bruno Haible  <bruno@clisp.org>
114606                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
114608         2006-07-22  Bruno Haible  <bruno@clisp.org>
114610                 * modules/javaversion: New file.
114611                 * MODULES.html.sh (Java): Add javaversion.
114613         2006-03-12  Bruno Haible  <bruno@clisp.org>
114615                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
114617         2005-12-04  Bruno Haible  <bruno@clisp.org>
114619                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
114620                 (untested).
114622         2006-06-21  Bruno Haible  <bruno@clisp.org>
114624                 Avoid warnings from recent versions of mcs.
114625                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
114626                 -o, -L, -r any more. Use options documented since mcs-1.0
114627                 instead. Similarly for -g.
114629         2005-12-04  Bruno Haible  <bruno@clisp.org>
114631                 * build-aux/csharpcomp.sh.in: Suffix for resources is
114632                 .resources, not .resource.
114634         2005-07-09  Bruno Haible  <bruno@clisp.org>
114636                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
114637                 add a .dll suffix.
114638                 Reported by Mark Junker <mjscod@gmx.de>.
114640         2006-07-22  Bruno Haible  <bruno@clisp.org>
114642                 * modules/gettext: Upgrade to gettext-0.15.
114643                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
114644                 m4/visibility.m4.
114645                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
114647 2006-07-22  Bruno Haible  <bruno@clisp.org>
114649         Merge from GNU gettext 0.15.
114651         2006-03-25  Bruno Haible  <bruno@clisp.org>
114653                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
114655         2006-07-21  Bruno Haible  <bruno@clisp.org>
114657                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
114658                 "1.1".
114660         2006-05-09  Bruno Haible  <bruno@clisp.org>
114662                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
114663                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
114664                 for the conftestver execution.
114666         2006-05-01  Bruno Haible  <bruno@clisp.org>
114668                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
114669                 optional target-version argument. Verify that the compiler
114670                 groks source of the specified source-version, or add -source
114671                 option as necessary. Verify that the compiler produces
114672                 bytecode in the specified target-version, or add -target and
114673                 -source options as necessary. Make the result of the test
114674                 available as variable CONF_JAVAC. Also log error output in
114675                 config.log.
114677         2006-03-11  Bruno Haible  <bruno@clisp.org>
114679                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
114681         2006-05-09  Bruno Haible  <bruno@clisp.org>
114683                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
114684                 CLASSPATH_SEPARATOR to a semicolon.
114686         2006-03-12  Bruno Haible  <bruno@clisp.org>
114688                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
114689                 available as variable CONF_JAVA, for subsequent autoconf
114690                 tests. Also log error output in config.log.
114692         2006-07-19  Bruno Haible  <bruno@clisp.org>
114694                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
114695                 that getline works on glibc2 systems. Needed to avoid trouble
114696                 in relocatable.c.
114697                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
114699         2005-12-04  Bruno Haible  <bruno@clisp.org>
114701                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
114702                 launcher (untested).
114704         2005-12-04  Bruno Haible  <bruno@clisp.org>
114706                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
114708         2006-07-22  Bruno Haible  <bruno@clisp.org>
114710                 * gettext.m4: Update from GNU gettext-0.15.
114711                 * nls.m4: Likewise.
114712                 * po.m4: Likewise.
114713                 * inttypes-pri.m4: Likewise.
114714                 * inttypes-h.m4: Renamed from inttypes.m4.
114715                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
114717 2006-07-22  Bruno Haible  <bruno@clisp.org>
114719         Merge from GNU gettext 0.15.
114721         2005-07-05  Bruno Haible  <bruno@clisp.org>
114723                 * printf-args.c (printf_fetchargs): Work around broken
114724                 definition of wint_t on mingw.
114726         2005-02-12  Bruno Haible  <bruno@clisp.org>
114728                 * xallocsa.h: Add extern "C" for C++.
114730         2006-05-17  Bruno Haible  <bruno@clisp.org>
114732                 Cygwin portability.
114733                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
114735         2006-04-30  Bruno Haible  <bruno@clisp.org>
114737                 * progreloc.c: Include <mach-o/dyld.h> if available.
114738                 (find_executable): Use _NSGetExecutablePath when possible.
114740         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
114742                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
114743                 function.
114745         2005-12-29  Bruno Haible  <bruno@clisp.org>
114747                 * progreloc.c (set_program_name_and_installdir): Fix
114748                 compilation error.
114750         2005-12-04  Bruno Haible  <bruno@clisp.org>
114752                 Cygwin portability.
114753                 * progreloc.c: Include <windows.h> also on Cygwin.
114754                 (find_executable): Add support for Cygwin.
114755                 (set_program_name_and_installdir): Handle also platforms with
114756                 nonempty EXEEXT.
114758         2006-07-11  Bruno Haible  <bruno@clisp.org>
114760                 * javacomp.c: Fix a comment.
114761                 Reported by Jim Meyering.
114763         2006-04-30  Bruno Haible  <bruno@clisp.org>
114765                 * javacomp.h (compile_java_class): Add source_version,
114766                 target_version arguments.
114767                 * javacomp.c: Rewritten to choose only a compiler that
114768                 respects the specified source_version and target_version.
114770         2006-06-27  Bruno Haible  <bruno@clisp.org>
114772                 Assume correct S_ISDIR macro.
114773                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
114775         2006-07-22  Bruno Haible  <bruno@clisp.org>
114777                 * javaversion.h: New file, from GNU gettext.
114778                 * javaversion.c: New file, from GNU gettext.
114779                 * javaversion.java: New file, from GNU gettext.
114780                 * javaversion.class: New file, from GNU gettext.
114782         2006-05-17  Bruno Haible  <bruno@clisp.org>
114784                 Cygwin portability.
114785                 * javaexec.c (execute_java_class): Test for jview program
114786                 also on Cygwin.
114788         2006-04-09  Bruno Haible  <bruno@clisp.org>
114790                 * fatal-signal.c: Don't include string.h.
114791                 (at_fatal_signal): Use a copying loop instead of memcpy.
114793         2005-12-04  Bruno Haible  <bruno@clisp.org>
114795                 * csharpexec.c: Add support for 'clix' launcher (untested).
114796                 (execute_csharp_using_sscli): New function.
114797                 (execute_csharp_program): Call it.
114799         2006-06-21  Bruno Haible  <bruno@clisp.org>
114801                 Avoid warnings from recent versions of mcs.
114802                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
114803                 -o, -L, -r any more. Use options documented since mcs-1.0
114804                 instead. Similarly for -g.
114806         2005-07-09  Bruno Haible  <bruno@clisp.org>
114808                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
114809                 add a .dll suffix.
114810                 Reported by Mark Junker <mjscod@gmx.de>.
114812         2006-06-17  Bruno Haible  <bruno@clisp.org>
114814                 * config.charset: Update for NetBSD 3.0.
114816         2006-05-17  Bruno Haible  <bruno@clisp.org>
114818                 Cygwin portability.
114819                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
114821         2006-05-16  Bruno Haible  <bruno@clisp.org>
114823                 * localcharset.c [CYGWIN]: Include <windows.h>.
114824                 (get_charset_aliases): For Cygwin, return the same CPxxx
114825                 aliases list as under WIN32.
114826                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
114827                 the environment variables. Fall back to GetACP().
114829         2006-04-05  Bruno Haible  <bruno@clisp.org>
114831                 * config.charset: Update Juan Manuel Guerrero's address.
114833         2005-02-12  Bruno Haible  <bruno@clisp.org>
114835                 * allocsa.h: Add extern "C" for C++.
114837         2005-02-10  Bruno Haible  <bruno@clisp.org>
114839                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
114840                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
114842         2006-07-22  Bruno Haible  <bruno@clisp.org>
114844                 * gettext.h: Update to GNU gettext-0.15.
114846 2006-07-22  Bruno Haible  <bruno@clisp.org>
114848         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
114849         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
114850         lib-prefix.m4, longdouble.m4, ssize_t.m4.
114852 2006-07-21  Eric Blake  <ebb9@byu.net>
114854         * modules/stdlib-safer: New file.
114855         * MODULES.html.sh (File stream based Input/Output): Add
114856         stdlib-safer.
114858 2006-07-21  Eric Blake  <ebb9@byu.net>
114860         * lib/stdlib-safer.h: New file from coreutils, required by
114861         stdlib--.h.
114863 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
114865         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
114867 2006-07-20  Bruno Haible  <bruno@clisp.org>
114869         * gnulib-tool: Recognize new option --assume-autoconf.
114870         (autoconf_minversion): New variable.
114871         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
114873 2006-07-20  Bruno Haible  <bruno@clisp.org>
114875         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
114877 2006-07-19  Derek R. Price  <derek@ximbiot.com>
114879         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
114880         Reindent and repaginate.
114882 2006-07-19  Derek Price  <derek@ximbiot.com>
114884         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
114885         Correct grammar.
114887 2006-07-17  Bruno Haible  <bruno@clisp.org>
114889         * modules/list: New file.
114890         * modules/array-list: New file.
114891         * modules/carray-list, modules/carray-list-tests: New files.
114892         * modules/linked-list, modules/linked-list-tests: New files.
114893         * modules/avltree-list, modules/avltree-list-tests: New files.
114894         * modules/rbtree-list, modules/rbtree-list-tests: New files.
114895         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
114896         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
114897         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
114898         * modules/oset: New file.
114899         * modules/array-oset: New file.
114900         * modules/avltree-oset, modules/avltree-oset-tests: New files.
114901         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
114902         * tests/test-carray_list.c: New file.
114903         * tests/test-linked_list.c: New file.
114904         * tests/test-avltree_list.c: New file.
114905         * tests/test-rbtree_list.c: New file.
114906         * tests/test-linkedhash_list.c: New file.
114907         * tests/test-avltreehash_list.c: New file.
114908         * tests/test-rbtreehash_list.c: New file.
114909         * tests/test-avltree_oset.c: New file.
114910         * tests/test-rbtree_oset.c: New file.
114911         * MODULES.html.sh (Container data structures): New section.
114913 2006-07-17  Bruno Haible  <bruno@clisp.org>
114915         * m4/gl_list.m4: New file.
114917 2006-07-17  Bruno Haible  <bruno@clisp.org>
114919         * lib/gl_list.h: New file.
114920         * lib/gl_list.c: New file.
114921         * lib/gl_array_list.h: New file.
114922         * lib/gl_array_list.c: New file.
114923         * lib/gl_carray_list.h: New file.
114924         * lib/gl_carray_list.c: New file.
114925         * lib/gl_linked_list.h: New file.
114926         * lib/gl_linked_list.c: New file.
114927         * lib/gl_anylinked_list1.h: New file.
114928         * lib/gl_anylinked_list2.h: New file.
114929         * lib/gl_avltree_list.h: New file.
114930         * lib/gl_avltree_list.c: New file.
114931         * lib/gl_anyavltree_list1.h: New file.
114932         * lib/gl_anyavltree_list2.h: New file.
114933         * lib/gl_rbtree_list.h: New file.
114934         * lib/gl_rbtree_list.c: New file.
114935         * lib/gl_anyrbtree_list1.h: New file.
114936         * lib/gl_anyrbtree_list2.h: New file.
114937         * lib/gl_anytree_list1.h: New file.
114938         * lib/gl_anytree_list2.h: New file.
114939         * lib/gl_linkedhash_list.h: New file.
114940         * lib/gl_linkedhash_list.c: New file.
114941         * lib/gl_anyhash_list1.h: New file.
114942         * lib/gl_anyhash_list2.h: New file.
114943         * lib/gl_avltreehash_list.h: New file.
114944         * lib/gl_avltreehash_list.c: New file.
114945         * lib/gl_rbtreehash_list.h: New file.
114946         * lib/gl_rbtreehash_list.c: New file.
114947         * lib/gl_anytreehash_list1.h: New file.
114948         * lib/gl_anytreehash_list2.h: New file.
114950         * lib/gl_oset.h: New file.
114951         * lib/gl_oset.c: New file.
114952         * lib/gl_array_oset.h: New file.
114953         * lib/gl_array_oset.c: New file.
114954         * lib/gl_avltree_oset.h: New file.
114955         * lib/gl_avltree_oset.c: New file.
114956         * lib/gl_rbtree_oset.h: New file.
114957         * lib/gl_rbtree_oset.c: New file.
114958         * lib/gl_anytree_oset.h: New file.
114960 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114962         * m4/mkancesdirs.m4: New file.
114963         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
114964         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
114965         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
114966         it.
114968 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114970         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
114971         * lib/mkancesdirs.h: New files.
114972         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
114973         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
114974         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
114975         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
114976         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
114977         callers changed.  Revamp internals significantly, by not
114978         attempting to create directories that are temporarily more
114979         permissive than the final results.  Do not attempt to use
114980         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
114981         This removes some race conditions, fixes some bugs, and simplifies
114982         things.  Use new dirchownmod function to do owner and mode changes.
114983         * lib/mkdir-p.h: Likewise.
114984         * lib/modechange.c (octal_to_mode): New function.
114985         (struct mode_change): New member mentioned.
114986         (make_node_op_equals): New arg mentioned.  All callers changed.
114987         (mode_compile): Keep track of which mode bits the user has explicitly
114988         mentioned.
114989         (mode_adjust): New arg DIR, so that we implement the X op correctly.
114990         New arg PMODE_BITS, to keep track of which mode bits the user
114991         mentioned; it treats S_ISUID and S_ISGID speciall.
114992         All callers changed.
114993         * lib/modechange.h: Likewise.
114995 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114997         * MODULES.html.sh: Add mkancestors.
114998         * modules/mkancesdirs: New module.
114999         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
115000         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
115001         The chdir-safer and afs files are now orphans; I'll remove them
115002         unless someone speaks up.
115003         Add lib/dirchownmod.c, lib/dirchownmod.h.
115004         (Depends-on): Remove alloca, chown, save-cwd, dirname.
115005         Add lchown, mkancesdirs.
115006         (Maintainer): Add self.
115008 2006-07-15  Karl Berry  <karl@gnu.org>
115010         * gnulib-tool: help message wording/arrangement.
115012 2006-07-14  Simon Josefsson  <jas@extundo.com>
115014         * doc/gnulib.texi (Libtool and Windows): New section.
115016 2006-07-12  Simon Josefsson  <jas@extundo.com>
115018         * modules/gendocs (License): Fix license, approved by Karl.
115020 2006-07-12  Eric Blake  <ebb9@byu.net>
115022         * MODULES.html.sh: Add gendocs.
115024 2006-07-11  Eric Blake  <ebb9@byu.net>
115026         * modules/fdl: New module, to install doc/fdl.texi.
115027         * MODULES.html.sh: Add new section for documentation modules.
115028         * gnulib-tool: Avoid space-tab.
115029         (--doc-base): New option, to manage files from doc.
115031 2006-07-11  Eric Blake  <ebb9@byu.net>
115033         * m4/absolute-header.m4: Fix comments to match recent change.
115035 2006-07-11  Eric Blake  <ebb9@byu.net>
115037         * gnulib-tool: List --doc-base before --tests-base.
115039 2006-07-11  Derek R. Price  <derek@ximbiot.com>
115041         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
115043 2006-07-11  Bruno Haible  <bruno@clisp.org>
115045         * README: Mention where to put documentation.
115047 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115049         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
115051 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115053         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
115054         to stdint.m4.
115056 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115058         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
115059         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
115060         "no/such/file/stdint.h" when there is no such file, so that
115061         the resulting C code can be parsed by dodgy compilers.
115062         Problems reported by Bob Proulx.
115064 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115066         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
115067         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115068         macros into the GNU _D_EXACT_NAMLEN.
115069         * lib/savedir.c:  Likewise.
115070         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
115072 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115073         and Paul Eggert  <eggert@cs.ucla.edu>
115075         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
115076         * m4/savedir.m4:
115077         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115078         macros into the GNU _D_EXACT_NAMLEN.
115080 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115082         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
115083         around the absolute name, to work around a problem with the HP-UX
115084         11.23 native C compiler, reported by Bob Proulx.
115086 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115088         * doc/maintain.texi, make-stds.texi: Sync from
115089         <http://savannah.gnu.org/projects/gnustandards>.
115091 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115093         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
115095 2006-07-09  Jim Meyering  <jim@meyering.net>
115097         * m4/glob.m4: Remove a doubled word in a comment.
115099 2006-07-09  Jim Meyering  <jim@meyering.net>
115101         * lib/argp-pv.c: Remove a doubled word in a comment.
115102         * lib/check-version.c (check_version): Likewise.
115103         * lib/javacomp.c (compile_java_class): Likewise.
115105 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
115107         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
115108         for the benefit of people using Autoconf 2.60.  If you want to
115109         support older Autoconf versions you can copy m4/onceonly_2_57.m4
115110         (or m4/onceonly.m4, if pre-2.57) manually.
115112 2006-07-08  Jim Meyering  <jim@meyering.net>
115114         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
115115         comment.
115116         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
115117         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
115118         comment.
115120 2006-07-08  Jim Meyering  <jim@meyering.net>
115122         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
115124 2006-07-07  Simon Josefsson  <jas@extundo.com>
115126         * tests/test-crc.c: Change expected crc value, the test vector
115127         were probably computed using the old broken crc.c?
115129 2006-07-06  Simon Josefsson  <jas@extundo.com>
115131         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
115132         now the canonical place for the M4 file).
115134         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
115135         from the sys_socket dependency now.
115137         * modules/inet_pton (Files): Ditto.
115139         * modules/inet_ntop (Files): Ditto.
115141 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115143         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
115144         not gl_PREREQ_GETUSERSHELL.
115146 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115148         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
115149         with only one argument, for Autoconf 2.60.
115150         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
115151         expand to nothing, so add a shell command to avoid syntax error.
115152         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
115154 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115156         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
115158 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115160         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
115161         no longer needed.  Check for isblank decl.
115162         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
115163         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
115164         of existence.
115166 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115168         * lib/getloadavg.c: Use __VMS, not VMS.
115169         * lib/getopt.c: Likewise.
115170         * lib/getpagesize.h: Likewise.
115171         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
115172         and probably does not work.
115174 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115176         * lib/.cppi-disable: Add wcwidth.
115177         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
115178         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
115179         (ISGRAPH): Remove.  All uses changed to isgraph.
115180         (FOLD) [!defined _LIBC]: Remove special case.
115181         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
115182         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
115183         HAVE_ISBLANK.
115184         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
115185         case.
115187 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115189         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
115190         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
115191         brackets.  Other minor changes to suppress some compiler
115192         warnings.
115194 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115195         and Paul Eggert  <eggert@cs.ucla.edu>
115197         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
115198         of invoking obsolescent AC_HEADER_DIRENT macro.
115199         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
115200         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
115201         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
115202         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
115203         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
115204         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115205         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
115206         * m4/readdir.m4: Remove; no longer needed.
115208 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115209         and Paul Eggert  <eggert@cs.ucla.edu>
115211         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
115212         Don't worry about this obsolete case any more.
115213         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
115214         directories.
115215         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
115216         worry about this obsolete case any more.
115217         * lib/fts.c: Likewise.
115218         * lib/getcwd.c: Likewise.
115219         * lib/glob.h: Likewise.
115220         * lib/savedir.c: Likewise.
115222 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115224         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
115225         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
115226         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
115227         needed.
115228         All uses removed.
115229         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115230         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115231         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
115232         needed.
115233         * m4/getdate.m4 (gl_GETDATE): Likewise.
115234         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115235         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115236         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115237         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115238         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115239         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115240         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
115241         needed.
115243 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115245         * lib/memcasecmp.c: Include <limits.h>.
115246         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
115247         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
115248         Don't assume isdigit succeeds only on '0' through '9'.
115250 2006-07-05  Eric Blake  <ebb9@byu.net>
115252         * modules/getaddrinfo (Depends-on): Add snprintf.
115254 2006-07-05  Eric Blake  <ebb9@byu.net>
115256         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
115257         to avoid 'header present but could not be compiled' on cygwin.
115259 2006-07-05  Eric Blake  <ebb9@byu.net>
115261         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
115262         missing from netdb.h.
115263         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
115265 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115267         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
115268         no longer needed.
115269         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
115270         * m4/getdate.m4 (gl_GETDATE): Likewise.
115271         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115272         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115273         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115274         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115275         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115277 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115279         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
115280         All uses of is_space replaced by isspace.
115281         * lib/exit.h: Don't talk about STDC_HEADERS.
115282         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
115283         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
115284         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
115285         replaced by isprint etc.
115286         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
115287         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115288         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
115289         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
115290         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
115291         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115293 2006-07-05  Bruno Haible  <bruno@clisp.org>
115295         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
115296         the function exists, before testing against AIX.
115297         Reported by Martin Lambers <marlam@marlam.de>.
115299 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115301         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
115302         From Mark D. Baushke.
115304 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115306         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
115307         to the absolute name, not just one, to bypass Sun C 5.8's
115308         "warning: #include of /usr/include/... may be non-portable".
115310 2006-07-04  Eric Blake  <ebb9@byu.net>
115312         * modules/dirname-tests: New test module.
115313         * tests/test-dirname.c: New file, replacing dirname.c
115314         TEST_DIRNAME section that was recently deleted.
115316 2006-07-04  Bruno Haible  <bruno@clisp.org>
115318         Assume ANSI C header files and <ctype.h> functions.
115319         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
115320         (mbsnwidth): Use isprint, iscntrl instead.
115322 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115324         Merge from coreutils.
115325         * MODULES.html.sh: Add xstrtold.
115326         * modules/xstrtold: New file.
115327         * modules/cycle-check (Files): Add lib/same-inode.h.
115328         * modules/dirname (Files): Add m4/double-slash-root.m4.
115329         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
115330         * modules/mkdir-p (Files): Add lib/same-inode.h.
115331         * modules/same (Files): Add lib/same-inode.h.
115333 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115335         * m4/absolute-header.m4: Renamed from full-header-path.m4.
115336         This is to keep the terminology clean; POSIX talks about
115337         "absolute pathnames", not "full pathnames", but the GNU
115338         Coding Standards say to use "path" for something else;
115339         so use "absolute" to keep both sides happy.
115340         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
115341         Set gl_absolute_header, not gl_full_header_path.
115342         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
115343         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
115344         All uses changed.
115346         Merge from coreutils.
115348         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115350         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
115351         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
115352         want to require the building of c-strtod.o.
115353         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
115354         needs -lm directly.
115355         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
115357         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115359         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
115360         --as-needed option if available.  Problem reported by Albert Chin in
115361         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
115362         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
115363         cc merely issues a bunch of annoying warnings for --as-needed
115364         (this problem was reported by Bob Proulx).  Also, try linking with
115365         -lm to detect a bug in binutils 2.16 (this problem was reported
115366         by Ralf Wildenhues).
115368         2006-06-18  Jim Meyering  <jim@meyering.net>
115370         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
115371         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
115372         macro.
115373         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
115374         also check for glibc-2.4's abort-inducing bug.
115376         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
115377         Low-probability clean-up should be to use rmdir to get rid of
115378         the just-created directory, not unlink.
115380         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
115381         configure fail, and request a bug report to inform us about it.
115382         Add a comment that, barring reports to the contrary, in 2007 we'll
115383         assume ftruncate is universally available.
115385         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115387         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
115389         2006-03-12  Jim Meyering  <jim@meyering.net>
115391         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
115392         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
115393         * m4/same.m4 (gl_SAME): Likewise.
115394         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
115396         2006-03-11  Eric Blake  <ebb9@byu.net>
115398         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
115399         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
115400         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
115401         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
115403 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115405         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
115406         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
115407         reported by Mark D. Baushke, one in
115408         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
115410         Merge from coreutils.
115412         * lib/.cppi-disable: Add stdint_.h.
115413         * lib/.cvsignore: Add stdint.h.
115415         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115417         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
115418         both double and long double versions.
115419         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
115420         * lib/xstrtold.c: New file.
115421         * lib/xstrtod.h (xstrtold): New decl.
115423         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
115425         * lib/filemode.c (setst): Remove.
115426         (strmode): Rewrite to avoid setst.  This makes the code shorter,
115427         (arguably) clearer, and the generated code is a bit smaller on my
115428         Debian GNU/Linux stable x86 host.
115430         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115432         * lib/filemode.c: Include "filemode.h" first, to test the interface.
115433         Assume that filemode.h includes sys/types.h and sys/stat.h.
115434         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
115435         (ftypelet): Reorder to put common cases first, for efficiency.
115436         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
115437         to do 'M'.
115438         (strmode): Renamed from mode_string, and now stores 12 bytes instead
115439         of 10, for compatibility with FreeBSD.  All callers changed.
115440         (filemodestring): Now stores 12 bytes instead of 10, and sets file
115441         types that can't be deduced solely from st_mode.  First arg is now a
115442         const pointer.
115443         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
115444         (strmode): Renamed from mode_string.
115445         (filemodestring): New decl.
115446         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
115447         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
115448         needed.
115449         (S_ISPORT, S_ISWHT): New macros, if not already defined.
115451         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
115453         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
115454         fsusage.h now does that.  Include fsusage.h first, to test interface.
115455         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
115456         at most one method (the old code could have generated decls that
115457         didn't conform to C89, not that this was ever exercised).
115458         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
115460         2006-03-19  Jim Meyering  <jim@meyering.net>
115462         Work even in a chroot where d_ino values for entries in "/"
115463         don't match the stat.st_ino values for the same names.
115464         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
115465         number, iterate through all entries again, using lstat instead.
115466         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
115467         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
115469         * lib/getcwd.c (__getcwd): Clarify a comment.
115470         Use memcpy in place of a call to strcpy.
115472         2006-03-12  Jim Meyering  <jim@meyering.net>
115474         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
115475         matches that of the current directory (which we're about to chdir ".."
115476         out of), then save the dev-ino of the parent, instead.
115478         * lib/same-inode.h (SAME_INODE): New file/macro.
115479         * lib/chdir-safer.c (SAME_INODE): Remove definition.
115480         Include "same-inode.h", instead.
115481         * lib/same.c: Likewise.
115482         * lib/cycle-check.h: Include "same-inode.h".
115483         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
115484         * lib/cycle-check.c (SAME_INODE): Remove definition.
115485         * lib/root-dev-ino.h: Include "same-inode.h".
115487         2006-03-11  Eric Blake  <ebb9@byu.net>
115489         * lib/same.c (same_name): s/base_name/last_component/
115490         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
115491         * lib/filenamecat.c (file_name_concat): Likewise.
115493         2006-03-11  Eric Blake  <ebb9@byu.net>,
115494                     Paul Eggert  <eggert@cs.ucla.edu>
115496         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
115497         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
115498         drive prefix.
115499         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
115500         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
115501         (last_component): New method.
115502         * lib/dirname.c (dir_len): Determine when drive letters need a
115503         subsequent slash.  Preserve // when it is special.
115504         (dir_name): Don't append dot when drive letter is absolute.
115505         [TEST_DIRNAME]: Move into a full-blown gnulib test.
115506         * lib/basename.c (base_name): New semantics - malloc the result.
115507         Preserve // when it is special.  Preserve relative files that look
115508         like drive letters.
115509         (base_len): Preserve // when it is special.
115510         (last_component): New method, similar to old base_name semantics.
115511         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
115512         base_name.  Strip redundant slashes from ///.
115514 2006-07-03  Jim Meyering  <jim@meyering.net>
115516         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
115517         macro is used before the first cycle_check call.
115519 2006-07-03  Eric Blake  <ebb9@byu.net>
115521         * modules/dirname (Depends-on): Add xstrndup.
115523 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115525         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
115526         test cases, so that config.log is a bit easier to follow.
115528 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115530         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
115531         both are 64 bits, since this seems to be the tradition, and this
115532         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
115533         we ever run into a host that prefers long long to long in this
115534         case, we'll need another configure-time test.  Problem reported by
115535         Jim Meyering.
115537 2006-07-02  Eric Blake  <ebb9@byu.net>
115539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
115541 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115543         * modules/inttypes (Depends-on): No longer depends on stdint.
115544         * modules/stdint (Description): Say more about assumptions.
115545         Say that the fast types might differ.  Say macros are used.
115546         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
115547         (Makefile.am): Revise list of substituted symbols to match
115548         new stdint.m4.
115549         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
115550         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
115551         * tests/test-stdint.c (verify_same_types)
115552         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
115553         the code conforms to C99/C89.
115554         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
115555         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
115557 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115559         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
115560         but fix a bug, by requiring at least 64 bits.
115561         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
115562         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
115563         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
115564         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115566         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
115567         changes.  Make 2.59 a prerequisite.  Check and substitute for
115568         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
115569         inttypes.h.  Do not use special include files; just use the
115570         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
115571         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
115572         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
115573         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
115574         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
115575         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
115576         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
115577         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
115578         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
115579         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
115580         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
115581         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
115582         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
115583         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
115584         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
115585         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
115586         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
115587         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
115588         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
115589         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
115590         WINT_MAX.  Check for C99 conformance more strictly, by detecting
115591         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
115592         not check for things that C99 does not require, e.g., int8_t.  If
115593         a test isn't needed unless <stdint.h> isn't working, and is
115594         unlikely to be needed for any other reason, then don't do it
115595         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
115596         size_t, since we assume C89 freestanding at least.  Do not check
115597         for sig_atomic_t, wchar_t, or wint_t, since the code now does
115598         the right thing even if the types are not defined.  Instead use:
115599         (gl_STDINT_TYPE_PROPERTIES): New macro.
115600         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
115601         testing whether <sys/types.h> clashes, as Autoconf does this for
115602         us now.  All uses removed.
115603         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
115604         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
115605         (gl_CHECK_TYPE_SAME):
115606         Remove; no longer needed.
115607         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
115608         exists, since we'll return 0 anyway in that case.
115609         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
115611 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115613         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
115614         possible collision with system files.
115615         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
115616         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
115617         WCHAR_MIN and WCHAR_MAX in this case.
115618         (<stddef.h>): Do not include; no longer needed.
115619         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
115620         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
115621         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
115622         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
115623         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
115624         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
115625         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
115626         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
115627         !defined(__c99))]: Include in this case too, since it's harmless
115628         now.
115629         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
115630         dangerous to do so.
115631         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
115632         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
115633         (_STDINT_MIN, _STDINT_MAX): New macros.
115634         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
115635         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
115636         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
115637         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
115638         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
115639         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
115640         macros, not typedefs; this simplifies things quite a bit.
115641         Use long int for all types narrower than int64_t.
115642         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
115643         Define in terms of long long int or int64_t or long int,
115644         not int64_t or int32_t.  This saves some compile-time testing.
115645         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
115646         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
115647         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
115648         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
115649         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
115650         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
115651         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
115652         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
115653         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
115654         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
115655         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115656         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115657         undef any previous version and define our own version, for
115658         simplicity and consistency with the new macros for types.
115659         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115660         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115661         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
115662         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
115663         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
115664         @WINT_T_SUFFIX@ to keep things simple here.
115665         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
115666         Simplify by assuming typical 8/16/32/64 host, since we're
115667         already doing that elsewhere anyway.
115668         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
115669         and assume long long int is 64 bits if available.  This
115670         speeds up 'configure'.
115672 2006-07-01  Eric Blake  <ebb9@byu.net>
115674         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
115675         Reported by Andreas Buening.
115677 2006-07-01  Eric Blake  <ebb9@byu.net>
115679         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
115681 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115683         * lib/getaddrinfo.c: fixed typo
115685 2006-06-29  Jim Meyering  <jim@meyering.net>
115687         * modules/strftime (Maintainer): Add my name, since with the
115688         FPRINTFTIME changes strftime.c has forked from glibc.
115690 2006-06-29  Eric Blake  <ebb9@byu.net>
115692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
115694 2006-06-29  Eric Blake  <ebb9@byu.net>
115696         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
115698 2006-06-29  Eric Blake  <ebb9@byu.net>
115700         * lib/stat_.h: New file.
115702 2006-06-29  Eric Blake  <ebb9@byu.net>
115704         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
115705         unused static function.
115707 2006-06-29  Eric Blake  <ebb9@byu.net>
115709         * doc/functions.texi (Function Portability): Document missing lstat
115710         on mingw.
115712 2006-06-29  Eric Blake  <ebb9@byu.net>
115714         * MODULES.html.sh: Add sys_stat.
115715         * modules/sys_stat: New module.
115716         * modules/mkstemp (Depends-on): Add sys_stat.
115718 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115720         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
115722 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115724         * m4/c-bs-a.m4: Removed.
115726 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115728         * lib/strftime.c: Assume strftime() exists.
115730 2006-06-29  Derek Price  <derek@ximbiot.com>
115732         * modules/c-bs-a: Removed - \a is C89.
115733         * MODULES.html.sh: Remove c-bs-a.
115735 2006-06-29  Bruno Haible  <bruno@clisp.org>
115737         * modules/wcwidth (License): Change to LGPL.
115739 2006-06-28  Simon Josefsson  <jas@extundo.com>
115741         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
115742         on _WIN32.
115744         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
115745         getnameinfo.
115747 2006-06-28  Simon Josefsson  <jas@extundo.com>
115749         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
115751 2006-06-28  Simon Josefsson  <jas@extundo.com>
115753         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
115754         functions there.  It will succeed on Windows XP, but on Windows
115755         2000 and (presumably) earlier, it will fail, and use the internal
115756         re-implementation.
115757         (use_win32_p): New function.
115758         (getaddrinfo): Use strtoul on servname, to support numeric ports.
115759         Support AI_NUMERICSERV to disable getservbyname.
115760         (getnameinfo): New function, only supports
115761         NI_NUMERICHOST|NI_NUMERICSERV for now.
115763         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
115764         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
115765         getnameinfo.
115767 2006-06-28  Eric Blake  <ebb9@byu.net>
115769         * modules/wcwidth: New file.
115770         * modules/mbchar (Depends-on): Add wcwidth.
115771         * modules/mbswidth (Depends-on): Add wcwidth.
115772         * MODULES.html.sh: Add wcwidth.
115774 2006-06-28  Eric Blake  <ebb9@byu.net>
115776         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
115777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
115779 2006-06-28  Eric Blake  <ebb9@byu.net>
115781         * lib/xvasprintf.h: Fix comments.
115783 2006-06-28  Eric Blake  <ebb9@byu.net>
115785         * lib/mbchar.h (wcwidth): Include wcwidth.h.
115786         * lib/mbswidth.c (wcwidth): Move from here...
115787         * lib/wcwidth.h: ...to this new file.
115789 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115791         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
115793         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
115794         it's obsolete.
115795         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
115797 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115799         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
115800         Autoconf 2.60 says this stuff was obsolete.
115802 2006-06-28  Bruno Haible  <bruno@clisp.org>
115804         * modules/wcwidth (Files): Add m4/wchar_t.m4.
115806 2006-06-28  Bruno Haible  <bruno@clisp.org>
115808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
115809         gt_TYPE_WCHAR_T.
115811 2006-06-28  Bruno Haible  <bruno@clisp.org>
115813         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
115814         declaration for wcwidth.
115815         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
115817 2006-06-28  Bruno Haible  <bruno@clisp.org>
115819         * lib/mkdtemp.c [MINGW]: Include <io.h>.
115820         (mkdir): Define using _mkdir.
115822 2006-06-28  Bruno Haible  <bruno@clisp.org>
115824         * lib/getaddrinfo.h: Fix POSIX URL.
115825         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
115826         _WIN32.
115827         (use_win32_p): Make static.
115828         (getaddrinfo): Reject service name if it is empty or does not consist
115829         solely of decimal digits, or if its value is > 65535.
115830         (getnameinfo): Remove useless casts.
115832 2006-06-27  Simon Josefsson  <jas@extundo.com>
115834         * modules/sys_select: New file, suggested by Bruno Haible, Paul
115835         Eggert and Martin Lambers.
115837 2006-06-27  Simon Josefsson  <jas@extundo.com>
115839         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
115840         Eggert and Martin Lambers.
115842 2006-06-27  Bruno Haible  <bruno@clisp.org>
115844         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
115845         result to 0, not to empty.
115846         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
115848 2006-06-27  Bruno Haible  <bruno@clisp.org>
115850         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
115852 2006-06-26  Simon Josefsson  <jas@extundo.com>
115854         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
115855         present.
115857 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
115859         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
115860         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
115861         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
115863 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
115865         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
115867 2006-06-26  Bruno Haible  <bruno@clisp.org>
115869         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
115871 2006-06-26  Bruno Haible  <bruno@clisp.org>
115873         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
115875 2006-06-26  Bruno Haible  <bruno@clisp.org>
115877         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
115878         SGI C compiler in pre-C99 mode.
115879         Suggested by Mark D. Baushke and Larry Jones.
115881 2006-06-26  Bruno Haible  <bruno@clisp.org>
115883         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
115884         WCHAR_MAX.
115885         Reported by Mark D. Baushke and Larry Jones.
115887 2006-06-26  Bruno Haible  <bruno@clisp.org>
115889         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
115890         in pre-C99 mode.
115891         Suggested by Mark D. Baushke and Larry Jones.
115893 2006-06-23  Simon Josefsson  <jas@extundo.com>
115894             Bruno Haible  <bruno@clisp.org>
115896         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
115897         Emit mostlyclean-local rule.
115898         (func_emit_tests_Makefile_am): Likewise.
115899         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
115901 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
115903         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
115905 2006-06-23  Bruno Haible  <bruno@clisp.org>
115907         * tests/test-stdint.c: Update to match ISO C 99 Technical
115908         Corrigendum 1.
115910 2006-06-23  Bruno Haible  <bruno@clisp.org>
115912         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
115914 2006-06-23  Bruno Haible  <bruno@clisp.org>
115916         * lib/stdint_.h: Treat IRIX like OpenBSD.
115918 2006-06-23  Bruno Haible  <bruno@clisp.org>
115920         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
115921         ISO C 99 Technical Corrigendum 1.
115923 2006-06-22  Simon Josefsson  <jas@extundo.com>
115925         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
115926         MinGW.
115928 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115930         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
115931         needed.  Some compiler complained about some of them.  Problem reported
115932         by Larry Jones in
115933         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
115935 2006-06-21  Simon Josefsson  <jas@extundo.com>
115937         * tests/test-getaddrinfo.c: New file.
115939         * modules/getaddrinfo-tests: New file.
115941         * MODULES.html.sh: Add inet_pton.
115943         * modules/inet_pton: New file.
115945 2006-06-21  Simon Josefsson  <jas@extundo.com>
115947         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
115948         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
115949         of using the (limited) gnulib implementation on Windows XP.
115951         * m4/inet_pton.m4: New file.
115953 2006-06-21  Simon Josefsson  <jas@extundo.com>
115955         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
115956         variable.
115958         * lib/socket_.h: Don't define WINVER.
115960         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
115961         slightly modified to work in gnulib.
115963 2006-06-21  Simon Josefsson  <jas@extundo.com>
115965         * doc/gnulib.texi (Windows sockets): Add.
115967 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
115969         * lib/read-file.c (fread_file): Start with buffer allocation of
115970         0 bytes rather than 1 byte; this simplifies the code.
115971         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
115972         code to free buffer and save/restore errno.
115973         (internal_read_file): Remove unused local.
115975 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
115977         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
115978         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
115979         Problem reported by Denis Excoffier in
115980         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
115982 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115984         * modules/sys_socket, modules/socklen: Include sys/types since
115985         FreeBSD 4.x's sys/socket.h needs it.
115987 2006-06-19  Simon Josefsson  <jas@extundo.com>
115989         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
115991 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115993         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
115995 2006-06-19  Bruno Haible  <bruno@clisp.org>
115997         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
115998         and FULL_PATH_INTTYPES_H in angle brackets.
115999         Reported by Mark D. Baushke <mdb@gnu.org>.
116001 2006-06-17  Eric Blake  <ebb9@byu.net>
116003         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
116004         errno.
116006 2006-06-17  Bruno Haible  <bruno@clisp.org>
116008         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
116009         <sys/inttypes.h>.
116011 2006-06-17  Bruno Haible  <bruno@clisp.org>
116013         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
116014         whether errno is declared. Assume <errno.h> declares errno.
116016 2006-06-17  Bruno Haible  <bruno@clisp.org>
116018         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
116020 2006-06-17  Bruno Haible  <bruno@clisp.org>
116022         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
116023         problem on Solaris 2.5.1.
116025 2006-06-16  Eric Blake  <ebb9@byu.net>
116027         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
116028         * lib/unicodeio.c [!defined errno]: Likewise.
116029         * lib/strtol.c [!defined errno]: Likewise.
116030         * lib/strtod.c [!defined errno]: Likewise.
116032 2006-06-15  Eric Blake  <ebb9@byu.net>
116034         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
116036 2006-06-15  Eric Blake  <ebb9@byu.net>
116038         * config/srclist.txt (ssize_t.m4): Lose sync.
116040 2006-06-15  Bruno Haible  <bruno@clisp.org>
116042         * modules/stdint (Files): Include m4/full-header-path.m4,
116043         m4/size_max.m4, m4/wchar_t.m4.
116044         (Makefile.am): Many more substitutions.
116045         * modules/stdint-tests: New file.
116046         * tests/test-stdint.c: New file.
116048 2006-06-15  Bruno Haible  <bruno@clisp.org>
116050         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
116051         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
116052         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
116053         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
116054         gl_CHECK_TYPE_SAME): New macros.
116056 2006-06-15  Bruno Haible  <bruno@clisp.org>
116058         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
116060 2006-06-15  Bruno Haible  <bruno@clisp.org>
116062         * lib/stdint_.h: Rewritten to be fully auto-configured.
116063         Fixes bug on HP-UX/IA64.
116065 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
116067         * lib/getdate.y (__attribute__): Don't define if already defined.
116068         Problem reported by Larry Jones.
116069         * lib/utimens.c (__attribute__): Likewise.
116071 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
116073         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
116074         reported by Andreas Schwab.
116076 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116077             Bruno Haible  <bruno@clisp.org>
116079         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
116080         check for the declaration of strnlen and a run test that exposes the
116081         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
116082         rpl_strndup.
116084 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116085             Bruno Haible  <bruno@clisp.org>
116087         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
116089 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116091         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
116092         compile test, for Tru64 4.0D.
116094 2006-05-28  Karl Berry  <karl@gnu.org>
116096         * config/srclist.txt (printf-args.c): lose sync.
116098 2006-05-26  Martin Lambers  <marlam@marlam.de>
116100         * lib/getpass.c: Updates the test for the native W32 API, and adds
116101         missing includes, thus fixing compilation warnings.
116103 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116105         * lib/exclude.c (exclude_fnmatch): New function.
116106         (excluded_file_name): Call exclude_fnmatch.
116107         * lib/exclude.h (excluded_file_name): New prototype
116109 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
116111         * lib/tempname.c (small_open, large_open): New macros.
116112         (__open, __open64) [!_LIBC]: Remove.
116113         (__gen_tempname): Use small_open and large_open instead of __open
116114         and __open64.  This fixes a portability bug on HP-UX 11.11i
116115         reported by Simon Wing-Tang in
116116         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
116118 2006-05-24  Bruno Haible  <bruno@clisp.org>
116120         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
116121         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
116122         Reported by Thorsten Maerz <torte@netztorte.de> via
116123         Aaron Stone <aaron@serendipity.cx>.
116125 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
116128         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
116129         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
116130         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
116131         not really conditional on the cache.
116132         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
116134 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116136         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
116137         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
116138         (my_usleep): Don't mishandle maximum value.
116140 2006-05-19  Jim Meyering  <jim@meyering.net>
116142         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
116144 2006-05-17  Bruno Haible  <bruno@clisp.org>
116146         Cygwin portability.
116147         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
116149 2006-05-17  Bruno Haible  <bruno@clisp.org>
116151         * lib/stdint_.h: Fix recognition of Cygwin.
116153 2006-05-15  Bruno Haible  <bruno@clisp.org>
116155         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
116156         on libtool patch by Ralf Wildenhues.
116158 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116160         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
116161         test for C99 conformance; (bool) 0.5 is an integer constant
116162         expression, but (bool) -0.5 is not.  Problem reported by Fedor
116163         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
116165 2006-05-11  Simon Josefsson  <jas@extundo.com>
116167         * m4/xvasprintf.m4: Fix obvious typo.
116169 2006-05-11  Jim Meyering  <jim@meyering.net>
116171         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
116172         James Lemley.
116174 2006-05-10  Simon Josefsson  <jas@extundo.com>
116176         * lib/md4.c: Typo fix, update copyright years.
116177         (K1, K2): Don't use L because it turn computations into 64-bit on
116178         64-bit platforms.
116180 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
116182         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
116183         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
116184         unwanted sign propagation, e.g., on hosts with 64-bit int.
116185         There still are some problems with reeelly weird theoretical hosts
116186         (e.g., 33-bit int) but it's not worth worrying about now.
116187         * lib/sha1.c (rol): Likewise.
116188         (K1, K2, K3, K4): Remove unnecessary L suffix.
116190 2006-05-10  Bruno Haible  <bruno@clisp.org>
116192         * lib/des.c: Cast to avoid warnings.
116194 2006-05-09  Bruno Haible  <bruno@clisp.org>
116196         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
116197         (Depends-on): Depend also on xsize, stdarg.
116198         (configure.ac): Add gl_XVASPRINTF.
116200 2006-05-09  Bruno Haible  <bruno@clisp.org>
116202         * m4/xvasprintf.m4: New file.
116204 2006-05-09  Bruno Haible  <bruno@clisp.org>
116206         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
116207         (EOVERFLOW): Define fallback value.
116208         (xstrcat): New function.
116209         (xvasprintf): Recognize the special case of a string concatenation.
116211 2006-05-08  Eric Blake  <ebb9@byu.net>
116213         * gnulib-tool (func_version): Base copyright year on CVS date.
116214         (func_emit_copyright_notice): New function.
116215         (func_emit_lib_Makefile_am): Use it.
116216         (func_emit_tests_Makefile_am): Likewise.
116217         (func_import): Likewise.
116219 2006-05-08  Bruno Haible  <bruno@clisp.org>
116221         * modules/stdarg: New file.
116222         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
116224 2006-05-08  Bruno Haible  <bruno@clisp.org>
116226         * m4/stdarg.m4: New file, from GNU gettext.
116228 2006-05-08  Bruno Haible  <bruno@clisp.org>
116230         * config/srclist.txt (build-aux/config.rpath): different from latest
116231         release.
116233 2006-05-08  Bruno Haible  <bruno@clisp.org>
116235         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
116237 2006-05-05  Jim Meyering  <jim@meyering.net>
116239         * m4/warning.m4: New file, derived from bison's file by the same name.
116241 2006-05-03  Bruno Haible  <bruno@clisp.org>
116243         * lib/stdint_.h: Shorter URL.
116244         * lib/inttypes.h: Likewise.
116246 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116248         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
116250 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116252         * lib/verify.h: Document the internals better.  Most of this change
116253         was written by Bruno Haible.
116255 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116257         * doc/verify.texi: New file, partly based on a proposal by
116258         Bruno Haible.
116260 2006-05-02  Bruno Haible  <bruno@clisp.org>
116262         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
116263         test from here...
116264         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
116266 2006-04-29  Bruno Haible  <bruno@clisp.org>
116268         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
116269         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
116271 2006-04-29  Bruno Haible  <bruno@clisp.org>
116273         * gnulib-tool: Make --update option actually work.
116275 2006-04-29  Bruno Haible  <bruno@clisp.org>
116277         * doc/gcd.texi: New file.
116278         * doc/gnulib.texi: Include it.
116280 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
116282         * lib/getdate.y (get_date): When adding relative date, start with the
116283         initial time, not with the result of the first mktime call.
116285 2006-04-25  Bruno Haible  <bruno@clisp.org>
116287         * gnulib-tool (func_import): Output the include directives in three
116288         blocks, sorted separately.
116289         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116291 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116293         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
116294         to define main with arguments, for C++.  Reported by Eric Blake.
116295         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
116296         Prefer 'int main ()' to 'int main (void)', for C++.
116297         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
116298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
116299         for 'main', for C99 and C++.
116301 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116303         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
116304         Don't assume that exit status -1 is valid.
116305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116306         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
116307         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
116308         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
116309         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
116310         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
116311         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
116312         functions can be used without declaring them, or that you can
116313         exit with status -1.
116314         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
116316 2006-04-24  Karl Berry  <karl@gnu.org>
116318         * config/srclist.txt (longdouble.m4): sync lost.
116320 2006-04-24  Eric Blake  <ebb9@byu.net>
116322         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
116324 2006-04-24  Bruno Haible  <bruno@clisp.org>
116326         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
116327         poll() implementation in AIX.
116328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116330 2006-04-24  Bruno Haible  <bruno@clisp.org>
116332         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
116333         assigned exactly once.
116335 2006-04-23  Claudio Fontana  <claudio@gnu.org>
116336             Bruno Haible  <bruno@clisp.org>
116338         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
116339         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
116340         for AM_CPPFLAGS.
116342 2006-04-23  Bruno Haible  <bruno@clisp.org>
116344         * modules/copy-file: Depend on unistd.
116345         * modules/execute: Likewise.
116346         * modules/fatal-signal: Likewise.
116347         * modules/findprog: Likewise.
116348         * modules/mkdtemp : Likewise.
116349         * modules/pipe: Likewise.
116350         * modules/wait-process: Likewise.
116352 2006-04-23  Bruno Haible  <bruno@clisp.org>
116354         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
116355         condition was already detected.
116356         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116358 2006-04-23  Bruno Haible  <bruno@clisp.org>
116360         * lib/copy-file.c: Include <unistd.h> unconditionally.
116361         * lib/execute.c: Likewise.
116362         * lib/fatal-signal.c: Likewise.
116363         * lib/findprog.c: Likewise.
116364         * lib/mkdtemp.c: Likewise.
116365         * lib/pipe.h: Likewise.
116366         * lib/pipe.c: Likewise.
116367         * lib/wait-process.h: Likewise.
116369 2006-04-23  Bruno Haible  <bruno@clisp.org>
116371         * gnulib-tool (func_usage): Fix --import description. Document
116372         --update.
116373         (func_import): Create temporary file in a temporary directory, if
116374         --dry-run is specified. Silence errors from 'grep' when there are no
116375         m4 files in $m4dir.
116376         (func_create_testdir): Silence errors from 'grep' when there are no
116377         m4 files in $m4dir.
116378         Reported by Karl Berry <karl@freefriends.org>.
116380 2006-04-20  Bruno Haible  <bruno@clisp.org>
116382         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
116383         one argument, so that the code will be portable to Autoconf 2.60.
116384         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
116385         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116386         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
116388 2006-04-19  Derek Price  <derek@ximbiot.com>
116389             Eric Blake  <ebb9@byu.net>
116391         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
116392         rather than "/full/path.h".  Update comment to match.  Shorten &
116393         generalize m4_translit call via AS_TR_CPP.
116395 2006-04-19  Derek Price  <derek@ximbiot.com>
116396             Eric Blake  <ebb9@byu.net>
116398         * lib/inttypes.h: Correct grammar in comment.
116400 2006-04-18  Derek Price  <derek@ximbiot.com>
116401             Paul Eggert  <eggert@cs.ucla.edu>
116403         * modules/inttypes: New file.
116404         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
116406 2006-04-18  Derek Price  <derek@ximbiot.com>
116407             Paul Eggert  <eggert@cs.ucla.edu>
116409         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
116410         New files.
116412 2006-04-18  Derek Price  <derek@ximbiot.com>
116413             Paul Eggert  <eggert@cs.ucla.edu>
116415         * lib/inttypes.h: New file.
116416         * lib/strtoimax.c: Assume <inttypes.h>.
116418 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
116420         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
116421         isn't mounted.  Problem reported by Kir Kolyshkin.
116423 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
116425         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
116426         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
116427         Derek R. Price.
116428         * lib/regex.h (RE_DUP_MAX): Update comment to match current
116429         implementation.
116431 2006-04-12  Eric Blake  <ebb9@byu.net>
116433         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
116434         is now done automatically by the corresponding Autoconf macro.
116436 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
116438         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
116439         time_r.h.
116441 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116443         Merge regex changes from libc, removing some of our
116444         POSIX-conformance changes that were rejected and redoing them in a
116445         less-intrusive way.
116447         * lib/regcomp.c (re_compile_internal, init_dfa):
116448         Length arg is now size_t, not Idx.  All uses changed.
116449         (peek_token): Forward decl now says internal_function.
116450         (__re_error_msgid, __re_error_msgid_idx):
116451         Now static rather than extern with attribute_hidden.
116452         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
116453         For some reason libc prefers K&R style defns for external functions.
116454         (regerror) [!defined _LIBC]: Likewise.
116455         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
116456         (seek_collating_symbol_entry, lookup_collation_sequence_value):
116457         (build_range_exp, build_collating_symbol):
116458         Use K&R-style defn.
116459         (re_compile_fastmap): Use '\0' to memset, not 0.
116460         (utf8_sb_map): Make the calculations more obvious.
116461         (init_dfa, parse_bracket_exp, build_charclass_op):
116462         Call calloc and cast result, as glibc does.
116463         (init_word_char, fetch_token, peek_token, peek_token_bracket):
116464         (build_range_exp, build_collating_symbol):
116465         Now internal functions.
116467         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
116469         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
116470         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
116471         Don't depend on VMS; depend on __VMS instead, for POSIX
116472         namespace cleanness.
116473         (regoff_t): Define to ssize_t, not long int.
116475         Remove the REG_ macros named below.  Instead, make the old names
116476         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
116477         __USE_GNU_REGEX.
116478         (REG_BACKSLASH_ESCAPE_IN_LISTS):
116479         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
116480         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
116481         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
116482         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
116483         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
116484         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
116485         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
116486         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
116487         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
116488         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
116489         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
116490         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
116491         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
116492         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
116493         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
116494         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
116495         (REG_NREGS):
116496         Remove.  All uses replaced by the old RE_* names.
116497         (RE_BACKSLASH_ESCAPE_IN_LISTS):
116498         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
116499         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
116500         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
116501         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
116502         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
116503         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
116504         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
116505         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
116506         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
116507         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
116508         Don't bother having these macros be independent of each others'
116509         values, since they no longer exist in the POSIX name space.
116511         Rename the following member names back to their old names,
116512         unless !__USE_GNU_REGEX.  All uses changed back.
116513         (buffer): Renamed from re_buffer.
116514         (allocated): Renamed from re_allocated.
116515         (used): Renamed from re_used.
116516         (syntax): Renamed from re_syntax.
116517         (fastmap): Renamed from re_fastmap.
116518         (translate): Renamed from re_translate.
116519         (can_be_null): Renamed from re_can_be_null.
116520         (regs_allocated): Renamed from re_regs_allocated.
116521         (fastmap_accurate): Renamed from re_fastmap_accurate.
116522         (no_sub): Renamed from re_no_sub.
116523         (not_bol): Renamed from re_not_bol.
116524         (not_eol): Renamed from re_not_eol.
116525         (newline_anchor): Renamed from re_newline_anchor.
116526         (num_regs): Renamed from rm_num_regs.
116527         (start): Renamed from rm_start.
116528         (end): Renamed from rm_end.
116530         (free_state): Move up a bit.
116532         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
116533         #define to be empty.
116534         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
116535         when that is what is intended.
116536         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
116537         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
116538         (MAX): New macro.
116539         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
116540         All uses changed back to re_malloc, etc.  It's now the caller's
116541         responsibility to check for overflow; all callers changed.
116542         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
116543         (re_x2nrealloc): Remove.
116544         (free_state): Remove decl.
116546         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
116547         (re_set_registers, re_exec):
116548         Use K&R-style defn.
116550         2006-01-31  Roland McGrath  <roland@redhat.com>
116552         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
116553         Reported by Mike Frysinger <vapier@gentoo.org>.
116555         2006-01-15  Andreas Jaeger  <aj@suse.de>
116557         [BZ #1950]
116558         * lib/regex_internal.c (re_string_reconstruct): Adjust for
116559         build_wcs_upper_buffer change.
116560         (build_wcs_upper_buffer): Change return type.
116562         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
116564         * lib/regex_internal.h: Include <stdint.h> if available.
116566         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
116568         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
116570         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
116572         * lib/regcomp.c: Adjust for changed secondary hash function.
116574         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
116576         * lib/regex.h: Pretty printing.
116577         Clean up namespace a bit.
116579         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
116581         * lib/regexec.c (update_cur_sifted_state, check_arrival,
116582         check_arrival_add_next_nodes): Avoid using uninitialized variable.
116584         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116585                     Ulrich Drepper  <drepper@redhat.com>
116587         [BZ #1302]
116588         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
116589         changed.
116590         (bitset_word_t): Renamed from bitset_word.  All uses changed.
116592         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
116594         [BZ #281]
116595         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
116596         * lib/regcomp.c: Remove unnecessary uses of
116597         unsigned RE_TRANSLATE_TYPE.
116598         * lib/regex_internal.h: Likewise.
116599         * lib/regex_internal.c: Likewise.
116600         * lib/regexec.c: Likewise.
116601         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
116603         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
116605         * lib/regexec.c (find_recover_state): Remove unnecessary
116606         initialization.
116607         (transit_state_bkref): Make DFA a const pointer.
116608         (get_subexp): Likewise.
116609         (check_arrival): Likewise.
116610         (update_cur_sifted_state): Likewise.
116611         (re_search_internal): Likewise.
116612         (prune_impossible_nodes): Likewise.
116613         (acquire_init_state_context): Likewise.
116614         (proceed_next_node): Likewise.
116615         (set_regs): Likewise.
116616         (free_fail_stack_return): Likewise.
116617         (check_arrival_expand_ecl): Mark DFA parameter as const.
116618         (check_arrival_expand_ecl_sub): Likewise.
116619         (check_subexp_limits): Likewise.
116620         (sub_epsilon_src_nodes):  Likewise.
116621         (add_epsilon_src_nodes):  Likewise.
116622         (merge_state_array): Likewise.
116623         (update_regs): Likewise.
116624         (build_trtable): Likewise.
116625         (sift_states_backward): Mark MCTX parameter as const.
116626         (build_sifted_states): Likewise.
116627         (update_cur_sifted_state): Likewise.
116628         (sift_states_mkref): Likewise.
116629         (check_arrival_expand_ecl): Mark eclosure as const.
116630         (check_dst_limits_calc_pos_1): Likewise.
116631         * lib/regex_internal.h (re_match_context_t): Make dfa a const
116632         pointer.
116634         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
116636         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
116637         (transit_state_sb): Likewise.
116638         (transit_state_mb): Likewise.
116639         (sift_states_iter_mb): Likewise.
116640         (check_arrival_add_next_nodes): Likewise.
116641         (check_node_accept_bytes): Change first parameter to pointer-to-const.
116642         [_LIBC] (re_search_2_stub): Use mempcpy.
116644         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
116645         mbrtowc for very simple UTF-8 case.
116647         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
116648         a pointer-to-const.
116649         (re_acquire_state_context): Likewise.
116650         * lib/regex_internal.h: Adjust prototypes.
116652         * lib/regex.c: Prevent using C++ compilers.
116654         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
116655         (re_acquire_state_context): Likewise.
116657 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116659         * modules/regex (Depends-on): Add ssize_t.
116661 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116663         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
116664         translation table.
116666 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116668         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
116670 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
116671             Bruno Haible  <bruno@clisp.org>
116673         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
116674         <sys/types.h> and <inttypes.h>.
116676 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116678         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
116679         `__error_t_defined', so argp.h will not typedef the former.
116681 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
116683         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
116684         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
116685         glibc names.  Even if glibc is changed to conform to POSIX, the
116686         traditional names will be available anyway, since regex depends on
116687         the extensions module.  Also, fix a longstanding typo in the
116688         implementation of Spencer ERE test #75 from grep 2.3.  Problems
116689         reported by Emanuele Giaquinta.  Also, change sense of cached
116690         variable, so that the message makes sense.
116692 2006-03-24  Simon Josefsson  <jas@extundo.com>
116694         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
116695         including some doc fixes.
116696         (base64_encode_alloc): Fix +1 bug on allocation failures.
116698 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116700         * lib/base64.c (base64_encode): Do not read past end of array with
116701         unsanitized input on systems with CHAR_BIT > 8.
116703 2006-03-24  Eric Blake  <ebb9@byu.net>
116705         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
116707 2006-03-22  Karl Berry  <karl@gnu.org>
116709         * config/srclist.txt (*setenv.[ch]): get from coreutils.
116710         * config/srclistvars.sh (COREUTILS): new var.
116712 2006-03-17  Jim Meyering  <jim@meyering.net>
116714         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
116715         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
116717 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116719         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
116720         no longer needs it.  Instead, check that regoff_t is as least
116721         as wide as ptrdiff_t.
116723         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
116724         so that our regex.h stays compatible with the installed regex.
116725         This is helpful for installers who configure --without-included-regex.
116726         Problem reported by Emanuele Giaquinta.
116728 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116730         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
116731         Typedef to long int, not to off_, as POSIX will likely change
116732         in that direction.
116734 2006-03-15  Eric Blake  <ebb9@byu.net>
116736         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
116738 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116740         * lib/argp-help.c (validate_uparams): Fix typo
116741         * lib/argp-parse.c (argp_default_options): Consistently begin help
116742         messages with a lowercase letter.
116744 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
116746         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
116747         overrun buffers and shouldn't be used (much as gets shouldn't be
116748         used).
116749         * lib/time_r.c (asctime_r, ctime_r): Likewise.
116751 2006-03-08  Simon Josefsson  <jas@extundo.com>
116753         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
116754         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116756 2006-03-08  Simon Josefsson  <jas@extundo.com>
116758         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
116759         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116761 2006-03-08  Simon Josefsson  <jas@extundo.com>
116763         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
116764         signal that configure disabled the device.
116766 2006-03-08  Simon Josefsson  <jas@extundo.com>
116768         * build-aux/maint.mk: Fix refresh-po, to handle no translated
116769         languages.
116771 2006-03-07  Simon Josefsson  <jas@extundo.com>
116773         * modules/getopt (Depends-on): Add unistd.
116775         * modules/unistd: New file.
116777 2006-03-07  Simon Josefsson  <jas@extundo.com>
116779         * modules/gc-random: New file.
116781 2006-03-07  Simon Josefsson  <jas@extundo.com>
116783         * m4/unistd_h.m4: New file.
116785 2006-03-07  Simon Josefsson  <jas@extundo.com>
116787         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
116788         test to be side-effect free by storing the result in the cache
116789         variable gl_cv_lib_readline, and moving the assignment of
116790         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
116791         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116793 2006-03-07  Simon Josefsson  <jas@extundo.com>
116795         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
116796         error on missing devices (the functions will return an error).
116798         * m4/gc.m4: Move random stuff to gc-random.m4
116800 2006-03-07  Simon Josefsson  <jas@extundo.com>
116802         * lib/unistd_.h: New file.
116804 2006-03-07  Simon Josefsson  <jas@extundo.com>
116806         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
116808 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116810         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
116811         Problem reported by Juan Manuel Guerrero.
116813 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116815         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
116816         the unistd module.
116817         * lib/getlogin_r.c: Likewise.
116818         * lib/getlogin_r.h: Likewise.
116819         * lib/glob.c: Likewise.
116820         * lib/pagealign_alloc.c: Likewise.
116821         * lib/unistd_.h: Remove; no longer needed.
116823 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116825         * MODULES.html.sh (Support for systems lacking POSIX:2001):
116826         Add unistd.
116827         * modules/c-stack (Depends-on): Add unistd.
116828         * modules/getlogin_r: Likewise.
116829         * modules/glob: Likewise.
116830         * modules/pagealign_alloc: Likewise.
116831         * modules/unistd (Files): Remove lib/unistd_.h.
116832         (EXTRA_DIST): Remove.
116833         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
116834         need unistd_.h.
116835         (MOSTLYCLEANFILES): Remove unistd.h-t.
116837 2006-03-03  Simon Josefsson  <jas@extundo.com>
116839         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
116841 2006-03-03  Simon Josefsson  <jas@extundo.com>
116843         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
116844         libidn and bison.
116846 2006-03-03  Simon Josefsson  <jas@extundo.com>
116848         * build-aux/maint.mk: Add indent target.
116850 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
116852         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
116853         our replacement poll.h in any case, to avoid a differing
116854         declaration from a system header.  Seen on AIX.
116856 2006-03-01  Simon Josefsson  <jas@extundo.com>
116858         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
116859         <kasal@ucw.cz>.
116861 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116863         * modules/gettime (Depends-on): Add extensions module.
116864         * modules/nanosleep (Depends-on): Likewise.
116865         * modules/settime (Depends-on): Likewise.
116867 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116869         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
116870         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
116871         pedantically.
116872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116873         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
116875         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
116876         not "==".  Reported by Ralf Wildenhues.
116878 2006-03-01  Karl Berry  <karl@gnu.org>
116880         * doc/Copyright/request-*: new files, synced from gnuorg.
116882 2006-03-01  Karl Berry  <karl@gnu.org>
116884         * config/srclist.txt (Copyright/*): new entries.
116886 2006-02-28  Simon Josefsson  <jas@extundo.com>
116888         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
116890 2006-02-27  Simon Josefsson  <jas@extundo.com>
116892         * lib/base64.h: Indent #define's.  From Jim Meyering
116893         <jim@meyering.net>.
116895 2006-02-27  Jim Meyering  <jim@meyering.net>
116897         Revert the change of 2006-02-24, so these files can continue
116898         to be sync'd from gettext.
116899         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
116900         of `config.h'.
116902 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
116904         * modules/intprops: New file.
116905         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
116906         Add intprops.
116907         * modules/getloadavg (Files): Remove lib/intprops.h.
116908         (Depends-on): Add intprops.
116909         * modules/human: Likewise.
116910         * modules/inttostr: Likewise.
116911         * modules/openat: Likewise.
116912         * modules/sig2str: Likewise.
116913         * modules/userspec: Likewise.
116914         * modules/utimecmp: Likewise.
116915         * modules/xnanosleep: Likewise.
116916         * modules/xstrtol: Likewise.
116918 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
116920         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
116921         * modules/lock-tests (TESTS): Use $(EXEEXT).
116922         * modules/tls-tests: Likewise.
116923         * modules/argp-tests: Likewise.
116924         (check_PROGRAMS): New var, replacing...
116925         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
116927 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116929         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
116930         `config.h'.
116932 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
116934         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
116936 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116938         Sync from coreutils.
116939         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
116940         gl_CHDIR_SAFER.
116942 2006-02-22  Jim Meyering  <jim@meyering.net>
116944         Sync from coreutils.
116945         * m4/chdir-safer.m4: New file.
116947 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
116949         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
116950         AT_FDCWD exceeds INT_MAX.
116951         * lib/openat.h (AT_FDCWD): Likewise.
116953 2006-02-17  Eric Blake  <address@hidden>
116955         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
116957 2006-02-16  Simon Josefsson  <jas@extundo.com>
116959         * modules/getaddrinfo (Depends-on): Add sys_socket.
116961 2006-02-15  Simon Josefsson  <jas@extundo.com>
116963         * build-aux/maint.mk: Add dsyntax-check rule.
116965 2006-02-15  Eric Blake  <ebb9@byu.net>
116967         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
116968         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
116969         'present but cannot compile' warnings on cygwin.
116970         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
116971         use ws2tcpip.h if sys/socket.h works.
116972         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
116973         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
116975 2006-02-14  Simon Josefsson  <jas@extundo.com>
116977         * modules/maintainer-makefile (Files): Rename.
116979         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
116980         and (the local) Makefile.cfg to maint-cfg.mk.
116982         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
116983         to the latter.
116985         * modules/maintainer-makefile: New module.
116987         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
116988         severaly stripped to make it possible to build it up from scratch
116989         with reliable tests.
116991         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
116992         fixes to permit overriding the default actions when configure and
116993         makefile are not available.
116995 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
116997         Sync from coreutils.
116998         * modules/lstat (Depends-on): Don't depend on xalloc.
116999         (License): Change from GPL to LGPL, since this is now simply a
117000         replacement for a libc function.
117002 2006-02-14  Jim Meyering  <jim@meyering.net>
117004         Sync from coreutils.
117006         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
117007         failure on deficient systems, and simplify gnulib lgpl dependencies.
117008         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
117009         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
117011         * lib/xalloc-die.c: Remove unused definition of N_.
117013 2006-02-14  Jim Meyering  <jim@meyering.net>
117015         Sync from coreutils.
117016         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
117017         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
117018         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
117019         double-quote uses of that variable, to accommodate the rare case in
117020         which getmntent is available in none of the libraries checked.  This
117021         happens at least on FreeBSD 5.0.
117023 2006-02-13  Simon Josefsson  <jas@extundo.com>
117025         * gnulib-tool (Usage): Fix --import, from
117026         karl@freefriends.org (Karl Berry).
117028 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117030         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
117032 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
117034         * lib/argp-namefrob.h: Restore changes accidentally lost during the
117035         "autoupdate" on 2005-12-12.
117037 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117039         * modules/closeout (Depends-on): Remove atexit.
117041 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117043         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
117044         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
117046 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
117048         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
117049         __EXTENSIONS__ if this causes compilation to fail.  Problem
117050         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
117051         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
117053 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
117055         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
117056         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
117057         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
117058         All uses changed.
117060 2006-01-26  Simon Josefsson  <jas@extundo.com>
117062         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
117063         prototype is visible on mingw32.
117065         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
117066         for mingw32.
117068         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
117069         mingw32).
117071 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
117073         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
117074         attempt to open for write; this always fails, at least on POSIX
117075         hosts.  This reinstates the 2006-01-09 change, which was
117076         inadvertently removed.
117078 2006-01-26  Bruno Haible  <bruno@clisp.org>
117080         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
117081         Reported by Paul Eggert.
117083 2006-01-26  Bruno Haible  <bruno@clisp.org>
117084             Paul Eggert  <eggert@cs.ucla.edu>
117086         * lib/stdbool_.h (_Bool)
117087         [(! (defined __cplusplus || defined __BEOS__)
117088           && !defined __GNUC__
117089           && !(defined __HP_cc || defined __xlc__
117090                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
117091                || defined __sgi))]:
117092         #define to signed char in these cases too; this simplifies
117093         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
117094         etc., separately) and makes it more conservative.
117096 2006-01-25  Simon Josefsson  <jas@extundo.com>
117098         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
117099         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
117100         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
117102 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117104         * lib/argp-namefrob.h: Bugfix. Remove stray #
117106 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
117108         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
117109         so that we test the test.
117110         Check for yet another HP-UX cc bug involving *bool |= bool.
117112 2006-01-25  Karl Berry  <karl@gnu.org>
117114         * config/srclist.txt (vasnprintf.c): sync lost.
117116 2006-01-25  Jim Meyering  <jim@meyering.net>
117118         Sync from the stable (b5) branch of coreutils:
117120         * lib/fts.c (fts_children): Don't let close() clobber errno from
117121         failed fchdir().
117123         * lib/fts.c (fts_stat): When following a symlink-to-directory,
117124         don't necessarily interpret stat-fails+lstat-succeeds as indicating
117125         a dangling symlink.  That can also happen at least for ELOOP.
117126         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
117127         FYI, this bug predates the inclusion of fts.c in coreutils.
117129         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
117130         in their own block, so pre-c99 compilers don't object.
117132         Avoid the double-free (first in fts_read, second in fts_close) that
117133         would occur when an `active' directory is made inaccessible (e.g.,
117134         via chmod a-x) during a traversal.
117135         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117136         before returning.  Reproduce this failure by
117137         mkdir -p a/b; cd a; chmod a-x . b
117138         Reported by Stavros Passas.
117140 2006-01-25  Jim Meyering  <jim@meyering.net>
117142         * lib/fileblocks.c: Remove more useless parentheses.
117143         * lib/readutmp.h: Likewise.
117145 2006-01-25  Bruno Haible  <bruno@clisp.org>
117147         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
117148         warnings.
117149         Reported by Paul Eggert.
117151 2006-01-25  Bruno Haible  <bruno@clisp.org>
117153         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
117154         rid of a trap command. For Solaris sh.
117155         Reported by Mark D. Baushke <mdb@gnu.org>.
117157 2006-01-24  Simon Josefsson  <jas@extundo.com>
117159         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
117160         Bruno.
117162 2006-01-24  Karl Berry  <karl@gnu.org>
117164         * config/srclist.txt (argp-namefrob.h): sync lost.
117166 2006-01-24  Jim Meyering  <jim@meyering.net>
117168         * modules/openat (Files): Add lib/intprops.h.
117169         From Mark D. Baushke.
117171 2006-01-24  Jim Meyering  <jim@meyering.net>
117173         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
117174         Reported by Mark D. Baushke.
117176 2006-01-24  Jim Meyering  <jim@meyering.net>
117178         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
117180 2006-01-24  Bruno Haible  <bruno@clisp.org>
117182         * modules/strnlen (Maintainer): Change from glibc to all.
117184 2006-01-24  Bruno Haible  <bruno@clisp.org>
117186         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
117187         Patch by Paul Eggert.
117189 2006-01-24  Bruno Haible  <bruno@clisp.org>
117191         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
117192         already has it.
117193         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
117194         2005-11-26.
117196         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
117197         'signed char' to avoid problems with the built-in _Bool type.
117198         Reported by Paul Eggert on 2005-11-26.
117200 2006-01-24  Bruno Haible  <bruno@clisp.org>
117202         * gnulib-tool (func_import): Avoid constructing complicated sed
117203         expressions inside backquote.
117204         Report and solution by Mark D. Baushke <mdb@gnu.org>.
117206 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
117208         These changes imported from libc.
117209         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
117210         test and two separate function calls.
117211         * lib/strndup.c (__strndup): Add libc_hidden_def.
117213 2006-01-23  Simon Josefsson  <jas@extundo.com>
117215         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
117216         Remove the test_*_SOURCES variable: automake infers it by default.
117217         * modules/tls-tests: Likewise.
117219 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117221         Work around porting bugs reported by Dieter in
117222         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
117223         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
117224         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
117225         Include "getopt.h" first, to check interface.
117226         (getenv): Declare only if defined HAVE_DECL_GETENV &&
117227         !HAVE_DECL_GETENV.
117228         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
117229         (__strndup): Revert to K&R-style function dfns, the glibc style.
117230         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
117231         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
117232         Include strnlen.h first, to get prototype properly.
117233         (strnlen): Renamed from __strnlen.
117234         Remove weak alias.
117236 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117238         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
117240 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117242         * config/srclist.txt: Adjust to reflect glibc reorganization.
117243         This affects only comments.
117245 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117247          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
117248          Reported by Bruce Korb <bkorb@gnu.org>.
117250 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
117252         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
117253         to pacify gcc -Wswitch-default.
117255 2006-01-22  Bruno Haible  <bruno@clisp.org>
117257         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
117258         temporary buffer for sprintf, take into account the precision also
117259         for 'd', 'i', 'u', 'o', 'x', 'X'.
117261 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117263         * modules/argp-tests: New module
117264         * tests/test-argp.c: New file
117265         * tests/test-argp-2.sh: New file
117267 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117269         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
117270         (__argp_base_name): Removed
117271         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
117272         typo.
117273         (__argp_base_name): Provide macro definition or extern declaration
117274         depending on the configuration
117276 2006-01-20  Simon Josefsson  <jas@extundo.com>
117278         * modules/inet_ntop (Depends-on): Depend on sys_socket.
117280 2006-01-20  Simon Josefsson  <jas@extundo.com>
117282         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
117284 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117286         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
117287         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
117288         Suggested by Bruno Haible.
117290 2006-01-20  Karl Berry  <karl@gnu.org>
117292         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
117293         until changes propagate, I guess.
117295 2006-01-19  Simon Josefsson  <jas@extundo.com>
117297         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
117299 2006-01-19  Simon Josefsson  <jas@extundo.com>
117301         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
117303 2006-01-19  Simon Josefsson  <jas@extundo.com>
117305         * gnulib-tool: Set check_PROGRAMS.
117307         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117308         modules/des-tests, modules/gc-arcfour-tests,
117309         modules/gc-arctwo-tests, modules/gc-des-tests,
117310         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117311         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117312         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117313         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117314         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117315         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
117316         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
117317         test_*_SOURCES.
117319 2006-01-18  Simon Josefsson  <jas@extundo.com>
117321         * modules/socklen (Depends-on): Depend on sys_socket.
117323 2006-01-18  Simon Josefsson  <jas@extundo.com>
117325         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117326         modules/des-tests, modules/gc-arcfour-tests,
117327         modules/gc-arctwo-tests, modules/gc-des-tests,
117328         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117329         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117330         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117331         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117332         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117333         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
117334         $(EXEEXT) to automake TESTS variable, for mingw32.
117336 2006-01-17  Simon Josefsson  <jas@extundo.com>
117338         * modules/socklen (Include): Need sys/socket.h.
117340 2006-01-17  Bruno Haible  <bruno@clisp.org>
117342         * modules/ssize_t (Include): Add <sys/types.h>.
117344 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
117346         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
117347         it's not portable and it doesn't work with cross-compiles.
117348         Problem reported by Bruno Haible.  Fix missing-$ typo in
117349         'test "gl_cv_ignore_unused_libraries" ...' that prevented
117350         -zignore from being used with Sun's C compiler.
117352 2006-01-12  Simon Josefsson  <jas@extundo.com>
117354         * lib/base64.c: Fix warning, reported by Bruno Haible
117355         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
117357 2006-01-12  Bruno Haible  <bruno@clisp.org>
117359         * modules/ldd: New file.
117360         * build-aux/ldd.sh.in: New file.
117361         * MODULES.html.sh (Support for building libraries and executables): Add
117362         ldd.
117364 2006-01-12  Bruno Haible  <bruno@clisp.org>
117366         * m4/ldd.m4: New file.
117368 2006-01-12  Bruno Haible  <bruno@clisp.org>
117370         * gnulib-tool (func_import, func_create_testdir): Don't go into an
117371         endless loop while replacing $auxdir with build-aux.
117373 2006-01-11  Simon Josefsson  <jas@extundo.com>
117375         * lib/stdint_.h (SIZE_MAX): Add missing (.
117377 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
117379         Sync from coreutils.
117380         * lib/md5.c: Fix commentary typos.
117381         (alignof, UNALIGNED_P): No need for a GCC-specific version.
117382         * lib/md5.h (__attribute__): Remove; unused.
117383         * lib/sha1.c: Fix commentary to match md5 better.
117384         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
117385         so that we don't need to worry about alignment.  All uses changed.
117386         This merges the 2005-10-28 md5 change into sha1.
117388 2006-01-11  Jim Meyering  <jim@meyering.net>
117390         Sync from coreutils.
117391         * lib/md5.c (OP): Fix spacing.
117393 2006-01-11  Bruno Haible  <bruno@clisp.org>
117395         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117396         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
117397         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
117399 2006-01-11  Bruno Haible  <bruno@clisp.org>
117401         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117402         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
117403         the "early" section as well.
117405 2006-01-11  Bruno Haible  <bruno@clisp.org>
117407         Avoid "ar: no archive members specified" error on MacOS X.
117408         * gnulib-tool (func_modules_add_dummy): New function.
117409         (func_import, func_create_testdir): Invoke it.
117411 2006-01-11  Bruno Haible  <bruno@clisp.org>
117413         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
117414         with $auxdir in AC_CONFIG_FILES statements.
117416 2006-01-11  Bruno Haible  <bruno@clisp.org>
117418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
117419         Initialize also noinst_HEADERS to empty.
117421 2006-01-11  Bruno Haible  <bruno@clisp.org>
117423         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
117424         variables.
117425         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
117426         autoreconf.
117428 2006-01-11  Bruno Haible  <bruno@clisp.org>
117430         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
117431         overridable by the user.
117432         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117434 2006-01-10  Simon Josefsson  <jas@extundo.com>
117436         * modules/sys_socket: New file.
117438 2006-01-10  Simon Josefsson  <jas@extundo.com>
117440         * m4/sys_socket_h.m4: New file.
117442 2006-01-10  Simon Josefsson  <jas@extundo.com>
117444         * lib/socket_.h: New file.
117446 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117448         * modules/readutmp (Maintainer): Add myself.
117450 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117452         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
117453         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
117454         People who are still concerned with buggy memcmp implementations
117455         can invoke gl_FUNC_MEMCMP themselves.
117457 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117459         * lib/regex_internal.h (BITSET_WORD_BITS):
117460         Work around a bug in 64-bit PGC (before version 6.1-2), where the
117461         preprocessor mishandles large unsigned values as if they were signed.
117462         Problem reported by Claudio Fontana in
117463         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
117465 2006-01-10  Jim Meyering  <jim@meyering.net>
117467         Avoid the double-free (first in fts_read, second in fts_close) that
117468         would occur when an `active' directory is made inaccessible (e.g.,
117469         via chmod a-x) during a traversal.
117470         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117471         before returning.  Reproduce this failure by
117472         mkdir -p a/b; cd a; chmod a-x . b
117473         Reported by Stavros Passas.
117475         Sync from coreutils.
117476         * lib/sha1.c: Tweak grammar in a comment.
117478 2006-01-10  Jim Meyering  <jim@meyering.net>
117480         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
117481         Patch by Joerg Sonnenberger.
117483 2006-01-10  Bruno Haible  <bruno@clisp.org>
117485         * modules/readutmp: Depend on module free.
117486         * modules/strtok_r: Depend on module restrict.
117488 2006-01-10  Bruno Haible  <bruno@clisp.org>
117490         * modules/gettext (configure.ac): Add an invocation of
117491         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
117493 2006-01-10  Bruno Haible  <bruno@clisp.org>
117495         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
117496         Reported by Werner Lemberg <wl@gnu.org>.
117498 2006-01-10  Bruno Haible  <bruno@clisp.org>
117500         * lib/localcharset.c: Update from GNU gettext.
117502 2006-01-10  Bruno Haible  <bruno@clisp.org>
117504         * lib/argp.h (__const): Remove macro. Use const instead.
117505         * lib/argp-fmtstream.h (__const): Likewise.
117506         * lib/glob_.h (__const): Remove macro.
117507         * lib/glob-libc.h: Use const instead of __const.
117509 2006-01-10  Bruno Haible  <bruno@clisp.org>
117511         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
117512         variable.
117513         Needed to avoid an automake error regarding the 'gettext' module.
117515 2006-01-09  Simon Josefsson  <jas@extundo.com>
117517         * modules/inet_ntop (Depends-on): Add restrict.
117519 2006-01-09  Simon Josefsson  <jas@extundo.com>
117521         * modules/gc-rijndael-tests (License): Put under LGPL.
117523         * modules/gc-des-tests (License): Likewise.
117525         * modules/gc-arcfour-tests (License): Likewise.
117527         * modules/gc-arctwo-tests (License): Likewise.
117529         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
117531         * modules/gc-hmac-sha1-tests (Files): Likewise.
117533         * modules/gc-hmac-md5-tests (License): Likewise.
117535         * modules/gc-sha1-tests (License): Likewise.
117537         * modules/gc-md5-tests (License): Likewise.
117539         * modules/gc-md4-tests (License): Likewise.
117541         * modules/gc-md2-tests (License): Likewise.
117543         * modules/gc-tests (License): Likewise.
117545         * modules/des-tests (License): Likewise.
117547         * modules/md4-tests (License): Likewise.
117549         * modules/md2-tests (License): Likewise.
117551 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117553         Sync from coreutils:
117555         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
117556         * modules/lib-ignore: New file.
117557         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
117558         chdir-safer.m4, lchmod.m4.
117559         * modules/openat: Add mkdirat.c, openat-priv.h.
117561 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117563         Sync from coreutils.
117564         * m4/lib-ignore.m4: New file.
117565         * m4/lchmod.m4: New file.
117567 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117569         Sync from coreutils.
117570         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
117571         for write access: POSIX says that must fail.
117572         * lib/fts.c (diropen): Likewise.
117573         * lib/save-cwd.c (save_cwd): Likewise.
117574         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
117575         well, for minor improvements on hosts that lack O_DIRECTORY.
117576         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
117577         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
117578         Fall back on chown if open failed with EACCES.
117580         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
117581         Report an error at compile-time if only a 1-second nominal clock
117582         resolution is found.
117584         * lib/lchmod.h: New file.
117585         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
117586         (make_dir_parents): Use lchown rather than chown, and
117587         lchmod rather than chmod.
117589         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
117590         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
117591         "proc" reported by n0dalus.
117593         * lib/mountlist.c: Include <limits.h>.
117594         (dev_from_mount_options)
117595         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
117596         New function.  It no longer assumes "dev=" has the System V meaning
117597         on Linux (since it doesn't).  It also parses "dev=" more carefully.
117598         (read_file_system_list)
117599         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
117600         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
117601         dev= in that case.
117603         * lib/posixtm.h (PDS_PRE_2000): New macro.
117604         * lib/posixtm.c (year): Arg is now syntax_bits rather than
117605         allow_century.  All usages changed.  Reject dates outside the range
117606         1969-1999 if PDS_PRE_2000 is used.
117608 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117610         Sync from coreutils.
117611         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
117612         (Time of day items): Mention the possibility of leap seconds.
117613         Problem reported by Dr. David Alan Gilbert.
117615 2006-01-09  Jim Meyering  <jim@meyering.net>
117617         Sync from coreutils.
117619         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
117621         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
117623         * lib/modechange.c (mode_compile): Reject an invalid mode string
117624         that starts with an octal digit.  From Andreas Gruenbacher.
117626         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
117627         and dup to open_safer and dup_safer, respectively.
117628         (openat_permissive): Fix typo in comment.
117630         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
117631         "gettext.h"; either no longer needed or are guaranteed by openat.h.
117632         (_): Remove; no longer needed.
117633         (openat): Renamed from rpl_openat; no need for rpl_openat
117634         since openat.h renames openat for us.
117635         Replace most of the body with a call to openat_permissive,
117636         to avoid duplicate code.
117637         Port to (probably hypothetical) environments were mode_t is
117638         wider than int.
117639         (openat_permissive): Require mode arg, so that we can check
117640         types better.  Put it just after flags.  Change cwd failure
117641         indicator from pointer-to-bool to pointer-to-errno-value.
117642         All callers changed.
117643         Invoke openat_save_fail and/or openat_restore_fail if
117644         cwd_errno is null, so that openat can call us.
117645         (openat_permissive, fdopendir, fstatat, unlinkat):
117646         Simplify errno handling to avoid some duplicate code,
117647         as it's OK to set errno on success.
117648         * lib/openat.h: Revamp code so that function macros depend on
117649         __OPENAT_PREFIX only, not also on AT_FDCWD.
117650         (openat_ro): Remove.  Caller changed to use openat_permissive.
117651         (openat_permissive): Now a macro, if not a function.
117652         (openat_restore_fail, openat_save_fail): Now always functions,
117653         since mkdirat needs them even if __OPENAT_PREFIX is defined.
117655         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
117656         and openat.c.
117657         * lib/mkdirat.c: Include openat-priv.h.
117658         Remove definitions of macros defined therein.
117659         * lib/openat.c: Likewise.
117661         * lib/mkdirat.c (mkdirat): New file and function.
117662         * lib/openat.h (mkdirat): Declare.
117664         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
117666         * lib/openat.h (openat_permissive): Declare.
117667         (openat_ro): Define.
117669         * lib/openat.c (EXPECTED_ERRNO): New macro.
117670         (openat_permissive): New function -- used in remove.c rewrite.
117671         (all functions): Set errno just before returning, only if there
117672         was an actual failure.
117673         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
117675         Emulate openat-family functions using Linux's procfs, if possible.
117676         Idea and some code based on Ulrich Drepper's glibc changes.
117678         * lib/openat.c: (BUILD_PROC_NAME): New macro.
117679         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
117680         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
117681         before falling back on save_cwd and restore_cwd.
117682         (fdopendir, fstatat, unlinkat): Likewise.
117684         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
117685         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
117687         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
117688         as second argument to va_arg.  Otherwise, some versions of gcc
117689         warn that `if this code is reached, the program will abort'.
117691 2006-01-09  Jim Meyering  <jim@meyering.net>
117693         Sync from coreutils.
117694         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
117695         Require openat-priv.h.
117697 2006-01-09  Bruno Haible  <bruno@clisp.org>
117699         * modules/strnlen (Include): Use strnlen.h.
117701 2006-01-09  Bruno Haible  <bruno@clisp.org>
117703         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
117705 2006-01-09  Bruno Haible  <bruno@clisp.org>
117707         * lib/sysexit_.h (EX_OK): New macro.
117708         Suggested by Martin Lambers <marlam@marlam.de>.
117710 2006-01-09  Bruno Haible  <bruno@clisp.org>
117712         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
117713         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
117715 2006-01-09  Bruno Haible  <bruno@clisp.org>
117717         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
117718         numbers.
117720 2006-01-09  Bruno Haible  <bruno@clisp.org>
117722         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
117723         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
117724         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
117725         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
117727 2006-01-09  Bruno Haible  <bruno@clisp.org>
117729         * build-aux/javacomp.sh.in: New file, moved from lib/.
117730         * modules/javacomp-script (Files): Update.
117731         (configure.ac): Add AC_CONFIG_FILES invocation.
117732         (EXTRA_DIST): Remove variable.
117734         * build-aux/javaexec.sh.in: New file, moved from lib/.
117735         * modules/javaexec (Files): Update.
117736         (configure.ac): Add AC_CONFIG_FILES invocation.
117737         (EXTRA_DIST): Remove javaexec.sh.in.
117739         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
117740         * modules/csharpcomp-script (Files): Update.
117741         (configure.ac): Add AC_CONFIG_FILES invocation.
117742         (EXTRA_DIST): Remove variable.
117744         * build-aux/csharpexec.sh.in: New file, moved from lib/.
117745         * modules/csharpexec (Files): Update.
117746         (configure.ac): Add AC_CONFIG_FILES invocation.
117747         (EXTRA_DIST): Remove csharpexec.sh.in.
117749 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117751         Sync from coreutils.
117753         Add POSIX ACL support
117754         * lib/acl.h (copy_acl, set_acl): Add declarations.
117755         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
117756         systems other than Linux.
117757         (chmod_or_fchmod): New function: use fchmod when possible,
117758         and chmod otherwise.
117759         (file_has_acl): Add a POSIX ACL implementation, with a
117760         Linux-specific subcase.
117761         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
117762         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
117763         acls are unsupported.
117764         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
117765         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
117766         are unsupported.
117768 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117770         Sync from coreutils.
117771         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
117773 2006-01-07  Bruno Haible  <bruno@clisp.org>
117775         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
117776         gl_EARLY.
117778 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117780         * lib/strftime.c (tzname): Don't declare if it is already #defined.
117781         Problem reported for Mingw by Mark Junker.
117783 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117785         * README: Gnulib normally doesn't generate a tarball.
117787 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
117789         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
117790         long int, not int, for nanosecond counts, so that people who are
117791         used to POSIX struct timespec won't be surprised.  Reported by Jim
117792         Meyering.
117794 2005-12-28  Bruno Haible  <bruno@clisp.org>
117796         * build-aux/config.rpath: Update from GNU gettext.
117798 2005-12-16  Jim Meyering  <jim@meyering.net>
117800         * modules/fprintftime: New module.
117801         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
117803 2005-12-16  Jim Meyering  <jim@meyering.net>
117805         * m4/fprintftime.m4: New file.
117807 2005-12-16  Jim Meyering  <jim@meyering.net>
117809         * lib/fprintftime.c, lib/fprintftime.h: New files.
117811 2005-12-15  Simon Josefsson  <jas@extundo.com>
117813         * modules/socklen (configure.ac): Fix M4 macro name, to align with
117814         new m4/socklen.m4.
117816 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117818         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
117819         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
117821 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117823         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
117824         * lib/argp-help.c (fill_in_uparams): Check if the constructed
117825         struct uparams is valid. Fall back to the default values if it is
117826         not.
117828 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117830         * modules/argp (Files): Add argp-pin.c
117831         (Depends-on): dirname
117832         (lib_SOURCES): Add argp-pin.c
117834 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117836         * m4/argp.m4:  Check if program_invocation_name and
117837         program_invocation_short_name are declared and define appropriate
117838         macros if they are not.
117840 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117842         * lib/argp-help.c (__argp_base_name): New function
117843         (__argp_short_program_name): Rewrite using __argp_base_name
117844         * lib/argp-namefrob.h: Define program_invocation_name and
117845         program_invocation_short_name if requested
117846         (__argp_base_name): Add prototype
117847         * lib/argp-parse.c (argp_def): Use gettext wrappers
117848         (argp_default_parser): Use __argp_base_name
117849         * lib/argp-pin.c: New file. Defines program_invocation_name and
117850         program_invocation_short_name on systems that lack them.
117852 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117854         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
117855         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117856         porting problem reported by Georg Schwarz in
117857         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117859 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117861         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
117862         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117863         porting problem reported by Georg Schwarz in
117864         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117866 2005-12-05  Bruno Haible  <bruno@clisp.org>
117868         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
117869         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
117870         Reported by Mark Junker <mjscod@gmx.de>.
117872 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
117874         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
117875         Use implementation from Albert Chin, with some
117876         comments/corrections by Stepan Kasal and myself.
117878 2005-12-02  Bruno Haible  <bruno@clisp.org>
117880         * gnulib-tool (func_import): Accept GPLed build tool modules when
117881         --lgpl is given.
117882         * modules/csharpcomp-script: New file.
117883         * modules/csharpcomp: Depend on it.
117884         * modules/javacomp-script: New file.
117885         * modules/javacomp: Depend on it.
117886         Suggested by Simon Josefsson.
117888 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
117890         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
117891         statement, to work around an HP-UX 10.20 compiler bug reported by
117892         Peter O'Gorman.
117894 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117896         * modules/savedir (Depends-on): Add openat.
117898 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117900         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
117901         (uintmax_t) [defined uintmax_t]: Do not declare.
117902         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
117903         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
117904         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
117905         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
117906         sake of portability to weird hosts that C allows (though we don't
117907         know of any practical examples).
117909         * lib/savedir.h (fdsavedir): New decl.
117910         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
117911         contains most of the former guts of savedir.
117912         (savedir): Use savedirstream.
117913         Include "openat.h".
117915 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
117917         * modules/obstack (Files): Add m4/ulonglong.m4.
117918         Problem reported by Davide Angelocola.
117920 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
117922         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
117923         coreutils no longer futzes with rounding modes.
117925 2005-11-14  Jim Meyering  <jim@meyering.net>
117927         * lib/mkstemp-safer.c: Include <config.h>, required for possible
117928         replacement of mkstemp.
117930 2005-11-10  Simon Josefsson  <jas@extundo.com>
117932         * lib/readline.c: Remove EOL.
117934 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117936         * modules/gethrxtime (Depends-on): Add gettime.
117938 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117940         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
117941         or gettimeofday; no longer needed.
117943 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117945         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
117946         time business.
117947         (gethrxtime) [! (HAVE_NANOUPTIME
117948         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
117949         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
117950         our own approximation.
117952 2005-11-08  Eric Blake  <ebb9@byu.net>
117954         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117956 2005-11-08  Eric Blake  <ebb9@byu.net>
117958         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117960 2005-11-04  Bruno Haible  <bruno@clisp.org>
117962         * gnulib-tool: Implement --update mode.
117964 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117966         Fix porting problem reported by Theodoros V. Kalamatianos.
117967         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
117968         Don't assume that futimes failing means we must fail.
117970 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117972         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
117973         variables to suggest the intended function of the PATH_MAX check.
117975 2005-10-30  Kean Johnston  <jkj@sco.com>
117977         Trivial changes to support SCO systems.
117978         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
117979         as PATH_MAX.
117980         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
117981         where __ptr is null when no I/O is pending.
117983 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
117985         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
117986         leave errno alone.  Problem reported by Dmitry V. Levin.
117988 2005-10-28  Simon Josefsson  <jas@extundo.com>
117990         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
117991         Test more.
117993         * tests/test-gc-md2.c, tests/test-md2.c: New files.
117995         * modules/md2, modules/md2-tests: New files.
117997 2005-10-28  Simon Josefsson  <jas@extundo.com>
117999         * m4/inet_ntop.m4: More tests.
118001         * m4/gc-md2.m4, md2.m4: New file.
118003 2005-10-28  Simon Josefsson  <jas@extundo.com>
118005         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
118006         "restrict" keywords, as per POSIX.  Protect the function
118007         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
118008         Don't use K&R prototypes.  Check the sprintf return values.
118009         Re-define EAFNOSUPPORT if not present.  Indent.
118011         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
118012         suggested by Bruno Haible <bruno@clisp.org>.
118014         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
118016         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
118018         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
118019         libgcrypt).
118021         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
118023         * lib/md2.h, lib/md2.c: New files.
118025 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
118027         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
118028         errno alone.  Problem reported by Frederic Jolliton.
118030 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
118032         * modules/verify (License): Change from GPL to LGPL.  This is a
118033         tiny module and there are apparently near-equivalents that are
118034         under the BSD license.
118036 2005-10-24  Simon Josefsson  <jas@extundo.com>
118038         * modules/sha1: Relicense to LGPL.
118040 2005-10-24  Simon Josefsson  <jas@extundo.com>
118042         * lib/md4.h: Shrink buffer size, now that we changed the type.
118044 2005-10-23  Simon Josefsson  <jas@extundo.com>
118046         * gnulib-tool (func_import): Fix --tests-base.
118048 2005-10-22  Simon Josefsson  <jas@extundo.com>
118050         * modules/arcfour (Depends-on): Need stdint.
118052 2005-10-22  Simon Josefsson  <jas@extundo.com>
118054         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
118055         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
118057 2005-10-22  Simon Josefsson  <jas@extundo.com>
118059         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
118060         suggested by Bruno Haible <bruno@clisp.org>.
118062 2005-10-22  Simon Josefsson  <jas@extundo.com>
118064         * lib/crc.h: Include stddef.h, for size_t.
118066 2005-10-22  Simon Josefsson  <jas@extundo.com>
118068         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
118069         arcfour_context struct (simplify test vector testing in GNU
118070         Shishi).
118072 2005-10-21  Simon Josefsson  <jas@extundo.com>
118074         * modules/des, modules/des-tests: New files.
118076         * modules/gc-des, modules/gc-des-tests: New files.
118078         * tests/test-des.c, tests/test-gc-des.c: New file.
118080 2005-10-21  Simon Josefsson  <jas@extundo.com>
118082         * modules/arctwo, modules/arctwo-tests: New files.
118084         * tests/test-arctwo.c: New file.
118086         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
118088         * tests/test-gc-arctwo.c: New file.
118090 2005-10-21  Simon Josefsson  <jas@extundo.com>
118092         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
118093         Bruno Haible <bruno@clisp.org>.
118095         * m4/gc-des.m4: New file.
118097 2005-10-21  Simon Josefsson  <jas@extundo.com>
118099         * m4/arctwo.m4: New file.
118101         * m4/gc-arctwo.m4: New file.
118103 2005-10-21  Simon Josefsson  <jas@extundo.com>
118105         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
118106         block.
118108 2005-10-21  Simon Josefsson  <jas@extundo.com>
118110         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
118111         <bruno@clisp.org>.
118113         * lib/hmac-sha1.c (hmac_sha1): Likewise.
118115         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
118116         Bruno Haible <bruno@clisp.org>.
118118         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
118119         <bruno@clisp.org>.
118121 2005-10-21  Simon Josefsson  <jas@extundo.com>
118123         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
118125 2005-10-21  Simon Josefsson  <jas@extundo.com>
118127         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
118129 2005-10-21  Simon Josefsson  <jas@extundo.com>
118131         * lib/des.h, lib/des.c: New files.
118133         * lib/gc-gnulib.c: Support DES.c
118135 2005-10-21  Simon Josefsson  <jas@extundo.com>
118137         * lib/arctwo.h, lib/arctwo.c: New files.
118139         * lib/gc-gnulib.c: Support ARCTWO.
118141 2005-10-21  Simon Josefsson  <jas@extundo.com>
118143         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
118144         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118146 2005-10-21  Simon Josefsson  <jas@extundo.com>
118148         * gnulib-tool (func_import, func_create_testdir): Define automake
118149         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
118150         Makefile.am snippet),
118151         suggested by Bruno Haible <bruno@clisp.org>.
118153         * modules/gc (Makefile.am): Use it.
118155 2005-10-21  Bruno Haible  <bruno@clisp.org>
118157         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
118158         patch.
118160 2005-10-19  Simon Josefsson  <jas@extundo.com>
118162         * tests/test-gc-rijndael.c: New file.
118164         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
118166 2005-10-19  Simon Josefsson  <jas@extundo.com>
118168         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
118169         interface too.
118171 2005-10-19  Simon Josefsson  <jas@extundo.com>
118173         * tests/test-gc-arcfour.c: New file.
118175         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
118177 2005-10-19  Simon Josefsson  <jas@extundo.com>
118179         * modules/gc-md4, modules/gc-md4-tests: New file.
118181         * tests/test-gc-md4.c: New file.
118183 2005-10-19  Simon Josefsson  <jas@extundo.com>
118185         * m4/gc-md4.m4: New file.
118187 2005-10-19  Simon Josefsson  <jas@extundo.com>
118189         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
118190         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
118191         <kasal@ucw.cz>.
118193 2005-10-19  Simon Josefsson  <jas@extundo.com>
118195         * m4/gc-arcfour.m4: New file.
118197         * m4/gc-rijndael.m4: New file.
118199 2005-10-19  Simon Josefsson  <jas@extundo.com>
118201         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
118203 2005-10-19  Simon Josefsson  <jas@extundo.com>
118205         * lib/gc-gnulib.c: Support ARCFOUR.
118207 2005-10-19  Simon Josefsson  <jas@extundo.com>
118209         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
118210         support.
118212         * lib/gc.h: Add ECB enum type.
118214         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
118216 2005-10-18  Simon Josefsson  <jas@extundo.com>
118218         * tests/test-md5.c: New file.
118220         * modules/md5-tests: New file.
118222 2005-10-18  Simon Josefsson  <jas@extundo.com>
118224         * tests/test-md4.c: New file.
118226         * modules/md4, modules/md4-tests: New files.
118228 2005-10-18  Simon Josefsson  <jas@extundo.com>
118230         * m4/md4.m4: New file.
118232 2005-10-18  Simon Josefsson  <jas@extundo.com>
118234         * lib/md4.h, lib/md4.c: New files, based on md5.?.
118236 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
118238         * gnulib-tool (func_create_testdir): Omit the second check whether
118239         BUILT_SOURCES in nonempty.
118241 2005-10-17  Simon Josefsson  <jas@extundo.com>
118243         * tests/test-rijndael.c: New file.
118245 2005-10-17  Simon Josefsson  <jas@extundo.com>
118247         * modules/sha1: Depend on stdint instead of md5.
118249         * modules/md5: Depend on stdint, remove uint32_t.
118251 2005-10-17  Simon Josefsson  <jas@extundo.com>
118253         * modules/gc-sha1-tests: New file.
118255         * tests/test-gc-sha1.c: New file.
118257 2005-10-17  Simon Josefsson  <jas@extundo.com>
118259         * m4/md5.m4: Remove call to uint32_t.m4.
118261 2005-10-17  Simon Josefsson  <jas@extundo.com>
118263         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
118265         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
118266         md5.h.
118268         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
118270         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
118272 2005-10-17  Simon Josefsson  <jas@extundo.com>
118274         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
118276 2005-10-17  Simon Josefsson  <jas@extundo.com>
118278         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
118280 2005-10-17  Simon Josefsson  <jas@extundo.com>
118282         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
118284         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
118286 2005-10-17  Bruno Haible  <bruno@clisp.org>
118288         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
118289         that it can also be used in a test.
118291 2005-10-16  Bruno Haible  <bruno@clisp.org>
118293         * gnulib-tool (func_emit_tests_Makefile_am): Also define
118294         TESTS_ENVIRONMENT, so that individual tests can augment it.
118296         * gnulib-tool (func_create_testdir): Use an intermediate target for
118297         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
118298         macros, like $(ALLOCA_H), which cannot be passed through the command
118299         line.
118301 2005-10-15  Simon Josefsson  <jas@extundo.com>
118303         * modules/rijndael-tests: New file.
118305         * modules/rijndael: New file.
118307 2005-10-15  Simon Josefsson  <jas@extundo.com>
118309         * m4/rijndael.m4: New file.
118311 2005-10-15  Simon Josefsson  <jas@extundo.com>
118313         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
118315         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
118317 2005-10-14  Simon Josefsson  <jas@extundo.com>
118319         * tests/test-arcfour.c: New file.
118321         * modules/arcfour, modules/arcfour-tests: New files.
118323 2005-10-14  Simon Josefsson  <jas@extundo.com>
118325         * m4/arcfour.m4: New file.
118327 2005-10-14  Simon Josefsson  <jas@extundo.com>
118329         * lib/arcfour.h, lib/arcfour.c: New files.
118331 2005-10-14  Roland McGrath  <roland@redhat.com>
118333         Import from libc.  [BZ #1331]
118334         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
118335         macro argument.
118336         Reported by Matej Vela <vela@debian.org>.
118338 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118340         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
118341         include <wchar.h>; no longer needed.
118343 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118345         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
118347 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
118348         and  Ulrich Drepper  <drepper@redhat.com>
118350         Import from libc.
118351         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
118352         instead of inline stream orientation test and two separate
118353         function calls.  Pay no attention to USE_IN_LIBIO.
118355 2005-10-13  Simon Josefsson  <jas@extundo.com>
118357         * modules/gc-hmac-md5-tests: New file.
118359         * tests/test-gc-hmac-sha1.c: New file.
118361         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
118363         * modules/gc-hmac-md5-tests: New file.
118365         * tests/test-gc-md5.c: New file.
118367         * modules/gc-md5-tests: New file.
118369 2005-10-13  Simon Josefsson  <jas@extundo.com>
118371         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
118372         Move memory allocation outside of loop.
118374 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
118376         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
118377         intermediate directory is in a read-only file system.  Problem
118378         reported by Eric Blake.
118380 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
118382         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
118384 2005-10-12  Simon Josefsson  <jas@extundo.com>
118386         * tests/test-hmac-sha1.c: New file.
118388         * modules/hmac-sha1-tests: New file.
118390         * modules/hmac-sha1: New file.
118392 2005-10-12  Simon Josefsson  <jas@extundo.com>
118394         * modules/gc-sha1: New file.
118396 2005-10-12  Simon Josefsson  <jas@extundo.com>
118398         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
118400         * tests/test-gc-pbkdf2-sha1.c: New file.
118402 2005-10-12  Simon Josefsson  <jas@extundo.com>
118404         * modules/gc-md5, modules/gc-hmac-md5: New files.
118406         * modules/gc (Files): Remove md5, memxor and hmac files.
118408 2005-10-12  Simon Josefsson  <jas@extundo.com>
118410         * m4/gc-pbkdf2-sha1.m4: New file.
118412         * m4/gc-hmac-sha1.m4: New file.
118414         * m4/gc-sha1: New file.
118416         * m4/hmac-sha1.m4: New file.
118418 2005-10-12  Simon Josefsson  <jas@extundo.com>
118420         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
118422         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
118424 2005-10-12  Simon Josefsson  <jas@extundo.com>
118426         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
118427         suggested by Bruno Haible <bruno@clisp.org>.
118429 2005-10-12  Simon Josefsson  <jas@extundo.com>
118431         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
118433 2005-10-12  Simon Josefsson  <jas@extundo.com>
118435         * lib/gc-pbkdf2-sha1.c: New file.
118437         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
118439 2005-10-12  Simon Josefsson  <jas@extundo.com>
118441         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
118443         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
118445 2005-10-12  Simon Josefsson  <jas@extundo.com>
118447         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
118448         GC_USE_HMAC_MD5, respectively.
118450         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
118451         (gc_md5): Fix typo.
118453         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
118455         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
118457         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
118459 2005-10-12  Bruno Haible  <bruno@clisp.org>
118461         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
118462         Reported by Stepan Kasal <kasal@ucw.cz>.
118464 2005-10-11  Simon Josefsson  <jas@extundo.com>
118466         * tests/test-crc.c: New file.
118468         * modules/crc, modules/crc-tests: New files.
118470 2005-10-11  Simon Josefsson  <jas@extundo.com>
118472         * m4/crc.m4: New file.
118474 2005-10-11  Simon Josefsson  <jas@extundo.com>
118476         * lib/gc.h: Add gc_hash and gc_hash_buffer.
118478         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
118480         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
118482 2005-10-11  Simon Josefsson  <jas@extundo.com>
118484         * lib/crc.h, lib/crc.c: New files.
118486         * lib/gc.h (gc_hash_buffer): Add doc.
118488 2005-10-11  Bruno Haible  <bruno@clisp.org>
118490         * modules/c-strcasestr: New file.
118491         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
118493 2005-10-11  Bruno Haible  <bruno@clisp.org>
118495         * modules/c-strcase: New file.
118496         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
118498 2005-10-11  Bruno Haible  <bruno@clisp.org>
118500         * lib/strcasecmp.c: Include limits.h.
118501         (strcasecmp): Avoid integer overflow on exotic platforms.
118502         * lib/strncasecmp.c: Include limits.h.
118503         (strncasecmp): Avoid integer overflow on exotic platforms.
118504         Reported by Paul Eggert.
118506 2005-10-11  Bruno Haible  <bruno@clisp.org>
118508         * lib/c-strcasestr.h: New file, from GNU gettext.
118509         * lib/c-strcasestr.c: New file, from GNU gettext.
118511 2005-10-11  Bruno Haible  <bruno@clisp.org>
118513         * lib/c-strcase.h: New file, from GNU gettext.
118514         * lib/c-strcasecmp.c: New file, from GNU gettext.
118515         * lib/c-strncasecmp.c: New file, from GNU gettext.
118517 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
118519         * modules/mempcpy (License): GPL -> LGPL.
118520         * modules/strchrnul (License): Likewise.
118521         * modules/sysexits (License): Likewise.
118523 2005-10-08  Simon Josefsson  <jas@extundo.com>
118525         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
118527 2005-10-07  Simon Josefsson  <jas@extundo.com>
118529         * m4/memxor.m4: Remove gl_C_RESTRICT call.
118531 2005-10-06  Simon Josefsson  <jas@extundo.com>
118533         * tests/test-hmac-md5.c: New file.
118535         * modules/hmac-md5-tests: New file.
118537         * modules/hmac-md5: New file.
118539 2005-10-06  Simon Josefsson  <jas@extundo.com>
118541         * m4/hmac-md5.m4: New file.
118543         * m4/memxor.m4: Require gl_C_RESTRICT.
118545 2005-10-06  Simon Josefsson  <jas@extundo.com>
118547         * lib/memxor.c (memxor): Avoid casts and warnings.
118549 2005-10-06  Simon Josefsson  <jas@extundo.com>
118551         * lib/hmac-md5.c: New file.
118553         * lib/hmac.h: New file.
118555 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
118557         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
118558         promotes to int, not unsigned int, to catch the AIX 5.3
118559         compiler bug.
118561 2005-10-05  Simon Josefsson  <jas@extundo.com>
118563         * modules/memxor: New file.
118565         * modules/iconv (Files): Move config.rpath to havelib, it is used
118566         there.
118568         * modules/havelib (Files): Add config.rpath.
118570 2005-10-05  Simon Josefsson  <jas@extundo.com>
118572         * m4/memxor.m4: New file.
118574 2005-10-05  Simon Josefsson  <jas@extundo.com>
118576         * lib/memxor.c (memxor): Fix compiler error.
118578         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
118579         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
118581         * lib/memxor.h, lib/memxor.c: New files.
118583         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
118584         we assume all systems have it, suggested by Jim Meyering
118585         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
118586         any systems lack sys/socket.h; mingw32 is known to lack it, but we
118587         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
118588         same reasons.
118590 2005-10-05  Simon Josefsson  <jas@extundo.com>
118592         * config/srclist.txt: Add glibc bug 1423 for md5.h.
118594 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
118596         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
118597         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
118598         needed, since the source code now assumes these .h files.
118600 2005-10-05  Derek Price  <derek@ximbiot.com>
118602         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
118604 2005-10-05  Bruno Haible  <bruno@clisp.org>
118606         * modules/stdint (License): Change to LGPL.
118608 2005-10-04  Simon Josefsson  <jas@extundo.com>
118610         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
118611         D. Baushke" <mdb@gnu.org>.
118613 2005-10-04  Bruno Haible  <bruno@clisp.org>
118615         * lib/verify.h (verify_true): Provide alternative definition for C++.
118617 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
118619         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
118620         (SSIZE_MAX): New macro, if not already defined.
118621         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
118622         than 2 GiB.
118624 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118626         Sync from coreutils.
118627         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
118628         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
118629         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
118630         ULLONG_MAX doesn't work with 2.7.2.1.
118632 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118634         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
118635         From Ben Pfaff.
118637         * modules/exclude (Depends-on): Depend on verify.
118638         * modules/strtoimax (Depends-on): Likewise.
118639         * modules/utimecmp (Depends-on): Likewise.
118641 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118643         * lib/exclude.c: Include verify.h.
118644         (verify): Remove.  All callers changed to use verify.h's version.
118645         * lib/strtoimax.c: Likewise.
118646         * lib/utimecmp.c: Likewis.e
118648         Sync from coreutils.
118649         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
118650         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
118651         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
118652         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
118653         bother returning ENOSYS if settimeofday or stime fails; just let
118654         them return whatever errno they want to return.
118655         * lib/utimens.c: Include unistd.h, for dup2.
118656         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
118657         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
118659 2005-10-02  Jim Meyering  <jim@meyering.net>
118661         Sync from coreutils.
118662         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
118663         from glibc-2.2.5 that fails for read-only files.
118665 2005-10-02  Jim Meyering  <jim@meyering.net>
118667         Sync from coreutils.
118668         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
118669         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
118670         `#if HAVE_CONFIG_H'.
118671         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
118672         Remove AT_FDCWD test.
118673         Do not consume the fd unless successful.
118674         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
118675         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
118676         block, so that we don't even try to compile it if settimeofday is
118677         available.  This works around a compilation failure on OSF1 V5.1,
118678         due to stime requiring a `long int*' while tv_sec is `int'.
118680 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
118682         Sync from coreutils.
118683         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
118684         against `yes', rather than just testing for nonempty.
118686 2005-10-01  Simon Josefsson  <jas@extundo.com>
118688         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
118689         and Darwin.
118691         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
118692         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
118693         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
118694         freeaddrinfo and gai_strerror are declared by the POSIX headers.
118695         Check if struct addrinfo is declared.
118697 2005-10-01  Simon Josefsson  <jas@extundo.com>
118699         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
118700         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
118701         AI_* and EAI_* definitions.  Protect function declarations.
118703 2005-10-01  Jim Meyering  <jim@meyering.net>
118705         Sync from coreutils.
118707         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
118708         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
118709         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
118710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118711         in the inet and nsl libraries.  Required on Solaris 5.7.
118713 2005-10-01  Jim Meyering  <jim@meyering.net>
118715         Sync from coreutils.
118716         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118717         in the inet and nsl libraries.  Required on Solaris 5.7.
118719 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
118721         * lib/getdelim.c (getdelim): Remove unused variables.
118723 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
118725         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
118726         so that the code works even with ancient cpp.  Portability problem
118727         with GCC 2.7.2.1 reported by Thomas M.Ott.
118729 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
118731         * modules/regex (Depends-on): Add strcase.
118733         * modules/gethostname (Licence): Change from GPL to LGPL, since
118734         gethostname.c is a trivial implementation of a standard library
118735         function.
118736         * modules/poll (License): Change from GPL to LGPL, since it's
118737         derived from LGPL code.
118739 2005-09-27  Jim Meyering  <jim@meyering.net>
118741         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
118742         HAVE_CONFIG_H.
118744         * lib/intprops.h (signed_type_or_expr__): Define.
118745         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
118746         for unsigned types.
118748 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
118750         * lib/verify.h (verify_expr): Remove, replacing with:
118751         (verify_true): New macro that returns true instead of void.
118752         (verify_type__): Remove.
118753         (verify): Use verify_true rather than verify_type__.
118755 2005-09-26  Bruno Haible  <bruno@clisp.org>
118757         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
118758         is necessary.
118759         (lib_SOURCES): Remove mbchar.c.
118760         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
118761         (Files): Add m4/mbrtowc.m4.
118762         * modules/mbiter: Likewise.
118763         * modules/mbuiter: Likewise.
118765 2005-09-26  Bruno Haible  <bruno@clisp.org>
118767         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
118768         compile mbchar.c if they are not both present.
118769         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
118770         * m4/mbiter.m4 (gl_MBITER): Likewise.
118771         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
118772         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
118773         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
118775 2005-09-25  Jim Meyering  <jim@meyering.net>
118777         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
118778         also uses socklen_t.
118780 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
118782         * lib/utimens.c (ENOSYS): Define if not already defined.
118783         (futimens): Support having a null PATH if the file descriptor
118784         is nonnegative.
118786         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
118787         Remove.
118788         (__attribute): Define to empty unless GCC 3.1 or later.
118789         This works around a core dump on OpenBSD 3.4, which has GCC
118790         2.95.3, which dumps core when given __attribute__(()).  It also
118791         simplifies other tests, since we really don't want to bother with
118792         worrying about which ancient version of GCC supported what.
118793         Original problem reported by Yoann Vandoorselaere, with part of
118794         the fix suggested by Derek Price.
118796 2005-09-24  Jim Meyering  <jim@meyering.net>
118798         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
118799         so we can once again use a positive bitfield width of 1 -- now we
118800         don't have to explain why we were using a bitfield width of 2.
118802 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118804         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
118805         and similarly for the other external symbols.  Problem reported
118806         by James Gallager.
118808         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
118809         bug reported by Jim Meyering.
118811         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
118812         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
118813         not needed, since socklen is a prerequisite module.
118815 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118817         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
118818         Problem reported by Eric Blake.
118819         (getaddrinfo): Initialize se so that it's not garbage.
118820         Redo internal storage allocation so that it doesn't make unportable
118821         assumptions about alignment.
118822         Fix a memory leak.
118824         * lib/utimens.c (futimens): Use futimesat if available.
118825         Prefer it to futimes since it doesn't have the futimes bug.
118827         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
118828         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
118829         Instead, declare a function that returns a pointer to an array,
118830         and use verify_type__ to declare the size of the array.
118831         Problem and germ of a solution reported by Bruno Haible.
118832         (verify_type__): Use 2, not 1, for bitfield size, to avoid
118833         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
118835 2005-09-23  Jim Meyering  <jim@meyering.net>
118837         Sync from coreutils.
118838         Correct build failure (socklen_t not defined) on at least
118839         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
118840         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
118842 2005-09-23  Jim Meyering  <jim@meyering.net>
118844         * modules/getaddrinfo (Depends-on): Add socklen.
118846 2005-09-23  Bruno Haible  <bruno@clisp.org>
118848         * tests/test-verify.c: New file.
118850 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118852         Sync from coreutils.
118854         * modules/argmatch (Depends-on): Add verify.
118855         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
118856         unistd-safer.
118857         * modules/save-cwd (Depends-on): Likewise.
118859         * modules/openat (Files): Add lib/openat-die.c.
118860         (Depends-on): Remove error, exitfail.
118861         Add dirname.
118863         * modules/verify: New file.
118864         * MODULES.html.sh (Diagnostics <assert.h>): New section,
118865         with "verify" module.
118867 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118869         Sync from coreutils.
118871         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
118872         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
118873         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
118874         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
118875         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
118876         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
118877         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
118878         Don't bother checking for string.h, stdlib.h, unistd.h.
118879         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
118880         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
118881         module's job.
118882         * m4/jm-macros.m4 (gl_MACROS): Likewise.
118883         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
118885         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
118886         (gl_GETDATE): Use it.
118888         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
118890 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118892         Sync from coreutils.
118894         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
118895         stat-time.h.
118896         * lib/argmatch.h: Include verify.h
118897         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
118898         (ARGMATCH_ASSERT): Remove; unused.
118899         * lib/canonicalize.c: Assume STDC_HEADERS.
118900         * lib/exclude.c: Include "strcase.h".
118901         * lib/regex_internal.h [!defined _LIBC]: Likewise.
118902         * lib/getusershell.c: Include stdio--.h rather than stdio.h
118903         and stdio-safer.h.
118904         (getusershell): Call fopen, not fopen_safer.
118905         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
118906         Do not include unistd-safer.h.
118907         (save_cwd): Don't call fd_safer; no longer needed
118908         now that we include fcntl--.h.
118910         * lib/getdate.y (relative_time): New type.
118911         (RELATIVE_TIME_0): New constant.
118912         (parser_control): Use relative_time instead of doing it ourselves.
118913         (%union): Add new relative_time rel member.
118914         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
118915         Now typeless.
118916         (relunit, relunit_snumber): Now of type rel.
118917         (zone, rel, relunit, get_date): Adjust to above changes.
118919         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
118920         Do not include unistd-safer.h.
118921         (getloadavg): Don't call fd_safer; no longer needed
118922         now that we include fcntl--.h.
118924         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
118925         (make_dir_parents): Treat ENOSYS like EEXIST.
118927         Improve quality of diagnostics on restore_cwd failure.
118928         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
118929         (make_dir_parents): Last arg is now int * (for errno), not bool *.
118930         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
118931         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
118932         each time through the loop.  Do not diagnose restore_cwd failure;
118933         that is the caller's job (and perhaps the caller does not care).
118935         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
118936         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
118937         If the file already exists but is not a directory, don't bother
118938         to try to make its parents.
118939         Close potential file descriptor leak if we can't chdir("/") (!).
118940         Don't always return true if chdir($PWD) fails; return true only
118941         if the requested action was done successfully (except for the
118942         chdir($PWD)).
118943         Don't log final directory unless we actually made it.
118944         Refactor to avoid duplicate code to fix up permissions.
118945         Don't attempt to fix up parent permissions if chdir($PWD) fails.
118947         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
118948         to make it a bit faster and (I hope) clearer.
118949         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
118950         Fix bug in formats like %2N.
118952         * lib/verify.h: New file.
118954 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118956         Sync from coreutils.
118957         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
118959 2005-09-22  Jim Meyering  <jim@meyering.net>
118961         Sync from coreutils.
118963         * m4/lstat.m4 (gl_FUNC_LSTAT):
118964         Use AC_LIBSOURCES to require lstat.c and lstat.h.
118965         Remove obsolete comment.
118966         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
118967         * m4/xstrtod.m4: Likewise.
118969         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
118971 2005-09-22  Jim Meyering  <jim@meyering.net>
118973         Sync from coreutils.
118975         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
118977         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
118978         the .tm_year member, since otherwise gcc-4.0 would now warn about
118979         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
118981         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
118982         order to avoid an unsuppressible warning from gcc on 64-bit systems.
118984         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
118985         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
118986         when run in a time zone for which daylight savings time is in effect
118987         for the starting date.
118989         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
118990         stop us from restricting permissions of just-created absolute-named
118991         directories.
118992         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
118993         to restore initial working directory.
118994         * lib/mkdir-p.c (make_dir_parents): New parameter:
118995         different_working_dir, to tell caller if/when we change the working
118996         directory and are unable to return to the initial one.
118997         * lib/mkdir-p.h (make_dir_parents): Update prototype.
118998         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
118999         `return false'.  This fixes a bug introduced on 2004-07-30.
119001         * lib/openat.c (fdopendir): Be sure to close the supplied
119002         file descriptor before returning.  This makes our replacement
119003         implementation a little closer to Solaris's, where fdopendir
119004         ties the file descriptor to the returned DIR* pointer.
119005         * lib/openat.c (unlinkat): New function.
119006         * lib/openat.h (unlinkat): Add prototype.
119007         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
119008         (openat_restore_fail): Rename from openat_restore_die.
119009         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
119011         Provide an alternative to exiting immediately upon save_cwd or
119012         restore_cwd failure.  Now, an application can arrange e.g.,
119013         to perform a longjump in that case.
119014         * lib/openat.c: Include dirname.h.
119015         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
119016         (rpl_openat, fdopendir, fstatat): Call openat_save_die
119017         and openat_restore_die rather than calling error directly.
119018         Don't include "error.h" or "exitfail.h"; they're no longer needed.
119020         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
119021         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
119022         define.
119024         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
119025         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
119026                             int utc, int nanoseconds);
119027         Background:
119028         date should not have to allocate a megabyte of virtual memory to
119029         handle a format argument like +%1048575T.  When implemented with
119030         strftime, it must allocate such a buffer, use strftime to fill it
119031         in, print it, then free it.
119032         With fprintftime, it simply prints everything and exits.
119033         With no need for memory allocation, that's one fewer way to fail.
119034         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
119035         optional field width, not before, so we accept %9:z, not %:9z.
119036         (my_strftime): Be sure to use L_('x') for literals.
119038         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
119039         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
119040         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
119041         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
119042         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
119043         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
119044         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
119045         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
119046         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
119047         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
119048         * lib/xgethostname.c, lib/xreadlink.c:
119049         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
119051         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
119052         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
119053         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
119054         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
119055         and don't include <sys/file.h>).
119057 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
119059         Sync from coreutils.
119061         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
119062         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
119063         [!LDAV_DONE]: Avoid unused variable warning.
119065 2005-09-21  Bruno Haible  <bruno@clisp.org>
119067         * lib/unicodeio.h (unicode_to_mb): New declaration.
119069 2005-09-20  Derek Price  <derek@ximbiot.com>
119071         * lib/getaddrinfo.c: Don't include <netdb.h> included from
119072         getaddrinfo.h.
119074 2005-09-20  Bruno Haible  <bruno@clisp.org>
119076         * gnulib-tool: Remove trailing slashes from the values specified for
119077         --source-base, --m4-base, --tests-base, --aux-dir.
119078         Suggested by Simon Josefsson <jas@extundo.com>.
119080 2005-09-20  Bruno Haible  <bruno@clisp.org>
119082         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
119083         func_modules_to_filelist, func_import, func_create_testdir): Make all
119084         sorting results locale-independent, so that gnulib-cache.m4 doesn't
119085         change when gnulib-tool is invoked in a different locale.
119087 2005-09-19  Simon Josefsson  <jas@extundo.com>
119089         * m4/socklen.m4: Fix typo.
119091 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
119093         Use a consistent style for including <config.h>.
119094         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
119095         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
119096         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
119097         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
119098         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
119099         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
119100         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
119101         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
119102         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
119103         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
119104         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
119105         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
119106         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
119107         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
119108         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
119109         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
119110         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
119111         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
119112         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
119113         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
119114         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
119115         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
119116         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
119117         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
119118         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
119119         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
119120         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
119121         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
119122         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
119123         lib/xstrtoumax.c, lib/yesno.c:
119124         Standardize inclusion of config.h.
119125         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
119126         lib/inttostr.h:  Removed inclusion of config.h from header files.
119127         * lib/inttostr.c:  Adjusted in-tree users.
119128         * lib/timespec.h: Remove superfluous warning to include config.h.
119129         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
119130         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
119131         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
119132         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
119133         config.h with HAVE_CONFIG_H.
119135 2005-09-19  Jim Meyering  <jim@meyering.net>
119137         * modules/pathmax (License): Change to LGPL.
119139 2005-09-19  Derek Price  <derek@ximbiot.com>
119141         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
119143 2005-09-19  Bruno Haible  <bruno@clisp.org>
119145         * gnulib-tool (import): Provide default for --tests-base.
119147 2005-09-19  Bruno Haible  <bruno@clisp.org>
119149         * doc/quote.texi: New file, extracted from gnulib.texi.
119150         * doc/ctime.texi: New file, extracted from gnulib.texi.
119151         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
119152         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
119153         * doc/gnulib.texi: Include them.
119155 2005-09-18  Bruno Haible  <bruno@clisp.org>
119157         Portability fix.
119158         * gnulib-tool (func_readlink): New function.
119159         (func_ln_if_changed): Use it.
119161 2005-09-18  Bruno Haible  <bruno@clisp.org>
119163         * gnulib-tool: Support --with-tests also with --import.
119164         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
119165         (func_import): Use variables $testsbase and $inctests. Emit a
119166         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
119167         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
119168         SUBDIRS += $testsdir.
119169         (func_create_testdir): Update.
119171 2005-09-18  Bruno Haible  <bruno@clisp.org>
119173         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
119174         instead of $dry_run.
119175         (func_cp_if_changed, func_mv_if_changed): Remove functions.
119176         (func_ln_if_changed): Don't handle dry-run here.
119177         (func_import): In dry-run mode, detect more precisely which actions
119178         would be performed, and don't use "...ing" verbs.
119180 2005-09-18  Bruno Haible  <bruno@clisp.org>
119182         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
119183         (func_import): Use join on two temporary files instead of three nested
119184         loops, in order to determine which files are new or old.
119186 2005-09-18  Bruno Haible  <bruno@clisp.org>
119188         * gnulib-tool (func_import): Comment out code that spits out the
119189         new files with --dry-run.
119191 2005-09-18  Bruno Haible  <bruno@clisp.org>
119193         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
119195 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119197         * lib/stat-time.h: New file.
119198         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
119199         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
119200         in a different way.
119201         (timespec_cmp): New function.
119202         * lib/utimecmp.c: Include stat-time.h.
119203         (SYSCALL_RESOLUTION): Depend on whether various struct stat
119204         members exist, not on the obsolescent ST_MTIM_NSEC.
119205         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
119207 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119209         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
119211 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119213         * MODULES.html.sh (File system functions): Add stat-time.
119214         * modules/stat-time: New file.
119215         * modules/timespec (Files): Remove m4/st_mtim.m4; this
119216         is now done in a different way, by the stat-time module.
119217         * modules/utimecmp (Depends-on): Add stat-time.
119219 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
119221         * m4/st_mtim.m4: Remove.  Superseded by...
119222         * m4/stat-time.m4: New file.
119223         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
119224         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
119226 2005-09-15  Derek Price  <derek@ximbiot.com>
119228         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
119230 2005-09-15  Derek Price  <derek@ximbiot.com>
119232         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
119233         * lib/regex_internal.c: Ditto, using this...
119234         (__GNUC_PREREQ): ...new macro.
119235         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
119236         using...
119237         (__GNUC_PREREQ): ...this new macro.
119239         * lib/strstr.h: Include string.h. Define strstr as a macro here.
119241 2005-09-15  Derek Price  <derek@ximbiot.com>
119242             Paul Eggert  <eggert@cs.ucla.edu>
119244         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
119245         changes, consolidating in...
119246         * lib/regex_internal.h: ...this file.
119248 2005-09-13  Jim Meyering  <jim@meyering.net>
119250         * lib/canon-host.c: Filter through gnu indent and reword comments
119251         slightly.
119252         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
119254 2005-09-13  Derek Price  <derek@ximbiot.com>
119256         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
119257         failure.
119258         Reported by Jim Meyering  <jim@meyering.net>.
119260 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
119262         * lib/base64.c: Typo.
119263         (base64_encode): Put b64str in initialized data section.
119265 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
119267         Merge glibc and coreutils changes into gnulib, plus a few
119268         extra fixes.
119269         * lib/md5.c: Use #error rather than a string.
119270         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
119271         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
119272         (__attribute__): Define to empty for non recent-GCC.
119273         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
119274         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
119275         Renamed from their non-__ counterparts, with new macros replacing
119276         them if not _LIBC.  Add __THROW attribute.
119277         (rol): Remove.
119278         (struct md5_ctx): Align buffer if using GCC.
119279         * lib/sha1.h (struct sha1_ctx): Likewise.
119280         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
119281         The old name was backwards.
119282         (NOTSWAP): Remove; not used.
119283         (rol): New macro, moved here from md5.h.
119284         (sha1_process_block): Remove a FIXME that doesn't make sense.
119286 2005-09-12  Derek Price  <derek@ximbiot.com>
119288         Return usable errors from canon-host.
119289         * lib/canon-host.h: New file.
119290         * lib/canon-host.c (canon_host): Wrap...
119291         (canon_host_r): ...this new function, which now relies exclusively on
119292         getaddrinfo.
119293         (ch_strerror): New function.
119294         (last_cherror): New global.
119295         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
119296         interface.
119297         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
119298         void *.
119299         (freeaddrinfo): Free ai->ai_canonname when set.
119301 2005-09-12  Derek Price  <derek@ximbiot.com>
119303         Make canon-host require getaddrinfo.
119304         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
119305         AC_LIBSOURCE canon-host.h.  Call...
119306         (gl_PREREQ_CANON_HOST): ...this new function, which requires
119307         gl_GETADDRINFO.
119308         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
119310 2005-09-12  Derek Price  <derek@ximbiot.com>
119312         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
119313         LGPL.
119314         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
119316 2005-09-12  Derek Price  <derek@ximbiot.com>
119318         * lib/gai_strerror.c: Include config.h when available.  Include
119319         getaddrinfo.h before other headers to test interface.
119320         Reported by Larry Jones <lawrence.jones@ugs.com>.
119322 2005-09-12  Derek Price  <derek@ximbiot.com>
119323             Paul Eggert  <eggert@cs.ucla.edu>
119325         * modules/glob (Files): Add glob-libc.h.
119327 2005-09-12  Derek Price  <derek@ximbiot.com>
119328             Paul Eggert  <eggert@cs.ucla.edu>
119330         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
119331         glob_.h, glob-libc.h.
119332         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
119334 2005-09-12  Derek Price  <derek@ximbiot.com>
119335             Paul Eggert  <eggert@cs.ucla.edu>
119337         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
119338         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
119339         protecting things that should be done only in gnulib contexts.
119340         * lib/glob_.h: New file, containing only the glob things needed for
119341         gnulib.
119342         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
119343         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
119344         (glob, globfree, glob_pattern_p): Now defined simply in terms of
119345         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
119346         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
119347         and to respect the namespace rules better.
119349 2005-09-08  Simon Josefsson  <jas@extundo.com>
119351         * modules/socklen: New file.
119353 2005-09-08  Simon Josefsson  <jas@extundo.com>
119355         * m4/socklen.m4: New file.
119357 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119359         * modules/utimens (Files): Add m4/utimbuf.m4, since
119360         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
119361         Reported by Sergey Poznyakoff.
119363 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119365         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
119366         definitions, since that's the preferred style in glibc.
119367         Fix a minor spacing issue, and update copyright notice to match
119368         glibc's.
119370 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119372         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
119374 2005-09-06  Simon Josefsson  <jas@extundo.com>
119376         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
119377         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
119379 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119381         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
119382         warning.
119384 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119386         * config/srclist.txt: Add glibc bug 1302.
119388 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
119390         Change bitset word type from unsigned int to unsigned long int,
119391         as this has better performance on typical 64-bit hosts.
119392         Port bitset code to hosts with unusual word sizes.
119393         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
119394         (build_collating_symbol):
119395         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
119396         argument is a bitset.  This is merely a style issue, but it makes
119397         it clearer that an entire array is expected.
119398         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
119399         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
119400         Port to the case where bitset_word is not the same as unsigned int.
119401         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119402         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
119403         Likewise.
119404         * lib/regexec.c (check_dst_limits_calc_pos_1,
119405         check_subexp_matching_top):
119406         (build_trtable, group_nodes_into_DFAstates):
119407         Likewise.
119408         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
119409         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
119410         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
119411         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
119412         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
119413         * lib/regcomp.c (optimize_subexps, lower_subexp):
119414         Work even if bitset_word has holes in its bitwise representation.
119415         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
119416         * lib/regexec.c (check_dst_limits_calc_pos_1,
119417         check_subexp_matching_top):
119418         Likewise.
119419         * lib/regex_internal.c (re_string_reconstruct):
119420         Don't assume UCHAR_MAX == 255.
119421         * lib/regex_internal.h (bitset_set_all): Likewise.
119422         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
119423         All uses changed.
119424         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
119425         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
119426         All uses changed.
119427         (BITSET_WORD_MAX): New macro.
119428         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
119429         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
119430         (bitset_empty, bitset_copy):
119431         Prefer sizeof (bitset) to multiplying it out ourselves.
119432         (bitset_not_merge): Remove; unused.
119433         (bitset_contain): Return bool, not unsigned int with one bit on.
119434         All callers changed.
119435         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
119436         alignment than re_node_set; do this by defining a new internal
119437         type struct dests_alloc and using it to allocate memory.
119439 2005-09-05  Bruno Haible  <bruno@clisp.org>
119441         * gnulib-tool (func_import): Fix comparison in handling of symbolic
119442         links.
119444 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
119446         * modules/size_max (Makefile.am): Add size_max.h
119448 2005-09-04  Derek Price  <derek@ximbiot.com>
119450         * gnulib-tool (func_import): Fix reversed $symbolic logic.
119452 2005-09-03  Simon Josefsson  <jas@extundo.com>
119454         * gnulib-tool: Fix typo.
119456 2005-09-03  Simon Josefsson  <jas@extundo.com>
119458         * config/srclist.txt: Add glibc bug 1293.
119460 2005-09-03  Derek Price  <derek@ximbiot.com>
119462         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
119463         From Larry Jones <lawrence.jones@ugs.com>.
119465 2005-09-02  Simon Josefsson  <jas@extundo.com>
119467         * modules/socklen: New file.
119469 2005-09-02  Simon Josefsson  <jas@extundo.com>
119471         * modules/havelib: New module.
119473         * modules/gettext, modules/iconv, modules/lock, modules/readline:
119474         Use havelib.
119476 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119478         Check for arithmetic overflow when calculating sizes, to prevent
119479         some buffer-overflow issues.  These patches are conservative, in the
119480         sense that when I couldn't determine whether an overflow was possible,
119481         I inserted a run-time check.
119482         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
119483         macros.
119484         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
119485         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
119486         (re_xnrealloc, re_x2nrealloc): New inline functions.
119487         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
119488         parse_bracket_exp):
119489         (build_equiv_class, build_charclass): Check for arithmetic overflow
119490         in size expression calculations.
119491         * lib/regex_internal.c (re_string_realloc_buffers):
119492         (build_wcs_upper_buffer, re_node_set_add_intersect):
119493         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
119494         (re_dfa_add_node, register_state): Likewise.
119495         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
119496         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
119497         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
119498         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
119500 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119502         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
119503         m4/ulonglong.m4.  Problem reported by Martin Lambers.
119505 2005-09-02  Bruno Haible  <bruno@clisp.org>
119507         Support for lib vs. lib64 distinction on biarch platforms.
119508         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
119509         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
119510         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
119512 2005-09-02  Bruno Haible  <bruno@clisp.org>
119514         * gnulib-tool (import): In the other first-use case, provide defaults
119515         as well.
119517 2005-09-02  Bruno Haible  <bruno@clisp.org>
119519         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
119520         patches not yet found in the latest gettext release.
119522 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119524         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
119525         to avoid a collision with bits/local_lim.h in glibc.
119526         All uses changed.  Problem reported by Dmitry V. Levin in
119527         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
119529         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
119530         bugs in int versus size_t comparisons.
119531         (re_string_context_at): Fix bug where the code assumed that
119532         Idx is signed.
119534         Use bool where appropriate.
119535         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
119536         All callers changed.
119537         (calc_eclosure_iter): Likewise, for ROOT arg.
119538         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
119539         (build_charclass_op): Likewise, for NON_MATCH arg.
119540         * lib/regex_internal.c (re_string_allocate, re_string_construct):
119541         (re_string_construct_common): Likewise, for ICASE arg.
119542         * lib/regexec.c (re_search_2_stub, re_search_stub):
119543         Likewise, for RET_LEN arg.
119544         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
119545         (set_regs): Likewise, for FL_BACKTRACK arg.
119546         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
119547         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
119548         (calc_eclosure_iter, parse_bracket_exp):
119549         Use bool for internal variables that are booleans.
119550         * lib/regexec.c (re_search_internal, check_matching,
119551         proceed_next_node):
119552         (set_regs, build_sifted_states, sift_states_bkref):
119553         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
119554         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119555         (find_collation_sequence_value):
119556         Likewise.
119557         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
119558         (re_node_set_compare):
119559         Return bool, not int. All callers changed.
119560         * lib/regexec.c (check_halt_node_context, check_dst_limits):
119561         (build_trtable, check_node_accept): Likewise.
119562         * lib/regex_internal.h: Include stdbool.h.
119564         Fix bugs uncovered when converting to bool.
119565         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
119566         failure instead of charging ahead blindly.
119567         * lib/regex_internal.c (register_state): Likewise.
119568         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
119569         for freeing internal storage.
119570         (group_nodes_into_DFA_states): Use unsigned int, not int, for
119571         bitset pieces used as boolean, to avoid undefined behavior
119572         on hosts that do int overflow checking.
119574 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119576         * config/srclist.txt: Add glibc bugs 1285-1287.
119578 2005-09-01  Jim Meyering  <jim@meyering.net>
119580         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
119581         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
119582         Require gl_STAT_MACROS, too.
119584 2005-09-01  Bruno Haible  <bruno@clisp.org>
119586         * gnulib-tool (import): In the first-use case, provide defaults.
119588 2005-09-01  Bruno Haible  <bruno@clisp.org>
119590         * gnulib-tool (func_import): Remove the .tmp files.
119592 2005-09-01  Bruno Haible  <bruno@clisp.org>
119594         * gnulib-tool (func_import): Fix handling of symbolic links.
119596 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119598         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
119599         old glibc regex code mishandles strings longer than 2**31 bytes.
119600         This patch fixes this when the regex code is used in gnulib
119601         (i.e., outside glibc).
119603         This patch should not affect the use of the regex code inside
119604         glibc.  No doubt this problem also needs to be handled for glibc
119605         as well, but the result will be an incompatible change to the
119606         glibc ABI, and the old ABI will have to be supported too.  That
119607         can be the subject for another patch.
119609         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
119610         governing whether the rest of this patch is active.  By default,
119611         the macro is disabled and the patch has no effect.
119612         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
119613         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
119614         (struct re_pattern_buffer, re_search, re_search_2, re_match):
119615         (re_match_2, re_set_registers): Use the new types.
119616         * lib/regex_internal.h (Idx, re_hashval_t): New types.
119617         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
119618         New macros.
119619         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
119620         (re_string_context_at, bin_tree_t, re_dfastate_t):
119621         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
119622         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
119623         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
119624         (re_string_char_size_at, re_string_wchar_at):
119625         (re_string_elem_size_at):
119626         Use the new types and macros to port to 64-bit hosts.
119627         Use unsigned types for internal values, so that the code
119628         mostly works even for arrays larger than SSIZE_MAX.
119629         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
119630         (search_duplicated_node, calc_eclosure_iter, fetch_number):
119631         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
119632         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
119633         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
119634         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
119635         (calc_inveclosure, parse_dup_op, build_range_exp):
119636         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
119637         (fetch_number, create_token_tree, mark_opt_subexp):
119638         Likewise.
119639         * lib/regex_internal.c (re_string_construct_common,
119640         create_ci_newstate):
119641         (create_cd_newstate, re_string_allocate, re_string_construct):
119642         (re_string_realloc_buffers, build_wcs_upper_buffer):
119643         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119644         (re_string_reconstruct, re_string_peek_byte_case):
119645         (re_string_fetch_byte_case, re_string_context_at):
119646         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119647         (re_node_set_init_copy, re_node_set_add_intersect):
119648         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119649         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119650         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119651         (re_acquire_state, re_acquire_state_context, register_state):
119652         Likewise.
119653         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
119654         search_cur_bkref_entry):
119655         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
119656         (re_search_internal, re_search_2_stub, re_search_stub)
119657         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
119658         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
119659         (update_cur_sifted_state, check_dst_limits):
119660         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119661         (check_subexp_limits, sift_states_bkref, merge_state_array):
119662         (check_subexp_matching_top, get_subexp, get_subexp_sub):
119663         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
119664         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119665         (expand_bkref_cache, check_node_accept_bytes):
119666         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
119667         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
119668         (acquire_init_state_context, check_halt_node_context):
119669         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
119670         (sift_states_backward, clean_state_log_if_needed):
119671         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
119672         (find_recover_state, transit_state_sb, transit_state_mb):
119673         (transit_state_bkref, build_trtable, match_ctx_clean):
119674         Likewise.
119675         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
119676         to work around an assumption that REG_MISSING is negative.
119678         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
119679         (seek_collating_symbol_entry) [defined _LIBC]:
119680         (lookup_collation_sequence_value) [defined _LIBC]:
119681         (build_range_exp, build_collating_symbol) [defined _LIBC]:
119682         Use prototypes rather than old-style function definitions.
119683         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
119684         (transit_state_sb) [0]:
119685         (find_collation_sequence_value) [defined _LIBC]: Likewise.
119687         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
119688         rm_eo.
119690         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
119691         (optimize_subexps, lower_subexp):
119692         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
119693         since the signed shift might overflow.  Use 1u<<31 instead.
119694         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119695         Likewise.
119696         * lib/regexec.c (check_dst_limits_calc_pos_1,
119697         check_subexp_matching_top): Likewise.
119699         * lib/regcomp.c (optimize_subexps, lower_subexp):
119700         Use CHAR_BIT rather than 8, for clarity.
119701         * lib/regexec.c (check_dst_limits_calc_pos_1):
119702         (check_subexp_matching_top): Likewise.
119703         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
119704         have to worry about portability issues when shifting it left.
119705         Remove no-longer-needed test for table_size > 0.
119706         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
119707         in a word, as the resulting behavior is undefined.
119708         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
119709         in one case, a <= should have been an <, and in another case the
119710         whole test was missing.
119711         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
119712         the standard name CHAR_BIT.
119713         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
119714         this is not true on one's complement and signed-magnitude hosts.
119716         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
119717         next_last_offset.
119718         (struct re_dfa_t): Remove unused member states_alloc.
119719         * lib/regcomp.c (init_dfa): Don't initialize unused members.
119721 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119723         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
119724         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
119725         and large-file glibc and in 32-bit large-file Solaris.
119727 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119729         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
119730         lengths fit in regoff_t; this isn't true if regoff_t is the same
119731         width as size_t.
119732         * lib/regex.c (re_search_internal): 5th arg is LAST_START
119733         (= START + RANGE) instead of RANGE.  This avoids overflow
119734         problems when regoff_t is the same width as size_t.
119735         All callers changed.
119736         (re_search_2_stub): Check for overflow when adding the
119737         sizes of the two strings.
119738         (re_search_stub): Check for overflow when adding START
119739         to RANGE; if it occurs, substitute the extreme value.
119741 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119743         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
119745 2005-08-31  Jim Meyering  <jim@meyering.net>
119747         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
119748         a pointer-to-const.
119749         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
119750         (register_state): Likewise.
119751         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
119752         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119753         (group_nodes_into_DFAstates): Likewise.
119755 2005-08-31  Jim Meyering  <jim@meyering.net>
119757         * check-module: Add a FIXME comment.
119759 2005-08-31  Eric Blake  <ebb9@byu.net>
119761         * modules/unistd-safer (Files): Add unistd--.h.
119762         * modules/stdio-safer (Files): Add stdio--.h.
119764 2005-08-31  Derek Price  <derek@ximbiot.com>
119766         * lib/getdelim.c (getdelim): Return EOF on EOF.
119767         Reported by Larry Jones <lawrence.jones@ugs.com>.
119769 2005-08-31  Bruno Haible  <bruno@clisp.org>
119771         Avoid unnecessary diffs in the generated lib/Makefile.am.
119772         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
119773         the generated files.
119774         (func_import): Don't set cmd.
119776 2005-08-31  Bruno Haible  <bruno@clisp.org>
119778         * lib/strstr.c: Include <stddef.h>, for NULL.
119779         * lib/strcasestr.c: Likewise.
119780         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119782 2005-08-31  Bruno Haible  <bruno@clisp.org>
119784         * gnulib-tool: New option --macro-prefix.
119785         (func_import): Use macro_prefix.
119786         (import): Handle option --macro-prefix.
119788 2005-08-31  Bruno Haible  <bruno@clisp.org>
119790         * gnulib-tool (import): Rename most ac_* variables to cached_*.
119791         Also use new variables cached_lgpl, cached_libtool.
119793 2005-08-31  Bruno Haible  <bruno@clisp.org>
119795         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
119796         always instantiating them.
119798 2005-08-31  Bruno Haible  <bruno@clisp.org>
119800         * gnulib-tool (func_import): Read the previous cached settings
119801         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
119802         earlier added by gnulib but are now dropped. Warn when a gnulib file
119803         overwrites a non-gnulib file.
119805 2005-08-31  Bruno Haible  <bruno@clisp.org>
119807         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
119808         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
119809         projects that don't keep autogenerated files in CVS. Put into
119810         actioncmd only the specified modules, not the transitive closure.
119812 2005-08-31  Bruno Haible  <bruno@clisp.org>
119814         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
119815         Create directories that shall be filled.
119816         (import): Don't look for gl_* macros in configure.ac. Recurse across
119817         all directories containing a gnulib-cache.m4 files, if meaningful.
119819 2005-08-31  Bruno Haible  <bruno@clisp.org>
119821         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
119822         (import): Set seen_libtool when we see gl_LIBTOOL.
119824 2005-08-31  Bruno Haible  <bruno@clisp.org>
119826         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
119827         declaration macro definitions from generated gnulib.m4.
119829 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
119831         * lib/iconvme.h: Add prototype for iconv_alloc.
119833 2005-08-29  Simon Josefsson  <jas@extundo.com>
119835         * lib/iconvme.c: Fix errno.
119837 2005-08-29  Bruno Haible  <bruno@clisp.org>
119839         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
119840         that it works when the directory contains spaces.
119842 2005-08-29  Bruno Haible  <bruno@clisp.org>
119844         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
119846 2005-08-29  Bruno Haible  <bruno@clisp.org>
119848         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
119849         Emit more advice.
119851 2005-08-29  Bruno Haible  <bruno@clisp.org>
119852         and Stepan Kasal  <kasal@ucw.cz>
119854         * check-module: If more parameters are given, check each of them
119855         separately; add more exceptions, as noted by Jim Meyering.
119856         (check_module): New procedure.
119857         (%exempt_header): Now contains all exceptions.
119859 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
119861         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
119863 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
119865         * lib/iconvme.c: Split iconv_string into iconv_alloc.
119867 2005-08-28  Bruno Haible  <bruno@clisp.org>
119869         * m4/gnulib-tool.m4: New file.
119871 2005-08-27  Jim Meyering  <jim@meyering.net>
119873         * modules/unistd-safer (Files): Add pipe-safer.c.
119874         * modules/fcntl-safer (Files): Add creat-safer.c.
119876 2005-08-27  Jim Meyering  <jim@meyering.net>
119878         * m4/stdlib-safer.m4: New file.  From coreutils.
119879         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
119880         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
119881         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
119882         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
119883         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
119885 2005-08-27  Jim Meyering  <jim@meyering.net>
119887         * lib/fopen-safer.c: Merge minor changes from coreutils.
119888         * lib/dup-safer.c: Likewise.
119889         * lib/fd-safer.c: Likewise.
119891         Merge from coreutils.
119892         * lib/stdio--.h: New file.
119893         * lib/stdlib--.h: New file.
119894         * lib/mkstemp-safer.c: New file.
119896         GNU tar needs these.
119897         * lib/pipe-safer.c: New file.
119898         * lib/creat-safer.c: New file.
119899         * lib/fcntl--.h (creat): Define to creat_safer.
119900         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
119901         * lib/unistd--.h (pipe): Define to pipe_safer.
119902         * lib/unistd-safer.h: Declare pipe_safer.
119904 2005-08-26  Simon Josefsson  <jas@extundo.com>
119906         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
119907         Haible <bruno@clisp.org>.
119909 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
119911         * lib/regex_internal.h: Remove all references to
119912         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
119913         or better.
119914         (bitset_not, bitset_merge, bitset_not_merge):
119915         (bitset_mask, re_string_allocate, re_string_construct):
119916         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
119917         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
119918         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
119919         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
119920         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119921         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119922         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
119923         (re_acquire_state_context):
119924         Remove unnecessary forward decls.
119925         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
119926         Put __attribute at function definition,
119927         now that the function decl has been removed.
119928         * lib/regex_internal.c (re_string_peek_byte_case):
119929         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
119930         Likewise.
119932 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
119934         * m4/regex.m4: Add AC_PREREQ(2.50).
119935         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
119937 2005-08-25  Simon Josefsson  <jas@extundo.com>
119939         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
119940         __fsetlocking.
119942 2005-08-25  Simon Josefsson  <jas@extundo.com>
119944         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
119945         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
119946         GLIBC specific code.
119948 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119950         Make regex safe for g++.  This fixes one real bug (an "err"
119951         that should have been "*err").  g++ problem reported by
119952         Sam Steingold.
119953         * lib/regex_internal.h (re_calloc): New macro, consistent with
119954         re_malloc etc.  All callers of calloc changed to use re_calloc.
119955         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
119956         not int.  All callers changed.
119957         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
119958         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
119959         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
119960         (find_recover_state): Change "err" to "*err"; this fixes what
119961         appears to be a real bug.
119962         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
119963         versus int.
119965 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119967         * modules/regex (Depends-on): Add malloc, since the code
119968         assumes that !malloc(0) means failure.
119970 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119972         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
119974         alloca modernization/simplification for regex.
119975         * lib/regex.c: Remove portability cruft for alloca.  This no longer
119976         needs to be at the start of the file, and can be moved into
119977         regex_internal.h and simplified.
119978         * lib/regex_internal.h: Include <alloca.h>.
119979         (__libc_use_alloca) [!defined _LIBC]: New macro.
119980         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
119981         now works outside glibc.
119983 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119985         * config/srclist.txt: Add glibc bugs 1241, 1245.
119987 2005-08-25  Jim Meyering  <jim@meyering.net>
119989         * lib/open-safer.c: Include <config.h>.
119990         Otherwise, we'd lose LARGEFILE support in any file using
119991         e.g. "fcntl--.h"
119993 2005-08-25  Bruno Haible  <bruno@clisp.org>
119995         * m4/minmax.m4: Require autoconf 2.52.
119996         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
119997         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
119998         alternatives of translit over the alphabet.
119999         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
120001 2005-08-24  Simon Josefsson  <jas@extundo.com>
120003         * tests/test-getpass.c: New file.
120005 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120007         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
120008         for GNU regex features.
120010 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120012         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
120013         * lib/regex.h (regerror): Likewise.
120015         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
120016         requires this.  (The code never needed it.)
120018         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
120019         All uses of recently-renamed identifiers changed to use the new,
120020         POSIX-compliant names.  The code will build and run just fine
120021         without these changes, but it's better to eat our own dog food
120022         and use the standard-conforming names.
120024         * lib/regex.h: Fix a multitude of POSIX name space violations.
120025         These changes have an effect only for programs that define
120026         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
120027         do not change anything for programs compiled in the normal way.
120028         Also, there is no effect on the ABI.
120030         (_REGEX_SOURCE): New macro.
120031         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
120032         defined and _GNU_SOURCE is not; this fixes a name space violation.
120034         Rename the following macros to obey POSIX requirements.
120035         The old names are still visible as macros if _REGEX_SOURCE is defined.
120036         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
120037         RE_BACKSLASH_ESCAPE_IN_LISTS.
120038         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
120039         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
120040         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
120041         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
120042         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
120043         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
120044         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
120045         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
120046         (REG_INTERVALS): renamed from RE_INTERVALS.
120047         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
120048         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
120049         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
120050         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
120051         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
120052         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
120053         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
120054         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
120055         RE_UNMATCHED_RIGHT_PAREN_ORD.
120056         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
120057         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
120058         (REG_DEBUG): renamed from RE_DEBUG.
120059         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
120060         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
120061         unusual, since we can't clash with the POSIX REG_ICASE.
120062         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
120063         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
120064         (REG_NO_SUB): renamed from RE_NO_SUB.
120065         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
120066         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
120067         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
120068         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
120069         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
120070         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
120071         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
120072         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
120073         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
120074         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
120075         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
120076         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
120077         RE_SYNTAX_POSIX_MINIMAL_BASIC.
120078         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
120079         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
120080         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
120081         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
120082         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
120083         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
120084         (REG_FIXED): Renamed from REGS_FIXED.
120085         (REG_NREGS): Renamed from RE_NREGS.
120087         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
120088         of other REG_* macros, since POSIX says the user is allowed to
120089         #undef these macros selectively.
120091         (reg_errcode_t): Update comment stating what other tables need
120092         to be consistent.
120094         Rename the following enum values to obey POSIX requirements.
120095         The old names are still visible as macros.
120096         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
120097         is not defined, since GNU is supposed to be a superset of POSIX as
120098         much as possible, and since we want reg_errcode_t to be a signed
120099         type for implementation consistency.
120100         (_REG_NOERROR): Renamed from REG_NOERROR.
120101         (_REG_NOMATCH): Renamed from REG_NOMATCH.
120102         (_REG_BADPAT): Renamed from REG_BADPAT.
120103         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
120104         (_REG_ECTYPE): Renamed from REG_ECTYPE.
120105         (_REG_EESCAPE): Renamed from REG_EESCAPE.
120106         (_REG_ESUBREG): Renamed from REG_ESUBREG.
120107         (_REG_EBRACK): Renamed from REG_EBRACK.
120108         (_REG_EPAREN): Renamed from REG_EPAREN.
120109         (_REG_EBRACE): Renamed from REG_EBRACE.
120110         (_REG_BADBR): Renamed from REG_BADBR.
120111         (_REG_ERANGE): Renamed from REG_ERANGE.
120112         (_REG_ESPACE): Renamed from REG_ESPACE.
120113         (_REG_BADRPT): Renamed from REG_BADRPT.
120114         (_REG_EEND): Renamed from REG_EEND.
120115         (_REG_ESIZE): Renamed from REG_ESIZE.
120116         (_REG_ERPAREN): Renamed from REG_ERPAREN.
120117         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
120118         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
120119         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
120120         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
120122         (_REG_RE_NAME, _REG_RM_NAME): New macros.
120123         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
120124         changed.  But support the old name if the new one is not defined
120125         and if _REGEX_SOURCE.
120127         Change the following member names in struct re_pattern_buffer.
120128         The old names are still supported if !_REGEX_SOURCE.
120129         The new names are always supported, regardless of _REGEX_SOURCE.
120130         (re_buffer): Renamed from buffer.
120131         (re_allocated): Renamed from allocated.
120132         (re_used): Renamed from used.
120133         (re_syntax): Renamed from syntax.
120134         (re_fastmap): Renamed from fastmap.
120135         (re_translate): Renamed from translate.
120136         (re_can_be_null): Renamed from can_be_null.
120137         (re_regs_allocated): Renamed from regs_allocated.
120138         (re_fastmap_accurate): Renamed from fastmap_accurate.
120139         (re_no_sub): Renamed from no_sub.
120140         (re_not_bol): Renamed from not_bol.
120141         (re_not_eol): Renamed from not_eol.
120142         (re_newline_anchor): Renamed from newline_anchor.
120144         Change the following member names in struct re_registers.
120145         The old names are still supported if !_REGEX_SOURCE.
120146         The new names are always supported, regardless of _REGEX_SOURCE.
120147         (rm_num_regs): Renamed from num_regs.
120148         (rm_start): Renamed from start.
120149         (rm_end): Renamed from end.
120151         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
120152         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
120153         Prepend __ to parameter names.
120155         Undo yesterday's changes.
120157 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120159         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
120160         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
120161         lib/regex.c.
120163 2005-08-24  Jim Meyering  <jim@meyering.net>
120165         Sync from coreutils.
120166         * m4/fcntl-safer.m4: New file.
120168         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
120169         and object files for this module.
120171 2005-08-24  Jim Meyering  <jim@meyering.net>
120173         Sync from coreutils.
120174         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
120176 2005-08-24  Jim Meyering  <jim@meyering.net>
120178         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
120179         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
120181 2005-08-24  Jim Meyering  <jim@meyering.net>
120183         * modules/fcntl-safer: New module.
120184         * modules/fts (Depends-on): Add fcntl-safer.
120185         * MODULES.html.sh (File descriptor based Input/Output):
120186         Add fcntl-safer.
120188 2005-08-24  Bruno Haible  <bruno@clisp.org>
120190         Support for unit test modules.
120191         * modules/README: Mention tests modules.
120192         * modules/TEMPLATE-TESTS: New file.
120193         * gnulib-tool: New options --extract-tests-module, --with-tests and
120194         --tests-base (unused for the moment).
120195         (testsbase, inctests): New variables.
120196         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
120197         (func_verify_module): Exclude TEMPLATE-TESTS.
120198         (func_verify_nontests_module, func_verify_tests_module): New functions.
120199         (func_get_dependencies): Add implicit dependency for tests modules.
120200         (func_get_tests_module): New function.
120201         (func_modules_transitive_closure): When --with-tests was specified,
120202         include the unit tests as well, unless explicitly avoided.
120203         (func_emit_lib_Makefile_am): Ignore the tests modules here.
120204         (func_emit_tests_Makefile_am): New function.
120205         (func_create_testdir): When --with-tests was specified, emit a
120206         tests/ directory.
120207         * MODULES.html.sh (Future developments): Update.
120209 2005-08-24  Bruno Haible  <bruno@clisp.org>
120211         * modules/tls-tests: New file.
120212         * tests/test-tls.c: New file, from GNU gettext.
120214 2005-08-24  Bruno Haible  <bruno@clisp.org>
120216         * modules/lock-tests: New file.
120217         * tests/test-lock.c: New file, from GNU gettext.
120219 2005-08-24  Bruno Haible  <bruno@clisp.org>
120221         * lib/lock.h: Add multiple inclusion guard.
120222         * lib/tls.h: Add multiple inclusion guard.
120224 2005-08-24  Bruno Haible  <bruno@clisp.org>
120226         * gnulib-tool: Add support for the --aux-dir option to
120227         --create-testdir, --create-megatestdir, --test, --megatest.
120228         (func_create_testdir, func_create_megatestdir): Optionally emit a
120229         AC_CONFIG_AUX_DIR directive.
120230         (create-testdir, create-megatestdir, test, megatest): Provide a
120231         default value for $auxdir.
120233 2005-08-24  Bruno Haible  <bruno@clisp.org>
120235         * gnulib-tool (import): Use compound statement instead of subshell
120236         where possible.
120238 2005-08-24  Bruno Haible  <bruno@clisp.org>
120240         * gnulib-tool (import): Change --aux-dir default to "build-aux".
120242 2005-08-24  Bruno Haible  <bruno@clisp.org>
120244         * gnulib-tool (func_version): Update.
120246 2005-08-24  Bruno Haible  <bruno@clisp.org>
120248         * gnulib-tool (func_import, func_create_testdir,
120249         func_create_megatestdir): Quote all autoconf macro arguments.
120251 2005-08-24  Bruno Haible  <bruno@clisp.org>
120253         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
120254         option --force, because --force causes the aclocal.m4 of each
120255         subdirectory to be newer than the corresponding config.h.in.
120257 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120259         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
120260         All contents moved to gl_REGEX.
120261         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
120262         assume that it does.
120264 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120266         * lib/regex.h (REG_NOSYS)
120267         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
120268         Define, since POSIX requires it as of 2001.
120269         (_REG_ENOSYS)
120270         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
120271         New private symbol, used to keep the enum signed in all cases.
120272         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
120273         Youngman in
120274         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
120276         * lib/regex_internal.c (re_string_skip_chars, register_state):
120277         (calc_state_hash):
120278         Remove forward decls; no longer needed now that we use prototypes.
120279         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
120280         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
120281         (clean_state_log_if_needed): Likewise.
120283 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120285         * config/srclist.txt: Add glibc bugs 1231-1233.
120287 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120289         Fix problems reported by Sam Steingold in
120290         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
120291         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
120292         assumed that reg_errcode_t is a signed type, which is not
120293         necessarily true if _XOPEN_SOURCE is not defined.
120294         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
120295         since some compilers warn about it otherwise.
120297 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120299         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
120300         (init_word_char, create_initial_state, duplicate_node_closure):
120301         (fetch_token, peek_token_bracket, build_range_exp):
120302         (build_collating_symbol): Remove forward decls; no longer needed
120303         now that we use prototypes.
120305         * lib/regcomp.c:
120306         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
120307         (re_compile_fastmap_iter, regcomp, regerror, regfree):
120308         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
120309         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
120310         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
120311         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
120312         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
120313         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
120314         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
120315         (build_range_exp, build_collating_symbol, parse_bracket_exp):
120316         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
120317         (build_charclass, build_charclass_op, fetch_number, create_tree):
120318         (create_token_tree, mark_opt_subexp, duplicate_tree):
120319         Use prototypes rather than old-style definitions.
120321         * lib/regex_internal.c:
120322         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
120323         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
120324         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120325         (re_string_reconstruct, re_string_peek_byte_case):
120326         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
120327         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120328         (re_node_set_init_copy, re_node_set_add_intersect):
120329         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120330         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120331         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120332         (re_acquire_state, re_acquire_state_context, register_state):
120333         (create_ci_newstate, create_cd_newstate, free_state):
120334         Likewise.
120335         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
120336         re_search_2):
120337         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
120338         (re_search_internal, prune_impossible_nodes):
120339         (acquire_init_state_context, check_matching, static):
120340         (check_halt_node_context, check_halt_state_context, proceed_next_node):
120341         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
120342         (update_regs, sift_states_backward, build_sifted_states):
120343         (clean_state_log_if_needed, merge_state_array):
120344         (update_cur_sifted_state, add_epsilon_src_nodes):
120345         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
120346         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
120347         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
120348         (find_recover_state, check_subexp_matching_top, transit_state_mb):
120349         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
120350         (check_arrival, check_arrival_add_next_nodes):
120351         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120352         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120353         (check_node_accept_bytes, check_node_accept, extend_buffers):
120354         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
120355         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
120356         (sift_ctx_init):
120357         Likewise.
120359         * lib/regex_internal.h:
120360         (re_string_allocate, re_string_construct, re_string_reconstruct):
120361         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
120362         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
120363         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
120364         (re_string_context_at, re_string_peek_byte_case):
120365         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
120366         is defined, since we now use prototypes always.
120368         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
120369         C89 or better.  All uses removed.
120371 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120373         * config/srclist.txt: Add glibc bugs 1220-1227.
120375 2005-08-20  Jim Meyering  <jim@meyering.net>
120377         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
120378         of unused local, dfa.
120380 2005-08-20  Bruno Haible  <bruno@clisp.org>
120382         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
120384 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120386         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
120387         (re_node_set_insert_last, re_dfa_add_node):
120388         Rename local variables to avoid GCC shadowing warnings.
120390 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120392         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
120393         [defined lint]: Suppress bogus uninitialized-variable warnings.
120395         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
120396         and let the caller return REG_ESPACE if out of space.  This
120397         removes an uninitialied-variable warning with GCC 4.0.1, and also
120398         avoids taking the address of a local variable.  All callers
120399         changed.
120401 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120403         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
120404         $LIBCSRC/posix/regexec.c.
120405         Add glibc bug 1217 for regcomp.c.
120407 2005-08-19  Jim Meyering  <jim@meyering.net>
120409         * lib/regexec.c (proceed_next_node): Redo local variables to
120410         avoid GCC shadowing warnings.
120412 2005-08-18  Bruno Haible  <bruno@clisp.org>
120414         * lib/strstr.c (strstr): Fix return value in multibyte case.
120415         * lib/strcasestr.c (strcasestr): Likewise.
120417 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120419         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
120421 2005-08-17  Jim Meyering  <jim@meyering.net>
120423         Make the %s format (seconds since the epoch) work for a negative
120424         number and when used with a zero-padded field width, e.g. %015s.
120426         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
120427         label so that it precedes the code to set `digits'.  Otherwise,
120428         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
120429         print `00-22'.  Now, it prints `-0022', as it should.
120431 2005-08-17  Bruno Haible  <bruno@clisp.org>
120433         * modules/strstr (Files): Add m4/mbrtowc.m4.
120434         (Depends-on): Add mbuiter.
120436 2005-08-17  Bruno Haible  <bruno@clisp.org>
120438         * modules/strcasestr: New file.
120439         * MODULES.html.sh (String handling, based on ANSI C 89): Add
120440         strcasestr.
120442 2005-08-17  Bruno Haible  <bruno@clisp.org>
120444         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
120446 2005-08-17  Bruno Haible  <bruno@clisp.org>
120448         * modules/mbuiter: New file.
120449         * MODULES.html.sh (Extended multibyte and wide character utilities):
120450         Add mbuiter.
120452 2005-08-17  Bruno Haible  <bruno@clisp.org>
120454         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
120455         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
120457 2005-08-17  Bruno Haible  <bruno@clisp.org>
120459         * m4/strcasestr.m4: New file.
120461 2005-08-17  Bruno Haible  <bruno@clisp.org>
120463         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
120464         * lib/strstr.c: Completely rewritten, with multibyte locale support.
120466 2005-08-17  Bruno Haible  <bruno@clisp.org>
120468         * lib/strcasestr.h: New file.
120469         * lib/strcasestr.c: New file.
120471 2005-08-17  Bruno Haible  <bruno@clisp.org>
120473         * lib/strcasecmp.c: Use mbuiter.h.
120475 2005-08-17  Bruno Haible  <bruno@clisp.org>
120477         * lib/mbuiter.h: New file.
120479 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
120481         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
120482         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
120483         and gl_GETOPT are both invoked via different paths (as happens
120484         with GNU tar CVS because it uses both argp and getopt), the former
120485         wins.
120487 2005-08-16  Bruno Haible  <bruno@clisp.org>
120489         * modules/tls: New file.
120490         * MODULES.html.sh (Multithreading): Add tls.
120492 2005-08-16  Bruno Haible  <bruno@clisp.org>
120494         * modules/strnlen1: New file.
120495         * MODULES.html.sh (String handling): Add strnlen1.
120497 2005-08-16  Bruno Haible  <bruno@clisp.org>
120499         * modules/strcase (Files): Add m4/mbrtowc.m4.
120500         (Depends-on): Add strnlen1, mbchar.
120502 2005-08-16  Bruno Haible  <bruno@clisp.org>
120504         * modules/mbiter: New file.
120505         * MODULES.html.sh (Extended multibyte and wide character utilities):
120506         Add mbiter.
120508 2005-08-16  Bruno Haible  <bruno@clisp.org>
120510         * modules/mbfile: New file.
120511         * MODULES.html.sh (Extended multibyte and wide character utilities):
120512         Add mbfile.
120514 2005-08-16  Bruno Haible  <bruno@clisp.org>
120516         * modules/mbchar: New file.
120517         * MODULES.html.sh (Extended multibyte and wide character utilities):
120518         New section.
120520 2005-08-16  Bruno Haible  <bruno@clisp.org>
120522         * m4/tls.m4: New file, from GNU gettext.
120524 2005-08-16  Bruno Haible  <bruno@clisp.org>
120526         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
120527         always.
120528         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
120530 2005-08-16  Bruno Haible  <bruno@clisp.org>
120532         * m4/mbiter.m4: New file.
120534 2005-08-16  Bruno Haible  <bruno@clisp.org>
120536         * m4/mbfile.m4: New file.
120538 2005-08-16  Bruno Haible  <bruno@clisp.org>
120540         * m4/mbchar.m4: New file.
120542 2005-08-16  Bruno Haible  <bruno@clisp.org>
120544         * lib/tls.h: New file, from GNU gettext.
120545         * lib/tls.c: New file, from GNU gettext.
120547 2005-08-16  Bruno Haible  <bruno@clisp.org>
120549         * lib/strnlen1.h: New file.
120550         * lib/strnlen1.c: New file.
120552 2005-08-16  Bruno Haible  <bruno@clisp.org>
120554         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
120555         (mbi_init): Update.
120556         (mbi_avail, mbi_advance): Let the iteration end before the terminating
120557         NUL byte, not after it.
120559 2005-08-16  Bruno Haible  <bruno@clisp.org>
120561         * lib/strcase.h (strcasecmp): Add note in comments.
120562         * lib/strncasecmp.c: Use code from strcasecmp.c.
120563         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
120564         (strcasecmp): Work correctly in multibyte locales.
120566 2005-08-16  Bruno Haible  <bruno@clisp.org>
120568         * lib/mbiter.h: New file.
120570 2005-08-16  Bruno Haible  <bruno@clisp.org>
120572         * lib/mbfile.h: New file.
120574 2005-08-16  Bruno Haible  <bruno@clisp.org>
120576         * lib/mbchar.h: New file.
120577         * lib/mbchar.c: New file.
120579 2005-08-16  Bruno Haible  <bruno@clisp.org>
120581         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
120582         the valid ones. Makes the comparison operations transitive:
120583         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
120584         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
120586 2005-08-15  Simon Josefsson  <jas@extundo.com>
120588         * modules/ssize_t (License): Change to 'unlimited'.
120590         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
120592 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
120594         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
120595         Add comments for each pending glibc patch.
120597 2005-08-15  Bruno Haible  <bruno@clisp.org>
120599         * lib/regex.h (__restrict_arr): Don't define to __restrict if
120600         __cplusplus is defined.
120602 2005-08-14  Jim Meyering  <jim@meyering.net>
120604         Sync from coreutils.
120606         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
120607         Use the hash-table-based cycle-detection code not just when
120608         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
120609         Reported by James Youngman in
120610         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
120611         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
120612         FTS_TIGHT_CYCLE_CHECK.
120613         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
120614         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
120615         once again.
120616         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
120617         * lib/fts.c (fd_safer): Remove decl.
120618         Include fcntl--.h rather than unistd-safer.h
120619         (fts_safe_changedir): Don't call fd_safer; no longer needed
120620         now that we include fcntl--.h.
120622 2005-08-12  Simon Josefsson  <jas@extundo.com>
120624         * modules/getndelim2: Use ssize_t module.
120625         * modules/getnline: Likewise.
120626         * modules/safe-read: Likewise.
120627         * modules/xreadlink: Likewise.
120629         * modules/ssize_t: New file.
120631 2005-08-12  Simon Josefsson  <jas@extundo.com>
120633         * m4/readline.m4: Look for termcap, curses or ncurses if required.
120635 2005-08-12  Simon Josefsson  <jas@extundo.com>
120637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120638         ssize_t.
120640 2005-08-12  Simon Josefsson  <jas@extundo.com>
120642         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
120643         readline, getdelim and check_version.
120644         (Support for systems lacking ISO C 99: Sizes of integer types):
120645         Add size_max.
120647 2005-08-12  Bruno Haible  <bruno@clisp.org>
120649         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
120651 2005-08-11  Simon Josefsson  <jas@extundo.com>
120653         * modules/readline: New file.
120655         * modules/strnlen (Files): Add strnlen.h.
120657 2005-08-11  Simon Josefsson  <jas@extundo.com>
120659         * m4/readline.m4: New file.
120661 2005-08-11  Simon Josefsson  <jas@extundo.com>
120663         * lib/readline.h, readline.c: New file.
120665 2005-08-11  Simon Josefsson  <jas@extundo.com>
120667         * doc/gnulib.texi (Initial import, Finishing touches): Mention
120668         gl_AVOID.
120670 2005-08-11  Bruno Haible  <bruno@clisp.org>
120672         * lib/strnlen.h (strnlen): Change parameter name to match comment.
120674 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
120676         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
120678 2005-08-10  Simon Josefsson  <jas@extundo.com>
120680         * tests/test-iconvme.c: New file.
120682 2005-08-10  Simon Josefsson  <jas@extundo.com>
120684         * m4/strnlen.m4: New file.
120686         * m4/strndup.m4: Don't check for strnlen declaration, done in
120687         strnlen.m4.
120689 2005-08-10  Simon Josefsson  <jas@extundo.com>
120691         * lib/strndup.c: Use strnlen.h.
120693         * lib/strnlen.h: New file.
120695 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120697         * README: Typos.
120699 2005-08-02  Simon Josefsson  <jas@extundo.com>
120701         * modules/readline: New file.
120703 2005-08-02  Simon Josefsson  <jas@extundo.com>
120705         * modules/getdelim: New file.
120707         * modules/getline: Rewrite, don't use getndelim2.
120709 2005-08-02  Simon Josefsson  <jas@extundo.com>
120711         * m4/getline.m4: Separate out getdelim stuff into separate module.
120713         * m4/getdelim.m4: New file.
120715 2005-08-02  Simon Josefsson  <jas@extundo.com>
120717         * lib/getline.h, getline.c: Rewrite.
120719         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
120721 2005-07-31  Bruno Haible  <bruno@clisp.org>
120723         * lib/lock.h (gl_lock_initializer): New macro.
120724         (gl_lock_define_initialized): Use it.
120725         (gl_rwlock_initializer): New macro.
120726         (gl_rwlock_define_initialized): Use it.
120727         (gl_recursive_lock_initializer): New macro.
120728         (gl_recursive_lock_define_initialized): Use it.
120730 2005-07-30  Karl Berry  <karl@gnu.org>
120732         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
120733         Report from Ben Pfaff, regarding getopt.
120735 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
120737         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
120738         normal way.
120739         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
120740         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
120741         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
120742         (gl_GETOPT): Use the new macros.  Most of the implementation
120743         is moved to the new macros.  This is for programs like Emacs
120744         that don't want all the functionality of gl_GETOPT.
120746 2005-07-26  Bruno Haible  <bruno@clisp.org>
120748         * m4/lock.m4: Update from GNU gettext.
120750 2005-07-26  Bruno Haible  <bruno@clisp.org>
120752         * lib/lock.h: Update from GNU gettext.
120753         * lib/lock.c: Update from GNU gettext.
120755 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
120757         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
120758         obsolescent AC_TRY_RUN.  Include the default includes files, for
120759         'exit'.
120761 2005-07-24  Bruno Haible  <bruno@clisp.org>
120763         * modules/visibility: New file.
120764         * MODULES.html.sh (Misc): Add visibility.
120766 2005-07-24  Bruno Haible  <bruno@clisp.org>
120768         * m4/visibility.m4: New file.
120770 2005-07-24  Bruno Haible  <bruno@clisp.org>
120772         * doc/visibility.texi: New file.
120774 2005-07-22  Bruno Haible  <bruno@clisp.org>
120776         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
120777         $(ALLOCA_H), redundant through BUILT_SOURCES.
120778         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
120779         redundant through BUILT_SOURCES.
120780         * modules/byteswap (Makefile.am): Remove explicit dependency on
120781         $(BYTESWAP_H), redundant through BUILT_SOURCES.
120782         * modules/fnmatch (Makefile.am): Remove explicit dependency on
120783         $(FNMATCH_H), redundant through BUILT_SOURCES.
120784         * modules/getopt (Makefile.am): Remove explicit dependency on
120785         $(GETOPT_H), redundant through BUILT_SOURCES.
120786         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
120787         redundant through BUILT_SOURCES.
120788         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
120789         redundant through BUILT_SOURCES.
120790         * modules/stdbool (Makefile.am): Remove explicit dependency on
120791         $(STDBOOL_H), redundant through BUILT_SOURCES.
120792         * modules/stdint (Makefile.am): Remove explicit dependency on
120793         $(STDINT_H), redundant through BUILT_SOURCES.
120794         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
120795         Remove explicit dependency on $(SYSEXITS_H).
120796         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
120798 2005-07-18  Simon Josefsson  <jas@extundo.com>
120800         * lib/check-version.c (check_version): Accept identical versions too.
120802 2005-07-18  Bruno Haible  <bruno@clisp.org>
120804         * modules/lock: New file.
120805         * MODULES.html.sh (Multithreading): New section.
120807 2005-07-18  Bruno Haible  <bruno@clisp.org>
120809         * m4/lock.m4: New file, from GNU gettext.
120811 2005-07-18  Bruno Haible  <bruno@clisp.org>
120813         * lib/lock.h: New file, from GNU gettext.
120814         * lib/lock.c: New file, from GNU gettext.
120816 2005-07-18  Bruno Haible  <bruno@clisp.org>
120818         * lib/lock.h (gl_once_t): New type.
120819         (gl_once_define, gl_once): New macros.
120820         * lib/lock.c (fresh_once): New variable.
120821         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
120822         functions.
120824 2005-07-16  Simon Josefsson  <jas@extundo.com>
120826         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
120827         workaround, suggested by Bruno.
120829 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120831         * modules/xalloc (Depends-on): Add xalloc-die.
120832         * modules/xvasprintf (Depends-on): Add xalloc-die.
120834 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120836         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
120837         with a minor change.
120839 2005-07-15  Bruno Haible  <bruno@clisp.org>
120841         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
120842         When using lib/poll.c, define poll as rpl_poll.
120844 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
120846         * modules/argp (Depends-on): Remove unlocked-io.
120848 2005-07-14  Derek Price  <derek@ximbiot.com>
120850         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
120851         for glob symlink bug.
120853 2005-07-14  Bruno Haible  <bruno@clisp.org>
120855         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
120856         Instead, test for *_unlocked function declarations directly.
120858 2005-07-11  Simon Josefsson  <jas@extundo.com>
120860         * modules/size_max: New file.
120862         * modules/xsize: Depend on size_max module for size_max.m4.
120864 2005-07-11  Simon Josefsson  <jas@extundo.com>
120866         * lib/size_max.h: New file.
120868 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
120870         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
120871         copyright symbol and the year.
120872         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
120873         (version_etc_va): Use parameterized copyright notice.
120874         Reword to conform to the current GNU coding standards.
120876 2005-07-11  Karl Berry  <karl@gnu.org>
120878         * doc/gnulib.texi (Quoting): new node.
120879         (Initial import): more info, from Patrice.
120881 2005-07-11  Bruno Haible  <bruno@clisp.org>
120883         * gnulib-tool (func_usage): Document option --avoid.
120884         (Command line options): Handle --avoid.
120885         (func_acceptable): New function.
120886         (func_modules_transitive_closure): Use it.
120888 2005-07-11  Bruno Haible  <bruno@clisp.org>
120890         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
120891         Reported by Jim Meyering.
120893 2005-07-10  Bruno Haible  <bruno@clisp.org>
120895         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
120896         Needed when size_t is smaller than 'unsigned int'.
120897         Reported by Paul Eggert.
120899 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120901         * modules/argp (Depends-on): Add unlocked-io
120903 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120905         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
120906         block of defines.
120908 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
120910         * config/srclist.txt: Comment out regcomp.c, since we have a porting
120911         fix now.
120913 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
120914         and Paul Eggert  <eggert@cs.ucla.edu>
120916         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
120917         in wint_t, not wchar_t.  Remove now-unnecessary cast.
120919 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120921         * modules/regex (Files): Add lib/regex_internal.c,
120922         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
120923         (Depends-on): Add extensions.
120924         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
120926 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120928         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
120929         pathconf.
120930         * m4/same.m4 (gl_SAME): Likewise.
120931         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
120933         * m4/regex.m4: Adjust to new libc regex implementation.
120934         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
120935         all the .c and .h parts of (the new) regex.
120936         Quote the m4 stuff better.
120937         Check for RE_ICASE bug of old gnulib.
120938         Check for REG_STARTEND of recent libc.
120939         Rename local variables from jm_* to gl_*.
120940         Quote operand of "test -f".
120941         Say "recent enough" version of libc, not "version 2".
120942         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
120943         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
120944         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
120945         Remove check for btowc, isascii.
120946         Require AM_LANGINFO_CODESET.
120948 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120950         * lib/regex.c, regex.h: Sync from libc.
120951         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
120952         * lib/regexec.c:
120953         New files, synced from libc, except that regex_internal.h
120954         currently has a small porting fix.
120956 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120958         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
120959         regex_internal.c, regexec.c.
120960         Add regex_internal.h too, but as a comment, since the libc version
120961         is currently broken in gnulib mode.
120963 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
120965         Support programs like Emacs that use gnulib but not gettext.
120966         * MODULES.html.sh (Internationalization functions): Add gettext-h.
120967         * modules/gettext-h: New file.
120968         * modules/gettext (Files): Remove lib/gettext.h.
120969         (Depends-on): Add gettext-h.
120970         (Makefile.am): Remove lib_SOURCES.
120971         * modules/argmatch, modules/c-stack, modules/closeout:
120972         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
120973         * modules/execute, modules/file-type, modules/getaddrinfo:
120974         * modules/getopt, modules/human, modules/javacomp:
120975         * modules/javaexec, modules/mkdir-p, modules/obstack:
120976         * modules/openat, modules/pagealign_alloc, modules/pipe:
120977         * modules/quotearg, modules/regex, modules/rpmatch:
120978         * modules/unicodeio, modules/userspec, modules/version-etc:
120979         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
120980         * modules/xsetenv:
120981         Depend on gettext-h, not gettext.
120983 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
120985         * gnulib-tool (func_import): Add support for 'public domain' license.
120986         * modules/alloca, modules/atexit, modules/memmove:
120987         Now public domain, not GPL.
120988         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
120989         * modules/realloc, modules/strerror, modules/strtod:
120990         Now LGPL, not GPL.
120992 2005-07-05  Bruno Haible  <bruno@clisp.org>
120994         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
120995         autoconf CVS. Needed for mingw.
120997 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120999         Remove the dependency of the strftime module on the tzset module.
121000         * modules/strftime (Depends-on): Remove dependency on tzset.
121002 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121004         Remove the dependency of the strftime module on the tzset module.
121005         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
121006         gl_FUNC_TZSET_CLOBBER.
121008 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121010         Remove the dependency of the strftime module on the tzset module.
121011         * lib/strftime.c (my_strftime)
121012         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
121013         Copy the input structure, to work around some of the bug with
121014         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
121015         Solaris releases, you should also use the tzset module, but we won't
121016         require it as a dependency any more since we don't want LGPLed code
121017         to depend on GPLed code.
121019 2005-07-02  Jim Meyering  <jim@meyering.net>
121021         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
121022         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
121023         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
121024         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
121026 2005-07-02  Jim Meyering  <jim@meyering.net>
121028         * lib/backupfile.c (backup_args): Change a `0' to NULL.
121030 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
121032         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
121033         declares only 'struct timespec;' (!).
121035 2005-07-01  Jim Meyering  <jim@meyering.net>
121037         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
121038         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
121039         * lib/save-cwd.c, tempname.c:
121040         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
121041         and don't include <sys/file.h>).
121043 2005-06-29  Jim Meyering  <jim@meyering.net>
121045         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
121046         type name.  Use the variable name instead.
121047         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
121048         Likewise.
121050 2005-06-28  Simon Josefsson  <jas@extundo.com>
121052         * modules/check-version (Files): Add check-version.m4.
121054 2005-06-28  Simon Josefsson  <jas@extundo.com>
121056         * m4/check-version.m4: New file, suggested by Jim Meyering
121057         <jim@meyering.net>.
121059 2005-06-28  Simon Josefsson  <jas@extundo.com>
121061         * lib/check-version.h, lib/check-version.c: New files.
121063 2005-06-28  Simon Josefsson  <jas@extundo.com>
121065         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
121066         collision with global variable.  Better indentation.  Don't
121067         increment buffer pointer beyond buffer end.  Based on comments
121068         from Paul Eggert <eggert@cs.ucla.edu>.
121070         * lib/base64.h: Indent.
121072 2005-06-28  Simon Josefsson  <jas@extundo.com>
121074         * doc/gnulib.texi (Library version handling): New section.
121076 2005-06-28  Jim Meyering  <jim@meyering.net>
121078         * check-module (find_included_lib_files): Hard-code another
121079         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
121080         but modules/fts-lgpl (correctly) does not list those files.
121082         * modules/canonicalize (Files): Add lib/pathmax.h.
121084 2005-06-25  Simon Josefsson  <jas@extundo.com>
121086         * modules/check-version: New file.
121088 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
121090         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
121091         initializer of struct addrinfo, as an indication that we don't
121092         care how many members the structure has.
121094 2005-06-24  Derek Price  <derek@ximbiot.com>
121095         and Bruno Haible  <bruno@clisp.org>
121097         Remove stat module & update lstat.
121098         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
121099         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
121100         * m4/stat.m4: Remove this file.
121102 2005-06-24  Derek Price  <derek@ximbiot.com>
121103         and Bruno Haible  <bruno@clisp.org>
121105         Remove stat module & update lstat.
121106         * lib/stat.c: Remove this file...
121107         (slash_aware_lstat): ...moving this content and its support...
121108         * lib/lstat.c (rpl_lstat): ...into here.
121109         * lib/lstat.h: New file.
121111 2005-06-24  Derek Price  <derek@ximbiot.com>
121112         and Bruno Haible  <bruno@clisp.org>
121114         Remove stat module & update lstat.
121115         * config/srclist.txt (libc sources): Remove stat.
121117 2005-06-24  Derek Price  <derek@ximbiot.com>
121118         and Bruno Haible  <bruno@clisp.org>
121120         Remove stat module & update lstat.
121121         * MODULES.html.sh (stat): Remove.
121122         * MODULES.html: Regenerated.
121123         * modules/lstat (Description): Correct function name.
121124         (Files): Add "lstat.h".
121125         (Depends-on): Remove stat, add xalloc, stat-macros.
121126         * modules/stat: Remove this file.
121127         (Include): Add "lstat.h", remove <sys/stat.h>.
121129 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
121131         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
121132         (ranged_convert): Don't save conversion in a temporary struct.
121133         This causes a warning with GCC 4.0.0, and anyway in the typical
121134         case it's not worth the extra 100 bytes or so of code.
121135         (ranged_convert, __mktime_internal): When calling a function via a
121136         pointer P, use P () rather than (*P) (), as we now assume C89 or
121137         better.
121139 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121141         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
121142         "who -r" failed to give output.  Problem reported by Tim Waugh.
121144         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
121145         (xcalloc): Use it to avoid needless tests.
121146         Problem reported by Jim Meyering.
121148 2005-06-20  Derek Price  <derek@ximbiot.com>
121150         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
121151         unnecessary for Autoconfs > 2.59c.
121153 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121155         * lib/argp.h (__option_is_short): Check upper limit of
121156         __key. Isprint() requires its argument to have the value
121157         of an unsigned char or EOF.
121159 2005-06-16  Jim Meyering  <jim@meyering.net>
121161         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
121162         when either N or S is zero.
121164 2005-06-16  Derek Price  <derek@ximbiot.com>
121166         * m4/bison.m4: Declare YACC & YFLAGS precious.
121168 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
121170         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
121171         multibyte string or pattern, fall back on unibyte matching.
121172         Problem reported by James Youngman.
121174 2005-06-08  Bruno Haible  <bruno@clisp.org>
121176         * modules/csharpcomp: New file.
121177         * MODULES.html.sh (C#): Add csharpcomp.
121179 2005-06-08  Bruno Haible  <bruno@clisp.org>
121181         * m4/csharpcomp.m4: New file, from GNU gettext.
121183 2005-06-08  Bruno Haible  <bruno@clisp.org>
121185         * lib/csharpcomp.h: New file, from GNU gettext.
121186         * lib/csharpcomp.c: New file, from GNU gettext.
121187         * lib/csharpcomp.sh.in: New file, from GNU gettext.
121189 2005-06-08  Bruno Haible  <bruno@clisp.org>
121191         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
121192         warning on mingw.
121194 2005-06-07  Derek Price  <derek@ximbiot.com>
121196         Sync from CVS.
121197         * lib/glob_.h: Indent nested #ifdef.
121199 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121201         Sync from coreutils.
121202         Use "file name" when talking about file names, instead of "filename"
121203         or "path", as per the GNU coding standards.
121204         * lib/mkdir-p.c: Renamed from makepath.c.
121205         (make_dir_parents): Renamed from make_path.  All callers changed.
121206         * lib/mkdir-p.h: Likewise.  All includers changed.
121207         * lib/filenamecat.c: Renamed from path-concat.c.
121208         (file_name_concat): Renamed from path_concat.  All callers changed.
121209         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
121210         * lib/filenamecat.h: Likewise.  All includers changed.
121211         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
121212         in comments or local variable names.
121213         * lib/basename.c: Likewise.
121214         * lib/canonicalize.c, canonicalize.h: Likewise.
121215         * lib/dirname.c, dirname.h: Likewise.
121216         * lib/euidaccess.c: Likewise.
121217         * lib/exclude.c: Likewise
121218         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
121219         * lib/fsusage.c, fsuage.h: Likewise.
121220         * lib/fts.c, fts_.h: Likewise.
121221         * lib/getcwd.c: Likewise.
121222         * lib/getloadavg.c: Likewise.
121223         * lib/mkstemp.c: Likewise.
121224         * lib/mountlist.c, mountlist.h: Likewise.
121225         * lib/openat.c, openat.h: Likewise.
121226         * lib/readlink-stub.c: Likewise.
121227         * lib/readutmp.c, readutmp.h: Likewise.
121228         * lib/rename.c: Likewise.
121229         * lib/rmdir.c: Likewise.
121230         * lib/same.c: Likewise.
121231         * lib/savedir.c: Likewise.
121232         * lib/stripslash.c: Likewise.
121233         * lib/tempname.c: Likewise.
121234         * lib/xreadlink.c: Likewise.
121235         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
121236         All uses changed.
121237         * lib/exclude.h: Likewise.
121239         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
121240         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121241         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
121242         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121243         * lib/pathmax.h: Include <limits.h> unconditionally, since other
121244         files have been getting away with it for years (MORE/BSD 4.3
121245         is extinct now).
121246         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
121247         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121249         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
121250         Define to 256, not 255, as per modern POSIX.
121252 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121254         Sync from coreutils.
121255         Use "file name" when talking about file names, instead of "filename"
121256         or "path", as per the GNU coding standards.
121257         * MODULES.html.sh: mkdir-p renamed from makepath.
121258         filenamecat renamed from path-concat.
121259         * modules/filenamecat: Renamed from modules/path-concat.
121260         (Files): filenamecat.h and filenamecat.c renamed from
121261         path-concat.h and path-concat.c.
121262         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
121263         (Include): filenamecat.h, not path-concat.h.
121264         * modules/mkdir-p: Renamed from modules/makepath.
121265         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
121266         makepath.c.
121267         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
121268         (Include): mkdir-p.h, not makepath.h.
121270 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121272         Sync from coreutils.
121273         * m4/mkdir-p.m4: Renamed from makepath.m4.
121274         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
121275         Rename files from makepath.c to mkdir-p.c, and from
121276         makepath.h to mkdir-p.h.
121277         * m4/filenamecat.m4: Renamed from path-concat.m4.
121278         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
121279         Rename files from path-concat.c to filenamecat.c,
121280         and from path-concat.h to filenamecat.h.
121281         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
121282         "file name" in local variables or comments.
121283         * m4/rename.m4: Likewise.
121285 2005-06-01  Bruno Haible  <bruno@clisp.org>
121287         * modules/csharpexec: New file.
121288         * MODULES.html.sh (C#): New section.
121290 2005-06-01  Bruno Haible  <bruno@clisp.org>
121292         * m4/csharp.m4: New file, from GNU gettext.
121293         * m4/csharpexec.m4: New file, from GNU gettext.
121295 2005-06-01  Bruno Haible  <bruno@clisp.org>
121297         * lib/csharpexec.h: New file, from GNU gettext.
121298         * lib/csharpexec.c: New file, from GNU gettext.
121299         * lib/csharpexec.sh.in: New file, from GNU gettext.
121301 2005-05-31  Derek Price  <derek@ximbiot.com>
121302             Paul Eggert  <eggert@cs.ucla.edu>
121304         Sync from cvs.
121305         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121307 2005-05-31  Derek Price  <derek@ximbiot.com>
121308             Paul Eggert  <eggert@cs.ucla.edu>
121310         Sync from cvs.
121311         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121313 2005-05-29  Derek Price  <derek@ximbiot.com>
121315         * config/srclist.txt (glob_.h, glob.c): Add these files.
121317 2005-05-29  Derek Price  <derek@ximbiot.com>
121319         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
121320         * modules/glob: New file.
121321         * modules/getlogin_r: Add link to POSIX spec in description.
121323 2005-05-29  Derek Price  <derek@ximbiot.com>
121324             Paul Eggert  <eggert@cs.ucla.edu>
121326         * m4/glob.m4: New file.
121328 2005-05-29  Derek Price  <derek@ximbiot.com>
121329             Paul Eggert  <eggert@cs.ucla.edu>
121331         * lib/glob_.h, lib/glob.c: New files.
121333 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121335         * modules/fts (Files): Remove m4/inttypes-pri.m4.
121336         * modules/fts-lgpl (Depends-on): Remove gettext.
121338 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121340         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
121341         and don't require gt_INTTYPES_PRI.
121343 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121345         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
121347         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
121348         the configuration hassle isn't worth it.
121349         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
121350         (LONGEST_MODIFIER, PRIuMAX): Remove.
121352 2005-05-27  Bruno Haible  <bruno@clisp.org>
121354         * lib/getlogin_r.h: Remove second include of <stddef.h>.
121356 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
121358         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
121359         _POSIX_PTHREAD_SEMANTICS for Solaris.
121361 2005-05-25  Derek Price  <derek@ximbiot.com>
121363         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
121365 2005-05-25  Derek Price  <derek@ximbiot.com>
121366             Paul Eggert  <eggert@cs.ucla.edu>
121368         * modules/getlogin_r, m4/getlogin_r.m4: New files.
121369         * lib/getlogin_r.c, getlogin_r.h: New files.
121371 2005-05-25  Bruno Haible  <bruno@clisp.org>
121372             Derek Price  <derek@ximbiot.com>
121374         * lib/getlogin_r.h: Simplify API documentation.
121376 2005-05-23  Derek Price  <derek@ximbiot.com>
121378         * modules/minmax (Files): Add m4/minmax.m4.
121379         (configure.ac): Add gl_MINMAX.
121381 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
121383         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
121384         so that unistd-safer.h (GPL'ed code) need not be included.
121386 2005-05-22  Bruno Haible  <bruno@clisp.org>
121388         * m4/minmax.m4: New file.
121389         Based on a patch by Derek Price <derek@ximbiot.com>.
121391 2005-05-22  Bruno Haible  <bruno@clisp.org>
121393         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
121394         (INT64_MIN): Fix definition.
121395         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
121397         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
121398         NEED_SIGNED_INT_TYPES.
121400         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
121401         HAVE_SYSTEM_INTTYPES.
121403 2005-05-22  Bruno Haible  <bruno@clisp.org>
121405         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
121406         Also include <sys/param.h> if it defines MIN, MAX.
121407         Based on a patch by Derek Price <derek@ximbiot.com>.
121409 2005-05-21  Jim Meyering  <jim@meyering.net>
121411         * modules/fts (Files): Add m4/inttypes-pri.m4.
121412         (Depends-on): Add lstat and remove gettext.  Alphabetize.
121414 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121416         New fts module.
121417         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
121418         (setup_dir, free_dir): New functions.
121419         (enter_dir, leave_dir): Define trivial
121420         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
121421         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
121422         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
121423         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
121424         Move to fts-cycle.c.
121425         (fts_open): Use setup_dir.
121426         (fts_close): Use free_dir.
121427         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
121428         This adds a label and some gotos, but the alternatives were messier.
121429         Check for memory allocation failure when entering a dir.
121430         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
121431         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
121432         (FTS): New member fts_cycle, that is a union that contains the
121433         old active_dir_ht and cycle_state.  All uses changed to mention
121434         fts_cycle.ht and fts_cycle.state.
121435         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
121436         fts.c, with the following changes:
121437         (setup_dir, free_dir): New functions.
121438         (enter_dir): Now returns bool.  Return true if successful, false
121439         if memory exhausted.  All callers changed.
121440         Do not bother partly cleaning up on
121441         memory allocation failure; that is free_dir's job.
121442         However, free ad if hash_insert fails, to avoid memory leak.
121443         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
121444         fts->fts_options to see which union member to use.
121446 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121448         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
121449         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
121451 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121453         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
121455 2005-05-20  Jim Meyering  <jim@meyering.net>
121457         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
121458         Now a macro, to pacify GCC.
121460 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121462         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
121463         of -1.
121465 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121467         * lib/chown.c (rpl_chown): Return -1 on failure.
121469 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121471         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
121472         Don't check for stddef.h.
121473         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
121474         don't use its results.
121475         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
121476         since we include them unconditionally.  Don't require
121477         AM_STDBOOL_H, since stdbool is a prerequisite.
121478         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
121479         since we assume C89 or better.
121480         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
121481         as we don't use their results.
121482         Don't check for fchdir, memmove, memset, strrchr, as we use
121483         them unconditionally.
121484         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
121485         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
121487 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121489         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
121490         Include <stddef.h> unconditionally, since we assume C89 now.
121491         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
121492         * lib/fts.c: Include fts_.h first, to check interface.
121493         Do not include intprops.h; no longer needed.
121494         Include cycle-check.h and hash.h, since fts_.h no longer does.
121495         Remove unnecessary casts of closedir to void.
121496         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
121497         decide whether to decrement nlinks.
121498         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
121499         (FTS): Use struct hash_table * instead of Hash_table, so that
121500         we no longer need to include hash.h here.
121502 2005-05-18  Jim Meyering  <jim@meyering.net>
121504         * modules/dirfd (License): Change to LGPL.  Most of the code
121505         is already in the public domain.
121507 2005-05-18  Jim Meyering  <jim@meyering.net>
121509         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
121510         Reported by Yoann Vandoorselaere.
121512 2005-05-17  Jim Meyering  <jim@meyering.net>
121514         * m4/fts.m4: New file, from coreutils.
121516 2005-05-17  Jim Meyering  <jim@meyering.net>
121518         * lib/fts.c, lib/fts_.h: New files, from coreutils.
121520 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121522         Sync from coreutils.
121523         * m4/unlinkdir.m4: New file.
121525 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121527         Sync from coreutils.
121528         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
121529         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
121530         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
121531         White space changes only.
121532         * lib/makepath.c (make_path): Port to hosts where leading "//" is
121533         special.
121534         * lib/yesno.c: Include getline.h, not ctype.h.
121535         (yesno): Don't remove leading white space; POSIX doesn't allow it.
121536         Use getline to remove arbitrary restriction on response length.
121538 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121540         * config/srclist-update: Spell out "Street" in FSF postal
121541         mail address; this is the style the FSF seems to prefer.
121543         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
121544         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
121545         this updates FSF postal mail address.
121547         Sync from coreutils.
121548         * modules/unlinkdir: New file.
121549         * modules/yesno (Depends-on): Add getline.
121550         * MODULES.html.sh (File system functions): Add unlinkdir.
121552 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121554         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
121555         lib/strsep.h:
121556         Change the initial comment to refer to GPL, not LGPL.
121557         gnulib-tool will change it to LGPL as needed.
121559         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
121560         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
121561         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
121562         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
121563         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
121564         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
121565         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
121566         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
121567         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
121568         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
121569         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
121570         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
121571         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
121572         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
121573         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
121574         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
121575         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
121576         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
121577         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
121578         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
121579         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
121580         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
121581         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
121582         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
121583         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
121584         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
121585         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
121586         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
121587         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
121588         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
121589         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
121590         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
121591         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
121592         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
121593         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
121594         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
121595         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
121596         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
121597         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
121598         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
121599         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
121600         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
121601         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
121602         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
121603         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
121604         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
121605         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
121606         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
121607         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
121608         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
121609         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121610         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
121611         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
121612         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
121613         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
121614         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
121615         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
121616         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
121617         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
121618         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
121619         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
121620         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
121621         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
121622         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
121623         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
121624         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
121625         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
121626         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
121627         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
121628         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
121629         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
121630         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
121631         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
121632         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
121633         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
121634         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
121635         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
121636         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
121637         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
121638         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
121639         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
121640         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
121641         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
121642         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
121643         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
121644         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
121645         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
121646         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
121647         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
121648         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
121649         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
121650         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
121651         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
121652         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
121653         lib/yesno.c, lib/yesno.h:
121654         Update FSF postal mail address.
121656 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121658         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
121659         tests/test-memmem.c, tests/test-stpncpy.c:
121660         Update FSF postal mail address.
121662 2005-05-13  Bruno Haible  <bruno@clisp.org>
121664         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
121665         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
121666         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
121667         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
121668         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
121669         Add support for 64-bit integers in the MSVC compiler.
121671 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121673         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
121675 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
121677         * gnulib-tool (func_import): Sort and uniquify recommended includes.
121679 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
121681         * doc/getdate.texi (General date syntax): Don't say that date
121682         date --iso-8601=ns generates acceptable dates; it doesn't yet.
121683         Problem reported by Nic Ferrier.
121685 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121687         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
121688         specified in ai_socktype. Fix invalid ai_protocol
121689         check. ai_protocol is usually set to 0 or depending on
121690         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
121691         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
121692         ai_socktype / ai_protocol in the returned addrinfo structure.
121694 2005-05-10  Simon Josefsson  <jas@extundo.com>
121696         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
121697         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121699 2005-05-10  Karl Berry  <karl@gnu.org>
121701         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
121702         (from http://www.gnu.org/licenses).
121703         * doc/COPYING.LIB: also rename to COPYING.LESSER.
121704         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
121705         fdl.texi suffices.
121707 2005-05-10  Karl Berry  <karl@gnu.org>
121709         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
121710         (COPYING.DOC): remove.
121712         * config/srclist-update: new FSF address.
121714 2005-05-10  Derek Price  <derek@ximbiot.com>
121716         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
121717         possible.
121719 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121720             Bruno Haible  <bruno@clisp.org>
121722         * modules/inet_ntop: New file.
121723         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121724         inet_ntop.
121726 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121727             Bruno Haible  <bruno@clisp.org>
121729         * m4/inet_ntop.m4: New file.
121731 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121732             Bruno Haible  <bruno@clisp.org>
121734         * lib/inet_ntop.h: New file.
121735         * lib/inet_ntop.c: New file, from glibc with modifications.
121737 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
121739         * modules/time_r (License): Change to LGPL.
121740         * modules/extensions (License): Change to LGPL.  Actually,
121741         the license is more permissive than that, but currently gnulib-tool
121742         doesn't know how to handle more-permissive licenses.
121744         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
121745         Problem reported by Dave Love.
121747 2005-05-08  Jim Meyering  <jim@meyering.net>
121749         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
121750         blank.
121752 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121754         * modules/argmatch (Depends-on): Add stdbool.
121755         * modules/backupfile (Depends-on): Likewise.
121756         * modules/chdir-long (Depends-on): Likewise.
121757         * modules/closeout (Depends-on): Likewise.
121758         * modules/cycle-check (Depends-on): Likewise.
121759         * modules/dirname (Depends-on): Likewise.
121760         * modules/fnmatch (Depends-on): Likewise.
121761         * modules/fsusage (Depends-on): Likewise.
121762         * modules/fwriteerror (Depends-on): Likewise.
121763         * modules/getcwd (Depends-on): Likewise.
121764         * modules/getloadavg (Depends-on): Likewise.
121765         * modules/hard-locale (Depends-on): Likewise.
121766         * modules/makepath (Depends-on): Likewise.
121767         * modules/mountlist (Depends-on): Likewise.
121768         * modules/nanosleep (Depends-on): Likewise.
121769         * modules/posixtm (Depends-on): Likewise.
121770         * modules/quotearg (Depends-on): Likewise.
121771         * modules/readtokens (Depends-on): Likewise.
121772         * modules/readtokens0 (Depends-on): Likewise.
121773         * modules/readutmp (Depends-on): Likewise.
121774         * modules/save-cwd (Depends-on): Likewise.
121775         * modules/strftime (Depends-on): Likewise.
121776         * modules/userspec (Depends-on): Likewise.
121777         * modules/utimecmp (Depends-on): Likewise.
121778         * modules/xgetcwd (Depends-on): Likewise.
121779         * modules/xnanosleep (Depends-on): Likewise.
121780         * modules/xstrtod (Depends-on): Likewise.
121781         * modules/yesno (Depends-on): Likewise.
121783 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
121785         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
121786         needless checks.
121788 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121790         Merge from coreutils.  Among other things,
121791         add bulletproofing for cases where stdin, stdout, or stderr are closed.
121792         * lib/fd-safer.c: New file.
121793         * lib/fcntl-safer.h, open-safer.c: Remove.
121794         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
121795         * lib/dup-safer.c: Include unistd-safer.h first.
121796         Don't include errno.h.
121797         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
121798         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
121799         * lib/file-type.c: Rely on file-type.h change.
121800         * lib/getloadavg.c: Include unistd-safer.h.
121801         (getloadavg): Use safer open.
121802         * lib/getusershell.c: Include "stdio-safer.h".
121803         (getusershell): Use safer fopen.
121804         * lib/long-options.c (long_options): Use NULL rather than 0.
121805         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
121806         'free'.
121807         * lib/modechange.c: Likewise.
121808         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
121809         (MODE_DONE): New constant.
121810         (struct mode_change): Remove 'next' member.
121811         (make_node_op_equals): New function; like the old one of the
121812         same name, except it allocates an array.
121813         (mode_compile, mode_create_from_ref): Use it.
121814         (mode_compile): Allocate result as an array, not a linked list.
121815         Parse octal string ourself, so that we catch mistakes like "+0".
121816         (mode_adjust): Arg is an array, not a linked list.
121817         * lib/modechange.c: Include stat-macros.h, xalloc.h.
121818         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
121819         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
121820         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
121821         Remove.  This is now stat-macros.h's job.
121822         (talloc): Remove.  All callers replaced by xalloc, so that
121823         our invokers don't have to worry about reporting memory failures.
121824         (make_node_op_equals): Remove.
121825         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121826         New constants.
121827         (struct mode_change): Moved here from modechange.h.
121828         (mode_append_entry): Remove.
121829         (mode_compile): Remove MASKED_OPS arg, since it encouraged
121830         apps to have incorrect behavior.  Use simpler algorithm for head
121831         and tail.  Don't futz with umask; that's now the job of mode_adjust.
121832         Detect more invalid usages rather than having somewhat-random behavior.
121833         Don't insert an "a=" action, as that leads to incorrect behavior.
121834         (mode_compile, mode_create_from_ref): Return NULL on error instead
121835         of an enum, since now there's only one way to have an error.  All
121836         callers changed.
121837         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
121838         at the correct time.  Simplify calculation of "+u" and its ilk.
121839         Don't mishandle "+X".
121840         (mode_free): Remove "register" and localize decls.
121841         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121842         (struct mode_change): Move to modechange.c; callers don't
121843         need to see this stuff.
121844         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
121845         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
121846         (mode_change, mode_adjust): Reflect the new signatures noted above.
121847         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
121848         that might redefine system include files.
121849         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
121850         (my_usleep): Use NULL rather than (void *) 0.
121851         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
121852         Use siginterrupt to specify that system calls should be interrupted.
121853         (rpl_nanosleep): Move initialization of suspended closer to call of
121854         my_usleep.
121855         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
121856         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
121857         (desirable_utmp_entry): New function.
121858         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
121859         using x2nrealloc, to simplify logic.
121860         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
121861         size calculation.  Do not assume utmp file is a regular file.
121862         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
121863         (READ_UTMP_CHECK_PIDS): New constant.
121864         * lib/save-cwd.c: Include unistd-safer.h.
121865         (save_cwd): Use fd_safer.
121866         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
121867         [!_LIBC] Include "stat-macros.h" instead.
121868         * lib/unistd-safer.h (fd_safer): New decl.
121870 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121872         * modules/getloadavg (Depends-on): Add unistd-safer.
121873         * modules/getusershell (Depends-on): Add stdio-safer.
121874         * modules/lstat (Depends-on): Remove xalloc.
121875         * modules/mkstemp (Depends-on): Add stat-macros.
121876         * modules/modechange (Depends-on): Remove xstrtol.
121877         Add stat-macros, xalloc.
121878         * modules/save-cwd (Depends-on): Add unistd-safer.
121879         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
121880         * modules/unistd-safer (Files): Add lib/fd-safer.c
121881         (Makefile.am): Remove lib_SOURCES.
121883         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
121884         Remove fcntl-safer; unistd-safer supersedes it.
121886 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121888         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
121889         AC_HEADER_STAT.
121890         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
121891         (gl_PREREQ_CHOWN): Remove.
121892         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
121893         it.  Don't require AC_HEADER_STAT.
121894         (gl_PREREQ_LSTAT): Remove.
121895         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
121896         Don't require AC_HEADER_STAT.
121897         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
121898         (gl_PREREQ_RMDIR): Remove.
121899         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
121900         mention stat-macros.h or AC_HEADER_STAT, since we'll make
121901         the stat-macros module a prerequisite.
121902         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
121903         * m4/filemode.m4 (gl_FILEMODE): Likewise.
121904         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
121905         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
121906         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
121907         variable names.
121908         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
121909         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
121910         variable prefixes.
121911         * m4/fcntl-safer.m4: Remove.
121912         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
121913         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
121914         Invoke gl_PREREQ_FD_SAFER.
121915         (gl_PREREQ_FD_SAFER): New macro.
121916         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
121917         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
121918         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
121919         Remove duplicate call to AC_LIBOBJ(readutmp).
121920         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
121922         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
121923         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
121925 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121927         * MODULES.html.sh (Misc): Add byteswap.
121929 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121931         * modules/getcwd (Depends-on): Add extensions.
121932         * modules/openat (Depends-on): Likewise.
121934 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121936         * modules/byteswap: New file.
121938 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121940         * m4/byteswap.m4: New file.
121942 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121944         * lib/byteswap_.h: New file.
121946 2005-04-25  Karl Berry  <karl@gnu.org>
121948         * m4/gettext.m4: Update from GNU gettext 0.14.4.
121950 2005-04-25  Albert Chin  <china@thewrittenword.com>
121952         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
121953         Toolkit C bug.
121955 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
121957         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
121958         (func_ln_if_changed): Remove forcibly for no error message
121959         in case file does not exist.
121961 2005-04-19  Simon Josefsson  <jas@extundo.com>
121963         * gnulib-tool (Options): Make --symlink mean --symbolic.
121965 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
121967         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
121969 2005-04-16  Simon Josefsson  <jas@extundo.com>
121971         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
121973 2005-04-15  Simon Josefsson  <jas@extundo.com>
121975         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
121977 2005-04-15  Simon Josefsson  <jas@extundo.com>
121979         * gnulib-tool: Rename --symlink to --symbolic.
121981 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
121983         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
121984         symbolic links to files instead of copying/moving.  Add --aux-dir,
121985         specifying directory relative --dir where auxiliary build tools
121986         are placed.
121988 2005-04-14  Bruno Haible  <bruno@clisp.org>
121990         * modules/allocsa (License): Change to LGPL.
121991         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
121993 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
121995         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
121996         that "UTC +1 second" continues to work.  Problem reported
121997         by Dmitry V. Levin.
121998         (relunit_snumber): New rule.
121999         (relunit): Use it.
122001 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
122003         * lib/getdate.y (universal_time_zone_table): New constant.
122004         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
122005         universal_time_zone_table.
122006         (lookup_zone): Prefer universal_time_zone_table to
122007         local_time_zone_table, so that "GMT" time stamps are allowed in
122008         London during the summer.  Problem reported by Ian Abbott.
122010 2005-04-12  Jim Meyering  <jim@meyering.net>
122012         * lib/human.c (humblock): Set *options even when returning due to
122013         xstrtoumax conversion failure.  Thanks to a used-uninitialized
122014         warning from gcc-4.
122016 2005-04-09  Jim Meyering  <jim@meyering.net>
122018         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
122019         -Wuninitialized: initialize tm0.tm_year.
122021 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
122023         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
122024         count, since there's no maximum.  All uses changed.
122025         Add member dsts_seen.
122026         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
122027         not being INT_MAX.
122028         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
122029         Use pc_rels_seen to decide whether a date is absolute.
122031         * lib/getdate.y (number): Don't overwrite year.
122032         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
122033         check.
122035 2005-04-02  Simon Josefsson  <jas@extundo.com>
122037         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
122038         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
122040 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
122042         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
122043         where no absolute path name can be longer than PATH_MAX.
122045 2005-03-27  Jim Meyering  <jim@meyering.net>
122047         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
122049 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
122051         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
122052         "one's complement" -> "ones' complement" in comment, as per Knuth.
122053         "value of type" -> "type or expression" in comment.
122054         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
122056 2005-03-26  Jim Meyering  <jim@meyering.net>
122058         Comment nits.
122059         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
122060         Correct typos: s/or/of/.
122062 2005-03-26  Jim Meyering  <jim@meyering.net>
122064         * modules/check-include-files: Move to ../ and rename to...
122065         * check-module: ...this.
122067 2005-03-25  Jim Meyering  <jim@meyering.net>
122069         * modules/xvasprintf (Files): Add xalloc.h.
122071 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
122073         * modules/gettext (Files): config/config.rpath ->
122074         build-aux/config.rpath
122075         * modules/iconv (Files): Likewise.
122076         Problem reported by Oskar Liljeblad.
122078 2005-03-23  Jim Meyering  <jim@meyering.net>
122080         * modules/check-include-files: New script to check for
122081         missing dependencies, multiple includes, etc.
122083         * modules/c-strtold (Depends-on): Add xalloc.
122084         * modules/c-strtod (Depends-on): Add xalloc.
122085         * modules/hash (Depends-on): Add xalloc.
122086         (Files): Remove lib/xalloc.h.
122088         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
122089         * modules/userspec (Files): Add lib/inttostr.h.
122091 2005-03-23  Jim Meyering  <jim@meyering.net>
122093         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
122095 2005-03-22  Jim Meyering  <jim@meyering.net>
122097         * modules/stat-macros: New module.
122098         * modules/canonicalize, modules/euidaccess, modules/file-type,
122099         * modules/filemode, modules/lchown, modules/makepath,
122100         * modules/rmdir, modules/stat: Depend on new stat-macros module
122101         rather than listing lib/stat-macros.h manually.
122102         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
122104 2005-03-22  Jim Meyering  <jim@meyering.net>
122106         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
122108 2005-03-22  Bruno Haible  <bruno@clisp.org>
122110         * config/srclist.txt: Replace target directory 'config' with
122111         'build-aux'.
122112         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
122113         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
122114         ../build-aux/.
122116 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
122118         * modules/chdir-long (Depends-on): Add mempcpy.
122120         * modules/acl, modules/backupfile, modules/c-strtod,
122121         modules/c-strtold, modules/canon-host, modules/canonicalize,
122122         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
122123         modules/exclude, modules/exitfail, modules/file-type,
122124         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
122125         modules/getdate, modules/getline, modules/getpagesize,
122126         modules/getpass, modules/getugroups, modules/group-member,
122127         modules/hard-locale, modules/hash, modules/human, modules/idcache,
122128         modules/inttostr, modules/long-options, modules/makepath,
122129         modules/md5, modules/memcasecmp, modules/memcoll,
122130         modules/modechange, modules/mountlist, modules/path-concat,
122131         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
122132         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
122133         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
122134         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
122135         modules/strftime, modules/strndup, modules/strverscmp,
122136         modules/timespec, modules/unlocked-io, modules/userspec,
122137         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
122138         modules/yesno:
122139         Remove lib_SOURCES line from Makefile.am section, as this is now
122140         done automatically by the corresponding Autoconf macro.
122142 2005-03-21  Jim Meyering  <jim@meyering.net>
122144         Changes imported from coreutils.
122146         * lib/cycle-check.c: Don't include xalloc.h.
122148         * lib/path-concat.c: Don't include assert.h.
122149         (path_concat): Remove assertion that would have triggered
122150         for ABASE starting with more than one slash.
122151         Reported by Andreas Schwab.
122153         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
122154         properly when ABASE is an absolute file name.
122155         Correct the description of this function.
122156         Include <assert.h>.
122157         Add an assertion and a test driver.
122158         This fixes a bug introduced on 2004-07-02.
122159         Andreas Schwab reported the resulting failure of cp --parents:
122160         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
122162 2005-03-21  Jim Meyering  <jim@meyering.net>
122164         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
122165         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
122167 2005-03-21  Jim Meyering  <jim@meyering.net>
122168         and  Paul Eggert  <eggert@cs.ucla.edu>
122170         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
122171         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
122172         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
122173         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
122174         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
122175         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
122176         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
122177         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
122178         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
122179         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
122180         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
122181         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
122182         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
122183         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
122184         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
122185         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
122186         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
122187         for these modules.
122189 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
122191         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
122192         (which shouldn't happen), generate nothing instead of returning 0
122193         immediately, so that nstrftime (NULL, ...) doesn't return 0.
122195 2005-03-16  Bruno Haible  <bruno@clisp.org>
122197         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
122198         HAVE_LONGLONG_64BIT.
122200 2005-03-16  Bruno Haible  <bruno@clisp.org>
122202         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
122203         HAVE_LONGLONG_64BIT.
122205 2005-03-16  Bruno Haible  <bruno@clisp.org>
122207         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
122208         HAVE_LONGLONG_64BIT.
122210 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122212         * lib/strftime.c (my_strftime): Prepend space to format so that we can
122213         reliably distinguish strftime failure from empty output on POSIX
122214         hosts.
122216 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122218         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
122219         (iconv_string): Don't guess a size-zero buffer, as that might cause
122220         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
122221         result would be 'too large', where 'too large' is (heuristically)
122222         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
122223         overflow concerns.  This will prevent some unwanted malloc failures
122224         when the inputs are very large.
122226 2005-03-15  Karl Berry  <karl@gnu.org>
122228         * config/srclist.txt (config.rpath): from gettext.
122229         * config/config.rpath: update.
122231 2005-03-15  Bruno Haible  <bruno@clisp.org>
122233         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
122234         to 'negate'.
122236         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
122237         variable.
122239         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
122240         results.
122242 2005-03-14  Simon Josefsson  <jas@extundo.com>
122244         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
122245         <fx@gnu.org>.
122247 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
122249         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
122250         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
122251         intprops.h.
122252         * lib/strtol.c: Likewise.
122254 2005-03-14  Jim Meyering  <jim@meyering.net>
122256         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
122257         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
122258         to be nonzero so that we (and caller) can detect the difference
122259         between a valid zero-length expansion and an error return, even
122260         when the underlying strftime fails before writing anything into
122261         that location.
122263 2005-03-14  Bruno Haible  <bruno@clisp.org>
122265         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
122266         Update from GNU gettext 0.14.3.
122268 2005-03-10  Jim Meyering  <jim@meyering.net>
122270         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
122272 2005-03-10  Jim Meyering  <jim@meyering.net>
122274         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
122275         so that this module works on systems without fchdir.
122277 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
122279         Factor int-properties macros into a single file, except for
122280         glibc-related files.
122281         * lib/intprops.h: New file.
122282         * lib/getloadavg.c: Include it instead of limits.h.
122283         (INT_STRLEN_BOUND): Remove.
122284         * lib/human.c: Include intprops.h.
122285         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
122286         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
122287         302/1000.
122288         * lib/inttostr.h: Include intprops.h instead of limits.h.
122289         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
122290         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
122291         for consistency with intprops.h.
122292         (time_t_is_integer, twos_complement_arithmetic): Use them.
122293         * lib/sig2str.h: Include <signal.h>, intprops.h.
122294         (INT_STRLEN_BOUND): Remove.
122295         * lib/strftime.c (TYPE_SIGNED): Remove.
122296         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
122297         * lib/strtol.c: Adjust comments to match intprops.h.
122298         * lib/userspec.c: Include intprops.h.
122299         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
122300         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
122301         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
122302         instead of rolling our own expressions.
122303         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
122305         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
122306         instead of int.
122307         (my_strftime): Do not mishandle years close to INT_MAX, by doing
122308         the right thing even if adding 1900 would overflow.  Similarly
122309         for tm_mon + 1 and tm_yday + 1.
122310         Make %Y always equivalent to %C%y, and similarly for %G and %g.
122311         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
122312         (DO_SIGNED_NUMBER): New macro.
122313         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
122315 2005-03-07  Bruno Haible  <bruno@clisp.org>
122317         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
122319 2005-03-07  Bruno Haible  <bruno@clisp.org>
122321         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
122323 2005-03-04  Derek R. Price  <derek@ximbiot.com>
122325         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
122326         (func_import): Only replace files via --import when they have actually
122327         changed.
122329 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122331         * m4/mmap-anon.m4: New file.
122332         * m4/pagealign_alloc.m4: New file.
122334 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122335             Bruno Haible  <bruno@clisp.org>
122337         * modules/pagealign_alloc: New file.
122338         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
122340 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122341             Bruno Haible  <bruno@clisp.org>
122343         * lib/pagealign_alloc.h: New file.
122344         * lib/pagealign_alloc.c: New file.
122346 2005-03-03  Bruno Haible  <bruno@clisp.org>
122348         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
122349         Use an all-permissive copyright notice, recommended by RMS.
122351 2005-03-02  Bruno Haible  <bruno@clisp.org>
122353         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
122354         of AIX, the replacement has to be done only after <string.h> is
122355         included, therefore not in config.h. stpncpy.h does the replacement,
122356         and stpncpy.c uses it.
122358 2005-03-02  Bruno Haible  <bruno@clisp.org>
122360         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
122361         stpncpy.c uses it.
122363 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122365         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
122366         The workaround isn't strictly needed for POSIX conformance, and
122367         it's too much of a pain to configure and maintain.  We'll ask
122368         people to fix their kernels instead.
122369         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
122370         (NANOSLEEP_BUG_WORKAROUND): Remove.
122371         (xnanosleep): Remove the workaround.
122373 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122375         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
122376         Reported by Derek Price.
122377         (Include): Add "timespec.h".
122379         * modules/xnanosleep (Depends-on): Remove gethrxtime.
122381 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122383         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
122384         to detect nanosleep bug.
122386 2005-03-01  Bruno Haible  <bruno@clisp.org>
122388         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
122390 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
122392         * modules/gethrxtime: New file.
122393         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
122394         (Depends-on): Add gethrxtime.
122395         (configure.ac): Add gl_XNANOSLEEP.
122396         (Makefile.am): Remove lib_SOURCES line.
122398 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122400         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
122401         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
122403 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122405         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
122406         * lib/timespec.h (gettime): Return void, since it always
122407         succeeds now.  All uses changed.
122408         * lib/gettime.c (gettime): Likewise.
122409         [HAVE_NANOTIME]: Prefer nanotime.
122410         Assume gettimeofday succeeds, as POSIX requires.
122411         Assime time () succeeds, since other code already does.
122412         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
122413         (timespec_subtract): Remove.
122414         (NANOSLEEP_BUG_WORKAROUND): New constant.
122415         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
122416         things considerably.  Use it only on GNU/Linux hosts, since the
122417         workaround shouldn't be needed elsewhere.
122419 2005-02-24  Bruno Haible  <bruno@clisp.org>
122421         * modules/gettext (Files): Add m4/glibc2.m4.
122423 2005-02-24  Bruno Haible  <bruno@clisp.org>
122425         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
122426         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
122427         * m4/progtest.m4:
122428         Update from GNU gettext 0.14.2.
122429         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
122431 2005-02-24  Bruno Haible  <bruno@clisp.org>
122433         * lib/localcharset.c: Update from GNU gettext 0.14.2.
122434         * lib/config.charset: Update from GNU gettext 0.14.2.
122436 2005-02-24  Bruno Haible  <bruno@clisp.org>
122438         * lib/gettext.h: Update from GNU gettext 0.14.2.
122440 2005-02-23  Simon Josefsson  <jas@extundo.com>
122442         * m4/iconvme.m4: New file.
122444 2005-02-23  Jim Meyering  <jim@meyering.net>
122446         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
122447         change.
122448         Thanks to Bruno Haible for catching it.
122450 2005-02-22  Simon Josefsson  <jas@extundo.com>
122452         * modules/iconvme: New file.
122454         * MODULES.html.sh: Add iconvme.
122456 2005-02-22  Simon Josefsson  <jas@extundo.com>
122458         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
122460 2005-02-22  Simon Josefsson  <jas@extundo.com>
122462         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
122464 2005-02-22  Jim Meyering  <jim@meyering.net>
122466         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
122467         s/ifndef/ifdef/.
122469 2005-02-20  Neil Conway  <neilc@samurai.com>
122471         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
122472         returned by OSX/Darwin if the specified buffer is not large
122473         enough for the hostname.
122475 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122477         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
122478         pass it to _help, otherwise the latter coredumps trying to
122479         dereference state.root_argp.
122481 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122483         * modules/chdir-long (Depends-on): Add memrchr.
122484         * modules/memrchr (Files): Add lib/memrchr.h.
122485         (Include): "memrchr.h".
122487 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122489         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
122491 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122493         * lib/memrchr.h: New file.
122494         * lib/chdir-long.c: Include it.
122495         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
122496         Don't bother including stddef.h.
122498 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
122500         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
122501         inclusion.
122502         Include <sys/types.h>, for dev_t.
122503         (ME_DUMMY, ME_REMOTE): Move from here....
122504         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
122505         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
122506         Dmitry V. Levin.
122507         Include mountlist.h first, to test the interface.
122509 2005-01-29  Bruno Haible  <bruno@clisp.org>
122511         * lib/progname.c (program_name): Initialize.
122512         Needed when linking statically on MacOS X.
122514 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122516         Sync from coreutils.
122517         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
122518         (Depends-on): Add c-strtod.
122519         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
122521 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122523         Sync from coreutils.
122524         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
122526         Remove files that are specific to coreutils.
122527         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
122529 2005-01-28  Bruno Haible  <bruno@clisp.org>
122531         * modules/javacomp: New file.
122532         * MODULES.html.sh (Java): Add javacomp.
122534 2005-01-28  Bruno Haible  <bruno@clisp.org>
122536         * m4/javacomp.m4: New file, from GNU gettext.
122538 2005-01-28  Bruno Haible  <bruno@clisp.org>
122540         * lib/javacomp.sh.in: New file, from GNU gettext.
122541         * lib/javacomp.h: New file, from GNU gettext.
122542         * lib/javacomp.c: New file, from GNU gettext.
122544 2005-01-26  Simon Josefsson  <jas@extundo.com>
122546         * lib/gai_strerror.c: Use GPL in header.
122548 2005-01-26  Bruno Haible  <bruno@clisp.org>
122550         * modules/javaexec: New file.
122551         * MODULES.html.sh (Java): Add javaexec.
122553 2005-01-26  Bruno Haible  <bruno@clisp.org>
122555         * m4/javaexec.m4: New file, from GNU gettext.
122557 2005-01-26  Bruno Haible  <bruno@clisp.org>
122559         * lib/javaexec.sh.in: New file, from GNU gettext.
122560         * lib/javaexec.h: New file, from GNU gettext.
122561         * lib/javaexec.c: New file, from GNU gettext.
122563 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122565         * modules/lchown (Depends-on): Remove lchown.h
122567 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122569         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
122570         must be defined if the header file was not found, in order
122571         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
122573 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122575         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
122576         initializers for struct pentry_state.
122577         (__argp_error): Check return value of __asprintf
122578         (__argp_failure): Translate error message
122580         * lib/argp-parse.c: Removed braces around the expansion of N_()
122582 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
122584         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
122585         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
122586         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
122587         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
122588         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
122589         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
122590         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
122591         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
122592         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
122593         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
122594         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
122595         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
122596         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
122597         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
122598         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
122599         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
122600         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
122601         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
122602         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
122603         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
122604         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
122605         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
122606         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
122607         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
122608         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
122609         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
122610         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
122611         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
122612         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
122613         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
122614         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
122615         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
122616         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
122617         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
122618         xstrtol.m4, xstrtoumax.m4, yesno.m4:
122619         Use an all-permissive copyright notice, recommended by RMS.
122621 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
122623         * modules/chdir-long (Depends-on): Remove mempcpy.
122625 2005-01-21  Jim Meyering  <jim@meyering.net>
122627         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
122628         same value as for Solaris 9.
122630         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
122631         component length.  This included changing the parameter to be
122632         of type `char *' rather than `char const *'.
122633         * lib/chdir-long.h (chdir_long): Update prototype.
122635         * lib/openat.c (fdopendir, fstatat): New functions.
122636         * lib/openat.h: Include headers required for use of DIR and struct
122637         stat.
122638         [AT_SYMLINK_NOFOLLOW]: Define.
122639         (fdopendir, fstatat): Add prototypes.
122641 2005-01-21  Bruno Haible  <bruno@clisp.org>
122643         * modules/classpath: New file.
122644         * MODULES.html.sh (Java): Add classpath.
122646 2005-01-21  Bruno Haible  <bruno@clisp.org>
122648         * lib/classpath.h: New file, from GNU gettext.
122649         * lib/classpath.c: New file, from GNU gettext.
122651 2005-01-20  Simon Josefsson  <jas@extundo.com>
122653         * modules/version-etc-fsf: New file.
122655 2005-01-20  Simon Josefsson  <jas@extundo.com>
122657         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
122658         * lib/version-etc.c: Remove version_etc_copyright.
122659         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
122660         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
122662 2005-01-20  Simon Josefsson  <jas@extundo.com>
122664         * lib/base64.h (isbase64): Add.
122666         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
122667         using a unsigned prototype, don't inline.
122668         (base64_decode): Use it.
122670 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122672         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
122673         it.
122675 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122677         * lib/save-cwd.c (save_cwd): Remove code to support the case
122678         where fchdir is missing or flaky.
122680 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122682         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
122684 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
122686         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
122687         AC_LIBSOURCES now does this.
122688         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
122689         with new ullong_max module.
122691 2005-01-19  Bruno Haible  <bruno@clisp.org>
122693         * modules/sh-quote: New file.
122694         * MODULES.html.sh (Executing programs): Add sh-quote.
122696 2005-01-19  Bruno Haible  <bruno@clisp.org>
122698         * lib/sh-quote.h: New file, from GNU gettext.
122699         * lib/sh-quote.c: New file, from GNU gettext.
122701 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122703         Merge from coreutils.
122704         * m4/ullong_max.m4: New file.
122705         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
122706         (gl_MACROS): Assume localeconv exists.
122708 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122710         Merge changes from coreutils, as described below in several
122711         changelogs dated today.
122713         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
122714         (O_DIRECTORY): Remove; not needed here, since "." must be
122715         a directory.  All uses removed.
122716         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
122717         universal on Suns, and we also need to test for IRIX.
122718         Revamp code to use 'if' rather than '#if'.
122719         Avoid unnecessary comparison of cwd->desc to 0.
122721         * lib/utimens.c (futimens): Robustify the previous patch, by checking
122722         for known valid error numbers rather than observed invalid ones.
122724 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122726         * modules/ullong_max: New file.
122728         * modules/chdir-long, modules/openat: New files.
122729         * modules/save-cwd (Depends-on): Depend on chdir-long.
122730         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
122732 2005-01-18  Jim Meyering  <jim@meyering.net>
122734         Merge from coreutils.
122735         * m4/chdir-long.m4, m4/openat.m4: New files.
122736         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
122737         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
122738         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
122739         is sane and DOES follow symlinks.  Besides, testing 20 different
122740         systems found no broken chown implementations.
122741         Prompted by a change in rsync's copy of this macro.
122742         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
122744         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
122746         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
122747         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
122748         NULL-means-set-to-current-time semantics.
122749         Remove temporary file immediately, rather than waiting
122750         for configure's at-exit trap code to do it.
122752 2005-01-18  Jim Meyering  <jim@meyering.net>
122754         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122756         * lib/utimens.c (futimens): Account for the fact that futimes
122757         can also fail with errno == ENOSYS or errno == ENOENT.
122758         Patch from Dmitry V. Levin.
122760         Change the name of the robust chdir function from chdir to chdir_long.
122761         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
122762         (restore_cwd): Use chdir_long, not chdir.
122763         * lib/chdir-long.c: Renamed from chdir.c.
122764         * lib/chdir-long.h: Renamed from chdir.h.
122765         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
122766         Hurd.
122768 2005-01-18  Bruno Haible  <bruno@clisp.org>
122770         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
122771         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
122772         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
122773         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
122774         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
122775         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
122776         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
122777         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
122778         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
122779         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
122780         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
122781         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
122782         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
122783         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
122784         Use an all-permissive copyright notice, recommended by RMS.
122786 2005-01-18  Bob Proulx  <bob@proulx.com>
122788         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
122789         simplify offsetof() macro construct to avoid compile failure with
122790         native HP-UX 11.0 ANSI C compiler.
122792 2005-01-17  Bruno Haible  <bruno@clisp.org>
122794         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
122795         redundant because stpncpy.m4 takes care of it.
122797 2005-01-17  Bruno Haible  <bruno@clisp.org>
122799         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
122801 2005-01-17  Bruno Haible  <bruno@clisp.org>
122803         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
122804         used.
122806 2005-01-17  Bruno Haible  <bruno@clisp.org>
122808         * lib/fwriteerror.h (fwriteerror): Change specification to include
122809         fclose.
122810         * lib/fwriteerror.c: Include <stdbool.h>.
122811         (fwriteerror): At the end, close the file stream. Record whether
122812         stdout was already closed.
122814 2005-01-17  Bruno Haible  <bruno@clisp.org>
122816         * lib/execute.c (environ): Declare if needed.
122817         * lib/pipe.c (environ): Likewise.
122818         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
122820 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122822         * modules/argp: Depend on vsnprintf
122824 2005-01-10  Jim Meyering  <jim@meyering.net>
122826         * modules/closeout (Depends-on): Add atexit.
122828 2005-01-06  Bruno Haible  <bruno@clisp.org>
122830         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
122832 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
122834         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
122835         definitions to be after all include files, to avoid collisions.
122836         Problem reported by Bob Proulx.
122838 2005-01-04  Jim Meyering  <jim@meyering.net>
122840         Changes imported from coreutils.
122841         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
122842         as the mkstemp template, use a temporary directory and an
122843         8.3-friendly template to avoid trouble on systems like DJGPP.
122844         Reported by Juan M. Guerrero via Stepan Kasal.
122845         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
122846         close. Remove the temporary directory right away, rather than waiting
122847         for configure's at-exit trap code to do it.
122848         Suggestion from Stepan Kasal.
122850 2005-01-01  Simon Josefsson  <jas@extundo.com>
122852         * gnulib-tool: Print #include directives when --import'ing.
122854 2004-12-28  Simon Josefsson  <jas@extundo.com>
122856         * tests/test-base64.c: Include required header files.  Remove
122857         unused variables.
122859 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122861         * modules/error (Depends-on): Remove gettext.
122863 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122865         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
122866         not needed.  This removes a dependency on the gettext module.
122867         [defined _LIBC]: Do not include <libintl.h>; not needed.
122869 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122871         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
122872         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
122874 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122876         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
122877         HAVE_DECL_STRTOLD.
122879 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122881         * modules/getdate (Depends-on): Remove alloca-opt.
122883 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122885         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
122887 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122889         * lib/argp-parse.c: Include <stddef.h>.
122890         (alignof, alignto): New macros.
122891         (parser_init): Don't assume that void * is aligned sufficiently
122892         for struct option.
122894         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
122895         need to extend the stack.
122896         (YYINITDEPTH): New macro, so that the initial stack isn't overly
122897         large.
122899 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122901         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
122903 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122905         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
122906         (2004-10-24) change.  Apparently this was a false alarm.
122908         * modules/getdate: Depend on alloca-opt, not alloca.
122910 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122912         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
122913         Remove now-obsolete comment about AIX.
122914         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
122915         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
122916         (YYMAXDEPTH): New macro.
122918 2004-12-18  Simon Josefsson  <jas@extundo.com>
122920         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
122922 2004-12-18  Bruno Haible  <bruno@clisp.org>
122924         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
122926 2004-12-18  Bruno Haible  <bruno@clisp.org>
122928         * lib/fatal-signal.c (fatal_signals): Make non-const.
122929         (init_fatal_signals): New function.
122930         (uninstall_handlers, install_handlers): Ignore signals that were set to
122931         SIG_IGN.
122932         (at_fatal_signal): Call init_fatal_signals.
122933         (init_fatal_signal_set): Likewise. Ignore signals that were set to
122934         SIG_IGN.
122935         Reported by Paul Eggert.
122937 2004-12-18  Bruno Haible  <bruno@clisp.org>
122939         * doc/alloca.texi: New file.
122940         * doc/alloca-opt.texi: New file.
122942 2004-12-17  Jim Meyering  <jim@meyering.net>
122944         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
122945         Otherwise, install-sh could exit with improper exit status when
122946         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
122948 2004-12-16  Simon Josefsson  <jas@extundo.com>
122950         * tests/test-base64.c: Add license.
122952 2004-12-15  Stepan Kasal  <address@hidden>
122954         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
122956 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
122958         * modules/getcwd (Files): Add m4/d-ino.m4.
122959         Suggested by Mark D. Baushke.
122961 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122963         * lib/getdate.y (textint): New member "negative".
122964         (time_zone_hhmm): New function.
122965         Expect 14 shift-reduce conflicts, not 13.
122966         (o_colon_minutes): New rule.
122967         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
122968         (yylex): Set the "negative" member of signed numbers.
122970 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122972         * doc/getdate.texi (Time of day items, Time zone items):
122973         Describe new formats +00:00, UTC+00:00.
122975 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
122977         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
122978         spurious "-l"s.  Problem reported by Stepan Kasal.
122980 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
122982         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
122983         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
122985 2004-12-04  Simon Josefsson  <jas@extundo.com>
122987         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
122988         Vandoorselaere <yoann@prelude-ids.org>.
122990 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122992         Changes imported from coreutils.
122993         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
122994         exist.
122995         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
122997 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122999         Changes imported from coreutils.
123000         * lib/hard-locale.c: Assume <locale.h> exists.
123001         Include "strdup.h".
123002         (GLIBC_VERSION): New macro.
123003         (hard_locale): Assume setlocale exists.
123004         Rewrite to avoid #ifdef.
123005         Use strdup rather than malloc + strcpy.
123006         * lib/human.c: Assume <locale.h> exists.
123007         (human_readable): Assume localeconv exists.
123009 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123011         * modules/hard-locale (Depends-on): Add strdup.
123013 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
123015         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
123016         convert T2, not T.  (Imported from libc.)
123018 2004-11-30  Simon Josefsson  <jas@extundo.com>
123020         * modules/restrict (License): Change to LGPL.
123022 2004-11-30  Simon Josefsson  <jas@extundo.com>
123024         * m4/restrict.m4: Add copyright and copying conditions.
123026 2004-11-30  Simon Josefsson  <jas@extundo.com>
123028         * m4/base64.m4: New file.
123030 2004-11-30  Simon Josefsson  <jas@extundo.com>
123032         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
123033         base64.
123035         * tests/test-base64.c: New file.
123037         * modules/base64: New file.
123039 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123041         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
123042         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
123044         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
123046 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123048         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
123049         (__getcwd.c): Don't restore errno; glibc doesn't.
123050         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
123051         first, falling back to our code only if its results look suspicious.
123052         Ensure that the resulting buffer is only as large as necessary.
123054         * lib/readutmp.c: Include readutmp.h first.
123055         Include <errno.h>, since readutmp.h no longer does that.
123056         * lib/readutmp.h: Don't include <errno.h>,
123057         <sys/param.h>, <time.h>; not needed to establish interface.
123058         (errno): Remove decl.
123059         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
123060         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
123061         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
123063 2004-11-28  Simon Josefsson  <jas@extundo.com>
123065         * lib/base64.h, base64.c: New file.
123067 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
123069         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
123071 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
123073         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
123074         (Depends-on): Remove pathmax, same.  Add mempcpy.
123075         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
123076         (Makefile.am): Append getcwd.h to lib_SOURCES.
123077         (Include): Add getcwd.h.
123078         (Maintainer): Change from Jim Meyering to "all, glibc",
123079         since getdate now uses intended-for-glibc code.
123080         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
123081         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
123083 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123085         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
123086         HP's ANSI C compiler.
123087         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
123088         Declaring int functions causes warnings on some modern systems and
123089         shouldn't be needed to compile on ancient ones.
123090         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
123091         defined.
123093         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
123094         with the following changes.
123095         (__set_errno): Parenthesize properly.
123096         Include <stdbool.h>.
123097         (MIN, MAX, MATCHING_INO): New macros.
123098         (__getcwd): Define with prototype, not K&R form.
123099         Use heuristics to allocate default buffer on stack if possible.
123100         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
123101         behavior, and to avoid the PATH_MAX limit when computing
123102         ../../../../...
123103         Use MATCHING_INO to compare inode number to file.
123104         Check for arithmetic overflow in size calculations.
123105         Fix bug in reallocation of dot array that caused getcwd to fail
123106         on directories nested deeper than 75.
123107         Be more careful about saving errno on error.
123108         Do not use realloc; use only free+malloc, as this is a bit
123109         more flexible and avoids a needless copy operation.
123110         Do not inspect st_dev and st_ino for symbolic links; POSIX
123111         doesn't specify the latter.
123112         Check for closedir errors.
123113         Avoid needless casts.
123114         Use "#ifdef weak_alias" around weak_alias, to be like other
123115         glibc code.
123116         The following changes to getcwd.c have effect only when used in
123117         gnulib; they have no effect inside glibc proper.
123118         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
123119         as alloca isn't used.
123120         (alloca, __alloca): Likewise.
123121         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
123122         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123123         unconditionally, as gnulib assumes C89 or better.
123124         Do not include <sys/param.h>.
123125         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
123126         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
123127         better.
123128         (NULL) [!defined NULL]: Remove; we assume C89 or better.
123129         Include <dirent.h> in a way that is compatible with modern Autoconf.
123130         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
123131         New macros, if not already defined.
123132         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
123133         Use "_LIBC", not "defined _LIBC", for consistency.
123134         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
123135         a mempcpy module.
123136         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
123137         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
123138         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
123139         credit only to Jim Meyering and adjust the copyright dates.
123140         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
123141         <stdlib.h>, <unistd.h>, "pathmax.h".
123142         Instead, include "xgetcwd.h" (first) and "getcwd.h".
123143         (INITIAL_BUFFER_SIZE): Remove.
123144         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
123146 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123148         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
123149         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
123150         Use the _ONCE methods, for efficiency.
123151         Check for fcntl.h.  In test program, include <errno.h>
123152         and <fcntl.h> if available.  Remove old K&R cruft from
123153         test program.  Check for common errors in GNU/Linux,
123154         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
123155         don't do AC_LIBOBJ, as that's getcwd.m4's job.
123156         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
123157         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
123158         name accordingly.
123159         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
123160         accommodate new getcwd.c.
123161         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
123162         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
123163         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
123164         that's all we need now.
123166 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123168         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
123169         argp-parse.c depends on getopt internals, that means we should
123170         always use our getopt, to be on the safe side.
123171         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
123172         order not to spoil the result of an eventual previous invocation
123173         of gl_GETOPT_SUBSTITUTE.
123175 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123177         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
123178         redefinition warnings. To avoid them, include the defines
123179         in `#if !defined __need_getopt ... #endif'. The only place
123180         where __getopt_argv_const is used is in definitions
123181         of getopt_long and getopt_long_only below, which are as well
123182         protected by `#ifndef __need_getopt'.
123183         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
123184         __need_getopt after including <stdio.h> and <unistd.h> These
123185         headers might have defined it.
123187 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123189         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
123191 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123193         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
123194         (futimens): New function, which uses futimes if available.
123195         (futimens, utimens): Support timespec==NULL, with same semantics
123196         as utime and utimens.
123197         * lib/utimens.h (futimens): New decl.
123199 2004-11-23  Jim Meyering  <jim@meyering.net>
123201         * lib/getopt_.h: Remove trailing blanks.
123203 2004-11-23  Jim Meyering  <jim@meyering.net>
123205         * lib/__fpending.c: Add comment.
123207 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
123209         * modules/canonicalize (Depends-on): Add xreadlink.
123210         Problem reported by James Youngman.
123212 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
123214         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
123215         New macros.
123216         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
123217         optopt): Use them instead of invoking ## directly; otherwise, the
123218         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
123220 2004-11-19  Bruno Haible  <bruno@clisp.org>
123222         * lib/strtok_r.c: Move comments from here...
123223         * lib/strtok_r.h: ... to here.
123225 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123227         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
123228         implementations that mishandle size_t overflow.
123230 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123232         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
123233         might fail.  Problem reported by Yoann Vandoorselaere.
123234         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
123235         implementations that mishandle size_t overflow.
123237 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123239         * modules/canon-host (Depends-on): Add strdup.
123241 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123243         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
123245 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123247         * lib/canon-host.c: Include "strdup.h".
123248         (canon_host): Use getaddrinfo if available, so that IPv6 works.
123249         Use strdup instead of malloc/strcpy to duplicate strings.
123251         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
123252         (human_space_before_unit): New constant.
123253         * lib/human.c (human_readable): Support it.
123255         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
123256         (xgetcwd): Set errno correctly when failing.
123257         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
123258         the failure is actually due to a PATH_MAX problem.
123260         Further getopt changes to make it more likely that glibc will
123261         buy the changes back.
123262         * lib/getopt.c (POSIXLY_CORRECT): New constant.
123263         (getopt): Use it, so to preserve glibc semantic
123264         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
123265         when compiling for libc.
123266         * lib/getopt_.h (__getopt_argv_const): Bring it back.
123267         (getopt_long, getopt_long_only): Use it.
123269         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123270         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
123271         (getopt): Argv is now char * const *, as per standard.
123272         (_getopt_internal_r, _getopt_internal): Argv is now char **,
123273         not char *__getopt_argv_const *.
123274         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123275         _getopt_long_only_r): Likewise.
123276         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
123277         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123278         _getopt_long_r, _getopt_long_only_r): Likewise.
123279         * lib/getopt_.h (__getopt_argv_const): Remove.
123280         (getopt): Argv is now char * const *, as per standard.
123282         * lib/getdate.y (tORDINAL): New token.
123283         (day, relunit): Allow it for relative times.
123284         (relative_time_table): Use tORDINAL for ordinals.
123286 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123288         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
123289         Document that "second" isn't allowed as an ordinal number.
123291 2004-11-16  Jim Meyering  <jim@meyering.net>
123293         * modules/closeout (Depends-on): Add fpending.
123295 2004-11-15  Jim Meyering  <jim@meyering.net>
123297         * lib/closeout.c: Include "__fpending.h" once again.
123298         Include <stdbool.h>.
123299         (close_stdout): Don't fail just because stdout was closed initially,
123300         since some programs don't write to stdout in the normal course of
123301         operation (other than --version and --help), and we don't want this
123302         function to make e.g. `touch file >&-' fail.
123303         But do fail if it was closed and someone has tried to write to it.
123304         E.g., `printf foo >&-' must fail.
123306 2004-11-13  Jim Meyering  <jim@meyering.net>
123308         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
123310 2004-11-12  Simon Josefsson  <jas@extundo.com>
123312         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
123313         small doc fix is still pending.
123315 2004-11-11  Simon Josefsson  <jas@extundo.com>
123317         * modules/strtok_r: New file.
123319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123320         strtok_r.
123322 2004-11-11  Simon Josefsson  <jas@extundo.com>
123324         * m4/strtok_r.m4: New file.
123326         * m4/getopt.m4: Replace opterr.
123328 2004-11-11  Simon Josefsson  <jas@extundo.com>
123330         * lib/strtok_r.h, strtok_r.c: New file.
123332 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123334         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
123335         of replacing opterr, getopt, etc.  This should handle the
123336         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
123338 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123340         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
123341         we can stop lying to compilers about the constness of argv when we
123342         are compiled outside glibc.
123343         (getopt, getopt_long, getopt_long_only): Use it.
123344         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123345         _getopt_internal, getopt): Likewise.
123346         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123347         _getopt_long_only_r): Likewise.
123348         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123349         _getopt_long_r, _getopt_long_only_r): Likewise.
123351         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
123352         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
123353         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
123354         the other external symbols.
123355         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
123356         declaration, since the above renaming now works around collisions.
123358 2004-11-11  Jim Meyering  <jim@meyering.net>
123360         * lib/linebreak.c: Remove trailing blanks.
123361         * lib/alloca_.h: Likewise.
123362         * lib/acosl.c: Likewise.
123363         * lib/euidaccess.c: Likewise.
123364         * lib/allocsa.h: Likewise.
123366 2004-11-10  Simon Josefsson  <jas@extundo.com>
123368         * m4/getaddrinfo.m4: New file.
123370 2004-11-10  Simon Josefsson  <jas@extundo.com>
123372         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
123374 2004-11-10  Simon Josefsson  <jas@extundo.com>
123376         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123377         getaddrinfo.
123379         * modules/getaddrinfo: New file.
123381 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123383         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
123385 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123387         * lib/mktime.c (SHR): New macro, which is a portable
123388         substitute for >> that should work even on Crays.
123389         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
123390         Problem reported by Mark D. Baushke in
123391         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
123392         * lib/getdate.y (SHR): Likewise.
123393         (tm_diff): Use it.
123394         * lib/strftime.c (SHR): Likewise.
123395         (tm_diff): Use it.
123396         * lib/quotearg.c (struct quoting_options): Use unsigned int for
123397         quote_these_too, so that right shifts are well defined.  All uses
123398         changed.
123400 2004-11-10  Jim Meyering  <jim@meyering.net>
123402         Ensure that no close failure goes unreported.
123403         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
123404         return early when it seems there's nothing to flush.
123405         Don't include __fpending.h.
123407 2004-11-10  Jim Meyering  <jim@meyering.net>
123409         * modules/closeout (Depends-on): Remove fpending.
123411 2004-11-10  Jim Meyering  <jim@meyering.net>
123413         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
123415 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123417         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
123418         gl_FUNC_STRFTIME.
123419         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
123420         and AC_REQUIRE when possible, to avoid duplicate checks.
123421         Check for <wchar.h>.
123423 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123425         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
123427 2004-11-09  Bruno Haible  <bruno@clisp.org>
123429         * m4/sockpfaf.m4: New file.
123431 2004-11-05  Bruno Haible  <bruno@clisp.org>
123433         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
123434         Reported by Mark D. Baushke <mdb@cvshome.org>.
123436 2004-11-04  Bruno Haible  <bruno@clisp.org>
123438         2004-09-11  Bruno Haible  <bruno@clisp.org>
123439                 * allocsa.valgrind: New file.
123440         2004-02-06  Bruno Haible  <bruno@clisp.org>
123441                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
123442                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
123443                 Reported by Christopher Seip <chris.seip@hp.com>.
123445 2004-11-04  Bruno Haible  <bruno@clisp.org>
123447         * modules/allocsa (Files): Add lib/allocsa.valgrind.
123448         (Makefile.am): Distribute it.
123450 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
123452         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
123453         with errno == ERANGE if the buffer is too small.
123454         Problem reported by Mark D. Baushke.
123456 2004-11-03  Albert Chin  <china@thewrittenword.com>
123457             Paul Eggert  <eggert@cs.ucla.edu>
123459         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
123460         equivalent, substitute $ac_type for equivalent type rather than
123461         blindly using uint32_t *always* which won't work if uint32_t is not
123462         available.  Define _UINT32_T to work around typedef of uint32_t if
123463         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
123464         2.5.1.
123466 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123468         * m4/jm-macros.m4: Sync from coreutils.
123469         (gl_MACROS): Check for mbrlen, for pathchk.
123470         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
123472 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123474         * lib/xreadlink.c (MAXSIZE): New macro.
123475         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
123476         size does not exceed MAXSIZE.  Avoid cast.
123477         As suggested by Mark D. Baushke in
123478         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
123479         if readlink fails with buffer size just under MAXSIZE, try again
123480         with MAXSIZE.
123482 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123484         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
123486 2004-11-02  Derek R. Price  <derek@ximbiot.com>
123487         and  Paul Eggert  <eggert@cs.ucla.edu>
123489         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
123490         (get_date): Overparenthesize to avoid GCC warning.
123492 2004-11-02  Bruno Haible  <bruno@clisp.org>
123494         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
123495         returns void.
123497 2004-11-02  Bruno Haible  <bruno@clisp.org>
123499         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
123500         function returns void.
123502 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123504         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
123505         fflush_unlocked, flockfile, funlockfile, funlockfile,
123506         fputs_unlocked, putc_unlocked.
123508 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123510         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123511         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
123512         already declared.
123514 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123516         * modules/getdate (Files): Add doc/getdate.texi.
123517         (Depends-on): Add setenv, xalloc.
123519 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123521         * lib/getdate.y: Add support for TZ="foo" within a date string.
123522         Fix some bugs near time_t boundaries.  Reject dates with
123523         out-of-range components, e.g., "Sept 31".
123524         Include <stdlib.h>, "setenv.h", "xalloc.h".
123525         (ISDIGIT_LOCALE): Remove; unused.
123526         Note that the TZ and time functions used here are not reentrant.
123527         (mktime_ok, get_tz): New functions.
123528         (TZBUFSIZE): New constant.
123529         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
123530         This requires that we sometimes generate our own TZ="XXX..." setting.
123532 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123534         * doc/getdate.texi: New file, from coreutils with modifications for
123535         the new TZ parsing.
123537 2004-10-27  Derek R. Price  <derek@ximbiot.com>
123539         * lib/mktime.c (not_equal_tm): Remove redundant check.
123541 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123543         * modules/regex (lib_SOURCES): Add regex.c.
123544         Reported by James Youngman in
123545         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
123547 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123549         * lib/getdate.y: Use Bison 1.875 features, and some minor
123550         code cleanups.  This change does not affect semantics.
123551         Don't include <stdlib.h>; no longer needed.
123552         Don't include unlocked-io.h; only the "#if TEST" code uses
123553         stdio, and performance isn't crucial there.
123554         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
123555         Bison 1.875 features as described below.
123556         All uses of "PC." replaced by "pc->".
123557         (YYSTYPE): Add a forward declaration.
123558         (yylex, yyerror): Use full prototypes in forward decls.
123559         Use "%pure-parser" rather than obsolescent "%pure_parser".
123560         Use %parse-param and %lex-param instead of obsolescent
123561         YYPARSE_PARAM and YYLEX_PARAM.
123562         (meridian_table, month_and_day_table, time_units_table,
123563         relative_time_table, time_zone_table, military_table,
123564         lookup_zone, lookup_word, get_date):
123565         Use NULL instead of 0 where appropriate.
123566         (to_hour): Avoid abort (), to avoid a dependency on
123567         stdlib.h.
123568         (yyerror, yylex): Now accepts parser_control * arg.
123569         (main) [TEST]: Use '\0' rather than 0 for char.
123571 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123573         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
123575 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123577         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
123578         It's now the caller's responsibility to handle the case where
123579         !HAVE_GETPAGESIZE && !defined getpagesize.
123581         * lib/mktime.c (leapyear): Arg is long int, not int.
123583 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
123585         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
123587 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
123589         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
123590         missing.  Problem reported by James Youngman.
123592 2004-10-16  Simon Josefsson  <jas@extundo.com>
123594         * gnulib-tool: Fix comments.  Fix parse problem.
123595         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
123597 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
123599         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
123600         implementation of getopt_long.  Problem reported by Alexander Taler in:
123601         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
123603 2004-10-15  Bruno Haible  <bruno@clisp.org>
123605         * gnulib-tool: Untabify. Initialize supplied_libname.
123606         (func_usage): More homogenous output.
123607         (func_modules_transitive_closure, func_modules_to_filelist,
123608         func_emit_lib_Makefile_am): New functions.
123609         (func_import): New function, extracted from big case statement. Use
123610         func_get_license, func_modules_transitive_closure,
123611         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
123612         opt_lgpl. Don't use test -a, as it's not portable.
123613         (func_create_testdir): Use func_modules_transitive_closure,
123614         func_modules_to_filelist, func_emit_lib_Makefile_am.
123616 2004-10-15  Bruno Haible  <bruno@clisp.org>
123618         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
123620 2004-10-15  Bruno Haible  <bruno@clisp.org>
123622         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
123623         the portions belonging to each module.
123624         Suggested by Derek Robert Price <derek@ximbiot.com>.
123626 2004-10-12  Simon Josefsson  <jas@extundo.com>
123628         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123629         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
123630         to real functions.
123632 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123634         * modules/vsnprintf: New file.
123636 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123638         * m4/vsnprintf.m4: New file.
123640 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123642         * lib/vsnprintf.h: New file.
123643         * lib/vsnprintf.c: New file.
123645 2004-10-11  Bruno Haible  <bruno@clisp.org>
123647         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
123648         vsnprintf.
123650 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
123652         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
123654 2004-10-07  Bruno Haible  <bruno@clisp.org>
123656         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
123657         fits into the provided buffer.
123659 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
123661         * lib/diacrit.c, diacrit.h: Add GPL notice.
123663         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
123664         notice.
123665         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
123666         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
123667         This avoids a potential constant-folding bug.
123669 2004-10-05  Bruno Haible  <bruno@clisp.org>
123671         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
123672         for the declaration of strsep.
123674 2004-10-05  Bruno Haible  <bruno@clisp.org>
123676         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
123678 2004-10-04  Simon Josefsson  <jas@extundo.com>
123680         * modules/memmem: New file.
123681         * tests/test-memmem.c: New file.
123682         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
123684 2004-10-04  Simon Josefsson  <jas@extundo.com>
123686         * m4/memmem.m4: New file.
123688 2004-10-04  Simon Josefsson  <jas@extundo.com>
123690         * lib/memmem.h: New file.
123691         * lib/memmem.c: New file, taken from glibc.
123693 2004-10-04  Simon Josefsson  <jas@extundo.com>
123695         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
123696         '#ifdef USE_UNLOCKED_IO'.
123698 2004-10-04  Simon Josefsson  <jas@extundo.com>
123700         * config/srclist.txt: Add memmem from glibc.
123702 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123704         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
123706         * modules/argmatch, modules/argp, modules/closeout, modules/error,
123707         modules/exclude, modules/getdate, modules/getline,
123708         modules/getndelim2, modules/getpass, modules/getpass-gnu,
123709         modules/getusershell, modules/linebuffer, modules/md5,
123710         modules/mountlist, modules/posixtm, modules/readtokens,
123711         modules/readutmp, modules/regex, modules/sha1,
123712         modules/version-etc, modules/yesno:
123713         Remove dependency on unlocked-io.
123715 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123717         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
123719         * m4/unlocked-io.m4: Add copyright notice.
123720         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
123722 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123724         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
123725         * lib/xmalloc.c (xmemdup): Likewise.
123726         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
123727         XFREE): Remove these long-obsolescent macros.
123728         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
123729         * lib/xstrdup.c: Remove.
123731         * lib/regex.c (re_comp): Cast gettext return value to char *,
123732         Problem reported by Martin Neitzel via Mark D. Baushke.
123734 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123736         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
123737         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
123738         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
123739         regex.c, sha1.c, version-etc.c, yesno.c:
123740         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
123741         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
123742         the includer's responsibility.
123744         Sync from coreutils.
123746         * lib/modechange.c (mode_compile): Don't decrement a pointer that
123747         points to the start of a string, as the C Standard says the
123748         resulting behavior is undefined.
123750         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
123751         simple -> simple_backups, numbered_existing ->
123752         numbered_existing_backups, numbered -> numbered_backups
123753         to avoid shadowing problems.  All uses changed.
123754         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
123755         * lib/backupfile.c (check_extension, numbered_backup):
123756         Rename locals to avoid shadowing 'basename'.
123757         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
123758         once.
123760         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
123761         * lib/.cvsignore: Add getopt.h.
123763 2004-10-04  Bruno Haible  <bruno@clisp.org>
123765         * modules/README: New file.
123766         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
123767         not a module.
123769 2004-10-02  Jim Meyering  <jim@meyering.net>
123771         * lib/dirfd.h, getpagesize.h: Add copyright notice.
123773 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123775         * modules/strsep: New file.
123777 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123779         * m4/strsep.m4: New file.
123781 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123783         * lib/strsep.h: New file.
123784         * lib/strsep.c: New file.
123786 2004-10-01  Simon Josefsson  <jas@extundo.com>
123788         * lib/snprintf.c (snprintf): Handle size==0.
123790 2004-10-01  Simon Josefsson  <jas@extundo.com>
123791             Bruno Haible  <bruno@clisp.org>
123793         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
123794         (snprintf): Declare 'args'.
123796 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
123798         * lib/snprintf.c: Remove comments as to why each header is needed.
123800 2004-10-01  Bruno Haible  <bruno@clisp.org>
123802         * MODULES.html.sh: Add strsep.
123804 2004-09-30  Simon Josefsson  <jas@extundo.com>
123806         * modules/snprintf: New file.
123808 2004-09-30  Simon Josefsson  <jas@extundo.com>
123810         * m4/snprintf.m4: New file.
123812 2004-09-30  Simon Josefsson  <jas@extundo.com>
123814         * lib/snprintf.h, lib/snprintf.c: New files.
123816 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123818         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
123819         (hol_entry_help): Never translate an empty string.
123820         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
123821         * lib/argp.h (OPTION_NO_TRANS): New option.
123823 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123825         * modules/argp (Maintainer): Replace Simon Josefsson
123826         by Sergey Poznyakoff.
123828 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123830         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
123831         changes merged back into glibc.
123833 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123835         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
123837 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
123839         * lib/xvasprintf.c: Include xalloc.h.
123840         (xvasprintf): Use xalloc_die, not xmalloc_die.
123842 2004-09-29  Bruno Haible  <bruno@clisp.org>
123844         * modules/alloca-opt: New file, derived from modules/alloca.
123845         * modules/allocsa: Depend on alloca-opt instead of alloca.
123846         * modules/setenv: Likewise.
123847         * modules/vasnprintf: Likewise.
123848         * MODULES.html.sh: Add alloca-opt.
123850 2004-09-28  Simon Josefsson  <jas@extundo.com>
123852         * gnulib-tool: New parameter --lgpl, to asseert that modules are
123853         LGPL, and to replace license template from GPL to LGPL.
123855 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123857         * modules/dummy: Change license to LGPL.
123859 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123861         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
123863 2004-09-24  Simon Josefsson  <jas@extundo.com>
123865         * modules/minmax (License): Change from GPL to LGPL.
123867 2004-09-23  Simon Josefsson  <jas@extundo.com>
123869         * gnulib-tool (--import): Typo.
123871 2004-09-23  Simon Josefsson  <jas@extundo.com>
123873         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
123875 2004-09-22  Bruno Haible  <bruno@clisp.org>
123877         * modules/*: Add 'License' field.
123878         * gnulib-tool: Accept --extract-license option.
123879         (func_get_license): New function.
123881 2004-09-21  Bruno Haible  <bruno@clisp.org>
123883         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
123884         Reported by Simon Josefsson.
123886 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123888         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
123889         gl_AC_TYPE_LONG_LONG.
123891 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123893         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
123895 2004-09-18  Simon Josefsson  <jas@extundo.com>
123896         and  Paul Eggert  <eggert@cs.ucla.edu>
123898         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
123899         calls with autoreconf.  Define GL_LIB.
123901 2004-09-14  Karl Berry  <karl@gnu.org>
123903         * config/srclist.txt: unsync setenv.c, sigh.
123905 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123907         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
123908         Problem reported by Bruno Haible in:
123909         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
123911 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123913         * config/srclist.txt: Comment out argp-pvh.c.
123915 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
123917         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
123918         in case some system header has #define'd it.  Problem reported by
123919         Soeren D. Schulze in
123920         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
123922 2004-09-09  Karl Berry  <karl@gnu.org>
123924         * regex.[ch]: delete from the root.  These were supposed to be
123925                 synced with emacs cvs, but this has not happened for about
123926                 a year, and anyway nothing else uses emacs regex.[ch].
123927                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
123928                 lib/regex[.ch] is untouched.
123930 2004-09-09  Bruno Haible  <bruno@clisp.org>
123932         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
123934 2004-09-09  Bruno Haible  <bruno@clisp.org>
123936         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
123937         modifications.
123938         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
123940 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123942         * modules/xvasprintf: New file.
123943         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
123945 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123947         * lib/xvasprintf.h: New file.
123948         * lib/xvasprintf.c: New file.
123949         * lib/xasprintf.c: New file.
123951 2004-09-08  Bruno Haible  <bruno@clisp.org>
123953         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
123955 2004-09-08  Bruno Haible  <bruno@clisp.org>
123957         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
123958         length is > INT_MAX.
123959         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
123960         more.
123962 2004-09-08  Bruno Haible  <bruno@clisp.org>
123964         * lib/stdint_.h: New file, taken from GNU clisp.
123966 2004-09-08  Bruno Haible  <bruno@clisp.org>
123967             Oskar Liljeblad  <oskar@osk.mine.nu>
123969         * modules/stdint: New file.
123970         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
123972 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123974         Import from coreutils.
123975         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
123976         strings on unbounded length.  alloca's performance benefits aren't
123977         that important here.
123978         (V_STRDUP): Remove.
123979         (parse_with_separator): New function, with most of the internals
123980         of the old parse_user_spec.  Allow user to omit both user and group,
123981         for compatibility with FreeBSD.
123982         Clone only the user name, not the entire spec.
123983         Do not set *uid, *gid unless entirely successful.
123984         Avoid memory leak in some failing cases.
123985         Fix regression for USER.GROUP reported by Dmitry V. Levin in
123986         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
123987         (parse_user_spec): Rewrite to use parse_with_separator.
123989 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123991         * modules/userspec: Don't depend on alloca.
123993 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123995         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
123997 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
123999         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
124000         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
124001         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
124003 2004-08-16  Simon Josefsson  <jas@extundo.com>
124005         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
124006         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
124007         Add --dry-run for --import.
124008         Let user provided command line parameters override configure.ac
124009         settings.
124011 2004-08-12  Simon Josefsson  <jas@extundo.com>
124013         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
124014         as discussed with Paul Eggert in threads rooted at
124015         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
124016         and
124017         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
124018         Before, the test was empty, and relied on ELIDE_CODE in source
124019         code.)
124020         (gl_PREREQ_GETOPT): New macro.
124021         (gl_GETOPT): Use them.
124023 2004-08-12  Simon Josefsson  <jas@extundo.com>
124025         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
124026         * lib/getopt_.h: Renamed from getopt.h.
124028 2004-08-12  Simon Josefsson  <jas@extundo.com>
124030         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
124031         Change default library name from libfoo to libgnu.
124032         Now, if you have a configure.ac that says:
124033                 gl_SOURCE_BASE(gl)
124034                 gl_M4_BASE(gl/m4)
124035                 gl_MODULES(error getopt etcetera)
124036                 gl_INIT
124037         you can import all you need by running:
124038                 ../gnulib/gnulib-tool --import
124040         * modules/getopt (Files): Rename getopt.h to getopt_.h.
124041         (Makefile.am): Rewrite, use logic from argz.
124042         (Include): Use <getopt.h> instead of "getopt.h".
124044 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124046         * modules/argp (Files): Add m4/unlocked-io.m4.
124047         (Depends-on): Add extensions.
124049 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124051         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
124052         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
124053         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
124054         Check for program_invocation_name, program_invocation_short_name,
124055         flockfile, funlockfile, features.h, _getopt_long_only_r.
124057 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124059         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
124060         its complicated substitute.
124061         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
124062         and program_invocation_name.
124063         (__argp_basename) [!_LIBC]: Remove; the only use was
124064         replaced by its body.
124065         (__argp_short_program_name): Change condition from
124066         !defined __argp_short_program_name to
124067         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
124068         to match argp-namefrob.h.
124069         (__argp_failure): Don't assume strerror_r returns char *.
124070         * lib/argp-parse.c (N_): Define unconditionally.
124071         (argp_default_options): Fill out initializers with 0 to avoid
124072         gcc warnings.
124074 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124076         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
124077         getopt1.c.
124079 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124081         Merge from coreutils.
124083         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
124085         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
124086         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
124088 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124090         Merge from coreutils.
124092         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
124093         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
124094         for Reliant Unix 5.43.
124096         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
124097         (union fooround): Use uintmax_t, not long int.
124098         The rest is a merge from libc:
124099         [defined _LIBC]: Include <shlib-compat.h>.
124100         (_obstack) [defined _LIBC]: Remove after 2.3.4.
124102         * lib/settime.c (settime): Recode to avoid warning with
124103         Sun Forte C 6U2.
124105         * lib/strverscmp.c: Convert to UTF-8.
124107 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124109         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
124110         m4/uintmax_t.m4.
124112 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124114         * modules/xalloc-die: New file.
124115         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
124117         * modules/md5 (Files): Add m4/uint32_t.m4.
124118         * modules/sha1: Renamed from modules/sha.
124119         (Files):
124120         Rename lib/sha.h to lib/sha1.h.
124121         Rename lib/sha.c to lib/sha1.c.
124122         Rename m4/sha.m4 to m4/sha1.m4.
124123         (lib_SOURCES): Likewise.
124124         (configure.ac): Rename gl_SHA to gl_SHA1.
124125         (Include): sha.h -> sha1.h.
124127 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124129         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
124130         * m4/sha1.m4: Renamed from sha.m4.
124131         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
124133 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124135         * lib/obstack.h (obstack_empty_p):
124136         Don't assume that chunk->contents is suitably aligned.
124137         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
124138         Likewise. Problem reported by Benno in
124139         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
124141         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
124142         readable.  This could be improved further but it'd take some work.
124144 2004-08-08  Simon Josefsson  <jas@extundo.com>
124146         * modules/xgethostname (Depends-on): Remove exit and error (not
124147         used).
124149         * modules/getpass-gnu: Add getpass.h.
124150         (Depends-on): Add stdbool.
124151         * modules/getpass: Add getpass.h.
124153 2004-08-08  Simon Josefsson  <jas@extundo.com>
124155         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
124156         Check getpass declaration.
124158 2004-08-08  Simon Josefsson  <jas@extundo.com>
124160         * lib/xgethostname.c: Don't include error.h (not used).
124162         * lib/getpass.h: Add.
124163         * lib/getpass.c: Include getpass.h first.
124165 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
124167         * lib/xalloc-die.c: New file.
124168         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
124169         All uses removed.
124170         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
124171         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
124172         xalloc-die.c.
124173         (_, N_, xalloc_die): Move to xalloc-die.c.
124174         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
124175         so that we needn't mess with xalloc_msg_memory_exhausted.
124177         * lib/sha1.h: Renamed from sha.h.
124178         (SHA1_H): Renamed from _SHA_H.
124179         (sha1_ctx): Renamed from sha_ctx.
124180         (sha1_init_ctx): Renamed from sha_init_ctx.
124181         (sha1_process_block): Renamed from sha_process_block.
124182         (sha1_process_bytes): Renamed from sha_process_bytes.
124183         (sha1_finish_ctx): Renamed from sha_finish_ctx.
124184         (sha1_read_ctx): Renamed from sha_read_ctx.
124185         (sha1_stream): Renamed from sha_stream.
124186         (sha1_buffer): Renamed from sha_buffer.
124187         * lib/sha1.c: Likewise; renamed from sha.c.
124188         Do not include <sys/types.h>.
124189         Include <stddef.h> rather than <stdlib.h>.
124191 2004-08-08  Bruno Haible  <bruno@clisp.org>
124193         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
124194         FILESYSTEM_PREFIX_LEN.
124195         * lib/progreloc.c: Likewise.
124196         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
124198 2004-08-06  Simon Josefsson  <jas@extundo.com>
124200         * modules/progname (Depends-on): Don't depend on stdbool.
124202 2004-08-06  Simon Josefsson  <jas@extundo.com>
124204         * modules/getsubopt: New file.
124205         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124206         getsubopt.
124208 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124210         More merge from coreutils.
124212         * m4/utimens.m4, m4/utimecmp.m4: New files.
124213         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
124214         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
124215         prereq.m4, sha.m4: Import changes from coreutils.
124217 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124219         More merge from coreutils.
124220         * modules/raise, modules/readtokens0, modules/utimens:
124221         * modules/utimecmp, module/xnanosleep: New files.
124222         * modules/strftime: Add lib/strftime.h.
124223         Change include from <time.h> to "strftime.h".
124224         * modules/yesno: Add lib/yesno.h.
124225         * modules/backupfile: Remove lib/addext.c.
124226         * modules/euidaccess: Add stat-macros.h.
124227         * modules/canonicalize, modules/euidaccess,
124228         modules/filemode, modules/lchown, modules/makepath,
124229         modules/rmdir, modules/stat: Likewise.
124231 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124233         Merge from tar.
124234         * lib/argp-help.c (make_hol, hol_append): Don't assume that
124235         SIZE_MAX is a valid preprocessor constant.
124236         (__argp_basename): Change from "#ifndef _LIBC"
124237         to "#ifndef __argp_short_program_name", so that
124238         we don't compile these functions for tar.
124240         More merges from coreutils.
124241         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
124242         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
124243         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
124244         * lib/addext.c: Remove; no longer needed.
124245         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
124246         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
124247         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
124248         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
124249         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
124250         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
124251         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
124252         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
124253         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
124254         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
124255         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
124256         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
124257         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
124258         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
124259         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
124260         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
124261         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
124262         Import changes from coreutils.
124264 2004-08-05  Simon Josefsson  <jas@extundo.com>
124266         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
124268 2004-08-05  Simon Josefsson  <jas@extundo.com>
124270         * m4/getsubopt.m4: New file.
124272 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124274         Merge from coreutils.
124276         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
124277         * m4/getcwd-path-max.m4: New files.
124279         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
124280         FILESYSTEM_PREFIX_LEN ->
124281         FILE_SYSTEM_PREFIX_LEN.
124282         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
124283         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
124284         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
124285         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
124287         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
124288         prerequisite modules now handle the DOS stuff.
124289         Don't check for unistd.h.
124291 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124293         Merge from coreutils.
124295         * lib/.gdb-history: Remove; this doesn't belong here.
124297         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
124298         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
124299         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
124300         * lib/getcwd.c: New files.
124302         * lib/dirname.h: Include <stdbool.h>.
124303         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
124304         for consistency with POSIX terminology.  All uses changed.
124305         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
124306         (strip_trailing_slashes): Use bool for booleans.
124307         * lib/stripslash.c (strip_trailing_slashes): Likewise.
124309         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
124310         sometimes returns a positive errno value even when it succeeds.
124311         (print_errno_message) [!LIBC]: Fall back on strerror if
124312         __strerror_r fails.
124314         * lib/path-concat.c (mempcpy): Don't define if a system header defines
124315         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
124316         (longest_relative_suffix): New function.
124317         (path_concat): Use it.  Assume first argument is not NULL.
124318         Port to DOS.  Omit redundant separators.
124319         Report an error instead of returning NULL.
124320         Use mempcpy instead of memcpy.
124321         (xpath_concat): Remove: not declared or used.
124323         * lib/same.h: Include <stdbool.h>
124324         (same_name): Return bool, not int.
124325         * lib/same.c (same_name): Likewise.
124326         (errno): Don't declare; we assume C89 or better now.
124328         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
124329         if not already defined.
124331         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
124332         * lib/dup-safer.c (errno): Likewise.
124334 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124336         Merge from coreutils.
124337         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
124338         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
124339         * modules/path-concat: Don't depend on strdup.
124341 2004-08-03  Simon Josefsson  <jas@extundo.com>
124343         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
124344         * lib/progname.h: Don't include stdbool.h.
124346 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124348         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
124349         * MODULES.html.sh (func_all_modules): Remove fatal.
124351 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124353         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
124355 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124357         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
124358         working.
124360 2004-08-02  Simon Josefsson  <jas@extundo.com>
124362         * lib/getsubopt.h: New file, with comments from Bruno Haible.
124363         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
124364         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
124366 2004-08-01  Simon Josefsson  <jas@extundo.com>
124368         * lib/xgetdomainname.c: Include stdlib.h, for free().
124370 2004-07-19  Bruno Haible  <bruno@clisp.org>
124372         * MODULES.html.sh (func_all_modules): Add dummy.
124374 2004-07-16  Simon Josefsson  <jas@extundo.com>
124376         * modules/dummy: New file.
124378 2004-07-16  Simon Josefsson  <jas@extundo.com>
124380         * lib/dummy.c: New file.
124382 2004-07-16  Bruno Haible  <bruno@clisp.org>
124384         * lib/backupfile.h: Add extern "C" for C++.
124385         * lib/closeout.h: Likewise.
124386         * lib/copy-file.h: Likewise.
124387         * lib/findprog.h: Likewise.
124388         * lib/full-write.h: Likewise.
124389         * lib/pathname.h: Likewise.
124390         * lib/progname.h: Likewise.
124391         * lib/stpcpy.h: Likewise.
124392         * lib/stpncpy.h: Likewise.
124393         * lib/strcase.h: Likewise.
124394         * lib/strstr.h: Likewise.
124395         * lib/xalloc.h: Likewise.
124397         * lib/mbswidth.h: Add extern "C" for C++.
124398         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
124400 2004-07-13  Robert Millan  <robertmh@gnu.org>
124402         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
124404 2004-07-09  Simon Josefsson  <jas@extundo.com>
124406         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
124407         failed without this.)
124409 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124411         * modules/chown (Files): Add lib/fchown-stub.c, since
124412         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
124414 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124416         * lib/fchown-stub.c: New file.
124418 2004-06-24  Jim Meyering  <jim@meyering.net>
124420         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
124422 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124424         * modules/argz: Omit "#include".
124426         * MODULES.html.sh (func_all_modules): Add calloc, to match
124427         2004-06-01 addition of calloc module.
124429 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124431         * m4/argz.m4: New file, which is autoupdated from libtool.
124433 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124435         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
124436         libtool.
124438 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124440         * config/srclist-update: Don't insist on "USA." before the
124441         close-comment, as libtool omits the period and puts the */ on a
124442         separate line.
124443         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
124444         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
124446 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
124448         * modules/argz: New file.
124449         * MODULES.html.sh (func_all_modules): Add argz.
124451 2004-06-12  Jim Meyering  <jim@meyering.net>
124452         and  Paul Eggert  <eggert@cs.ucla.edu>
124454         * modules/hash (Files): Add lib/xalloc.h.
124455         * modules/pipe (Depends-on): Add wait-process.
124456         * modules/stat (Depends-on): Add xalloc.
124457         * modules/userspec (Files): Add lib/userspec.h.
124458         * modules/xstrto
124460         Upgrade from gettext-0.13.
124461         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
124462         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
124463         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
124465 2004-06-10  Jim Meyering  <jim@meyering.net>
124467         * lib/calloc.c: New file.
124469 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
124471         * lib/getdate.y (yylex): Allow space between sign and number.
124472         Problem reported by Dan Jacobson.
124474 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124476         Merge from coreutils CVS.
124478         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
124479         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
124480         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
124481         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
124482         xstrtol.m4: Fix copyright date and/or serial number.
124484         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
124485         See if we need an fchown replacement.
124486         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
124487         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
124488         and use the replacement function if we detect either defect.
124490         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
124491         gl_UTIMECMP.
124493 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124494         and  Jim Meyering  <jim@meyering.net>
124496         Merge from coreutils CVS.
124498         * lib/stat-macros.h: New file, with contents from file-type.h
124499         and coreutils' system.h.
124500         * lib/file-type.c: Include "stat-macros.h".
124501         * lib/file-type.h (file_type): Move all macro definitions to new file,
124502         stat-macros.h.
124504         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
124505         Wrap old code with this conditional.
124506         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
124507         function that does not dereference symlinks.
124508         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
124510         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
124511         dependency problems.
124512         (xreadlink): Accept new arg SIZE, for efficiency.
124513         All decls and uses changed.
124514         * lib/xreadlink.h: Include <stddef.h>, for size_t.
124516         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
124517         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
124519         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
124520         sysexits.h.
124522 2004-06-01  Jim Meyering  <jim@meyering.net>
124524         * m4/calloc.m4: New file.
124526 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
124528         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
124529         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
124530         Also, fix a typo in a diagnostic.
124532 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124534         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
124535         or AC_FUNC_REALLOC.
124537 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124539         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
124540         macros to be defined.
124541         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
124542         the allocator returns NULL because the requested size is zero.
124544 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
124546         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
124547         var.  Add comment explaining why libc still defines it.  This
124548         merges the following patch from glibc:
124549         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
124551 2004-05-20  Andreas Schwab  <schwab@suse.de>
124553         * m4/free.m4: Replace free if it not known to work, not the other
124554         way round.
124556 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
124558         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
124559         present in glibc since revision 1.1 of this file.
124560         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
124561         obstack_alignment_mask, obstack_alloc, obstack_base,
124562         obstack_blank, obstack_blank_fast, obstack_chunk_size,
124563         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
124564         obstack_grow0, obstack_init, obstack_int_grow,
124565         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
124566         obstack_next_free, obstack_object_size, obstack_ptr_grow,
124567         obstack_ptr_grow_fast, obstack_room): Remove declarations of
124568         nonexistent functions.
124570 2004-05-18  Karl Berry  <karl@gnu.org>
124572         * config/srclist.txt: break link for vasnprintf.c.
124574 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124576         Port obstack to the AS/400, where pointers are 16 bytes wide and
124577         you cannot cast an integer to a valid pointer.  This patch is
124578         currently waiting to be integrated into glibc; see
124579         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
124581         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
124582         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
124583         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
124584         (struct obstack): temp member is now a union of a pointer and
124585         an integer, instead of an integer.  All integer uses changed.
124586         This does not affect the physical layout of struct obstack,
124587         except on hosts (like the AS/400) where the size or alignment of
124588         void * is greater than that of ptrdiff_t.
124589         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
124590         __STDC__)]: Store temporary in pointer member of union, not
124591         integer member.
124592         * lib/obstack.c: Include <stddef.h>, for offsetof.
124593         (struct fooalign): Remove; it doesn't need a name.
124594         (union fooround): Change double to long double, and add void *.
124595         (DEFAULT_ALIGNMENT): Use offsetof to compute.
124596         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
124597         not a macro.  Hence the values are always int; so remove all
124598         casts-to-int in uses.
124600 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124602         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
124603         we can get this patch merged into glibc.
124605 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124606             Paul Eggert  <eggert@cs.ucla.edu>
124608         * m4/argp: Depend on alloca.
124610 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124611             Paul Eggert  <eggert@cs.ucla.edu>
124613         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
124614         freecoding.
124616 2004-05-17  Bruno Haible  <bruno@clisp.org>
124618         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
124619         precision that consists of a '.' followed by an empty digit string.
124620         Patch by Tor Lillqvist <tml@iki.fi>.
124622 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124624         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
124625         for backward compatibility with older code.  We need our own
124626         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
124627         it under some other name, and our alloca.h will define it.
124629 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124630             Derek Price  <derek@ximbiot.com>
124632         * lib/alloca.c: Include <alloca.h>, to get our interface.
124633         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
124634         include <alloca.h> first.  Use C89 prototype for alloca; this
124635         requires including <stddef.h> for size_t.  Use extern "C" if C++.
124636         Use #elif for simplicity, since we can assume C89 now.
124637         Don't try to source the system alloca.h since it will not be found
124638         and to prevent recursively including its replacement.
124639         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
124640         * lib/regex.c: Likewise.
124642 2004-05-16  Derek Price  <derek@ximbiot.com>
124643             Paul Eggert  <eggert@cs.ucla.edu>
124645         getline cleanup.  This changes the getndelim2 API: both order of
124646         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
124647         no delimiter).
124649         * lib/getline.c: Don't include stddef.h or stdio.h, since our
124650         interface does that.
124651         (getline): Always use getdelim, so that we don't have two
124652         copies of this code.
124653         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
124654         if available.
124655         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
124656         (GETNDELIM2_MAXIMUM): New macro.
124657         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
124658         instead of the old practice of delim2==0.  All callers changed.
124659         Return -1 on overflow, instead of returning junk.
124660         Do not set *linesize unless allocation succeeds.
124661         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
124662         that we include sys/types.h.
124663         * lib/getnline.h: Likewise.
124664         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
124665         (getndelim2): Reorder arguments.
124666         * lib/getnline.c (getnline, getndelim):
124667         Don't discard the NMAX argument.
124668         (getnline): Invoke getndelim, to avoid code duplication.
124669         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
124670         of (size_t) -1 by callers of the getnline family.
124672 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124674         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
124675         Check for gettimeofday.
124676         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
124677         Check for settimeofday, stime.
124679 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124681         * lib/nanosleep.c (suspended): Change its type from int to
124682         sig_atomic_t volatile.
124683         (first_call): Make it private to rpl_nanosleep, and have it
124684         be zero initially as that's a bit faster.
124685         (my_usleep): Round up fractional times instead of truncating them,
124686         as this is the usual meaning for 'sleep'.
124688         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
124689         doesn't work.
124690         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
124691         (ENOSYS): Define if not defined.
124692         (settime): Fall back on stime if it exists and settimeofday fails.
124693         But don't bother with fallbacks if a method fails with errno == EPERM.
124695 2004-05-11  Jim Meyering  <jim@meyering.net>
124697         Prior to this change, the save_cwd caller required read access to the
124698         current directory on most systems (ones with the fchdir function).
124700         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
124701         fails, try write-only, and finally, resort to using xgetcwd.
124703 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
124705         * lib/obstack.c, obstack.h: Import changes from libc.
124707 2004-04-28  Bruno Haible  <bruno@clisp.org>
124709         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
124710         also implicitly appends .exe to executables.
124711         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
124712         accepts Windows pathnames.
124713         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124714         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124715         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124716         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124717         Reported by Derek Robert Price <derek@ximbiot.com>.
124719 2004-04-21  Karl Berry  <karl@gnu.org>
124721         * config/srclist.txt (localcharset.c): break sync.
124723 2004-04-20  Paul Eggert  <eggert@twinsun.com>
124725         * m4/host-os.m4: Add a copyright notice.
124727 2004-04-20  Jim Meyering  <jim@meyering.net>
124729         Change UTILS_ to gl_ in AC_DEFINE'd names.
124730         Change utils_- and jm_-prefixed variables, too.
124731         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
124732         UTILS_FUNC_MKDIR_TRAILING_SLASH.
124733         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
124735         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
124736         Don't emit trailing blanks.
124737         Also rename jm_-prefixed variables to have gl_ prefix.
124739         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
124740         Also rename jm_-prefixed variables to have gl_ prefix.
124742         * m4/jm-macros.m4: Reflect the renamings.
124743         * m4/prereq.m4: Likewise.
124745 2004-04-20  Jim Meyering  <jim@meyering.net>
124747         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
124748         memory.
124750 2004-04-20  Jim Meyering  <jim@meyering.net>
124751             Bruno Haible  <bruno@clisp.org>
124753         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
124754         memory when realloc fails.
124756 2004-04-19  Jim Meyering  <jim@meyering.net>
124758         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
124759         now that readutmp.c may call `free (0)'.
124761 2004-04-19  Bruno Haible  <bruno@clisp.org>
124763         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
124764         * m4/inttypes_h.m4: Likewise.
124765         * m4/stdint_h.m4: Likewise.
124766         * m4/intmax_t.m4: Likewise.
124767         * m4/uintmax_t.m4: Likewise.
124769 2004-04-18  Jim Meyering  <jim@meyering.net>
124771         * m4/prereq.m4: Don't forbid jm_ prefix.
124773         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
124774         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
124775         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
124776         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
124777         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
124778         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
124779         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
124780         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
124781         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
124782         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
124783         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
124784         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
124785         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
124786         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
124787         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
124788         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
124789         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
124790         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
124791         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
124793 2004-04-18  Jim Meyering  <jim@meyering.net>
124795         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
124796         failure, don't leak memory and do call END_UTMP_ENT.
124798 2004-04-16  Jim Meyering  <jim@meyering.net>
124800         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
124801         coreutils' stat program.
124802         (gl_PREREQ): Don't require jm_PREREQ_STAT.
124804 2004-04-11  Paul Eggert  <eggert@twinsun.com>
124806         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
124807         C89.
124808         (CHAR_BIT): Remove, since we assume C89.
124809         Include <stdint.h> if available, as per current Autoconf CVS advice.
124811 2004-03-31  Jim Meyering  <jim@meyering.net>
124813         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
124814         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
124815         * m4/xalloc.m4: Likewise.
124817 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124819         Merge from coreutils.
124821         * m4/inttostr.m4: New file.
124822         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
124823         Require AM_STDBOOL_H and gl_TIMESPEC instead.
124824         Require gl_CLOCK_TIME.
124825         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
124827 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124829         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
124830         not bool, to be more consistent with Unix conventions.
124831         Suggested by Bruno Haible.
124833         Merge from coreutils.
124835         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
124836         * lib/umaxtostr.c: New files.
124838         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
124839         the usual <time.h> dance.
124840         (get_date): Change signature to support fractional time stamps.
124841         All callers changed.
124842         * lib/getdate.y: Include "getdate.h" first, as we can now
124843         assume C89 and don't need to worry about 'const'.
124844         Similarly, include "unlocked-io.h" near start, not in middle.
124845         Include <limits.h>.
124846         (textint.value): Use long int rather than int.
124847         (textint.digits): Use size_t rather than int.
124848         (BILLION, LOG10_BILLION): New constants.
124849         (parser_control): New member rel_ns.  Members day_ordinal,
124850         time_zone, month, day, hour, minutes, rel_year, rel_month,
124851         rel_day, rel_hour, rel_minutes, rel_seconds
124852         are now long int, not int.  Member seconds is now struct timespec,
124853         not int.  New member timespec_seen.  Members dates_seen, days_seen,
124854         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
124855         not int.
124856         (%union.intval): Now long int, not int.
124857         New member timespec.
124858         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
124859         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
124860         (spec): Now is a timespec or an item list.
124861         (timespec, items): New nonterminals.
124862         (time, rel, relunit, number, get_date):
124863         Add support for fractional seconds.
124864         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
124865         (gmtime, localtime, mktime): Remove decls; not needed with C89.
124866         (to_hour): First arg is now long int, not int.
124867         (to_year): Returns long int, not int.
124868         Don't treat year -70 like 70.
124869         (tm_diff): Returns long int, not int.
124870         (lookup_word): Use bool instead of int when appropriate.
124871         (yylex): Use size_t for count, not int.
124872         Detect overflow when parsing large integer constants.
124873         Add support for fractions.
124874         (get_date): Make pointers 'const' if possible.
124875         Use more-portable code to detect integer overflow.
124876         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
124877         Don't use ctime; it's not reliable if the year has >4 digits.
124879         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
124880         This is for compatibility with BSD.
124882         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
124883         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
124884         From coreutils' system.h.
124886         * lib/userspec.c: Don't include "posixver.h".
124887         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
124888         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
124889         compatible extension.  Simplify code by removing a boolean int
124890         that was always nonzero if a string was nonnull.
124892 2004-03-30  Jim Meyering  <jim@meyering.net>
124894         Merge from coreutils.
124896         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
124897         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
124898         on some systems one must include <grp.h> before it.
124899         Reported by Christian Krackowizer.
124901 2004-03-30  Jim Meyering  <jim@meyering.net>
124903         Merge from coreutils.
124905         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
124907         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
124908         an empty input stream.
124910         * lib/readtokens.c: Include <stdbool.h>.
124911         (readtoken): Use `size_t' rather than int/long.
124912         All callers adjusted.
124913         Use `bool' rather than `int' where appropriate.
124914         Use memset rather than an explicit loop.
124915         Use x2nrealloc rather than xrealloc.
124916         Allow the use of `\0' as a delimiter.
124917         (readtokens): Likewise.
124918         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
124920 2004-03-30  Jim Meyering  <jim@meyering.net>
124922         * m4/realloc.m4: Remove file, since now it does no more than
124923         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
124924         the `configure.ac' section of module/realloc.
124925         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
124927 2004-03-30  Bruno Haible  <bruno@clisp.org>
124929         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
124930         nonnull.
124932 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124934         Merge changes to getloadavg.c from coreutils and Emacs.
124936         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
124937         Define to an expression, not to the empty string.
124938         Include cloexec.h and xalloc.h.
124939         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
124940         Use set_cloexec_flag rather than rolling our own.
124941         * lib/cloexec.c, lib/cloexec.h: New files.
124943 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124945         * m4/cloexec.m4: New file.
124947 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124949         * lib/getopt.h: Sync with libc CVS.
124951 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124952             Bruno Haible  <bruno@clisp.org>
124954         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
124955         mbswidth.
124957 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124958             Bruno Haible  <bruno@clisp.org>
124960         * lib/mbswidth.h: Include <wchar.h> only if
124961         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
124962         <wchar.h>.
124963         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
124965 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124967         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
124968         Sync with libc CVS.
124969         * lib/getopt_int.h: New file, also synced from libc.
124971 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124973         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
124974         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
124975         Bring back getopt.c, getopt.h, getopt1.c.
124977 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124979         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
124980         All uses changed.  Check for sa_sigaction member; this fixes
124981         a bug first reported by Jason Andrade in
124982         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124984 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124986         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
124987         '#if' expressions.  Unlike the code it replaces, it does not
124988         depend on (defined _SC_PAGESIZE).  However, it does depend on
124989         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
124990         first reported by Jason Andrade in
124991         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124993 2004-02-25  Simon Josefsson  <jas@extundo.com>
124995         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
124997 2004-02-25  Simon Josefsson  <jas@extundo.com>
124999         * lib/strdup.h: New file.
125000         * lib/strdup.c: Include it.
125001         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
125002         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
125004 2004-02-23  Karl Berry  <karl@gnu.org>
125006         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
125007         (from fencepost.gnu.org:/gd/gnuorg).
125009 2004-02-23  Karl Berry  <karl@gnu.org>
125011         * config/srclistvars.sh (GNUORG) [karl]: redefine.
125012         * config/srclist.txt: add maintain/standards documents.
125014 2004-02-18  Bruno Haible  <bruno@clisp.org>
125016         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
125017         Reported by Derek Robert Price <derek@ximbiot.com>.
125019 2004-02-16  Karl Berry  <karl@gnu.org>
125021         * config/mkinstalldirs, install-sh: update from automake.
125023 2004-02-06  Karl Berry  <karl@gnu.org>
125025         * m4/po.m4: update from gettext 0.14.1.
125027 2004-02-06  Karl Berry  <karl@gnu.org>
125029         * lib/config.charset: update from gettext 0.14.1.
125031 2004-02-05  Paul Eggert  <eggert@twinsun.com>
125033         Add comments and code, prompted by suggestions from Bruno Haible
125034         for sh-quote.
125035         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
125036         describing the enum quoting_style values.
125037         * lib/quotearg.c (quotearg_alloc): New function.
125038         (quotearg_buffer_restyled): Treat lone { and } as special.
125039         Treat = as special.  Work around bug with older shells
125040         that "see" a '\' that is really the 2nd byte of a multibyte char.
125041         Quote empty string with shell_quoting_style.
125043 2004-02-03  Bruno Haible  <bruno@clisp.org>
125045         * m4/pipe.m4: New file, from GNU gettext.
125047 2004-02-03  Bruno Haible  <bruno@clisp.org>
125049         * lib/pipe.h: New file, from GNU gettext.
125050         * lib/pipe.c: New file, from GNU gettext.
125052 2004-01-27  Bruno Haible  <bruno@clisp.org>
125054         * m4/execute.m4: New file, from GNU gettext.
125056 2004-01-27  Bruno Haible  <bruno@clisp.org>
125058         * lib/execute.h: New file, from GNU gettext.
125059         * lib/execute.c: New file, from GNU gettext.
125060         * lib/w32spawn.h: New file, from GNU gettext.
125062 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125064         Merge from diffutils.
125066         * lib/file-type.c (file_type): Add typed memory objects.
125067         * lib/file-type.h (S_TYPEISTMO): New macro.
125069         * lib/c-stack.h (c_stack_action): Remove argv argument.
125070         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
125071         (die): Don't calculate message unless segv_action returns.
125072         (get_stack_location, min_address_from_argv, max_address_from_argv,
125073         volatile stack_base, volatile_stack_size): Remove.
125074         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
125075         that every segmentation violation is a stack overflow.  (Ouch!)
125076         See Debian bug 136249 (still outstanding) for more info about why
125077         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
125079 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125081         Exit-status fix from coreutils.
125083         Use exit_failure consistently in place of EXIT_FAILURE,
125084         so that program exit statuses are consistent on failure.
125086         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
125087         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
125088         * lib/argmatch.h: Comment fix to match the above.
125089         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
125090         Now a macro referring to exit_failure, instead of a separate
125091         variable.  Include "exitfail.h" to get it.
125092         * lib/xstrtol.h: Include "exitfail.h".
125093         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
125095         * lib/long-options.c (parse_long_options): Use prototype
125096         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
125097         for clarity.
125099 2004-01-21  Jim Meyering  <jim@meyering.net>
125101         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
125102         so as not to conflict with a different-sized __mktime_internal
125103         function in GNU libc.
125104         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
125105         Problem building statically-linked `ls' reported by Michael Brunnbauer.
125107 2004-01-20  Karl Berry  <karl@gnu.org>
125109         * config/config.guess: update from config.
125111         * config/srclistvars.sh: GNUWWWLICENSES for karl.
125113 2004-01-20  Bruno Haible  <bruno@clisp.org>
125115         Safer stack allocation.
125116         * lib/setenv.c: Include allocsa.h.
125117         (alloca): Remove fallback definition.
125118         (freea): Remove macro.
125119         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
125120         instead of freea.
125122 2004-01-20  Bruno Haible  <bruno@clisp.org>
125124         * m4/eealloc.m4: New file, from GNU gettext.
125126 2004-01-20  Bruno Haible  <bruno@clisp.org>
125128         * m4/allocsa.m4: New file, from GNU gettext.
125130 2004-01-20  Bruno Haible  <bruno@clisp.org>
125132         * lib/xallocsa.h: New file, from GNU gettext.
125133         * lib/xallocsa.c: New file, from GNU gettext.
125135 2004-01-20  Bruno Haible  <bruno@clisp.org>
125137         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
125139 2004-01-20  Bruno Haible  <bruno@clisp.org>
125141         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
125142         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
125143         specially.
125145 2004-01-20  Bruno Haible  <bruno@clisp.org>
125147         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
125148         patch.
125150 2004-01-20  Bruno Haible  <bruno@clisp.org>
125152         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
125154 2004-01-20  Bruno Haible  <bruno@clisp.org>
125156         * lib/eealloc.h: New file.
125158 2004-01-20  Bruno Haible  <bruno@clisp.org>
125160         * lib/binary-io.h: Avoid warnings on Cygwin.
125162 2004-01-20  Bruno Haible  <bruno@clisp.org>
125164         * lib/allocsa.h: New file, from GNU gettext.
125165         * lib/allocsa.c: New file, from GNU gettext.
125167 2004-01-18  Karl Berry  <karl@gnu.org>
125169         * doc/gpl.texi, doc/lgpl.texi: new files.
125171 2004-01-18  Karl Berry  <karl@gnu.org>
125173         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
125174         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
125176 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125178         Merge from coreutils.
125180         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
125181         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
125182         (gl_DEFAULT_POSIX2_VERSION): Move
125183         the documentation from 'configure' into 'config.hin',
125184         so that 'configure --help' isn't burdened by it and
125185         we don't have to worry about its formatting there.
125186         Reword the documentation so that it's more succinct
125187         and can be run together into a single paragraph.
125188         * m4/same.m4 (gl_SAME): Check for pathconf.
125190 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125192         Merge from coreutils.
125194         * lib/posixver.c: Include posixver.h.
125196         * lib/same.c: Include <stdbool.h>, <limits.h>.
125197         (_POSIX_NAME_MAX): Define if not defined.
125198         (MIN): New macro.
125199         (same_name): If file names are silently truncated, report
125200         that the file names are the same if they are the same after
125201         the silent truncation.
125203         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
125204         conversion function.
125205         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
125206         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
125207         longer needed.
125209 2004-01-15  Jim Meyering  <jim@meyering.net>
125211         Merge from coreutils.
125213         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
125214         if no library is required.
125215         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
125216         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
125217         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
125218         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
125219         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
125220         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
125221         value, $ac_cv_search_crypt, if it's "none required".
125222         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
125223         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
125224         not gl_FUNC_GETLOADAVG.
125225         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
125226         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
125228 2004-01-15  Jim Meyering  <jim@meyering.net>
125230         Merge from coreutils.
125232         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
125233         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
125234         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
125236         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
125237         optional configure-time default.
125239         * lib/version-etc.c (version_etc_copyright): Update copyright date.
125241         * lib/xreadlink.c (xreadlink): Correct outdated comment.
125243 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
125245         Merge from coreutils.
125247         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
125248         value, $ac_cv_search_nanosleep, if it's "none required".
125250 2004-01-14  Paul Eggert  <eggert@twinsun.com>
125252         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
125253         with like-named macro in fnmatch.c.
125254         (EXT): Use an internal constant instead.
125256         Merge fnmatch patches from glibc.
125257         * lib/fnmatch.c (mbsinit): Remove define.
125258         Add libc_hidden_ver (__fnmatch, fnmatch).
125259         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
125260         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
125262 2004-01-14  Karl Berry  <karl@gnu.org>
125264         * config/install-sh: update from automake.
125266 2004-01-13  Karl Berry  <karl@gnu.org>
125268         * config/install-sh: update from automake.
125270 2004-01-09  Karl Berry  <karl@gnu.org>
125272         * config/install-sh: update from automake.
125274 2004-01-05  Karl Berry  <karl@gnu.org>
125276         * config/config.{sub,guess}: update from config.
125278 2003-12-31  Karl Berry  <karl@gnu.org>
125280         * config/depcomp: update from automake.
125282 2003-12-14  Karl Berry  <karl@gnu.org>
125284         * lib/config.charset: update from gettext-runtime.
125286 2003-12-03  Paul Eggert  <eggert@twinsun.com>
125288         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
125289         Bug reported by Alfred M. Szmidt.
125291 2003-12-03  Bruno Haible  <bruno@clisp.org>
125293         * m4/gettext.m4: Upgrade from gettext-0.13.
125294         * m4/po.m4: Upgrade from gettext-0.13.
125295         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
125296         * m4/intmax.m4: New file, from gettext-0.13.
125297         * m4/printf-posix.m4: New file, from gettext-0.13.
125299 2003-11-29  Karl Berry  <karl@gnu.org>
125301         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
125303 2003-11-25  Paul Eggert  <eggert@twinsun.com>
125304             Bruno Haible  <bruno@clisp.org>
125306         * lib/printf-parse.h: Don't include sys/types.h.
125307         (ARG_NONE): New macro.
125308         (char_directive): Change type of *arg_index fields to size_t.
125309         * lib/printf-parse.c: Don't include sys/types.h.
125310         (SSIZE_MAX): Remove macro.
125311         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
125312         Remove unnecessary overflow check.
125313         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
125314         fields.
125316 2003-11-25  Bruno Haible  <bruno@clisp.org>
125318         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
125320 2003-11-25  Bruno Haible  <bruno@clisp.org>
125322         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
125323         gt_TYPE_SSIZE_T.
125325 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125327         * modules/alloca: Remove dependency on xalloc.
125329 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125331         * lib/alloca.c: Remove dependency on xalloc module.
125332         (xalloc_die): Remove.
125333         (memory_full) [!defined emacs]: New macro.
125334         [!defined emacs]: Don't include xalloc.h.
125335         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
125336         address arithmetic overflows.  Change datatypes a bit to avoid
125337         unnecessary casts.
125339 2003-11-22  Jim Meyering  <jim@meyering.net>
125341         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
125342         s/size/size_t/.
125344 2003-11-21  Karl Berry  <karl@gnu.org>
125346         * config/config.{sub,guess}: update from config.
125348 2003-11-18  Karl Berry  <karl@gnu.org>
125350         * config/config.{sub,guess}: update from config.
125352         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
125354 2003-11-17  Paul Eggert  <eggert@twinsun.com>
125356         * README: Mention that S+T cannot overflow if S is the size of
125357         an existing object and T is sufficiently small.
125359 2003-11-17  Jim Meyering  <jim@meyering.net>
125361         On systems without utime and without a utimes function capable of
125362         dealing with a NULL struct utimbuf* argument, this utime replacement
125363         could -- in unusual circumstances -- leak a file descriptor.
125364         * lib/utime.c: Include <unistd.h> and <errno.h>.
125365         (utime_null): Be sure to close `fd' and to preserve errno.
125366         Reported by Geoff Collyer via Arnold Robbins.
125368 2003-11-17  Bruno Haible  <bruno@clisp.org>
125370         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
125371         (Depends-on): Add xsize.
125373 2003-11-17  Bruno Haible  <bruno@clisp.org>
125375         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
125377 2003-11-17  Bruno Haible  <bruno@clisp.org>
125379         * lib/vasnprintf.c (alloca): Remove fallback definition.
125380         (freea): Remove definition.
125381         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
125382         Reported by Paul Eggert.
125384 2003-11-16  Paul Eggert  <eggert@twinsun.com>
125385             Bruno Haible  <bruno@clisp.org>
125387         Protect against address arithmetic overflow.
125388         * lib/printf-args.h: Include stddef.h.
125389         (arguments): Change type of field 'count' to size_t.
125390         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
125391         'unsigned int' where appropriate.
125392         * lib/printf-parse.h: Include sys/types.h.
125393         (char_directive): Change type of *arg_index fields to ssize_t.
125394         (char_directives): Change type of fields 'count', max_*_length to
125395         size_t.
125396         * lib/printf-parse.c: Include sys/types.h and xsize.h.
125397         (SSIZE_MAX): Define fallback value.
125398         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
125399         instead of 'int' where appropriate. Check a_allocated, d_allocated
125400         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
125401         * lib/vasnprintf.c: Include xsize.h.
125402         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
125403         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
125404         overflow. Avoid wraparound when converting a width or precision from
125405         decimal to binary.
125407 2003-11-16  Bruno Haible  <bruno@clisp.org>
125409         Update from GNU gettext.
125410         * lib/printf-parse.c: Generalize to it can be compiled for wide
125411         strings.
125412         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
125413         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
125414         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
125415         SNPRINTF): New macros.
125416         Don't include <alloca.h> if the file is used inside libintl.
125417         (local_wcslen): New function, for Solaris 2.5.1.
125418         (VASNPRINTF): Use it instead of wcslen.
125420 2003-11-16  Bruno Haible  <bruno@clisp.org>
125422         * lib/xsize.h (xmax): New function.
125423         (xsum, xsum3, xsum4): Declare as "pure" functions.
125425 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125427         * modules/xalloc (Files): Undo latest change, since xalloc.h
125428         no longer needs SIZE_MAX or PTRDIFF_MAX.
125430 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125432         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
125433         gl_PTRDIFF_MAX.
125435 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125437         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
125438         "return", to pacify some unknown compiler.  Problem reported
125439         by Joerg Schilling.
125441 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125443         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
125444         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
125445         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
125446         heuristic is just as accurate as far as we know, and it removes a
125447         dependency on size_max.m4 and ptrdiff_max.m4.
125449 2003-11-11  Bruno Haible  <bruno@clisp.org>
125451         * modules/xsize (Files): Add m4/size_max.m4.
125452         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
125454 2003-11-11  Bruno Haible  <bruno@clisp.org>
125456         * m4/size_max.m4: New file.
125457         * m4/ptrdiff_max.m4: New file.
125458         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
125459         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
125460         (gl_XALLOC): Invoke it.
125462 2003-11-11  Bruno Haible  <bruno@clisp.org>
125464         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
125465         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
125466         defined.
125468 2003-11-10  Paul Eggert  <eggert@twinsun.com>
125470         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
125471         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
125472         rejected some allocations of exactly SIZE_MAX - 2 bytes.
125473         From Bruno Haible.
125474         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
125475         not (size_t) -1, since it's defined here.
125477 2003-11-09  Karl Berry  <karl@gnu.org>
125479         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
125481 2003-11-06  Paul Eggert  <eggert@twinsun.com>
125483         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
125484         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
125485         Reject sizes of exactly SIZE_MAX bytes.
125486         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
125487         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
125489 2003-11-05  Bruno Haible  <bruno@clisp.org>
125491         * lib/xsize.h: Include limits.h, to avoid a possible collision with
125492         SIZE_MAX defined in <limits.h> on Solaris.
125494 2003-11-04  Jim Meyering  <jim@meyering.net>
125496         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
125497         variable names, rather than @VAR@.
125498         * modules/poll: Likewise.
125500 2003-11-04  Bruno Haible  <bruno@clisp.org>
125502         * modules/xsize: New file.
125503         * modules/linebreak: Depend on xsize.
125504         * MODULES.html.sh (func_all_modules): Add xsize.
125506 2003-11-04  Bruno Haible  <bruno@clisp.org>
125508         * m4/xsize.m4: New file.
125510 2003-11-04  Bruno Haible  <bruno@clisp.org>
125512         * lib/xsize.h: New file.
125513         * lib/linebreak.c: Include xsize.h.
125514         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
125515         argument for overflow.
125516         Suggested by Paul Eggert.
125518 2003-11-03  Karl Berry  <karl@gnu.org>
125520         * config/config.{guess,sub}: update from config.
125522 2003-11-03  Jim Meyering  <jim@meyering.net>
125524         * modules/userspec (lib_SOURCES): Add userspec.h.
125525         (Include): Add "userspec.h".
125526         Improve description.
125528 2003-11-03  Jim Meyering  <jim@meyering.net>
125530         * lib/userspec.c: Include "userspec.h".
125531         * lib/userspec.h: New file.
125533 2003-11-03  Bruno Haible  <bruno@clisp.org>
125535         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
125537 2003-11-03  Bruno Haible  <bruno@clisp.org>
125539         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
125540         available, to avoid (extremely rare) race condition.
125541         Suggested by Paul Eggert.
125543 2003-11-02  Karl Berry  <karl@gnu.org>
125545         * config/srclist.txt (vasprintf.c): sync broken, sigh.
125547 2003-10-31  Paul Eggert  <eggert@twinsun.com>
125549         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
125550         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
125551         (read_filesystem_list): Set and use me_type_malloced.
125552         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
125553         whatever the type happens to be), for brevity and consistency.
125554         Check for size calculation overflow on Alphas running OSF/1.
125556 2003-10-31  Jim Meyering  <jim@meyering.net>
125558         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
125560         * lib/linebuffer.c: Include <string.h> for declaration of memset.
125562 2003-10-30  Paul Eggert  <eggert@twinsun.com>
125563             Bruno Haible  <bruno@clisp.org>
125565         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
125566         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
125568 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
125570         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
125571         netbsd*-gnu*.  Suggested by Robert Millan.
125573 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125575         * modules/group-member: Depend on stdbool.
125577 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125579         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
125581 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125583         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
125584         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
125585         after the 'gnu' in these cases.  This fixes some bugs in the
125586         previous change, and is based on suggestions by Robert Millan.
125588 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125590         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
125591         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
125592         no longer needed.
125593         * lib/quotearg.c (quotearg_n_options): Use it.
125594         * lib/group-member.c: Include <stdbool.h>.
125595         (free_group_info): Arg is now const *; don't free arg.
125596         (get_group_info): Now returns bool and accepts struct group_info *,
125597         rather than returning a malloc'ed struct group_info *.
125598         All uses changed.  Check for overflow in internal size calculation.
125600         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
125601         rather than xmalloc/xrealloc.
125602         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
125603         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
125604         conformance bug: the old code used a pointer after freeing the
125605         storage that it addressed.
125606         * lib/hash.c (hash_initialize): Simplify the code by using
125607         xalloc_oversized rather than doing it by hand.
125608         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
125609         the buffer preserved.  Use free and xmalloc instead.
125610         * lib/quotearg.c (quotearg_n_options): Likewise.
125611         Use a simpler test for size overflow.  Don't use xalloc_oversized
125612         because unsigned int might be wider than size_t (!); this suggests
125613         that we should switch from unsigned int to size_t for slot numbers.
125615 2003-10-28  Paul Eggert  <eggert@twinsun.com>
125617         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
125618         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
125619         NetBSD kernels.  Requested by Richard Stallman.
125621 2003-10-27  Paul Eggert  <eggert@twinsun.com>
125623         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
125624         to allocate the returned structure.  Do not allocate a subarray,
125625         as x2nrealloc will do that.
125626         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
125627         instead of xnrealloc.
125628         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
125630 2003-10-27  Bruno Haible  <bruno@clisp.org>
125632         * lib/stdbool_.h: Better support for BeOS.
125634 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125636         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
125637         now uses inline.
125639 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125641         * lib/xalloc.h (xalloc_oversized): New static inline function, for
125642         callers that want to do their own size-overflow checking.  Include
125643         <stdbool.h>, since xalloc_oversized returns bool.
125644         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
125645         to use xalloc_oversized.
125647         Add two functions x2realloc, x2nrealloc, for programs that grow
125648         arrays dynamically by doubling their sizes.
125649         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
125650         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
125651         New functions.
125653         Port to C99 semantics for 'inline' of external functions.
125654         Bug reported by Bruno Haible.
125655         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
125656         with the old contents of xnmalloc.
125657         (xnmalloc, xmalloc): Use it.
125658         (xnrealloc_inline): New static inline function,
125659         with the old contents of xnrealloc.
125660         (xnrealloc, xrealloc): Use it.
125662         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
125663         that.
125665 2003-10-26  Karl Berry  <karl@gnu.org>
125667         * config/srclist.txt (COPYING.DOC): no longer available from
125668         /gd/gnuorg; don't know where the ultimate source is.
125670 2003-10-25  Paul Eggert  <eggert@twinsun.com>
125672         Fix several address-calculation bugs in the hash modules,
125673         plus some minor code cleanup.
125675         * lib/hash.h: Include <stdbool.h>, for bool.
125676         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
125677         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
125678         hash_get_n_entries, hash_get_max_bucket_length,
125679         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
125680         hash_rehash): Use size_t rather than unsigned.
125681         * lib/hash.c (struct hash_table, hash_get_n_buckets,
125682         hash_get_n_buckets_used, hash_get_n_entries,
125683         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
125684         hash_get_entries, hash_do_for_each, hash_string, is_prime,
125685         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
125686         Likewise.
125687         (SIZE_MAX): Define if not defined.
125688         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
125689         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
125690         hash_print):
125691         Use const * when possible.
125692         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
125693         (check_tuning): Fix bug: if tuning parameters were very close to
125694         0 or 1, rounding errors could have caused subscript violations.
125695         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
125696         (hash_initialize): Add 'fail:' label
125697         to free table and return NULL, and use it to simplify code.
125698         Use calloc rather than clearing the storage ourself.
125699         (hash_initialize, hash_rehash): Check for arithmetic overflow in
125700         buffer size calculations.
125701         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
125702         Include <stddef.h>, for size_t.
125703         * lib/hash-pjw.c (hash_pjw): Likewise.
125704         Switch to method described by Bruno Haible.
125705         Include <limits.h>, for CHAR_BIT.
125706         (SIZE_BITS): New macro.
125708 2003-10-23  Paul Eggert  <eggert@twinsun.com>
125710         * m4/getline.m4 (AM_FUNC_GETLINE):
125711         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
125712         hosts.  Problem reported by Derek Robert Price in
125713         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
125714         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
125715         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
125717 2003-10-21  Paul Eggert  <eggert@twinsun.com>
125719         * lib/getndelim2.c (getndelim2): When size calculation overflows,
125720         ceiling the allocation at NMAX bytes rather than silently
125721         discarding input bytes before NMAX is reached.  This makes
125722         a difference only if NMAX exceeds SIZE_MAX / 2.
125724         * lib/obstack.c: Merge from glibc.
125725         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
125726         Add libc_hidden_def (_obstack_newchunk).
125727         (_obstack_free) [! defined _LIBC]: Remove.
125728         [defined _LIBC]: Make a strong alias from obstack_free, rather than
125729         a clone of the function body.
125730         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
125731         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
125733         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
125734         glibc.
125735         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
125736         arg to memcpy.
125738         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
125739         (obstack_ptr_grow_fast, obstack_int_grow_fast):
125740         Don't use lvalue casts, as GCC plans to remove support for them
125741         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
125742         was also present in the non-GCC version, indicating that this
125743         code had always been buggy and had never been widely used.
125744         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
125745         Use the fast variant of each macro, rather than copying the
125746         definiens of the fast variant; that way, we'll be more likely to
125747         catch future bugs in the fast variants.
125749 2003-10-20  Bruno Haible  <bruno@clisp.org>
125751         * modules/wait-process: New file.
125752         * MODULES.html.sh (func_all_modules): Add wait-process.
125754 2003-10-20  Bruno Haible  <bruno@clisp.org>
125756         * m4/wait-process.m4: New file.
125758 2003-10-20  Bruno Haible  <bruno@clisp.org>
125760         * lib/wait-process.h: New file, from GNU gettext.
125761         * lib/wait-process.c: New file, from GNU gettext.
125763 2003-10-19  Jim Meyering  <jim@meyering.net>
125765         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
125766         HPUX 10.20.
125768 2003-10-18  Karl Berry  <karl@gnu.org>
125770         * config/config.guess: update from config.
125772 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125774         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
125775         (getgroups): First arg is int, not size_t.
125776         Don't let 'free' mangle errno.
125778 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125780         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
125782 2003-10-16  Karl Berry  <karl@gnu.org>
125784         * config/config.{guess,sub}: update from config.
125786 2003-10-16  Jim Meyering  <jim@meyering.net>
125788         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
125789         memcpy.
125791 2003-10-15  Paul Eggert  <eggert@twinsun.com>
125793         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
125794         (SIZE_MAX): Remove.
125795         (new_exclude, add_exclude_file): Initial size no longer needs to
125796         be a power of 2.
125797         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
125798         our own address arithmetic overflow checking.
125800         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
125801         (fnmatch): Do not alloca more than 2000 wide characters;
125802         instead, use malloc for large buffers.
125803         Check for address arithmetic overflow, and return -1
125804         with errno set to ENOMEM in that case.
125805         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
125806         (NEW_PATTERN): Do not alloca more than 8000 bytes;
125807         instead, return -1.  Check for address arithmetic overflow.
125809 2003-10-14  Paul Eggert  <eggert@twinsun.com>
125811         Handle invalid suffixes and overflow independently, so that
125812         callers can treat them independently as needed.  Fix some bugs in
125813         suffix handling, e.g., "100k@" was not diagnosed as an invalid
125814         suffix for a human-readable blocksize.  The major caller-visible
125815         change is the addition of a new
125816         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
125817         that both overflow and suffix chars were found.
125819         * lib/human.c (humblock): Don't check separately for invalid suffix
125820         char; that is xstrtoumax's job (now that its bug is fixed).
125821         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
125822         INTMAX_MAX]: New macros.
125823         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
125824         TYPE_MAXIMUM): New macros.
125825         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
125826         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
125827         if overflow occurs, as it's what __strtol does and it's more useful
125828         in practice.
125829         (__xstrtol): If __strtol reports some error other than ERANGE,
125830         reflect it to the caller as LONGINT_INVALID.  If it reports
125831         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
125832         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
125833         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
125834         value.
125835         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
125836         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
125837         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
125838         [defined UINTMAX_MAX]: New macros.
125840 2003-10-14  Bruno Haible  <bruno@clisp.org>
125842         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
125844 2003-10-14  Bruno Haible  <bruno@clisp.org>
125846         * m4/sig_atomic_t: New file, from GNU gettext.
125847         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
125849 2003-10-14  Bruno Haible  <bruno@clisp.org>
125851         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
125852         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
125853         Also use volatile where needed.
125855 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125857         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
125858         Change maintainer from Bruno Haible to 'all'.
125860 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125862         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
125864 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125866         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
125867         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
125868         and define in terms of the other primitives.
125869         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
125870         (SIZE_MAX): Define if not already defined.
125871         (array_size_overflow): New function.
125872         (xalloc_die): Abort instead of exiting if 'error' returns.
125873         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
125874         (xmalloc, xrealloc): Use them.
125875         (xcalloc): Check for address arithmetic overflow.
125876         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
125877         a bit faster than strcpy.
125879 2003-10-10  Simon Josefsson  <jas@extundo.com>
125881         * modules/argp (Depends-on): Add restrict and strcase.
125883 2003-10-10  Simon Josefsson  <jas@extundo.com>
125885         * m4/argp.m4: Add AC_C_INLINE.
125887 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125889         Merge getpass from libc, plus a few fixes.
125891         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
125892         Include <stdbool.h>.
125893         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
125894         __fsetlocking to empty.
125895         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
125896         do include <bits/libc-lock.h>.
125897         Do not include <fcntl.h>; not needed.
125898         [_LIBC]: Include <wchar.h>.
125899         (NOTCANCEL_MODE): New macro.
125900         (flockfile, funlockfile) [_LIBC]: New macros.
125901         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
125902         [!_LIBC]: New macros.
125903         (call_fclose): New function.
125904         (getpass): Use it.  Save tty stream separately; this simplifies the
125905         code and makes it more reliable if stdin happens to equal stdout.
125906         Invoke __fsetlocking on tty.
125907         Handle thread cancellation if needed.
125908         Namespace cleanup (use __tcgetattr, __getline).
125909         Use bool for Booleans.
125910         [USE_IN_LIBIO]: Handle wide streams.
125911         [!_LIBC]: Unconditionally do the fseek, since we don't know what
125912         stream might go where.
125914         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
125915         doesn't have to include <stdio.h> before us.
125916         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
125917         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
125918         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
125919         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
125920         if not declared, so that we can use getpass.c code from libc without
125921         rewriting it.
125922         (flockfile, ftrylockfile, funlockfile): New macros.
125924 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125926         * modules/getpass: Depend on stdbool.
125928 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125930         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
125932 2003-10-07  Karl Berry  <karl@gnu.org>
125934         * config/config.{guess,sub}: update from config.
125936 2003-10-06  Jim Meyering  <jim@meyering.net>
125937             Bruno Haible  <bruno@clisp.org>
125939         This lets translators provide better translations for the
125940         "Written by ..." part of --version output.
125941         * lib/version-etc.h: Include stdarg.h.
125942         (version_etc_copyright): Declare as readonly.
125943         (version_etc): Make this function variadic with a NULL-terminated list
125944         of author name strings.
125945         (version_etc_va): New declaration.
125946         * lib/version-etc.c: Include stdarg.h, stdlib.h.
125947         (version_etc_copyright): Declare as readonly.
125948         (version_etc_va): New function. Provide a different translatable string
125949         for each possible number of authors < 10. Abbreviate when there are 10
125950         authors or more.
125951         (version_etc): Make this function variadic. Call version_etc_va.
125952         Suggestion from Gary V. Vaughan.
125954         * lib/long-options.h (parse_long_options): Change prototype: the
125955         authors string is moved to the end and becomes variadic.
125956         * lib/long-options.c: Include stdarg.h.
125957         (parse_long_options): Make this function variadic, too.
125958         Call version_etc_va, not version_etc.
125960 2003-10-06  Bruno Haible  <bruno@clisp.org>
125962         * modules/version-etc-2: Remove file.
125963         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
125965 2003-10-06  Bruno Haible  <bruno@clisp.org>
125967         * modules/fatal-signal: New file.
125968         * MODULES.html.sh (func_all_modules): Add fatal-signal.
125970 2003-10-06  Bruno Haible  <bruno@clisp.org>
125972         * m4/fatal-signal.m4: New file.
125973         * m4/signalblocking.m4: New file, from GNU gettext.
125975 2003-10-06  Bruno Haible  <bruno@clisp.org>
125977         * lib/version-etc-2.h: Remove file.
125978         * lib/version-etc-2.c: Remove file.
125980 2003-10-06  Bruno Haible  <bruno@clisp.org>
125982         * lib/fatal-signal.h: New file, from GNU gettext.
125983         * lib/fatal-signal.c: New file, from GNU gettext.
125985 2003-10-05  Paul Eggert  <eggert@twinsun.com>
125987         * README: Rework advice for preventing empty .o files.
125988         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
125989         not <sys/types.h>.
125991 2003-10-04  Karl Berry  <karl@gnu.org>
125993         * lib/argp*: update from libc.
125995 2003-10-04  Karl Berry  <karl@gnu.org>
125997         * config/config.{guess,sub}: update from config.
125999 2003-10-02  Bruno Haible  <bruno@clisp.org>
126001         * modules/lchown (Include): Add lchown.h.
126002         * modules/time_r (Include): Use "..." syntax.
126003         * modules/xgetdomainname (Include): Add xgetdomainname.h.
126005 2003-10-01  Simon Josefsson  <jas@extundo.com>
126007         * MODULES.html.sh (func_all_modules): Move gethostname from section
126008         'based on' to section 'lacking' POSIX:2001.
126010 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
126012         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
126013         to output mode on the same stream.
126015 2003-09-29  Paul Eggert  <eggert@twinsun.com>
126017         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
126018         Fix arg typo in previous patch.
126020 2003-09-28  Jim Meyering  <jim@meyering.net>
126022         * lib/error.c: Correct cpp indentation.
126024 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126026         * modules/free: New file.
126028 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126030         * m4/free.m4: New file.
126032 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126034         * lib/minmax.h (MIN, MAX)
126035         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
126036         Omit the special code that used __typeof__, since we worry that
126037         it could be more trouble than it's worth.  See:
126038         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
126039         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
126041         * lib/free.c: New file.
126043 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
126045         Trivial fixes to Makefile.am parts of module listings.
126046         * modules/strstr: Append strstr.h to lib_SOURCES.
126047         * modules/strcase: Likewise, for strcase.h.
126049 2003-09-27  Karl Berry  <karl@gnu.org>
126051         * config/mkinstalldirs: update from automake.
126053 2003-09-26  Paul Eggert  <eggert@twinsun.com>
126055         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
126056         (error_tail): Do not loop, reallocating temporary buffer, since
126057         the output cannot contain more wide characters than the input
126058         contains bytes, the size must be big enough already.  This avoids
126059         one potential size overflow calculation.  Check for size overflow
126060         when calculating temporary buffer size.  Free temporary buffer
126061         when done, if it was allocated with malloc; this plugs a memory
126062         leak.  Remove casts from void * to pointers, that are no longer
126063         needed now that we're assuming C89 or better.
126065         Merge error changes from glibc.
126067         * lib/error.c, error.h: Update copyright notice header to match glibc.
126068         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
126069         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
126070         Disable cancellation while printing error.
126071         * lib/error.h: Prepend __ to parameter names.
126073 2003-09-26  Jim Meyering  <jim@meyering.net>
126075         * lib/error.c (error_tail): Move some declarations
126076         into inner scope where the local variables are used.
126078 2003-09-26  Bruno Haible  <bruno@clisp.org>
126080         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
126081         stpncpy().
126082         Don't define stpncpy through config.h; it's now done through stpncpy.h.
126084 2003-09-26  Bruno Haible  <bruno@clisp.org>
126086         * lib/stpncpy.h (gnu_stpncpy): New declaration.
126087         (stpncpy): Define as alias for gnu_stpncpy.
126088         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
126090 2003-09-25  Simon Josefsson  <jas@extundo.com>
126092         * lib/xgetdomainname.h: New file.
126093         * lib/xgetdomainname.c: New file.
126095 2003-09-25  Simon Josefsson  <jas@extundo.com>
126096             Bruno Haible  <bruno@clisp.org>
126098         * modules/getdomainname: New file.
126099         * modules/xgetdomainname: New file.
126100         * MODULES.html.sh (func_all_modules): Add getdomainname,
126101         xgetdomainname.
126103 2003-09-25  Simon Josefsson  <jas@extundo.com>
126104             Bruno Haible  <bruno@clisp.org>
126106         * m4/getdomainname.m4: New file.
126108 2003-09-25  Simon Josefsson  <jas@extundo.com>
126109             Bruno Haible  <bruno@clisp.org>
126111         * lib/getdomainname.h: New file.
126112         * lib/getdomainname.c: New file.
126114 2003-09-25  Karl Berry  <karl@gnu.org>
126116         * lib/argp-fmtstream.c, argp-help.c: update from libc.
126118 2003-09-25  Karl Berry  <karl@gnu.org>
126120         * config/install-sh: update from automake.
126122 2003-09-25  Bruno Haible  <bruno@clisp.org>
126124         * modules/version-etc-2: New file, from modules/version-etc with
126125         modifications.
126126         * MODULES.html.sh (func_all_modules): Add version-etc-2.
126128 2003-09-25  Bruno Haible  <bruno@clisp.org>
126130         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
126131         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
126133 2003-09-24  Simon Josefsson  <jas@extundo.com>
126135         * modules/xgethostname: Add xgethostname.h.
126137 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126139         * lib/linebuffer.c (freebuffer): Don't free the argument, just
126140         the buffer associated with the argument.  Bug reported by
126141         Simon Josefsson.
126143 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126145         * README: Document assumptions that 'int' is at least 32 bits
126146         wide, that integer arithmetic is 2's complement without overflow,
126147         that there are no holes in integer values, that adding sizes of
126148         two nonoverlapping objects can't overflow, and that all-bits-zero
126149         yields scalar zero.  Fix spelling and capitalization typos.
126151 2003-09-19  Karl Berry  <karl@gnu.org>
126153         * lib/argp.h: update from libc.
126155 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126157         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
126158         to avoid spurious warnings like "AC_RUN_IFELSE was called before
126159         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
126161 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126163         * gnulib-tool: Use "test -h", not "test -L", for portability
126164         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
126165         (tags_regexp): Remove, since \| doesn't conform to POSIX.
126166         (sed_extract_prog): Issue s commands one-by-one, rather than
126167         using \| in one s command.
126169 2003-09-16  Paul Eggert  <eggert@twinsun.com>
126171         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
126172         input error, instead of returning NULL the next time we are called
126173         (and therefore losing track of errno).
126175 2003-09-16  Bruno Haible  <bruno@clisp.org>
126177         * gnulib-tool (func_create_testdir): Warn about duplicated
126178         dependencies.
126180 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126182         * modules/argmatch, modules/fatal, modules/obstack,
126183         modules/xalloc, modules/xgethostname: Sort dependencies by
126184         importance, not alphabetically.
126186 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126188         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
126189         fails, so that the caller gets the proper errno.
126191         * lib/readutmp.c (read_utmp): Likewise.
126192         Check for fstat error.  Close stream and free storage
126193         when failing.
126195 2003-09-14  Karl Berry  <karl@gnu.org>
126197         * config/srclist.txt (strdup.c): disable for c89 changes.
126199 2003-09-14  Jim Meyering  <jim@meyering.net>
126201         * lib/getloadavg.c: Correct cpp indentation.
126202         * lib/strdup.c: Likewise.
126203         * lib/vasnprintf.c: Likewise.
126205 2003-09-14  Bruno Haible  <bruno@clisp.org>
126207         * modules/fwriteerror: New file.
126208         * MODULES.html.sh (func_all_modules): Add fwriteerror.
126210 2003-09-14  Bruno Haible  <bruno@clisp.org>
126212         * lib/fwriteerror.h: New file.
126213         * lib/fwriteerror.c: New file.
126215 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126217         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
126218         modules/xgethostname, modules/xalloc: Depend on exit.
126220 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126222         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
126224         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
126225         and AC_MINIX, too, so that their extensions are available.
126227         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
126228         This macro has been superseded by gl_BACKUPFILE.
126230         More patches to assume C89 or better.
126232         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
126234         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
126235         unconditionally.
126236         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
126237         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
126238         Include <string.h>, <stdlib.h> unconditionally.
126239         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
126240         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
126241         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
126242         headers or for string.h.
126243         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
126244         or strtoul.
126246         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
126247         headers.
126248         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
126249         * m4/userspec.m4 (gl_USERSPEC): Likewise.
126250         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
126251         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
126252         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
126253         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
126254         memcpy, memset.
126255         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
126256         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
126257         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
126258         strtol.
126259         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
126260         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
126261         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
126262         strtoul.
126264 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126266         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
126267         * lib/obstack.c [!defined _LIBC]: Likewise.
126268         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
126269         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
126270         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
126272         More changes to assume C89 or better.
126274         * lib/error.c (error_tail): Assume vprintf.
126276         * lib/argmatch.c (getenv): Remove decl.
126277         * lib/progreloc.c (get_full_program_name): Define via prototype.
126278         * lib/setenv.c (clearenv): Likewise.
126279         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
126280         needed.
126281         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
126282         (malloc, memcpy): Remove decls.
126283         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
126284         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
126285         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126286         (memcpy): Remove macro.
126287         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
126288         (__P): Remove.  All uses removed.
126289         (PTR): Remove.  All uses changed to void *.
126290         (CHAR_BIT, NULL): Remove.
126291         (spaces, zeros, memset_space, memset_zero)
126292         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
126293         Remove.
126294         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
126295         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
126296         Define with prototype.
126297         Remove now-unnecessary prototype decl.
126298         (extra_args_spec): Assume ANSI C.  All uses changed.
126299         (extra_args_spec_iso): Remove.
126300         (my_strftime, emacs_strftimeu): Define via prototype.
126301         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
126302         unconditionally.
126303         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
126304         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
126305         (strtoul, strtol): Remove decls.
126306         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
126307         LONG_MAX): Remove.
126308         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126309         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
126310         (LOCALE_PARAM_PROTO): New macro.
126311         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
126312         (INTERNAL (strtol), strtol): Define with a prototype.
126313         (PARAMS): Remove.  All uses removed.
126314         * lib/tempname.c: Include <string.h> unconditionally.
126315         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
126316         * lib/xgethostname.c (main): Define with a prototype.
126317         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
126318         Include <stdlib.h> unconditionally.
126319         (calloc, malloc, realloc, free): Remove decls.
126320         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
126321         Include <stdlib.h> unconditionally.  Sort include file names.
126322         (strtod): Remove.
126323         (xstrtod): Define with a prototype.
126324         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
126325         (strtol, strtoul): Remove decls.
126327 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126329         More patches to assume C89 or better.
126330         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
126331         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
126332         string.h, memchr, STDC_HEADERS.
126334 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126336         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
126337         Include <stdlib.h>, <string.h> unconditionally.
126338         Remove now-unnecessary cast to char *.
126339         * lib/strnlen.c: Include <string.h> unconditionally.
126340         * lib/yesno.c (yesno): Define with a prototype.
126342 2003-09-11  Bruno Haible  <bruno@clisp.org>
126344         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
126346 2003-09-10  Jim Meyering  <jim@meyering.net>
126348         * lib/error.c: Correct indentation of cpp directives.
126350 2003-09-10  Bruno Haible  <bruno@clisp.org>
126352         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
126353         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
126354         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
126355         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
126356         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
126357         <stdlib.h> and <string.h> checks.
126358         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
126359         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
126361 2003-09-10  Bruno Haible  <bruno@clisp.org>
126363         * lib/strcspn.c: Include <string.h> unconditionally.
126364         * lib/strpbrk.c: Include <string.h> unconditionally.
126365         * lib/strstr.c: Include <string.h> unconditionally.
126366         * lib/unicodeio.c: Include <string.h> unconditionally.
126367         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
126368         * lib/unsetenv.c: Likewise.
126369         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
126370         * lib/yesno.c: Include <stdlib.h> unconditionally.
126371         (rpmatch): Add prototype.
126373 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126375         More patches to assume C89 or better.
126376         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
126377         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
126378         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
126379         or for string.h.
126380         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
126381         stdlib.h.
126382         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
126383         C headers.
126384         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
126385         string.h.
126386         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
126387         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
126388         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
126389         or for string.h.
126390         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
126391         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
126392         C headers.
126393         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
126394         memcpy.
126395         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
126396         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
126397         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
126398         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
126399         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
126400         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
126401         string.h, free.
126402         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
126403         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
126404         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
126405         C headers, or for string.h.
126406         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
126407         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
126408         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
126409         headers, memory.h, stdlib.h, string.h, strings.h.
126410         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
126411         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
126412         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
126413         strchr.
126414         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
126415         headers, memory.h, string.h.
126416         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
126417         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
126418         free.
126419         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
126420         headers.
126421         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
126422         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
126423         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
126424         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
126425         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
126427 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126429         More K&R removal.
126431         * lib/acosl.c (main): Use a prototype.
126432         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
126433         tanl.c: Likewise.
126435         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
126437         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
126438         (getopt, etopt_long, getopt_long_only, _getopt_internal)
126439         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
126440         with a prototype.
126441         * lib/getopt.c (const): Remove macro.
126442         Include <string.h> unconditionally.
126443         (my_index): Remove; all uses changed to strchr.
126444         (strlen): Remove decl.
126445         (exchange): Remove forward decl; no longer needed.
126446         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
126447         Define with prototype.
126448         * lib/getopt1.c (const): Remove macro.
126449         (getopt_long, getopt_long_only, main): Define with prototype.
126451         * lib/getugroups.c: Include <string.h> unconditionally.
126453         * lib/getusershell.c: Include <stdlib.h> unconditionally.
126454         (getusershell, setusershell, endusershell, readname, main):
126455         Define with prototypes.
126457         * lib/group-member.c: Include group-member.h first.
126458         Include <stdlib.h> unconditionally.
126460         * lib/hard-locale.c: Include hard-locale.h first.
126461         Include <stdlib.h>, <string.h> unconditionally.
126463         * lib/hash.c (free, malloc): Remove decls.
126464         Include <stdlib.h> unconditionally.
126466         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
126467         (getenv): Do not declare.
126469         * lib/idcache.c: Include <string.h> unconditionally.
126471         * lib/long-options.c: Include long-options.h first, to test interface.
126472         Include <stdlib.h> unconditionally.
126474         * lib/makepath.c: Include makepath.h first, to test interface.
126475         Include <stdlib.h> and <string.h> unconditionally.
126477         * lib/linebuffer.c: Include <stdlib.h>.
126478         (free): Remove decl.
126480         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
126481         stddef.h. rpl_malloc returns void *, not char *.
126482         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
126483         prototype.
126485         * lib/md5.h: Include <limits.h> unconditionally.
126486         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
126487         (__P): Remove; all uses removed.
126488         * lib/md5.c: Include "md5.h" first.
126489         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
126490         md5_buffer, md5_process_bytes, md5_process_block):
126491         Define with prototypes.
126492         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
126493         * lib/sha.c: Include "sha.h" first.
126494         Include <stdlib.h>, <string.h> unconditionally.
126496         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
126497         * lib/memcmp.c (__ptr_t): Likewise.
126498         * lib/memrchr.c (__ptr_t): Likewise.
126499         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
126500         Include <string.h> unconditionally.
126501         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
126502         * lib/memchr.c: Include <stdlib.h> unconditionally.
126503         * lib/memchr.c (LONG_MAX): Remove.
126504         * lib/memrchr.c (LONG_MAX): Likewise.
126505         * lib/memchr.c (__memchr): Define via a prototype.
126506         * lib/memrchr.c (__memrchr): Likewise.
126507         * lib/memcmp.c (__P): Remove, and remove all uses.
126508         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
126509         Remove forward decls; no longer needed.
126510         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
126511         Use types required by C89 in prototype.
126513         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
126514         * lib/savedir.c: Likewise.
126515         * lib/mkdir.c (free): Remove decl.
126516         * lib/rmdir.c (rmdir): Define with a prototype.
126517         * lib/savedir.c: Include savedir.h first, to test interface.
126519         * lib/mktime.c (STDC_HEADERS): Remove.
126520         Include <stdlib.h>, <string.h> unconditionally.
126522         * lib/modechange.c: Include <stdlib.h> unconditionally.
126523         (malloc): Remove decl.
126525         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
126526         (free): Remove decl.
126528         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
126529         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
126530         (This type really should be intptr_t, but that's a C99ism.)
126531         (_obstack_memcpy): Remove: all uses changed to memcpy.
126532         Include <string.h> unconditionally.
126533         (struct obstack): Assume __STDC__ for types of members
126534         chunkfun, freefun, extra_arg.
126535         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
126536         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
126537         obstack_begin, obstack_specify_allocation,
126538         obstack_specify_allocation_with_arg, obstack_chunkfun,
126539         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
126540         Remove unprototyped decls and the macros that use them.
126541         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
126542         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
126543         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
126544         (defined __STDC__ && __STDC__)]:
126545         Remove nonprototyped code.
126546         Include <stdlib.h> unconditionally.
126547         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
126548         _obstack_allocated_p, _obstack_free, obstack_free,
126549         _obstack_memory_used, print_and_abort):
126550         Define using prototypes.
126551         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
126552         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
126553         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
126554         obstack_next_free, obstack_object_size, obstack_room) [0]:
126555         Remove unused, unprototyped code.
126557         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
126559         * lib/physmem.c (physmem_total, physmem_available, main): Define
126560         with prototypes.
126562         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
126563         (main): Define with a prototype.
126565         * lib/posixver.c (getenv): Remove decl.
126567         * lib/putenv.c (malloc): Returns void *, not char *.
126568         Include <string.h> unconditionally.
126569         (strchr, memcpy, NULL): Do not define.
126571         * lib/readtokens.c: Include readtokens.h first, to test interface.
126572         Include <stdlib.h>, <string.h> unconditionally.
126573         (init_tokenbuffer): Define with a prototype.
126575         * lib/regex.c (PARAMS): Remove.  All uses removed.
126576         All uses of _RE_ARGS removed, too.
126577         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
126578         unconditionally.
126579         (bzero): Assume memset exists.
126580         (memcmp, memcpy, NULL): Remove.
126581         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
126582         char, or assignments to local vars of type signed char.
126583         (init_syntax_once, PREFIX(extract_number_and_incr),
126584         PREFIX(print_partial_compiled_pattern),
126585         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
126586         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
126587         PREFIX(regex_grow_registers), PREFIX(regex_compile),
126588         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
126589         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
126590         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
126591         wcs_compile_range, byte_compile_range, truncate_wchar,
126592         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
126593         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
126594         count_mbs_length, wcs_re_match_2_internal,
126595         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
126596         PREFIX(alt_match_null_string_p),
126597         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
126598         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
126599         regfree, PREFIX(extract_number)): Define with prototype.  Remove
126600         now-unnecessary declaration, if any.
126601         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
126602         regcomp, regexec):
126603         Remove now-unnecessary casts among pointer types.
126604         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
126606         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
126607         (free): Remove decl.
126609         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
126611         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
126612         (free): Remove decl.
126614         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
126615         * lib/xgetcwd.c: Likewise.
126617         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
126618         (free): Remove decl.
126620         * lib/strchrnul.c (strchrnul): Define with a prototype.
126621         Fix bug: c_in was not converted to char before searching.
126623         The following changes are not K&R related:
126625         * lib/group-member.h: Include <sys/types.h>, so that this file is
126626         self-contained.
126627         * lib/makepath.h: Likewise.
126629         * lib/getusershell.c (readname, default_index, line_size, readname):
126630         Use size_t, not int, for sizes.
126631         (readname): If the size overflows, report an error instead of
126632         looping forever.
126634 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126636         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
126637         libc.
126639 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126641         * README: New section: portability guidelines.
126643 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126645         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
126646         C89 spec.
126648 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126650         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
126652 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126654         Assume C89 or better; remove K&R cruft.
126655         A few of these changes were first proposed by Derek Robert Price
126656         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
126658         * lib/addext.c: Include <string.h> unconditionally.
126659         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
126660         Don't declare getenv or malloc.
126662         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
126663         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
126664         (NULL): Remove.
126665         (find_stack_direction, alloca): Use prototypes.
126667         * lib/atexit.c (atexit): Define using a prototype.
126669         * lib/basename.c, dirname.c, stripslash.c:
126670         Include <string.h> unconditionally.
126672         * lib/bcopy.c: Include <stddef.h>.
126673         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
126675         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
126677         * lib/error.h (error, error_at_line, error_print_progname)
126678         [! (defined (__STDC__) && __STDC__)]: Remove decls.
126679         * lib/error.c: Include error.h first, to check interface.
126680         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126681         (VA_START): Remove; all uses changeed to va_start.
126682         (exit, strerror): Remove decls.
126683         (error_print_progname): Prototype uncondionally.
126684         Don't include <errno.h>; no longer needed.
126685         (private_strerror): Remove.
126686         (error_tail): Always define.
126687         (error, error_at_line): Assume C89 or better; always use prototypes.
126688         * lib/fatal.c: Include "fatal.h" first, to test interface.
126689         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126690         (VA_START): Remove; all uses changed to va_start.
126691         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
126692         this case.
126693         (exit): Remove decl.
126694         (fatal): Prototype unconditionally.  Assume va_start works.
126695         Abort at end, to pacify gcc.
126697         * lib/euidaccess.c (main): Define with a prototype.
126699         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
126701         * lib/exitfail.c: Include <stdlib.h> unconditionally.
126703         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
126704         prototypes.
126705         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
126706         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
126707         (getenv): Remove decl.
126708         (fnmatch): Define using a prototype.
126709         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
126710         (FCT): Define using a prototype.
126712         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
126714         * lib/gethostname.c: Include <stddef.h>.
126715         (gethostname): Define with prototype.  Length is size_t, not int.
126717 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126719         Assume C89 or better; remove K&R cruft.
126720         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
126721         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
126722         string.h, getenv, malloc.
126723         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
126724         headers.
126725         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
126726         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
126727         do not check for strerror.
126728         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
126729         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
126730         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
126731         do not check for doprnt or vprintf.
126732         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
126733         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
126735 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126737         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
126738         getversion.c should have been removed then, but was accidentally
126739         preserved.
126741         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
126742         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
126744 2003-09-08  Karl Berry  <karl@gnu.org>
126746         * config/config.sub, config.guess, srclistvars.sh: update from savannah
126747                 config, forget about prep.
126749         * config/depcomp, missing: update from automake.
126751 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126753         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
126754         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126756 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126758         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
126759         copy_tm_result.  Bug reported by Simon Josefsson in
126760         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126762 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126764         * m4/time_r.m4: New file.
126765         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
126766         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
126767         is. Check for timegm declaration.
126768         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
126769         Do not check for gmtime_r.
126770         Replace mktime if __mktime_internal does not exist and if mktime
126771         hasn't been replaced already.
126773 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126775         * lib/time_r.c, lib/time_r.h: New files.
126777         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
126778         __localtime_r.
126779         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
126780         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
126782         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
126783         __gmtime_r.
126784         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
126785         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
126786         Include <time_r.h>.
126788         * lib/timegm.c: Switch to glibc implementation, with the following
126789         changes:
126790         [defined HAVE_CONFIG_H]: Include <config.h>.
126791         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
126792         (__mktime_internal) [!defined _LIBC]: New decl.
126793         (__gmtime_r) [!defined _LIBC]: New macro and function.
126794         (timegm): Use a prototype, since gnulib assumes C89.
126795         Do not bother declaring tmp to be const, as it's not really usefu.
126796         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
126797         (timegm): Declare only if HAVE_DECL_TIMEGM.
126799 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126801         * MODULES.html.sh (func_all_modules): Add time_r.
126802         * modules/time_r: New file.
126803         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
126804         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
126806 2003-09-03  Paul Eggert  <eggert@twinsun.com>
126808         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
126809         Bug reported by Lute Kamstra in
126810         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
126812         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
126813         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
126814         course with correspondingly smaller numbers for tomorrow and
126815         yesterday.  From Tadayoshi Funaba.  Originally installed into
126816         sh-utils on 1999-08-07, but the patch got lost (I guess during the
126817         coreutils merge?).
126819 2003-08-31  Simon Josefsson  <jas@extundo.com>
126821         * modules/timegm: New file.
126822         * MODULES.html.sh (func_all_modules): Add timegm.
126824 2003-08-31  Simon Josefsson  <jas@extundo.com>
126826         * m4/timegm.m4: New file.
126828 2003-08-31  Simon Josefsson  <jas@extundo.com>
126830         * lib/timegm.h: New file.
126831         * lib/timegm.c: New file.  Based on
126832         wget-1.8.2/src/http.c:mktime_from_utc.
126834 2003-08-31  Karl Berry  <karl@gnu.org>
126836         * lib/argp.h: update from libc.
126838 2003-08-28  Bruno Haible  <bruno@clisp.org>
126840         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
126841         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
126842         followed by '#define fnmatch fnmatch_posix' gives an error.
126844 2003-08-28  Bruno Haible  <bruno@clisp.org>
126846         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
126847         warning on QNX, which defines O_BINARY to 000000.
126849 2003-08-27  Jim Meyering  <jim@meyering.net>
126851         * m4/mkstemp.m4: Require that the system mkstemp be able to create
126852         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
126853         would fail after 32.  Reported by Danny Levinson.  Details here:
126854         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
126856 2003-08-24  Bruno Haible  <bruno@clisp.org>
126858         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
126859         MSVC7 <stdio.h> is included later.
126861 2003-08-22  Simon Josefsson  <jas@extundo.com>
126863         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
126865 2003-08-20  Karl Berry  <karl@gnu.org>
126867         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
126869 2003-08-20  Bruno Haible  <bruno@clisp.org>
126871         * modules/progname: New file.
126872         * MODULES.html.sh (func_all_modules): Add progname.
126874 2003-08-20  Bruno Haible  <bruno@clisp.org>
126876         * lib/progname.h: New file, from GNU gettext.
126877         * lib/progname.c: New file, from GNU gettext.
126878         * lib/progreloc.c: New file, from GNU gettext.
126880 2003-08-19  Jim Meyering  <jim@meyering.net>
126882         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
126883         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
126885 2003-08-19  Bruno Haible  <bruno@clisp.org>
126887         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
126888         more.
126890 2003-08-19  Bruno Haible  <bruno@clisp.org>
126892         * lib/xstrdup.c: Assume <string.h> exists.
126894 2003-08-18  Paul Eggert  <eggert@twinsun.com>
126896         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
126897         in makefile rules.
126899 2003-08-18  Jim Meyering  <jim@meyering.net>
126901         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
126902         * m4/lib-ld.m4: Likewise.
126904 2003-08-18  Jim Meyering  <jim@meyering.net>
126906         * lib/setenv.h: Indent nested cpp directive.
126907         * lib/vasnprintf.c: Remove trailing blanks.
126909 2003-08-17  Simon Josefsson  <jas@extundo.com>
126911         * modules/xstrndup: New file.
126912         * MODULES.html.sh (func_all_modules): Add xstrndup.
126914 2003-08-17  Simon Josefsson  <jas@extundo.com>
126916         * modules/argp: Fix autoconf macro name. Add more dependencies.
126918 2003-08-17  Simon Josefsson  <jas@extundo.com>
126920         * m4/xstrndup.m4: New file.
126922 2003-08-17  Simon Josefsson  <jas@extundo.com>
126924         * m4/argp.m4: New file.
126926 2003-08-17  Simon Josefsson  <jas@extundo.com>
126927             Bruno Haible  <bruno@clisp.org>
126929         * lib/xstrndup.h: New file.
126930         * lib/xstrndup.c: New file.
126932 2003-08-17  Bruno Haible  <bruno@clisp.org>
126934         * modules/strndup (Files, Include): Add lib/strndup.h.
126936 2003-08-17  Bruno Haible  <bruno@clisp.org>
126938         * modules/euidaccess (Files): Add lib/euidaccess.h.
126940 2003-08-17  Bruno Haible  <bruno@clisp.org>
126942         * lib/strndup.h: New file.
126944 2003-08-17  Bruno Haible  <bruno@clisp.org>
126946         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
126947         like AC_GNU_SOURCE.
126948         * modules/extensions (configure.ac): Comment out the invocation of
126949         gl_USE_SYSTEM_EXTENSIONS.
126951 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126953         Merges from coreutils, etc.
126954         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
126955         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
126956         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
126957         fixing a typo.
126958         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
126959         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
126961 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126963         Document merge from coreutils.
126964         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
126965         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
126966         * modules/utime: Add m4/utimes-null.m4.
126968 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126970         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
126971         space, undoing this 2003-08-12 change:
126972         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126974 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126976         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
126977         strtoul.c from libc, undoing this 2003-08-12 change:
126978         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126980 2003-08-16  Jim Meyering  <jim@meyering.net>
126982         Merges from coreutils.
126983         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
126984         prefix.  Adjust cache variables similarly.  Create 500 rather than
126985         just 300 files, to exercise bug on Darwin6.5, too.
126986         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
126987         $missing_dir.
126988         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
126989         AM_SYS_POSIX_TERMIOS.
126990         Reported by mkc@mathdogs.com.
126991         Also change use of $am_cv_sys_posix_termios
126992         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
126993         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
126994         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
126995         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
126996         in /proc/mounts until it finds one with matching device number.  This
126997         is unnecessary when the FILE argument *is* a mount point.  No stat call
126998         is necessary in that case.  So, disable the statvfs-testing code on
126999         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
127000         as RedHat bug# 84846.
127001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127002         to 1MB, so as not to render systems with no stack size limit (e.g.,
127003         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127004         Include <unistd.h>.  On some systems,
127005         it is required for the definition of _SC_PAGESIZE.
127007 2003-08-16  Jim Meyering  <jim@meyering.net>
127009         Merge from coreutils.
127010         * lib/xstrtoimax.c: #else #if -> #elif.
127011         * lib/xstrtoumax.c: Likewise.
127013 2003-08-16  Jim Meyering  <jim@meyering.net>
127015         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
127016         * m4/utimes.m4: Removed.
127017         * m4/utimes-null.m4: Renamed from utimes.m4.
127019         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127020         to 1MB, so as not to render systems with no stack size limit (e.g.,
127021         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127022         Include <unistd.h>.  On some systems,
127023         it is required for the definition of _SC_PAGESIZE.
127025 2003-08-16  Jim Meyering  <jim@meyering.net>
127026         and Paul Eggert  <eggert@cs.ucla.edu>
127028         Merges from coreutils, etc.
127030         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
127031         using the latest version from cvs.  This avoids problems with #line
127032         directives using a vendor (Sun) compiler.
127033         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
127034         Don't set GETGROUPS_LIB here; now it's
127035         done via getgroups.m4's wrapper function.
127036         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
127037         rather than just in sh-util/configure.in, so that the
127038         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
127039         same.
127040         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
127041         AC_FUNC_GETLOADAVG where to find getloadavg.c.
127042         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
127043         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
127044         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
127045         Remove code that is now done by the newly-required macros.
127046         Append $(EXEEXT) to DF_PROG.
127047         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
127048         Do not invoke or require the following here,
127049         since prereq.m4 or some gnulib .m4 now does this for us:
127050         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
127051         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
127052         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
127053         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
127054         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
127055         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
127056         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
127057         AC_FUNC_OBSTACK.
127058         Do not replace the following functions, as this is now the job
127059         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
127060         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
127061         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
127062         atexit getpass, strdup, getpagesize.
127063         Replace 'raise'.
127064         Do not check for the following functions, as this is now the job
127065         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
127066         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
127067         setregid.
127068         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
127069         Check for sys/sysctl.h.
127070         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
127071         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
127072         of checking for ssize_t ourselves.
127074         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
127075         Require every macro that gnulib/modules/* suggests for us.
127076         (jm_PREREQ_ADDEXT): New macro.
127077         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
127078         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
127080         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
127081         (gl_PHYSMEM): Use it.
127082         Also check for `table' function.
127083         Check for new headers and functions.
127084         Add check for sys/sysmp.h.
127085         With suggestions from Kaveh Ghazi.
127086         Ignore headers that are present but cannot be compiled.  This
127087         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
127088         C 5.4.
127090 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127092         Document merge from coreutils.
127093         * modules/userspec: Depend on posixver.
127094         * modules/strftime: Depend on tzset.
127096 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127098         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
127099         rather than tab, after '#' in shell-script copyright notices.
127100         Suggested by Bruno Haible.
127102 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127104         * config/srclist-update: Use three spaces, rather than tab, after '#'
127105         in shell-script copyright notices.  Suggested by Bruno Haible.
127106         Remove unnecessary parenthesization in regular expression.
127108 2003-08-15  Jim Meyering  <jim@meyering.net>
127110         Merge from coreutils.
127111         * lib/xgethostname.c: Include <stdlib.h>.
127112         (xghostname): Don't exit for anything other than memory-related
127113         failure; just return NULL.
127114         * lib/userspec.c: Include "posixver.h".
127115         (parse_user_spec): Accept `.' as a separator only
127116         in pre-POSIX-200112 mode.
127117         * lib/strtoimax.c: Use #elif rather than #else #if.
127118         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
127119         Remove function, now that we can rely on a working tzset function.
127120         [!_LIBC]: Ensure that the required autoconf test has been run.
127121         [!defined _NL_CURRENT && HAVE_STRFTIME]:
127122         Use underlying_strftime for %r.
127123         * lib/sha.c: Merge in some clean-up and optimization changes from
127124         glibc.
127125         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
127126         Ensure that it is a multiple of 64.
127127         Rearrange loop exit tests so as to avoid performing an
127128         additional fread after encountering an error or EOF.
127129         * lib/realloc.c: Update copyright date.
127131 2003-08-15  Jim Meyering  <jim@meyering.net>
127132         and Paul Eggert  <eggert@twinsun.com>
127134         Merge from coreutils.
127135         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
127136         member but strut utmpx does not.  Needed for AIX 4.3.3.
127137         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
127139 2003-08-15  Jim Meyering  <jim@meyering.net>
127140         and Paul Eggert  <eggert@cs.ucla.edu>
127142         Merges from coreutils, etc.
127143         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
127144         Require gl_FUNC_TZSET_CLOBBER.
127145         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
127146         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
127147         members.
127149 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127151         Help the merge from coreutils.
127152         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
127153         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
127154         * m4/tzset.m4: Use it too.
127156 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127158         * modules/tzset: New file.
127160 2003-08-14  Jim Meyering  <jim@meyering.net>
127162         Merges from coreutils.
127163         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
127164         variable names, rather than @FNMATCH_H@.
127165         * modules/alloca: Likewise for $(ALLOCA_H).
127167         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
127168         the three copies of the literal target, `fnmatch.h'.
127169         * modules/alloca (alloca.h): Likewise.
127171 2003-08-14  Jim Meyering  <jim@meyering.net>
127173         Merge from coreutils.
127174         * m4/tzset.m4: New file.
127175         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
127176         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
127177         otherwise, AIX 5.1 systems would end up using the latter.
127178         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
127179         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
127180         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
127181         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
127183 2003-08-14  Jim Meyering  <jim@meyering.net>
127185         Merge from coreutils.
127186         * lib/obstack.h: Whitespace changes.
127187         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
127188         and xcalloc return values.
127189         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
127190         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
127191         hang on OSF/1 5.1 for DIR on both local and remote file systems.
127192         Reported by (and fix confirmed by) Nelson H. F. Beebe.
127193         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127194         error from mntctl.
127195         Use mntctl's return value to drive the entry-processing loop, since
127196         we can't rely on the value of the vmt_length member in the last
127197         entry.  On some systems doing so could result in exhausting
127198         virtual memory.  Based in part on a patch from Mike Jetzer.
127200 2003-08-14  Jim Meyering  <jim@meyering.net>
127201         and Paul Eggert  <eggert@twinsun.com>
127203         Merges from coreutils, plus other fixes.
127204         * lib/physmem.c: Merge in portability changes from gcc/libiberty
127205         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
127206         for credits and details.  Thanks to Kaveh Ghazi for helping
127207         to keep these files in sync.
127208         (ARRAY_SIZE): Define it.
127209         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
127210         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
127211         (memcasecmp): Don't assume size_t fits in unsigned int.
127212         Remove casts and duplicate code.
127213         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
127214         (memcpy): Remove definition.
127215         Merge in some clean-up and optimization changes from glibc.
127216         [BLOCKSIZE]: Move definition to top of file.
127217         Ensure that it is a multiple of 64.
127218         Rearrange loop exit tests so as to avoid performing an
127219         additional fread after encountering an error or EOF.
127220         * lib/md5.h (md5_uintptr): Define.
127221         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
127222         return to the initial working directory.  Preserve errno
127223         for caller.
127224         * lib/idcache.c: Include "xalloc.h".
127225         (xmalloc, xrealloc): Remove decls.
127226         (getuser): Remove casts no longer required in C89.
127227         * lib/human.c: Include stdio.h, for sprintf.
127228         * lib/group-member.c: Include "xalloc.h".
127229         (xmalloc, xrealloc): Remove decls.
127230         (get_group_info): Remove casts no longer required in C89.
127231         * lib/getusershell.c (readname): Remove casts no longer required in
127232         C89.
127233         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
127234         * lib/getline.c: Whitespace fix, from coreutils.
127236 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127238         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
127239         Check for isascii.
127241         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127242         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127243         Undo previous (whitespace-only) change.
127245 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127247         * lib/exclude.c: Include <ctype.h>
127248         (IN_CTYPE_DOMAIN): New macro.
127249         (is_space): New fn.
127250         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
127251         and empty lines.
127253         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127254         Undo previous (whitespace-only) change.
127256 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127258         * config/srclist-update: Change update back to the old behavior,
127259         leaving whitespace alone.  Use one 'sed' command rather than a
127260         pipeline.
127261         (fixlicense): Now a variable, not a function.
127262         (remove_trailing_blanks): Remove.
127263         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
127264         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127265         Undo previous (whitespace-only) change.
127267 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127269         Merge from coreutils.
127270         * modules/euidaccess: Add lib_SOURCES, include for new
127271         file euidaccess.h
127273 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127275         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127276         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127277         Normalize leading white space and remove trailing white space.
127279         Merge from coreutils
127280         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
127282         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
127283         0.12.1.  These files are now being upgraded automatically by
127284         ../config/srclist-update.
127286 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127288         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127289         Normalize leading white space and remove trailing white space.
127290         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
127291         notice, as per ../config/srclist-update.
127293         Merge from coreutils.
127294         * lib/euidaccess.h: New file.
127295         * lib/euidaccess.c: Include it.
127296         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
127297         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
127298         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
127300 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127302         * config/srclist-update: Add copyright notice.
127303         (remove_id_lines, remove_trailing_blanks): New constants.
127304         (fixfile): Use them to normalize spacing a bit in copied files.
127305         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127306         Normalize leading white space and remove trailing white space.
127308         * config/texinfo.tex: Sync with texinfo.
127310         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
127311         strtoul.c from libc, to merge coreutils whitespace changes.
127313         * config/srclist.txt: Get the following m4 files from gettext:
127314         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
127315         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
127316         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
127317         wint_t.m4.
127319 2003-08-12  Karl Berry  <karl@gnu.org>
127321         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
127322         been made.
127324 2003-08-11  Paul Eggert  <eggert@twinsun.com>
127326         * modules/gnu-source, m4/gnu-source.m4:
127327         Remove; we're assuming Autoconf 2.54 or later now.
127328         Suggested by Bruno Haible.
127329         * MODULES.html.sh (func_all_modules): Remove gnu-source.
127331 2003-08-11  Bruno Haible  <bruno@clisp.org>
127333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
127335 2003-08-11  Bruno Haible  <bruno@clisp.org>
127337         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
127338         (vasnprintf): Use it instead of wcslen.
127340 2003-08-11  Bruno Haible  <bruno@clisp.org>
127342         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
127343         value to ensure that _Bool promotes to int. Use #define for _Bool when
127344         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
127346 2003-08-10  Karl Berry  <karl@gnu.org>
127348         * lib/regex.h: update from libc (whitespace fix).
127350 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127352         Merge some files from coreutils.  These changes were
127353         originally made by Jim Meyering.
127354         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
127355         many older Unixes require this.
127356         * lib/alloca.c (alloca): Remove cast to argument of free;
127357         no longer needed in C89.
127358         * lib/alloca_.h, regex.h: Fix white space to match
127359         what GNU indent does.
127361 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127363         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
127364         apparently Emacs's Unicode mode got confused before my 2003-08-05
127365         checkin.
127367 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127369         * m4/extensions.m4: New file.
127370         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
127371         Require gl_USE_SYSTEM_EXTENSIONS.
127372         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
127373         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
127375 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127377         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
127378         * modules/extensions, modules/gnu-source: New files.
127379         * modules/timespec, modules/unlocked-io: Depend on extensions.
127381 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127383         * modules/restrict: New file.
127384         * MODULES.html.sh (func_all_modules): Add restrict.
127385         * modules/regex: Depend on restrict.
127387 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127389         * m4/restrict.m4: New file.
127390         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
127392 2003-08-07  Bruno Haible  <bruno@clisp.org>
127394         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
127395         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
127397 2003-08-07  Bruno Haible  <bruno@clisp.org>
127399         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
127400         makes the module 'getndelim2' compatible with the module 'getline'.
127402 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127404         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
127405         byte with "\201" to avoid glitches when editing that source file
127406         with multi-gnome-terminal.
127408 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127410         * lib/bumpalloc.h: Remove.
127412 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127414         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
127415         * modules/bumpalloc: Remove.
127417 2003-08-04  Paul Eggert  <eggert@twinsun.com>
127419         * lib/getloadavg.c: Change copyright notice and spacing to conform to
127420         GNU coding style.
127422         Merge from coreutils.
127423         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
127424         1. From glibc.
127425         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
127426         from Karl Berry, implemented by Jim Meyering.
127427         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
127428         from Dmitry V. Levin.
127429         Remove anachronistic cast of xrealloc.
127430         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
127431         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
127432         type. Otherwise, it wouldn't compile with at least /bin/cc on
127433         ymp-cray-unicos9.0.2.X.
127434         Combine two mostly-identical uses of alloca into one.
127435         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
127437 2003-08-04  Dave Love  <d.love@dl.ac.uk>
127439         [From Emacs.]
127441         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
127442         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
127443         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
127444         obsolete NLIST_NAME_UNION.
127445         [__GNU__]: Undef BSD and FSCALE.
127446         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
127448 2003-08-03  Paul Eggert  <eggert@twinsun.com>
127450         * lib/stdbool_.h (_Bool): Make it signed char, instead of
127451         an enum type, so that it's guaranteed to promote to int.  See:
127452         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
127454 2003-08-03  Karl Berry  <karl@gnu.org>
127456         * config/depcomp: update from automake.
127458 2003-07-31  Paul Eggert  <eggert@twinsun.com>
127460         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
127461         (strerror): Don't assume that a printable int fits in 14 bytes.
127463 2003-07-31  Bruno Haible  <bruno@clisp.org>
127465         * modules/getpass-gnu: New file.
127466         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
127468 2003-07-31  Bruno Haible  <bruno@clisp.org>
127470         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
127472 2003-07-24  Karl Berry  <karl@gnu.org>
127474         * config/missing: update from automake.
127476 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
127477             Bruno Haible  <bruno@clisp.org>
127479         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
127480         * lib/getline.c (getline, getdelim): Likewise.
127481         Remove _GNU_SOURCE define; now it's defined in config.h through
127482         m4/getline.m4.
127484 2003-07-23  Karl Berry  <karl@gnu.org>
127486         * config/config.sub: update from prep.
127488 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127490         * modules/xalloc (Depends-on): Add exitfail.
127491         * modules/xmemcoll: Likewise.
127493 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127495         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
127496         over-parenthesization in macros.
127498         Sync with coreutils.
127500         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
127501         required by C99.
127503         Use `exit_failure' for xalloc and xmemcoll instead of their own
127504         private exit-failure variables.
127505         * lib/xalloc.h (xalloc_exit_failure): Remove.
127506         * lib/xmalloc.c: Likewise.  Include exitfail.h.
127507         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
127508         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
127509         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
127510         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
127512 2003-07-20  Jim Meyering  <jim@meyering.net>
127514         * modules/closeout (Depends-on): Add exitfail.
127515         Suggestion from Bruno Haible.
127517 2003-07-19  Karl Berry  <karl@gnu.org>
127519         * config/config.sub: update from prep.
127521 2003-07-18  Paul Eggert  <eggert@twinsun.com>
127523         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
127524         Remove.
127525         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
127526         to test that it can stand by itself.  Include "exitfail.h".
127527         Clients should set exit_failure instead.
127528         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
127530 2003-07-18  Bruno Haible  <bruno@clisp.org>
127532         * modules/getndelim2: New file.
127533         * modules/getline: Share files with module getndelim2.
127534         * modules/getnline: Depend on getndelim2 instead of sharing files with
127535         it. Add getnline.c to lib_SOURCES.
127536         * MODULES.html.sh (func_all_modules): Add getndelim2.
127538 2003-07-18  Bruno Haible  <bruno@clisp.org>
127540         * m4/getndelim2.m4: New file.
127541         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
127542         invoke gl_PREREQ_GETNDELIM2.
127543         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
127544         gl_PREREQ_GETNDELIM2.
127545         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
127546         gl_GETNDELIM2.
127548 2003-07-18  Bruno Haible  <bruno@clisp.org>
127550         * lib/getndelim2.h: New file.
127551         * lib/getndelim2.c: Make into a module of its own. Include config.h,
127552         getndelim2.h.
127553         (getndelim2): Make non-static. Change return type to ssize_t.
127554         * lib/getline.h: Change argument names.
127555         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
127556         * lib/getnline.c: Include getndelim2.h.
127558 2003-07-18  Andreas Schwab  <schwab@suse.de>
127560         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
127562 2003-07-17  Karl Berry  <karl@gnu.org>
127564         * config/config.sub: update from prep.
127566 2003-07-17  Bruno Haible  <bruno@clisp.org>
127568         * modules/getnline: New file.
127569         * modules/getline: Add lib/getndelim2.c to source file list.
127570         * MODULES.html.sh (func_all_modules): Add getnline.
127572 2003-07-17  Bruno Haible  <bruno@clisp.org>
127574         * m4/getnline.m4: New file.
127576 2003-07-17  Bruno Haible  <bruno@clisp.org>
127578         * m4/Makefile.am.in: Remove file.
127579         * m4/Makefile.am: Remove file.
127580         * m4/Makefile.in: Remove file.
127582 2003-07-17  Bruno Haible  <bruno@clisp.org>
127584         * lib/getnline.h: New file.
127585         * lib/getnline.c: New file.
127586         * lib/getndelim2.c: New file, extracted from getline.c.
127587         (getndelim2): Renamed from getdelim2, with added nmax argument.
127588         * lib/getline.c: Include getndelim2.c.
127589         (getdelim2): Moved out to getndelim2.c.
127590         (getline, getdelim): Update.
127592 2003-07-17  Bruno Haible  <bruno@clisp.org>
127594         * lib/Makefile.am: Remove file.
127595         * lib/Makefile.in: Remove file.
127597 2003-07-17  Bruno Haible  <bruno@clisp.org>
127599         * configure.in: Remove file.
127600         * Makefile.in: Remove file.
127602 2003-07-17  Bruno Haible  <bruno@clisp.org>
127604         * MODULES.html.sh: Put the </BODY> right before </HTML>.
127606 2003-07-16  Karl Berry  <karl@gnu.org>
127608         * config/srclist-update: was running fixlicense twice, which caused
127609                 texinfo.tex to be nullified for some reason.  Simplify,
127610                 $gplsrc is no longer needed as far as I can see?
127612 2003-07-16  Jim Meyering  <jim@meyering.net>
127614         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
127616 2003-07-15  Paul Eggert  <eggert@twinsun.com>
127618         * config/srclist.txt: Get the following files from gettext-runtime/intl
127619         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
127620         ref-del.sin.  From Bruno Haible.
127621         * config/srclist-update (fixfile): Change grep pattern again, since the
127622         previous fix didn't work (there was another trailing $).  Use
127623         '[$]' to escape the $s.
127625 2003-07-15  Karl Berry  <karl@gnu.org>
127627         * lib/vasnprintf.c: update from gettext.
127629 2003-07-15  Karl Berry  <karl@gnu.org>
127631         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
127632         gets expanded when surrounded by '$'.
127634 2003-07-15  Jim Meyering  <jim@meyering.net>
127636         * modules/save-cwd: Don't depend on error.  From Derek Price.
127638 2003-07-15  Jim Meyering  <jim@meyering.net>
127640         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
127642 2003-07-14  Simon Josefsson  <jas@extundo.com>
127644         * modules/mempcpy: New file.
127645         * MODULES.html.sh (func_all_modules): Add mempcpy.
127647 2003-07-14  Simon Josefsson  <jas@extundo.com>
127649         * m4/mempcpy.m4: New file.
127651 2003-07-14  Simon Josefsson  <jas@extundo.com>
127653         * lib/mempcpy.h: New file.
127654         * lib/mempcpy.c: New file.
127656 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127658         * modules/getdate, modules/posixtm: Depend on mktime.
127660 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127662         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
127663         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
127664         unicodeio.c, unicodeio.h, unlocked-io.h:
127665         Switch from LGPL to GPL.
127667 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127669         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
127670         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
127671         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
127672         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
127673         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
127674         updated automatically by ../config/srclist-update.  This changes
127675         their license from LPGL to GPL.
127677 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127679         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
127680         assumed to refer to the root of the most recent stable gettext version.
127681         * config/srclistvars.sh: Add defaults for eggert.
127682         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
127683         Match "This program" as well as "The program".  This is needed
127684         for gettext.
127686 2003-07-14  Jim Meyering  <jim@meyering.net>
127688         Don't emit diagnostics.  Let callers do that.
127689         * lib/save-cwd.c: Don't include "error.h".
127690         (save_cwd): Don't call error.  Ensure that errno is valid
127691         when returning nonzero.
127693         * lib/save-cwd.h (restore_cwd): Update prototype.
127694         * lib/save-cwd.c (restore_cwd): Remove two parameters.
127695         Simplify.  Don't call error upon failure.  Let callers do that.
127696         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
127697         when auditing is enabled.  But don't bother updating the #if.
127699 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
127701         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
127702         it breaks C++ compilation.
127703         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
127705 2003-07-10  Simon Josefsson  <jas@extundo.com>
127707         * modules/strchrnul (Makefile.am): Add strchrnul.h.
127709 2003-07-10  Jim Meyering  <jim@meyering.net>
127711         * m4/clock_time.m4: Remove trailing blank.
127712         * m4/intmax_t.m4: Likewise.
127714 2003-07-10  Jim Meyering  <jim@meyering.net>
127716         * lib/vasnprintf.c: Remove trailing blanks.
127717         Make cpp indentation consistent.
127719 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127721         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
127722         posixver.c, strftime.c, strnlen.c, strverscmp.c:
127723         Switch from LGPL to GPL.
127725 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127727         * config/srclist.txt: Sort sublists.  Add
127728         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
127729         that differ from gnulib for one reason or another; we'd like this list
127730         to be smaller but for now let's document what we have.
127732 2003-07-08  Paul Eggert  <eggert@twinsun.com>
127734         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
127735         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
127736         and sweeter "eval x=$x".
127737         * config/srclist.txt: Get lib/argp* from glibc.
127739 2003-07-07  Paul Eggert  <eggert@twinsun.com>
127741         * lib/mktime.c: Fix some boundary cases and remove need for floating
127742         point.
127744         Issue a compile-time diagnostic if time_t is floating point, or if
127745         two's complement arithmetic is not in effect, or if arithmetic
127746         right shift does not propagate the sign.  These assumptions were
127747         all in the original code but they weren't checked.
127749         (TIME_T_MIDPOINT, verify): New macros.
127750         (__isleap): Remove; it has integer overflow problems.
127751         (leapyear): New function, without those problems.
127752         (ydhms_tm_diff): Remove; splitting into two parts.
127753         (ydhms_diff): New function, containing the arithmetic part of
127754         the old ydhms_tm_diff function.  Issue a compile-time
127755         diagnostic if we are not using C99 integer division.
127756         Avoid casts when possible.
127757         (guess_time_tm): New function, containing the checking part of
127758         the old ydhms_tm_diff function.  Return the new value, rather than
127759         the difference between it and the old.  Accept a new argument T
127760         so that *T specifies the old value.  Check for overflow in the result.
127762         (__mktime_internal): Use a time_t offset, not a long int offset.
127763         This undoes the 2003-06-04 change, which is no longer needed now
127764         that we have better overflow checking.
127765         (localtime_offset): Likewise.
127767         (__mktime_internal): Avoid harmful overflow on hosts where time_t
127768         and long are 64-bit but int is only 32-bit.
127769         (ydhms_diff): Use long int to store year1 and yday1.
127770         Issue a compile-time diagnostic if long int is not wide enough.
127772         (__mktime_internal): Use long int to store adjusted year and yday.
127773         Use plain C rather than preprocessor commands, if that doesn't
127774         affect efficiency.
127775         Check for overflow (and try to repair) after each probe
127776         rather than checking only at the very end.  This avoids some bugs
127777         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
127778         does not equal GMT offset at maximum time).
127779         Use integer to check for overflow rather than floating point; this
127780         is more portable to non-IEEE hosts, and is a tad faster.
127781         When we detect that we are oscillating between two values,
127782         don't check whether tm_isdst has the requested value, since
127783         we already know the answer.  When tm_isdst has the wrong value,
127784         use a different heuristic to find the right one, based on the
127785         extreme values actually observed in practice in tz2003a,
127786         rather than the (overly optimistic) "previous 3 calendar quarters".
127788         (not_equal_tm, print_tm, check_result): Use "const T" rather than
127789         "T const" to accommodate glibc style.
127790         (check_result): Use less-confusing report format.  "long" -> "long int.
127791         (main): Likewise.
127792         Don't loop if the iteration overflows time_t.
127793         Allow a negative step in the iteration.
127795 2003-07-06  Karl Berry  <karl@gnu.org>
127797         * config/depcomp: update from automake.
127798         * config/config.sub: update from prep.
127800 2003-07-03  Karl Berry  <karl@gnu.org>
127802         * config/config.guess: update from prep.
127804 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127806         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
127807         xreadlink.c now includes it unconditionally.
127809 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127811         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
127812         having it depend on HAVE_SYS_TYPES_H.
127814 2003-07-01  Bruno Haible  <bruno@clisp.org>
127816         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
127817         <sys/types.h> should be sufficient.
127818         Reported by Paul Eggert.
127820 2003-06-26  Karl Berry  <karl@gnu.org>
127822         * config/depcomp: update from automake.
127824 2003-06-26  Bruno Haible  <bruno@clisp.org>
127826         * modules/human: Depend on module stdbool.
127828 2003-06-25  Bruno Haible  <bruno@clisp.org>
127830         * modules/readlink: New file.
127831         * modules/xreadlink: Depend on it.
127832         * MODULES.html.sh (func_all_modules): Add readlink.
127834 2003-06-25  Bruno Haible  <bruno@clisp.org>
127836         * m4/readlink.m4: New file.
127838 2003-06-25  Bruno Haible  <bruno@clisp.org>
127840         * lib/readlink.c: New file.
127842 2003-06-22  Karl Berry  <karl@gnu.org>
127844         * config/srclist.txt: update mkinstalldirs from automake.
127845         * config/mkinstalldirs: update.
127847 2003-06-22  Bruno Haible  <bruno@clisp.org>
127849         Portability to mingw32.
127850         * m4/ssize_t.m4: New file, from GNU gettext.
127851         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
127852         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
127854 2003-06-22  Bruno Haible  <bruno@clisp.org>
127856         * modules/safe-read: Add m4/ssize_t.m4.
127857         * modules/xreadlink: Add m4/ssize_t.m4.
127859 2003-06-20  Bruno Haible  <bruno@clisp.org>
127861         Assume C89, so PARAMS isn't needed.
127862         * lib/unicodeio.h (PARAMS): Remove.
127863         * lib/unicodeio.c: Don't use PARAMS.
127865 2003-06-18  Karl Berry  <karl@gnu.org>
127867         * config/config.{guess,sub}: update from prep.
127869 2003-06-18  Jim Meyering  <jim@meyering.net>
127871         Merge changes from coreutils.
127872         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
127873         Remove explicit declarations of xmalloc and realloc.
127874         Include xalloc.h.
127875         (read_utmp): Remove anachronistic cast of xmalloc.
127877 2003-06-17  Paul Eggert  <eggert@twinsun.com>
127879         Assume C89, so PARAMS isn't needed.
127880         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
127881         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
127882         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
127883         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
127884         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
127885         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
127886         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
127887         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
127888         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
127889         lib/xstrtod.h, lib/xstrtol.h: Likewise.
127890         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
127891         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
127892         no longer needed. Anyway, config.h should always be included before any
127893         other file.
127895 2003-06-11  Simon Josefsson  <jas@extundo.com>
127897         * modules/sysexits: New file.
127898         * MODULES.html.sh (func_all_modules): Add sysexits.
127900 2003-06-11  Simon Josefsson  <jas@extundo.com>
127902         * lib/sysexit_.h: New file.
127904 2003-06-11  Derek Price  <derek@ximbiot.com>
127906         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
127907         necessary.
127909 2003-06-11  Bruno Haible  <bruno@clisp.org>
127911         * m4/sysexits.m4: New file.
127913 2003-06-10  Simon Josefsson  <jas@extundo.com>
127915         * lib/argp.h: New file, from glibc.
127916         * lib/argp-ba.c: New file, from glibc.
127917         * lib/argp-eexst.c: New file, from glibc.
127918         * lib/argp-fmtstream.c: New file, from glibc.
127919         * lib/argp-fmtstream.h: New file, from glibc.
127920         * lib/argp-fs-xinl.c: New file, from glibc.
127921         * lib/argp-help.c: New file, from glibc.
127922         * lib/argp-namefrob.h: New file, from glibc.
127923         * lib/argp-parse.c: New file, from glibc.
127924         * lib/argp-pv.c: New file, from glibc.
127925         * lib/argp-pvh.c: New file, from glibc.
127926         * lib/argp-xinl.c: New file, from glibc.
127928 2003-06-10  Simon Josefsson  <jas@extundo.com>
127930         * modules/strchrnul: New file.
127932 2003-06-10  Simon Josefsson  <jas@extundo.com>
127934         * modules/argp: New file.
127936 2003-06-10  Simon Josefsson  <jas@extundo.com>
127938         * m4/strchrnul.m4: New file.
127940 2003-06-10  Simon Josefsson  <jas@extundo.com>
127942         * lib/strchrnul.h: New file.
127943         * lib/strchrnul.c: New file.
127945 2003-06-10  Bruno Haible  <bruno@clisp.org>
127947         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
127949 2003-06-07  Karl Berry  <karl@gnu.org>
127951         * config/config.{guess,sub}: update from prep.
127953 2003-06-07  Jim Meyering  <jim@meyering.net>
127955         * modules/strtod: Use $(...) notation, not @...@ for
127956         AC_REPLACE'd variables.
127957         * modules/localcharset: Likewise.
127959 2003-06-07  Jim Meyering  <jim@meyering.net>
127961         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
127962         in place of my name in the copyright comment.
127963         Remove definition and uses of __P.
127965         From coreutils.
127966         * lib/stat.c: Don't declare xmalloc explicitly.
127967         Instead, include "xalloc.h".
127968         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
127969         xrealloc, and xcalloc return values.
127970         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
127971         Improve comment.
127972         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
127974 2003-06-07  Bruno Haible  <bruno@clisp.org>
127976         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
127977         avoid AC_CONFIG_LINKS.
127978         * modules/fnmatch (Makefile.am): Use explicit creation rule for
127979         fnmatch.h, to avoid AC_CONFIG_LINKS.
127980         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
127982 2003-06-07  Bruno Haible  <bruno@clisp.org>
127984         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
127985         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
127986         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127987         directory.
127988         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
127989         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127990         directory.
127992 2003-06-06  Jim Meyering  <jim@meyering.net>
127994         Merge from coreutils.
127995         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
127996         Consolidate declarations and initializations of *_base* locals.
127998         Merge from coreutils.
127999         This avoids a core dump on systems without GNU putenv,
128000         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
128001         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
128002         (unsetenv): New static function, from GNU libc.
128003         (rpl_putenv): Use it.
128005         * lib/modechange.c: Remove trailing blanks.
128007         Merge from coreutils.
128008         * lib/fsusage.c: Remove declaration of statfs.
128009         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
128011         * lib/posixtm.c: Include <stdbool.h> unconditionally.
128013 2003-06-06  Jim Meyering  <jim@meyering.net>
128015         * lib/stdbool_.h: Renamed from stdbool.h.in.
128017 2003-06-06  Jim Meyering  <jim@meyering.net>
128018             Bruno Haible  <bruno@clisp.org>
128020         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
128021         Adjust Makefile.am snippet not to redirect directly to target.
128022         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
128024 2003-06-05  Paul Eggert  <eggert@twinsun.com>
128026         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
128027         mismatch, look in future quarters as well as past.  This fixes a
128028         bug when processing fall-backwards gaps immediately after a long
128029         period of daylight-saving time.
128031         * lib/mktime.c: Assume freestanding C89 or better.
128032         (HAVE_LIMITS_H): Remove.  Assume it's 1.
128033         (__P): Remove; not used.
128034         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
128035         (mktime, not_equal_tm, print_tm, check_result,
128036         main): Use prototypes.  Use const * where appropriate.
128037         (main): Fix typo in testing code that uncovered by above changes.
128038         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
128040 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128042         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
128043         locale.h, localeconv.  This merges changes from coreutils.
128045         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
128046         It can be removed after the next Autoconf is released.
128047         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
128048         needed.
128050 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128052         * lib/mktime.c: Fix Debian bug 177940
128053         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
128054         (localtime_offset): Now long int, not time_t, because we want it
128055         to be guaranteed to be signed.  All uses changed.
128056         (__mktime_internal): If overflow would occur when adding offset,
128057         don't add it.
128059         Merge 'human' changes from coreutils.  Rewrite to support
128060         locale-specific notations like thousands separators.
128061         * lib/human.c: Simplify authorship notice.
128062         Include human.h immediately after config.h.
128063         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
128064         <limits.h>: Do not include, since human.h does.
128065         (SIZE_MAX, UINTMAX_MAX): New macros.
128066         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
128067         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
128068         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
128069         (power_letter): Renamed from suffixes.
128070         (generate_suffix_backwards): Remove.
128071         (adjust_value): Now takes int style (because of human.h changes)
128072         and long double value (for greater precision on some platforms).
128073         (group_number): New function.
128074         (human_readable): Use it.  Use integer options, not enum.
128075         Put the options before the sizes in the arg list.
128076         Support all the new options.
128077         The old human_readable function has been removed;
128078         use inttostr.h instead.
128079         (human_readable, default_block_size, humblock):
128080         Use uintmax_t, not int, for block sizes.
128081         (human_readable_inexact, block_size_types): Remove.
128082         (block_size_opts): New constant.
128083         (human_options): Renamed from human_block_size, with new signature
128084         that allows block sizes up to UINTMAX_MAX.  All callers changed.
128085         * lib/human.h: Add copyright and authorship notice.
128086         Include <limits.h> and <stdbool.h> unconditionally.
128087         (PARAMS): Remove.  All uses removed.
128088         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
128089         (enum human_inexact_style): Remove tag; now a nameless enum.
128090         (human_floor, human_ceiling, human_round_to_even): Now have
128091         values 2, 0, 1 rather than -1, 1, 0.
128092         (human_group_digits, human_suppress_point_zero, human_autoscale,
128093         human_base_1024, human_SI, human_B): New constants.
128094         (human_readable_inexact, human_block_size): Remove.
128095         (human_readable): Size args are now uintmax_t, not int.
128096         (human_options): New decl.
128098         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
128099         unnecessary now that we assume C89 or better.  This change
128100         imported from coreutils.
128102         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128103         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
128104         in the 2003-05-30 sync from glibc.
128106         .h files should stand alone, but we shouldn't include <sys/types.h>
128107         if we can get away with just <stddef.h>.
128109         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
128110         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
128111         rather than <sys/types.h>, as we merely need size_t.
128112         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
128113         to get size_t.
128114         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
128115         Include <stdio.h>, to get FILE.
128116         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
128117         memcasecmp.h has included <stddef.h> and all we need is size_t.
128118         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
128119         our interface, instead of including <sys/types.h>
128121 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128123         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
128124         now, as glibc mktime is buggy on non-glibc systems.
128126 2003-06-03  Karl Berry  <karl@gnu.org>
128128         * config/config.sub: update from prep.
128130 2003-06-02  Paul Eggert  <eggert@twinsun.com>
128132         [from coreutils]
128133         Fix some minor time-related bugs with POSIX time arguments.
128134         Some valid time stamps were being rejected (notably -1, and
128135         time stamps before 1900 on 64-bit hosts).  And some invalid
128136         time stamps were being accepted, e.g. September 31.
128138         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
128139         that we can return (time_t) -1 successfully.
128140         * lib/posixtm.c: Likewise.
128141         [HAVE_STDBOOL_H]: Include <stdbool.h>.
128142         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
128143         (t): Remove static var.
128144         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
128145         of static var.  All uses changed.
128146         (year): Do not reject years before 1900; they can occur with
128147         64-bit time_t.
128148         (posix_time_parse): Do not check for out-of-range components;
128149         that is now the caller's responsibility, since our checks were
128150         only approximations.
128151         (posixtime): Use mktime to check for out-of-range components,
128152         since it knows them exactly.
128153         If mktime returns (time_t) -1, check whether an error actually occurred
128154         by invoking localtime on -1.
128155         (main) [TEST_POSIXTIME]: Check for input data errors, and report
128156         posixtime failures better.
128157         Improve the test data (in comments only).
128159 2003-06-02  Karl Berry  <karl@gnu.org>
128161         * config/mkinstalldirs (version): new variable.
128162         (--version): new option.
128163         (usage): improve message.
128165 2003-05-30  Karl Berry  <karl@gnu.org>
128167         * lib/mktime.c: update from libc.
128169 2003-05-30  Bruno Haible  <bruno@clisp.org>
128171         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
128172         * config/config.rpath: Upgrade to gettext-0.12.1.
128174 2003-05-30  Bruno Haible  <bruno@clisp.org>
128176         * m4/gettext.m4: Upgrade to gettext-0.12.1.
128177         * m4/nls.m4: New file, from gettext-0.12.1.
128178         * m4/po.m4: New file, from gettext-0.12.1.
128179         * m4/progtest.m4: Upgrade to gettext-0.12.1.
128181 2003-05-30  Bruno Haible  <bruno@clisp.org>
128183         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
128184         * lib/localcharset.h: Likewise.
128185         * lib/localcharset.c: Likewise.
128187 2003-05-29  Karl Berry  <karl@gnu.org>
128189         * config/config.rpath: update from gettext.
128191 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128193         Assume the headers required for C89 freestanding compilers.
128194         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
128195         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
128196         * m4/human.m4 (gl_HUMAN): Likewise.
128197         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
128198         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
128199         * m4/userspec.m4 (gl_USERSPEC): Likewise.
128200         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
128201         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
128202         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
128204 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128206         Assume the headers required for C89 freestanding compilers.
128207         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
128208         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
128209         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
128210         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
128211         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
128212         define, since <limits.h> is guaranteed to do that.
128213         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
128214         * lib/exclude.c: Include <stdbool.h> unconditionally.
128215         * lib/tempname.c: Include <stddef.h> unconditionally.
128216         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
128217         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
128218         <stddef.h> does that.
128219         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
128220         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
128221         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
128222         needed.
128223         * lib/xstrtol.c: Likewise.
128224         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
128225         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
128227         * lib/addext.c (addext): Use assignment rather than cast, to avoid
128228         warnings on some platforms.
128230         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128231         arbitrarily.
128233 2003-05-26  Jim Meyering  <jim@meyering.net>
128235         Merge in a change from coreutils:
128236         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
128237         that is guaranteed to be `no'.  Use `no_such_member' to indicate
128238         that condition, rather than `-1' which is slightly misleading.
128239         Change the name of the cache variable to have the gl_ prefix.
128240         Prompted by a patch from Richard Dawe for DJGPP.
128242 2003-05-24  Karl Berry  <karl@gnu.org>
128244         * config/config.guess: update from prep.
128246 2003-05-22  Karl Berry  <karl@gnu.org>
128248         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
128250 2003-05-20  Karl Berry  <karl@gnu.org>
128252         * config/config.guess: update from prep.
128254 2003-05-18  Karl Berry  <karl@gnu.org>
128256         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
128257         might actually be set by the user.
128259         * config/depcomp, install-sh, mdate-sh: update from automake.
128261 2003-05-17  Bruno Haible  <bruno@clisp.org>
128263         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
128264         invalid expansion for AC_EGREP_CPP.
128265         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
128266         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
128267         Suggested by Akim Demaille <akim@epita.fr> in
128268         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
128270 2003-05-12  Jim Meyering  <jim@meyering.net>
128272         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
128273         the space-padded-by-default conversion specifiers, %e, %k, %l.
128275 2003-05-12  Bruno Haible  <bruno@clisp.org>
128277         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
128278         the string is longer than 4 KB.
128280 2003-05-11  Karl Berry  <karl@gnu.org>
128282         * config/config.{guess,sub}: update from prep.
128284 2003-05-09  Bruno Haible  <bruno@clisp.org>
128286         * modules/error: Add m4/strerror_r.m4 to file list.
128288 2003-05-03  Bruno Haible  <bruno@clisp.org>
128290         Upgrade to Unicode-4.0.
128291         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
128292         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
128293         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
128294         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
128295         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
128296         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
128297         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
128298         Change width of U+E0100..U+E01EF from 1 to 0.
128300 2003-04-25  Jim Meyering  <jim@meyering.net>
128302         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
128303         of type size_t, not int.
128305 2003-04-25  Bruno Haible  <bruno@clisp.org>
128307         * lib/copy-file.c: Include <stddef.h>, for size_t.
128309 2003-04-21  Paul Eggert  <eggert@twinsun.com>
128311         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
128312         code which expansion is under static control.  Patch imported from
128313         Akim Demaille's patch to Bison; see
128314         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
128316 2003-04-14  Bruno Haible  <bruno@clisp.org>
128318         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
128320 2003-04-11  Jim Meyering  <jim@meyering.net>
128322         Merge changes from Coreutils.
128324         2003-03-22  Jim Meyering  <jim@meyering.net>
128326         * lib/strftime.c (widen): Cast alloca return value to proper type.
128328         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
128330         From GNU libc.
128331         * lib/strftime.c (my_strftime): Handle very large width
128332         specifications for numeric values correctly.  Improve checks for
128333         overflow.
128335         2003-01-19  Jim Meyering  <jim@meyering.net>
128337         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
128338         definitions.
128339         (nl_get_alt_digit) [! defined my_strftime]: Define.
128340         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
128341         _nl_get_alt_digit and _nl_get_walt_digit.
128343         * lib/strftime.c (my_strftime): Merge in locale-related changes from
128344         libc. These changes have no effect outside of _LIBC.
128346 2003-04-10  Bruno Haible  <bruno@clisp.org>
128348         * modules/findprog: New file.
128349         * MODULES.html.sh (func_all_modules): Add it.
128351 2003-04-10  Bruno Haible  <bruno@clisp.org>
128353         * m4/findprog.m4: New file.
128354         * m4/eaccess.m4: New file.
128356 2003-04-10  Bruno Haible  <bruno@clisp.org>
128358         * lib/findprog.h: New file, from GNU gettext.
128359         * lib/findprog.c: New file, from GNU gettext.
128361 2003-04-05  Jim Meyering  <jim@meyering.net>
128363         Merge changes from Coreutils.
128365         * lib/exclude.h (PARAMS): Remove definition and uses.
128366         * lib/exclude.c: Remove uses of `PARAMS'.
128368         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
128369         Add test-cases for DOS filenames. Declare program_name.
128370         (main): Set up program_name.  Patch by Rich Dawe.
128372         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128373         error from mntctl.
128374         Use mntctl's return value to drive the entry-processing loop, since
128375         we can't rely on the value of the vmt_length member in the last
128376         entry.  On some systems doing so could result in exhausting
128377         virtual memory.  Based in part on a patch from Mike Jetzer.
128379 2003-04-04  Bruno Haible  <bruno@clisp.org>
128381         * modules/linebreak: New file.
128382         * MODULES.html.sh (func_all_modules): Add it.
128384 2003-04-04  Bruno Haible  <bruno@clisp.org>
128386         * m4/linebreak.m4: New file.
128388 2003-04-04  Bruno Haible  <bruno@clisp.org>
128390         * lib/linebreak.h: New file, from GNU gettext.
128391         * lib/linebreak.c: New file, from GNU gettext with slight
128392         modifications.
128393         * lib/lbrkprop.h: New file, from GNU gettext.
128395 2003-04-03  Bruno Haible  <bruno@clisp.org>
128397         * modules/utf8-ucs4: New file.
128398         * modules/utf16-ucs4: New file.
128399         * modules/ucs4-utf8: New file.
128400         * modules/ucs4-utf16: New file.
128401         * MODULES.html.sh (func_all_modules): Add them.
128403 2003-04-03  Bruno Haible  <bruno@clisp.org>
128405         * m4/utf-ucs4.m4: New file.
128406         * m4/ucs4-utf.m4: New file.
128408 2003-04-03  Bruno Haible  <bruno@clisp.org>
128410         * lib/utf8-ucs4.h: New file, from GNU gettext.
128411         * lib/utf16-ucs4.h: New file, from GNU gettext.
128412         * lib/ucs4-utf8.h: New file, from GNU gettext.
128413         * lib/ucs4-utf16.h: New file, from GNU gettext.
128415 2003-04-02  Bruno Haible  <bruno@clisp.org>
128417         * modules/binary-io: New file.
128418         * MODULES.html.sh (func_all_modules): Add it.
128420 2003-04-02  Bruno Haible  <bruno@clisp.org>
128422         * lib/binary-io.h: New file, from GNU gettext.
128424 2003-04-01  Bruno Haible  <bruno@clisp.org>
128426         * modules/pathname: New file.
128427         * MODULES.html.sh (func_all_modules): Add it.
128429 2003-04-01  Bruno Haible  <bruno@clisp.org>
128431         * lib/pathname.h: New file, from GNU gettext.
128432         * lib/concatpath.c: New file, from GNU gettext.
128434 2003-03-30  Bruno Haible  <bruno@clisp.org>
128436         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
128438 2003-03-30  Bruno Haible  <bruno@clisp.org>
128440         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
128441         function chown() doesn't exist.
128443 2003-03-28  Bruno Haible  <bruno@clisp.org>
128445         * modules/copy-file: New file.
128446         * MODULES.html.sh (func_all_modules): Add it.
128448 2003-03-28  Bruno Haible  <bruno@clisp.org>
128450         * m4/copy-file.m4: New file.
128452 2003-03-28  Bruno Haible  <bruno@clisp.org>
128454         * lib/copy-file.h: New file, from GNU gettext.
128455         * lib/copy-file.c: New file, from GNU gettext.
128457 2003-03-18  Jim Meyering  <jim@meyering.net>
128459         * lib/quote.c (quote_n): Fix typo in comment.
128461 2003-03-18  Bruno Haible  <bruno@clisp.org>
128463         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
128464         checking.
128465         * m4/onceonly_2_57.m4: Likewise.
128467 2003-03-17  Bruno Haible  <bruno@clisp.org>
128469         * m4/onceonly.m4: Require autoconf 2.54 or newer.
128470         (m4_quote): Remove macro.
128471         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
128473 2003-03-14  Jim Meyering  <jim@meyering.net>
128475         Merge changes from Coreutils.
128476         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
128477         to be const, in order to avoid warnings.
128478         (obstack_room): Likewise.
128479         (obstack_empty_p): Likewise.
128481 2003-03-14  Bruno Haible  <bruno@clisp.org>
128483         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
128484         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
128486 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128488         Merge changes from Bison.
128489         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
128490         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
128491         when compiling Bison 1.875's `bitset bset = obstack_alloc
128492         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
128493         * lib/hash.c: Include <stdbool.h> unconditionally.
128495 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128497         * m4/onceonly.m4 (m4_quote): New macro.
128498         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
128499         Quote AC_FOREACH variable-expansions properly.
128501 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128503         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
128505 2003-03-09  Paul Eggert  <eggert@twinsun.com>
128507         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
128508         Reported by Bruce Becker; see:
128509         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
128511 2003-03-03  Paul Eggert  <eggert@twinsun.com>
128512             Bruno Haible  <bruno@clisp.org>
128514         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
128515         Reported by John Hughes, see
128516         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
128518 2003-02-20  Bruno Haible  <bruno@clisp.org>
128520         * MODULES.html.sh (func_all_modules): Add poll.
128522 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128524         * modules/poll: New file.
128526 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128528         * lib/poll_.h: New file.
128529         * lib/poll.c: New file.
128531 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128533         * m4/poll.m4: New file.
128535 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128537         * modules/mathl: New file.
128539 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128541         * lib/mathl.h: New file.
128542         * lib/acosl.c: New file.
128543         * lib/asinl.c: New file.
128544         * lib/atanl.c: New file.
128545         * lib/ceill.c: New file.
128546         * lib/cosl.c: New file.
128547         * lib/expl.c: New file.
128548         * lib/floorl.c: New file.
128549         * lib/frexpl.c: New file.
128550         * lib/ldexpl.c: New file.
128551         * lib/logl.c: New file.
128552         * lib/sincosl.c: New file.
128553         * lib/sinl.c: New file.
128554         * lib/sqrtl.c: New file.
128555         * lib/tanl.c: New file.
128556         * lib/trigl.c: New file.
128557         * lib/trigl.h: New file.
128559 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128561         * m4/mathl.m4: New file.
128563 2003-02-18  Bruno Haible  <bruno@clisp.org>
128565         * MODULES.html.sh (func_all_modules): Add mathl.
128567 2003-02-17  Bruno Haible  <bruno@clisp.org>
128569         * modules/mkdtemp: New module.
128570         * MODULES.html.sh (func_all_modules): Add it.
128572 2003-02-17  Bruno Haible  <bruno@clisp.org>
128574         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
128576 2003-02-17  Bruno Haible  <bruno@clisp.org>
128578         * lib/mkdtemp.h: New file, from GNU gettext.
128579         * lib/mkdtemp.c: New file, from GNU gettext.
128581 2003-02-02  Jim Meyering  <jim@meyering.net>
128583         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
128584         e.g. glibc-2.2.93.
128586 2003-01-31  Bruno Haible  <bruno@clisp.org>
128588         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
128589         'rpl_rename'.
128590         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
128591         'rpl_strnlen'.
128592         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
128593         'rpl_strtod'.
128594         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
128595         'rpl_utime'.
128597 2003-01-31  Bruno Haible  <bruno@clisp.org>
128599         * lib/rename.c: #undef rename before defining rpl_rename.
128600         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
128602 2003-01-30  Bruno Haible  <bruno@clisp.org>
128604         * modules/vasnprintf, modules/vasprintf: New modules.
128605         * MODULES.html.sh (func_all_modules): Add them.
128607 2003-01-30  Bruno Haible  <bruno@clisp.org>
128609         * m4/signed.m4: New file, from GNU gettext.
128610         * m4/longdouble.m4: New file, from GNU gettext.
128611         * m4/wchar_t.m4: New file, from GNU gettext.
128612         * m4/wint_t.m4: New file, from GNU gettext.
128613         * m4/vasnprintf.m4: New file.
128614         * m4/vasprintf.m4: New file.
128616 2003-01-30  Bruno Haible  <bruno@clisp.org>
128618         * lib/printf-args.h: New file, from GNU gettext.
128619         * lib/printf-args.c: New file, from GNU gettext.
128620         * lib/printf-parse.h: New file, from GNU gettext.
128621         * lib/printf-parse.c: New file, from GNU gettext.
128622         * lib/vasnprintf.h: New file, from GNU gettext.
128623         * lib/vasnprintf.c: New file, from GNU gettext.
128624         * lib/asnprintf.c: New file, from GNU gettext.
128625         * lib/vasprintf.h: New file, from GNU gettext with modifications.
128626         * lib/vasprintf.c: New file, from GNU gettext.
128627         * lib/asprintf.c: New file, from GNU gettext.
128629 2003-01-29  Bruno Haible  <bruno@clisp.org>
128631         * modules/stpncpy: New module.
128632         * MODULES.html.sh (func_all_modules): Add it.
128634 2003-01-29  Bruno Haible  <bruno@clisp.org>
128636         * m4/stpncpy.m4: New file.
128638 2003-01-29  Bruno Haible  <bruno@clisp.org>
128640         * lib/stpncpy.h: New file, from GNU gettext with modifications.
128641         * lib/stpncpy.c: New file, from GNU gettext with modifications.
128643 2003-01-28  Bruno Haible  <bruno@clisp.org>
128645         * modules/c-ctype: New module.
128646         * MODULES.html.sh (func_all_modules): Add it.
128648 2003-01-28  Bruno Haible  <bruno@clisp.org>
128650         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
128651         Paul Eggert.
128652         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
128653         Paul Eggert.
128655 2003-01-27  Bruno Haible  <bruno@clisp.org>
128657         * modules/xsetenv: New module.
128658         * MODULES.html.sh (func_all_modules): Add it.
128660 2003-01-27  Bruno Haible  <bruno@clisp.org>
128662         * lib/xsetenv.h: New file, from GNU gettext.
128663         * lib/xsetenv.c: New file, from GNU gettext.
128665 2003-01-23  Jim Meyering  <jim@meyering.net>
128667         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
128668         from working on systems without dirfd (at least Irix and OSF1/Tru64).
128670 2003-01-23  Bruno Haible  <bruno@clisp.org>
128672         * modules/minmax: New module.
128673         * MODULES.html.sh (func_all_modules): Add it.
128675 2003-01-23  Bruno Haible  <bruno@clisp.org>
128677         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
128678         Eggert.
128680 2003-01-22  Bruno Haible  <bruno@clisp.org>
128682         * modules/exit: New module.
128683         * MODULES.html.sh (func_all_modules): Add it.
128685 2003-01-22  Bruno Haible  <bruno@clisp.org>
128687         * lib/exit.h: New file, from GNU gettext.
128689 2003-01-19  Bruno Haible  <bruno@clisp.org>
128691         * gnulib-tool: Recognize option --extract-maintainer.
128692         (func_get_maintainer): New function.
128693         * modules/*: Add Maintainer entry.
128695 2003-01-16  Jim Meyering  <jim@meyering.net>
128697         * m4/regex.m4: The `regex' struct is both input and output.
128698         Initialize it before each use.  Patch by Tim Waugh.
128700 2003-01-16  Bruno Haible  <bruno@clisp.org>
128702         * MODULES.html.sh: Add a table of contents. Add the module name as
128703         leftmost column. Add hyperlinks.
128705 2003-01-15  Bruno Haible  <bruno@clisp.org>
128707         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
128709 2003-01-15  Bruno Haible  <bruno@clisp.org>
128711         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
128712         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
128713         suffix.
128715 2003-01-15  Bruno Haible  <bruno@clisp.org>
128717         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
128719 2003-01-15  Bruno Haible  <bruno@clisp.org>
128721         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
128722         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
128724 2003-01-14  Jim Meyering  <jim@meyering.net>
128726         * lib/same.c (same_name): Tweak a comment.
128728 2003-01-14  Bruno Haible  <bruno@clisp.org>
128730         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
128731         when a string comparison is sufficient.
128733 2003-01-14  Bruno Haible  <bruno@clisp.org>
128735         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
128736         'unsigned int'.
128738 2003-01-14  Bruno Haible  <bruno@clisp.org>
128740         * lib/hash-pjw.c: Add comment about low quality of this function.
128742 2003-01-13  Bruno Haible  <bruno@clisp.org>
128744         * modules/stpcpy: Distribute lib/stpcpy.h.
128745         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
128747 2003-01-13  Bruno Haible  <bruno@clisp.org>
128749         * modules/*: Add a description.
128750         * modules/strpbrk: Fix Makefile.am snippet.
128751         * modules/strtoimax: Fix dependencies.
128752         * modules/strtoumax: Likewise.
128754 2003-01-13  Bruno Haible  <bruno@clisp.org>
128756         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
128757         * modules/alloca (Makefile.am): All object files depend on alloca.h.
128758         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
128760 2003-01-13  Bruno Haible  <bruno@clisp.org>
128762         * gnulib-tool (func_create_testdir): Store config/* files in the main
128763         directory.
128764         * config.rpath: Move to ...
128765         * config/config.rpath: ... here.
128766         * modules/gettext: Contains config/config.rpath, not config.rpath.
128767         * modules/iconv: Likewise.
128769 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128771         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128772         to avoid collisions with libcurses and libreadline.
128774         * m4/getstr.m4: Remove.
128775         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
128777 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128779         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128780         to avoid collisions with libcurses and libreadline.
128782         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
128783         * lib/getstr.h, getstr.c: Remove.
128784         * lib/getline.c: Include "getline.h", to check interface.
128785         Move body of old getstr.c here: this defines MIN_CHUNK and
128786         declares getdelim2, which is renamed from getstr.
128787         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
128789         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
128790         All uses changed.
128791         * lib/linebuffer.h: Likewise.
128792         (readline): Remove backward-compatibility macro.
128794 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128796         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128797         to avoid collisions with libcurses and libreadline.
128798         * getstr: Remove.
128799         * MODULES.html.sh: Remove getstr.
128800         * modules/getline: Depend on unlocked-io, not getstr.
128802 2003-01-12  Jim Meyering  <jim@meyering.net>
128804         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
128806 2003-01-10  Bruno Haible  <bruno@clisp.org>
128808         * modules/alloca: Change Makefile.am requirements. Simplify Include
128809         requirements. Add lib/alloca_.h to file list.
128811 2003-01-10  Bruno Haible  <bruno@clisp.org>
128813         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
128815 2003-01-10  Bruno Haible  <bruno@clisp.org>
128817         * lib/alloca_.h: New file.
128818         * lib/getdate.y: Unconditionally include alloca.h.
128819         * lib/makepath.c: Likewise.
128820         * lib/setenv.c: Likewise.
128821         * lib/userspec.c: Likewise.
128823 2003-01-09  Karl Berry  <karl@gnu.org>
128825         * MODULES.html.sh: include `dirname $0` in PATH, to find
128826         gnulib-tool.
128828 2003-01-09  Bruno Haible  <bruno@clisp.org>
128830         * modules/stdbool: Change configure.ac, Makefile.am requirements.
128831         Simplify Include requirements. Add lib/stdbool.h.in to file list.
128833 2003-01-09  Bruno Haible  <bruno@clisp.org>
128835         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
128837 2003-01-09  Bruno Haible  <bruno@clisp.org>
128839         * lib/stdbool.h.in: New file.
128841 2003-01-09  Bruno Haible  <bruno@clisp.org>
128843         * gnulib-tool (func_all_modules): Ignore files ending in ~.
128844         * MODULES.html.sh: Likewise.
128846 2003-01-08  Jim Meyering  <jim@meyering.net>
128848         * lib/full-write.c: Undefine and define-away `const' after inclusion
128849         of errno.h, not before.  Suggestion from Bruno Haible.
128851 2003-01-08  Bruno Haible  <bruno@clisp.org>
128853         * modules/full-read: Depend on full-write.
128855 2003-01-08  Bruno Haible  <bruno@clisp.org>
128857         * lib/safe-read.c: Include specification header first, to ensure its
128858         selfcontainedness.
128859         * lib/full-write.c: Likewise.
128861 2003-01-07  Jim Meyering  <jim@meyering.net>
128863         * lib/full-write.c: Rework so that it may serve to define full_read,
128864         too.
128865         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
128867 2003-01-07  Bruno Haible  <bruno@clisp.org>
128869         * lib/strtoimax.c: Include <stdint.h> as an alternative to
128870         <inttypes.h>.
128871         * lib/xstrtol.h: Likewise.
128872         * lib/xstrtoimax.c: Likewise.
128873         * lib/xstrtoumax.c: Likewise.
128874         * lib/human.h: Likewise.
128876         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
128877         on systems that have <inttypes.h> but not <stdint.h>.
128879 2003-01-07  Bruno Haible  <bruno@clisp.org>
128881         * MODULES.html.sh: Add copyright notice.
128882         (missed_files): Omit CVS directory entries.
128883         (func_module): Make it work with sed-3.02.
128884         * MODULES.txt: Remove file.
128886 2003-01-06  Jim Meyering  <jim@meyering.net>
128888         * lib/version-etc.c: Update year in translatable copyright string.
128890 2003-01-03  Karl Berry  <karl@gnu.org>
128892         * config/config.{guess,sub}: update from prep.
128894 2003-01-02  Karl Berry  <karl@gnu.org>
128896         * doc/COPYING.DOC: belatedly updated to 1.2.
128898 2003-01-01  Karl Berry  <karl@gnu.org>
128900         * gnulib-tool (func_verify_module): report module name $module in
128901         error message, not $1.
128902         * gnulib-tool (create-testdir): don't complain if destdir couldn't
128903         be created, only if it doesn't exist.
128904         * gnulib-tool (last_checkin_date): don't expand the $Date here.
128906 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128908         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
128910 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128912         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
128913         memcmp if strcoll doesn't work.
128915 2002-12-31  Bruno Haible  <bruno@clisp.org>
128917         * lib/utime.c (utime_null): No need to call ftruncate if the file was
128918         nonempty.
128920 2002-12-31  Bruno Haible  <bruno@clisp.org>
128922         * lib/memcoll.c (STRCOLL): New macro.
128923         (memcoll): Use it.
128925 2002-12-31  Bruno Haible  <bruno@clisp.org>
128927         * lib/localcharset.h: New file.
128928         * lib/localcharset.c: Include it.
128929         * lib/unicodeio.c: Likewise.
128931 2002-12-31  Bruno Haible  <bruno@clisp.org>
128933         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
128934         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
128936 2002-12-31  Bruno Haible  <bruno@clisp.org>
128938         * lib/getline.h: Include <stddef.h>, for size_t.
128940         * lib/unicodeio.h: Include <stddef.h>, for size_t.
128941         * lib/unicodeio.c: Don't include <stddef.h>.
128943 2002-12-31  Bruno Haible  <bruno@clisp.org>
128945         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
128946         HAVE_TM_ZONE.
128948 2002-12-24  Karl Berry  <karl@gnu.org>
128950         * config/config.guess: update from prep.
128952 2002-12-24  Bruno Haible  <bruno@clisp.org>
128954         General infrasructure.
128955         * m4/README: Rewritten.
128956         * m4/onceonly.m4: New file.
128957         * m4/onceonly_2_57.m4: New file.
128959         Module atexit.
128960         * m4/atexit.m4: New file.
128962         Module strtod.
128963         * m4/strtod.m4: New file.
128965         Module strtol.
128966         * m4/strtol.m4: New file.
128968         Module strtoul.
128969         * m4/strtoul.m4: New file.
128971         Module memchr.
128972         * m4/memchr.m4: New file.
128974         Module memcmp.
128975         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
128976         (jm_FUNC_MEMCMP): Invoke it.
128978         Module memcpy.
128979         * m4/memcpy.m4: New file.
128981         Module memmove.
128982         * m4/memmove.m4: New file.
128984         Module memset.
128985         * m4/memset.m4: New file.
128987         Module strcspn.
128988         * m4/strcspn.m4: New file.
128990         Module strpbrk.
128991         * m4/strpbrk.m4: New file.
128993         Module strstr.
128994         * m4/strstr.m4: New file.
128996         Module strerror.
128997         * m4/strerror.m4: New file.
128999         Module mktime.
129000         * m4/mktime.m4: Renamed from jm-mktime.m4.
129001         (gl_PREREQ_MKTIME): New macro.
129002         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
129004         Module malloc.
129005         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
129006         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
129007         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
129009         Module realloc.
129010         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
129011         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
129012         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
129014         Module strftime.
129015         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
129016         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
129017         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
129018         gl_TM_GMTOFF.
129019         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
129021         Module xalloc.
129022         * m4/xalloc.m4: New file.
129024         Module alloca.
129025         * m4/alloca.m4: New file.
129027         Module putenv.
129028         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
129029         (jm_FUNC_PUTENV): Invoke it.
129031         Module setenv.
129032         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
129033         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
129034         when invoked twice.
129035         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
129036         gt_FUNC_SETENV.
129038         Module memrchr.
129039         * m4/memrchr.m4: New file.
129041         Module stpcpy.
129042         * m4/stpcpy.m4: New file.
129044         Module strcase.
129045         * m4/strcase.m4: New file.
129047         Module strdup.
129048         * m4/strdup.m4: New file.
129050         Module strnlen.
129051         * m4/strnlen.m4: New file.
129053         Module strndup.
129054         * m4/strndup.m4: New file.
129056         Module xstrtod.
129057         * m4/xstrtod.m4: New file.
129059         Module xstrtol.
129060         * m4/xstrtol.m4: New file.
129062         Module getdate.
129063         * m4/getdate.m4: New file.
129065         Module unlocked-io.
129066         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
129067         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
129068         * m4/jm-glibc-io.m4n: Remove file.
129070         Module long-options.
129071         * m4/long-options.m4: New file.
129073         Module md5.
129074         * m4/md5.m4: New file.
129076         Module sha.
129077         * m4/sha.m4: New file.
129079         Module getstr.
129080         * m4/getstr.m4: New file.
129082         Module getline.
129083         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
129084         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
129085         <sys/types.h>, for size_t. Use the function name gnu_getline, not
129086         simply getline. Infoke gl_PREREQ_GETLINE.
129088         Module obstack.
129089         * m4/obstack.m4: New file.
129091         Module hash.
129092         * m4/hash.m4: New file.
129094         Module readtokens.
129095         * m4/readtokens.m4: New file.
129097         Module strverscmp.
129098         * m4/strverscmp.m4: New file.
129100         Module stdbool.
129101         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
129102         OSF/1.
129104         Module strtoll.
129105         * m4/strtoll.m4: New file.
129107         Module strtoull.
129108         * m4/strtoull.m4: New file.
129110         Module strtoimax.
129111         * m4/strtoimax.m4: New file.
129113         Module strtoumax.
129114         * m4/strtoumax.m4: New file.
129116         Module xstrtoimax.
129117         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
129118         jm_AC_PREREQ_XSTRTOIMAX.
129119         Moved the strtol prerequisites to strtol.m4.
129120         Moved the strtoll prerequisites to strtoll.m4.
129121         Moved the strtoimax prerequisites to strtoimax.m4.
129123         Module xstrtoumax.
129124         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
129125         jm_AC_PREREQ_XSTRTOUMAX.
129126         Moved the strtoul prerequisites to strtoul.m4.
129127         Moved the strtoull prerequisites to strtoull.m4.
129128         Moved the strtoumax prerequisites to strtoumax.m4.
129130         Module chown.
129131         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
129132         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
129134         Module dup2.
129135         * m4/dup2.m4: New file.
129137         Module ftruncate.
129138         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
129139         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
129141         Module getgroups.
129142         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
129143         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
129145         Module gettimeofday.
129146         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
129147         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
129148         gl_PREREQ_GETTIMEOFDAY.
129150         Module mkdir.
129151         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
129152         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
129154         Module mkstemp.
129155         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
129156         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
129157         jm_AC_TYPE_UINTMAX_T.
129158         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
129160         Module stat.
129161         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
129162         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
129164         Module lstat.
129165         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
129166         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
129168         Module timespec.
129169         * m4/timespec.m4 (gl_TIMESPEC): New macro.
129170         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
129171         * m4/st_mtim.m4: Indentation.
129173         Module nanosleep.
129174         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
129175         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
129176         gl_PREREQ_NANOSLEEP.
129178         Module regex.
129179         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
129180         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
129181         (gl_REGEX): New macro.
129183         Module rename.
129184         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
129185         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
129187         Module rmdir.
129188         * m4/rmdir.m4: New file.
129190         Module utime.
129191         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
129192         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
129193         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
129195         Module dirname.
129196         * m4/dirname.m4: New file.
129198         Module getopt.
129199         * m4/getopt.m4: New file.
129201         Module unistd-safer.
129202         * m4/unistd-safer.m4: New file.
129204         Module fnmatch.
129205         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
129206         declaration.
129207         (gl_PREREQ_FNMATCH_EXTRA): New macro.
129208         (gl_FUNC_FNMATCH_POSIX): New macro.
129209         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
129210         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
129211         simply fnmatch.
129213         Module exclude.
129214         * m4/exclude.m4: New file.
129216         Module human.
129217         * m4/human.m4: New file.
129219         Module acl.
129220         * m4/acl.m4: Nop.
129222         Module backupfile.
129223         * m4/backupfile.m4: New file.
129224         * m4/d-ino.m4: Indentation.
129226         Module fsusage.
129227         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
129228         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
129229         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
129231         Module dirfd.
129232         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
129233         requirements.
129235         Module euidaccess.
129236         * m4/euidaccess.m4: New file.
129238         Module file-type.
129239         * m4/file-type.m4: New file.
129241         Module fileblocks.
129242         * m4/fileblocks.m4: New file.
129244         Module filemode.
129245         * m4/filemode.m4: New file.
129247         Module isdir.
129248         * m4/isdir.m4: New file.
129250         Module lchown.
129251         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
129252         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
129254         Module makepath.
129255         * m4/makepath.m4: New file.
129257         Module modechange.
129258         * m4/modechange.m4: New file.
129260         Module mountlist.
129261         * m4/mountlist.m4: New file.
129262         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
129263         Indentation.
129265         Module path-concat.
129266         * m4/path-concat.m4: New file.
129268         Module pathmax.
129269         * m4/pathmax.m4: New file.
129271         Module same.
129272         * m4/same.m4: New file.
129274         Module save-cwd.
129275         * m4/save-cwd.m4: New file.
129277         Module savedir.
129278         * m4/savedir.m4: New file.
129280         Module xgetcwd.
129281         * m4/xgetcwd.m4: New file.
129282         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
129284         Module xreadlink.
129285         * m4/xreadlink.m4: New file.
129287         Module safe-read.
129288         * m4/safe-read.m4: New file.
129290         Module safe-write.
129291         * m4/safe-write.m4: New file.
129293         Module closeout.
129294         * m4/closeout.m4: New file.
129296         Module stdio-safer.
129297         * m4/stdio-safer.m4: New file.
129299         Module getpass.
129300         * m4/getpass.m4: New file.
129302         Module getugroups.
129303         * m4/getugroups.m4: New file.
129305         Module group-member.
129306         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
129307         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
129309         Module idcache.
129310         * m4/idcache.m4: New file.
129312         Module userspec.
129313         * m4/userspec.m4: New file.
129315         Module gettime.
129316         * m4/clock_time.m4: New file.
129317         * m4/gettime.m4: New file.
129319         Module settime.
129320         * m4/settime.m4: New file.
129322         Module posixtm.
129323         * m4/posixtm.m4: New file.
129325         Module gethostname.
129326         * m4/gethostname.m4: New file.
129328         Module canon-host.
129329         * m4/canon-host.m4: New file.
129331         Module gettext.
129332         * m4/codeset.m4: New file, from gettext-0.11.5.
129333         * m4/gettext.m4: New file, from gettext-0.11.5.
129334         * m4/glibc21.m4: New file, from gettext-0.11.5.
129335         * m4/iconv.m4: New file, from gettext-0.11.5.
129336         * m4/intdiv0.m4: New file, from gettext-0.11.5.
129337         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
129338         * m4/inttypes.m4: New file, from gettext-0.11.5.
129339         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
129340         * m4/isc-posix.m4: New file, from gettext-0.11.5.
129341         * m4/lcmessage.m4: New file, from gettext-0.11.5.
129342         * m4/lib-ld.m4: New file, from gettext-0.11.5.
129343         * m4/lib-link.m4: New file, from gettext-0.11.5.
129344         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
129345         * m4/progtest.m4: New file, from gettext-0.11.5.
129346         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
129347         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
129348         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
129350         Module localcharset.
129351         * m4/localcharset.m4: New file.
129353         Module hard-locale.
129354         * m4/hard-locale.m4: New file.
129356         Module mbswidth.
129357         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
129358         onceonly macros.
129359         * m4/mbrtowc.m4: Add comment.
129361         Module memcasecmp.
129362         * m4/memcasecmp.m4: New file.
129364         Module memcoll.
129365         * m4/memcoll.m4: New file.
129367         Module unicodeio.
129368         * m4/unicodeio.m4: New file.
129370         Module rpmatch.
129371         * m4/rpmatch.m4: New file.
129373         Module yesno.
129374         * m4/yesno.m4: New file.
129376         Module exitfail.
129377         * m4/exitfail.m4: New file.
129379         Module c-stack.
129380         * m4/c-stack.m4 (gl_C_STACK): New macro.
129381         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
129383         Module error.
129384         * m4/error.m4 (gl_ERROR): New macro.
129385         (jm_PREREQ_ERROR): Use onceonly macros.
129387         Module fatal.
129388         * m4/fatal.m4: New file.
129390         Module getloadavg.
129391         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
129392         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
129394         Module getpagesize.
129395         * m4/getpagesize.m4: New file.
129397         Module getusershell.
129398         * m4/getusershell.m4: New file.
129400         Module physmem.
129401         * m4/physmem.m4: New file.
129403         Module posixver.
129404         * m4/posixver.m4: New file.
129406         Module quotearg.
129407         * m4/quotearg.m4: New file.
129409         Module quote.
129410         * m4/quote.m4: New file.
129412         Module readutmp.
129413         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
129415         Module sig2str.
129416         * m4/sig2str.m4: New file.
129418         Other.
129419         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
129420         ulonglong.m4.
129421         * m4/intmax_t.m4: New file.
129422         * m4/d-type.m4: Indentation.
129423         * m4/jm-macros.m4: Update.
129424         * m4/prereq.m4 (jm_PREREQ): Update.
129425         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
129426         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
129427         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
129428         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
129429         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
129430         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
129431         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
129432         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
129433         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
129434         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
129435         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
129436         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
129437         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
129438         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
129439         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
129440         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
129441         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
129442         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
129443         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
129445 2002-12-24  Bruno Haible  <bruno@clisp.org>
129447         * MODULES.txt: Update according to m4/ changes.
129449         Module gettext.
129450         * config.rpath: New file, from gettext-0.11.5.
129452         * modules/*: New module descriptions.
129453         * gnulib-tool: New file.
129454         * MODULES.html.sh: New file.
129456 2002-12-21  Karl Berry  <karl@gnu.org>
129458         * doc/fdl.texi: update to version 1.2.
129460 2002-12-19  Karl Berry  <karl@gnu.org>
129462         * config/config.guess: update from prep.
129464 2002-12-18  Bruno Haible  <bruno@clisp.org>
129466         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
129467         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
129469 2002-12-17  Bruno Haible  <bruno@clisp.org>
129471         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
129472         stdlib.h, string.h.
129474 2002-12-17  Bruno Haible  <bruno@clisp.org>
129476         * lib/canon-host.c (strdup): Remove unused declaration.
129478         * lib/fsusage.c: Include full_read.h.
129479         (get_fs_usage): Use full_read instead of safe_read.
129481         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
129483 2002-12-12  Karl Berry  <karl@gnu.org>
129485         * config/config.guess: update from prep.
129487 2002-12-11  Bruno Haible  <bruno@clisp.org>
129489         * m4/setenv.m4: New file, from gettext-0.11.5.
129491 2002-12-11  Bruno Haible  <bruno@clisp.org>
129493         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
129494         not unsetenv().
129495         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
129496         modifications:
129498         2002-12-11  Bruno Haible  <bruno@clisp.org>
129500                 * setenv.c (alloca): Fall back to malloc.
129501                 (freea): New macro.
129502                 (setenv): Use freea() to free memory allocated with alloca().
129504         2002-11-13  Bruno Haible  <bruno@clisp.org>
129506                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
129507                 function declarations.
129508                 * unsetenv.c (unsetenv): Likewise.
129510         2002-03-04  Bruno Haible  <bruno@clisp.org>
129512                 Portability to AIX 4.3.3.
129513                 * unsetenv.c: New file, extracted from setenv.c.
129514                 * setenv.c: Move the unsetenv() function to unsetenv.c.
129516         2001-12-20  Bruno Haible  <bruno@clisp.org>
129518                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
129519                 use malloc instead. For SunOS 4.
129521         2001-12-11  Bruno Haible  <bruno@clisp.org>
129523                 * setenv.c: Declare alloca.
129524                 (compar_fn_t): New typedef.
129525                 (KNOWN_VALUE, STORE_VALUE): Use it.
129527         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
129528         setenv.h.
129530 2002-12-10  Paul Eggert  <eggert@twinsun.com>
129532         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
129533         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
129534         Choose values that are less likely to collide with system fnmatch
129535         options.
129536         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
129537         defined (e.g., a pure POSIX system).
129538         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
129539         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
129541 2002-12-06  Paul Eggert  <eggert@twinsun.com>
129543         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
129544         a pain in practice to deal with generated m4 files.  This change
129545         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
129547         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
129548         and jm-glibc-io.m4, as they are no longer a special case.
129549         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
129550         kludge and the auto-generation stuff.  Check only whether the
129551         functions are declared, not whether they exist, since older hosts
129552         that don't declare the functions can't use the optimization anyway.
129554 2002-12-06  Jim Meyering  <jim@meyering.net>
129556         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
129558         Merge in changes from libc's misc/error.c, in preparation
129559         for the merge of gnulib's changes back into libc.
129561         * lib/error.c (_): Define only if not already defined.
129562         Move definition to follow all #include directives.
129563         Include unlocked-io.h only if !_LIBC.
129564         [_LIBC]: Include <libio/libioP.h>.
129565         [USE_IN_LIBIO]: Include <libio/iolibio.h>
129566         (fflush): Tweak definition to use INTUSE.
129567         (putc): Define.
129569 2002-12-05  Paul Eggert  <eggert@twinsun.com>
129571         * lib/alloca.c [defined emacs]: Include "lisp.h".
129572         (xalloc_die) [defined emacs]: New macro.
129573         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
129574         [! defined emacs]: Include <xalloc.h>.
129575         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
129576         (pointer): Typedef to POINTER_TYPE *.
129577         (malloc): Remove decl; we now always use xmalloc.
129578         (alloca): Use old-style definition, since Emacs needs this.
129579         Check for arithmetic overflow when computing combined size.
129581 2002-12-04  Paul Eggert  <eggert@twinsun.com>
129583         Do not generate unlocked-io.h automatically, since it's easier to
129584         maintain it by hand.
129586         * lib/unlocked-io.h: New file, from GNU diffutils,
129587         but with proper copyright notice and attribution.
129588         * lib/gen-uio: Remove.
129589         * lib/Makefile.am: Add copyright notice.
129590         (libfetish_a_SOURCES): Add unlocked-io.h.
129591         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
129592         (DISTCLEANFILES, io_functions): Remove macros.
129593         (EXTRA_DIST): Remove gen_uio.
129594         (unlocked-io.h): Remove rule.
129596 2002-12-04  Jim Meyering  <jim@meyering.net>
129598         Reflect the fact that stat.c and lstat.c are no longer generated.
129599         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
129600         (DISTCLEANFILES): Likewise.
129601         (EXTRA_DIST): Likewise.
129602         (all_local): Don't depend on stat.c or lstat.c.
129603         (stat.c, lstat.c): Remove rules.
129604         (EXTRA_DIST): Remove xstat.in.
129606         * lib/xstat.in: Remove file.  Contents moved into stat.c.
129607         * lib/stat.c: New file.  Contents mostly from xstat.in.
129608         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
129609         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
129611         * lib/safe-read.c: Rework so that it may serve to define safe_write,
129612         too.
129613         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
129615 2002-12-03  Jim Meyering  <jim@meyering.net>
129617         * lib/safe-read.c, safe-write.c: Change variable names and comments,
129618         but not semantics, to minimize the differences between these two files.
129619         (safe_read): Change comment to mention SAFE_READ_ERROR.
129621         * lib/safe-read.c (IS_EINTR): Define.
129622         (safe_read): Use IS_EINTR in place of in-function cpp directives.
129624 2002-12-02  Jim Meyering  <jim@meyering.net>
129626         * lib/safe-read.c (EINTR): Define.
129627         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129628         (INT_MAX): Provide fallback.
129629         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
129631         * lib/safe-read.h (SAFE_READ_ERROR): Define.
129633 2002-12-02  Bruno Haible  <bruno@clisp.org>
129635         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
129636         Define, taken from safe-read.c.
129637         (INT_MAX): Provide fallback.
129638         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
129639         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
129641         * lib/safe-read.c (EINTR): Remove definition.
129642         (safe_read): Don't use EINTR if it is absent.
129644 2002-12-01  Jim Meyering  <jim@meyering.net>
129646         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
129647         zero.
129648         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
129650 2002-11-27  Paul Eggert  <eggert@twinsun.com>
129652         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
129653         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
129654         with `if (! (value < limit)) abort ();', for readability.
129656 2002-11-26  Karl Berry  <karl@gnu.org>
129658         * lib/strdup.c: copy from libc again, with jim's ok.
129659         * lib/.cppi-disable: re-add strdup.c
129661 2002-11-25  Karl Berry  <karl@gnu.org>
129663         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
129664         instead of "strtol.c".
129666 2002-11-25  Karl Berry  <karl@gnu.org>
129668         * config/install-sh: update from automake for variable quoting, $0 in
129669         error msgs, etc.
129671         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
129672         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
129673         entry.
129675 2002-11-25  Jim Meyering  <jim@meyering.net>
129677         * lib/mktime.c: Sync from libc, now that it has the latest fix.
129679 2002-11-24  Karl Berry  <karl@gnu.org>
129681         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
129682         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
129684 2002-11-24  Jim Meyering  <jim@meyering.net>
129686         Update from coreutils:
129688         * lib/mktime.c: Merge in changes from libc.
129690         Avoid a link-time failure on some Linux systems.
129691         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
129692         (otherwise).
129693         (__mon_yday): Declare with the STATIC attribute.
129694         (__mktime_internal): Likewise.
129695         Based on a report from Greg Schafer.
129697 2002-11-23  Jim Meyering  <jim@meyering.net>
129699         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
129700         Use `unsigned', not `int', as type of index.
129702         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
129704         * lib/fsusage.c: Remove unneeded parentheses around operands of
129705         `defined'.
129707 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129709         * lib/quotearg.h: Allow multiple inclusion by surrounding with
129710         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
129711         so that we can be included first.
129712         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
129713         * lib/quotearg.c: Include quotearg.h immediately after config.h.
129714         No need to include stddef.h or sys/types.h any more.
129715         Surround local include files with "", not "<>".
129716         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
129717         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
129718         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
129719         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
129720         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
129721         (ISPRINT): Remove; no longer needed now that we assume C89.
129723         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
129724         Preserve errno.
129726         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
129727         quotearg_char): Use SIZE_MAX rather than
129728         (size_t) -1 when we are talking about "infinity".
129730         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
129732 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129734         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
129735         hint that one should use `if (! x) abort ();' rather than `assert
129736         (x);', and anyway it's one less thing to worry about configuring.
129737         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
129738         hash_rehash, hash_insert): Use abort rather than assert.
129740 2002-11-22  Bruno Haible  <bruno@clisp.org>
129742         * lib/safe-read.h: Assume C89. Add comments.
129743         (safe_read): Change return type to size_t.
129744         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
129745         byte counts > SSIZE_MAX correctly.
129746         * lib/safe-write.h: New file.
129747         * lib/safe-write.c: New file.
129748         * lib/full-read.h: New file.
129749         * lib/full-read.c: New file.
129750         * lib/full-write.h: Assume C89. Add comments.
129751         * lib/full-write.c: Include safe-write.h.
129752         (full_write): Rewritten to use safe_write.
129753         Suggested by Jim Meyering and Paul Eggert.
129755 2002-11-21  Jim Meyering  <jim@meyering.net>
129757         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
129759         Merge in changes from the coreutils.
129761         2002-09-25  Paul Eggert  <eggert@twinsun.com>
129762         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
129763         <stdint.h>.
129764         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
129765         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
129766         int.  Work more efficiently if X is the same width as uintmax_t.
129767         Do not compare X to -1, to avoid bogus compiler warning.
129768         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
129769         Don't assume that f_frsize and f_bsize are the same type.
129771         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
129772         warning on FreeBSD.
129774         * lib/makepath.c (make_path): Restore umask *before* creating the final
129775         component.
129776         (make_path): Minor reformatting.
129778         * lib/xmalloc.c: Adjust to work with new autoconf macros,
129779         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
129780         HAVE_MALLOC/HAVE_REALLOC.
129782         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
129783         dummy ones.  At least on GNU/Linux systems, `auto' means something
129784         else.
129785         From Michael Stone.
129787 2002-11-21  Bruno Haible  <bruno@clisp.org>
129789         Remove case insensitive option matching.
129790         * lib/argmatch.h (argcasematch): Remove declaration.
129791         (ARGCASEMATCH): Remove macro.
129792         (__xargmatch_internal): Remove case_sensitive argument.
129793         (XARGMATCH): Update.
129794         (XARGCASEMATCH): Remove macro.
129795         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
129796         case_sensitive argument.
129797         (argcasematch): Remove function.
129798         (__xargmatch_internal): Remove case_sensitive argument.
129799         (main): Use XARGMATCH instead of XARGCASEMATCH.
129801         * lib/xmalloc.c: Change compile-time error message. Add comment about
129802         required autoconf version.
129804 2002-11-20  Paul Eggert  <eggert@twinsun.com>
129806         Merge argmatch cleanups from Bison.  Assume C89.
129808         * lib/argmatch.c: Include config.h here, not in argmatch.h.
129809         Include stdlib.h, for EXIT_FAILURE.
129810         Always include <string.h>, since we assume C89.
129811         (EXIT_FAILURE): Remove pre-C89 bug workaround.
129812         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
129813         Include <stddef.h> instead, since it's all we need for size_t.
129814         (PARAMS): Remove.  All uses removed.
129815         (ARRAY_CARDINALITY): Do not bother to #undef.
129816         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
129817         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129818         Remove unnecessary parentheses.
129819         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129820         Insert necessary parentheses.
129821         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
129822         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
129824 2002-11-19  Bruno Haible  <bruno@clisp.org>
129826         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
129827         * lib/mbswidth.h: Include <stddef.h>, for size_t.
129829         * lib/mbswidth.h (PARAMS): Remove macro.
129830         (mbswidth, mbsnwidth): Use ANSI C function declarations.
129831         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
129833         * lib/gcd.h (PARAMS): Remove macro.
129834         (gcd): Use ANSI C function declarations.
129835         * lib/gcd.c (gcd): Likewise.
129837 2002-11-15  Bruno Haible  <bruno@clisp.org>
129839         * lib/strcspn.c: Include <stddef.h>.
129840         (strcspn): Use ANSI C function declaration. Change return type to
129841         size_t. Use NULL.
129842         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
129843         (strpbrk): Use NULL.
129844         * lib/strpbrk.h (PARAMS): Remove macro.
129845         (strpbrk): Use ANSI C function declaration.
129846         * lib/strstr.c: Don't include <sys/types.h>.
129847         * lib/strstr.h (PARAMS): Remove macro.
129848         (strstr): Use ANSI C function declarations.
129850 2002-11-14  Karl Berry  <karl@gnu.org>
129852         * config/mkinstalldirs: `do' on separate line, instead of
129853         `for var; do'.
129855 2002-11-06  Bruno Haible  <bruno@clisp.org>
129857         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
129858         * lib/gcd.c (gcd): Likewise.
129860 2002-11-05  Bruno Haible  <bruno@clisp.org>
129862         * lib/gcd.h: New file, from gettext-0.11.5.
129863         * lib/gcd.c: New file, from gettext-0.11.5.
129865 2002-11-05  Bruno Haible  <bruno@clisp.org>
129867         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129868         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129869         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129870         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129872         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
129873         <libintl.h>.
129874         * lib/makepath.c: Include gettext.h instead of <locale.h> and
129875         <libintl.h>.
129877         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
129878         * lib/human.c: Include gettext.h instead of <libintl.h>.
129879         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
129880         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
129881         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
129882         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
129883         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
129884         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
129885         (textdomain): Remove definition.
129886         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
129888         * lib/long-options.c: Remove include of <libintl.h> and definition of
129889         _.
129890         * lib/same.c: Remove include of <libintl.h> and definition of _.
129892 2002-11-04  Owen Taylor  <otaylor@redhat.com>
129894         * lib/config.charset: A few additions for Solaris.
129896 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129898         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
129899         * lib/localcharset.c (locale_charset): Declare as extern "C".
129901 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129903         * lib/config.charset: msdos in uk_UA uses CP1125.
129905 2002-11-04  Bruno Haible  <bruno@clisp.org>
129907         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
129908         * lib/strcase.h: New file, from GNU gettext-0.11.5.
129909         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
129910         * lib/strstr.h: New file, from GNU gettext-0.11.5.
129911         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
129913 2002-11-04  Bruno Haible  <bruno@clisp.org>
129915         * lib/localcharset.c (locale_charset): Don't return an empty string.
129917 2002-11-04  Bruno Haible  <bruno@clisp.org>
129919         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
129920         aliases.
129922 2002-11-04  Bruno Haible  <bruno@clisp.org>
129924         * lib/config.charset: Update for newest glibc. Add canonical names
129925         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
129927 2002-11-04  Bruno Haible  <bruno@clisp.org>
129929         * lib/config.charset: Add support for NetBSD.
129931 2002-11-04  Bruno Haible  <bruno@clisp.org>
129933         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
129935 2002-11-01  Bruno Haible  <bruno@clisp.org>
129937         * configure.in: Add AC_CONFIG_AUX_DIR call.
129938         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
129939         test/Makefile.
129940         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
129942 2002-09-28  Karl Berry  <karl@gnu.org>
129944         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
129945         installed automake until the next release, since changes have been
129946         made.
129948 2002-09-25  Karl Berry  <karl@gnu.org>
129950         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
129951         * lib/getopt*: copy from libc/posix.
129952         * lib/gettext.h: copy from gettext.
129953         * lib/.cppi-disable: add strdup.c, gettext.h.
129955 2002-09-25  Karl Berry  <karl@gnu.org>
129957         * config/srclist.txt: enable gettext.h check.
129958         * config/config.{guess,sub}: update from prep.
129959         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
129960                 from automake 1.6.3.
129961         See srclist*.
129963 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
129965         * regex.c (PATFETCH): Remove the translating fetch.
129966         (PATFETCH_RAW): Rename to PATFETCH.
129967         (set_image_of_range): New fun.
129968         (SET_RANGE_TABLE_WORK_AREA): Use it.
129969         (regex_compile): Don't translate the pattern chars so eagerly.
129970         Only do it when inserting an `exactn' bytecode or when handling
129971         a char-range.
129972         (mutually_exclusive_p): Avoid empty statement.
129974 2002-07-06  Jim Meyering  <meyering@lucent.com>
129976         * m4/README: Don't mention Makefile.am.in.
129977         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
129979 2002-07-01  Jim Meyering  <meyering@lucent.com>
129981         * lib/c-stack.c: Include sys/time.h.
129982         From Volker Borchert.
129984 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129986         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
129988 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129990         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
129991         New macro.  Use it uniformly instead of
129992         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
129993         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
129994         reported by Vin Shelton.
129996 2002-06-22  Paul Eggert  <eggert@twinsun.com>
129998         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
129999         Do not assume SA_SIGINFO behavior.
130000         Bug reported by Jim Meyering on NetBSD 1.5.2.
130002 2002-06-22  Jim Meyering  <meyering@lucent.com>
130004         * m4/c-stack.m4: New file, from diffutils-2.8.2.
130005         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
130007         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
130008         now that configure.ac uses AC_GNU_SOURCE.
130009         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
130010         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
130012         Update to latest tools.  Suggestions from Paul Eggert.
130013         * m4/stdbool.m4: New file, from diffutils-2.8.2.
130014         * m4/gnu-source.m4: Update from diffutils-2.8.2.
130015         * m4/fnmatch.m4: Likewise.
130016         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
130017         to AC_HEADER_STDBOOL
130019 2002-06-22  Jim Meyering  <meyering@lucent.com>
130021         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
130022         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
130024 2002-06-22  Jim Meyering  <meyering@lucent.com>
130026         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
130028         * lib/exitfail.c, exitfail.h: Likewise.
130029         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
130031         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
130032         of fnmatch.h.
130033         (EXTRA_DIST): Add fnmatch_loop.c.
130034         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
130036         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
130037         * lib/fnmatch.c: Update from diffutils-2.8.2.
130038         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
130039         * lib/fnmatch.h: Remove file.
130041 2002-06-21  Jim Meyering  <meyering@lucent.com>
130043         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
130044         * m4/mbrtowc.m4: Likewise.
130046         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
130047         * m4/mbswidth.m4: Reflect name change:
130048         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
130049         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
130051         * m4/lib-link.m4: Update from gettext-0.11.2.
130052         * m4/gettext.m4: Likewise.
130054         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
130055         From Alfred M. Szmidt.
130057 2002-06-18  Paul Eggert  <eggert@twinsun.com>
130059         * lib/file-type.h: Report an error if neither S_ISREG nor
130060         S_IFREG is defined, instead of using a test specific to glibc
130061         2.2.  This should be safe, since POSIX requires S_ISREG and
130062         Unix Version 7 had S_IFREG.  We don't need to check for
130063         <sys/types.h> since we don't use any symbols that it defines.
130065 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
130067         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
130068         $@-t, so that each temporary file name is unique and valid in the first
130069         8 characters, for operation under DOS.
130071 2002-06-15  Paul Eggert  <eggert@twinsun.com>
130073         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
130075 2002-06-15  Jim Meyering  <meyering@lucent.com>
130077         Work even with DJGPP 2.03, which lacks support for symlinks.
130078         From Richard Dawe.
130079         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
130080         is defined.
130081         * lib/lchown.c (S_ISLNK): Likewise.
130083 2002-06-15  Jim Meyering  <meyering@lucent.com>
130085         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
130086         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
130087         have been included before this file.
130089 2002-06-14  Jim Meyering  <meyering@lucent.com>
130091         * lib/file-type.h: Use the version from diffutils-2.8.2.
130092         * lib/file-type.c: Likewise.
130094 2002-06-07  Jim Meyering  <meyering@lucent.com>
130096         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
130097         They're needed at least for NetBSD 1.5.2.
130098         ($statxfs_includes): Include those same headers.
130099         ($statxfs_includes): Include sys/vfs.h if available.
130100         ($statxfs_includes): Likewise for sys/statvfs.h.
130101         Check for the following members in both structs statfs and statvfs:
130102         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
130104 2002-06-01  Jim Meyering  <meyering@lucent.com>
130106         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
130107         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
130109 2002-05-28  Jim Meyering  <meyering@lucent.com>
130111         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
130112         Reported by Volker Borchert.
130114 2002-05-27  Jim Meyering  <meyering@lucent.com>
130116         Fix a problem seen only on nonconforming systems whereby ls.c's
130117         use of localtime, and then of gettimeofday would cause trouble:
130118         the localtime call used to initialize rpl_gettimeofday's save
130119         mechanism would clobber ls's current local time information so
130120         that in any long listing the first file would always be listed
130121         with date 1970-01-01.  Analysis by Volker Borchert.
130123         * lib/gettimeofday.c (localtime): Undefine.
130124         (rpl_localtime): New function.
130126 2002-05-27  Jim Meyering  <meyering@lucent.com>
130128         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
130129         localtime.
130131         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
130132         use the replacement function; it wouldn't resolve at link time.
130133         Reported by Volker Borchert.
130135 2002-05-22  Jim Meyering  <meyering@lucent.com>
130137         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
130138         file-type.h.
130139         * lib/file-type.h: New file.
130140         * lib/file-type.c (file_type): New file/function.  Extracted from
130141         diffutils.
130143 2002-04-30  Jim Meyering  <meyering@lucent.com>
130145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
130147 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130149         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
130151 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130153         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
130154         Do not check for alloca.h (no longer used) or stdbool.h (was never
130155         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
130157 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130159         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
130161 2002-04-29  Jim Meyering  <meyering@lucent.com>
130163         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
130164         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
130165         Use AC_FUNC_STRNLEN here instead.
130167         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
130168         With autoconf-2.53a, it's part of AC_PROG_CC.
130170 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130172         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
130173         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
130175 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130177         * lib/sig2str.h, lib/sig2str.c: New files.
130178         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
130180 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130182         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
130183         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
130184         of 127, since 64 is the largest conceivable number for ancient
130185         nonstandard hosts.
130186         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
130188 2002-04-28  Jim Meyering  <meyering@lucent.com>
130190         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
130192 2002-04-24  Jim Meyering  <meyering@lucent.com>
130194         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
130195         (jm_PREREQ): Use it.
130197         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
130198         mach/mach.h fcntl.h.
130199         Check for this function: setlocale.
130201 2002-04-24  Jim Meyering  <meyering@lucent.com>
130203         * lib/gettext.h: New file, from Gettext.
130204         * lib/Makefile.am (INCLUDES): Remove -I../intl.
130205         (libfetish_a_SOURCES): Add gettext.h.
130207 2002-04-16  Jim Meyering  <meyering@lucent.com>
130209         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
130210         ut_pid, ut_id, ut_exit.
130212 2002-04-16  Jim Meyering  <meyering@lucent.com>
130214         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
130215         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
130216         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
130218 2002-04-12  Jim Meyering  <meyering@lucent.com>
130220         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
130221         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
130222         existence of the getmntinfo function.  Needed for Darwin 5.3.
130224         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
130225         This is necessary at least on Darwin 5.3.
130227         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
130228         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
130229         strnlen.o in the library, and that makes some versions of ranlib
130230         object.
130232 2002-04-12  Jim Meyering  <meyering@lucent.com>
130234         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
130236 2002-04-09  Jim Meyering  <meyering@lucent.com>
130238         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
130239         to be more precise.  Rather than saying we're checking whether the
130240         function `works', say what we're testing.
130241         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
130242         Reported by Bruno Haible.
130244 2002-03-10  Jim Meyering  <meyering@lucent.com>
130246         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
130247         Suggestion from Santiago Vila.
130249 2002-03-08  Jim Meyering  <meyering@lucent.com>
130251         * lib/rename.c: Mention that this wrapper is needed also on
130252         mips-dec-ultrix4.4 systems.
130254 2002-03-02  Jim Meyering  <meyering@lucent.com>
130256         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
130257         not HAVE_CLOCK_SETTIME.
130259 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130261         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
130262         Check for clock_settime.
130264 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130266         * lib/nanosleep.h: Rename to....
130267         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
130269         * lib/gettime.c: New file.
130270         * lib/settime.c: New file.
130271         * lib/stime.c: Remove.
130273         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
130274         timespec.h.  Remove nanosleep.h.
130276 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130278         * m4/acl.m4: New file.
130279         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
130280         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
130282 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130284         * lib/acl.c, lib/acl.h: New files.
130285         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
130287 2002-02-24  Jim Meyering  <meyering@lucent.com>
130289         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
130290         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
130291         cause trouble.  Reported by Nelson Beebe.
130293 2002-02-23  Paul Eggert  <eggert@twinsun.com>
130295         * lib/path-concat.c (xpath_concat): Reorder code to pacify
130296         compilers that don't know that xalloc_die never returns.
130298 2002-02-20  Jim Meyering  <meyering@lucent.com>
130300         * lib/getdate.c: Regenerate using bison-1.33.
130302 2002-02-17  Jim Meyering  <meyering@lucent.com>
130304         * config/config.guess (main): Don't use `head -1'; it's no longer
130305         portable. Use `sed 1q' instead.
130307 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
130309         * m4/codeset.m4: Upgrade to gettext-0.11.
130310         * m4/gettext.m4: Upgrade to gettext-0.11.
130311         * m4/glibc21.m4: Upgrade to gettext-0.11.
130312         * m4/iconv.m4: Upgrade to gettext-0.11.
130313         * m4/isc-posix.m4: Upgrade to gettext-0.11.
130314         * m4/lcmessage.m4: Upgrade to gettext-0.11.
130315         * m4/lib-ld.m4: New file, from gettext-0.11.
130316         * m4/lib-link.m4: New file, from gettext-0.11.
130317         * m4/lib-prefix.m4: New file, from gettext-0.11.
130318         * m4/progtest.m4: Upgrade to gettext-0.11.
130320 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130322         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
130323         (jm_PREREQ): Use it.
130325 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130327         * lib/posixver.c, lib/posixver.h: New files.
130328         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130330 2002-02-02  Paul Eggert  <eggert@twinsun.com>
130331             Bruno Haible  <bruno@clisp.org>
130333         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
130334         (fwrite_success_callback): New declaration.
130335         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
130336         print_unicode_char. Call failure callback instead of error.
130337         (fwrite_success_callback): New function.
130338         (exit_failure_callback): New function.
130339         (fallback_failure_callback): New function.
130340         (print_unicode_char): Call unicode_to_mb.
130342 2002-01-26  Jim Meyering  <meyering@lucent.com>
130344         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
130345         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
130347 2002-01-26  Jim Meyering  <meyering@lucent.com>
130349         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
130351 2002-01-22  Paul Eggert  <eggert@twinsun.com>
130353         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
130355 2002-01-22  Jim Meyering  <meyering@lucent.com>
130357         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
130358         Otherwise, some versions of automake would omit the rule that makes
130359         Makefile from Makefile.in.
130361 2002-01-21  Paul Eggert  <eggert@twinsun.com>
130363         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
130364         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130365         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
130366         (memcoll): Set errno to zero if there is no error.
130368         * lib/quotearg.c (quotearg_buffer_restyled):
130369         Fix bug with quoting buffers containing NUL when backslashing escapes.
130370         This bug was exposed by the other changes in this patch.
130371         (quotearg_n_options): New arg ARGSIZE.
130372         All callers changed.
130373         (quoting_options_from_style): New function.
130374         (quotearg_n_style): Use it.
130375         (quotearg_n_style_mem): New function.
130377         * lib/quotearg.h (quotearg_n_style_mem): New function.
130379 2002-01-19  Jim Meyering  <meyering@lucent.com>
130381         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
130382         Remove useless quotes: DF_PROG="df".
130383         * m4/strnlen.m4: New file.
130385 2002-01-16  Paul Eggert  <eggert@twinsun.com>
130387         * lib/backupfile.c (ISDIGIT): Comment fix.
130388         * lib/getdate.y (ISDIGIT): Likewise.
130389         * lib/posixtm.c (ISDIGIT, year): Likewise.
130390         * lib/strverscmp.c (ISDIGIT): Likewise.
130391         * lib/userspec.c (ISDIGIT): Likewise.
130393 2002-01-16  Jim Meyering  <meyering@lucent.com>
130395         * lib/getdate.y: Add three semicolons, each just before a closing
130396         brace. Bison (as of version 1.31) no longer papers over that mistake.
130398 2002-01-05  Jim Meyering  <meyering@lucent.com>
130400         * lib/version-etc.c (version_etc_copyright): Update copyright year.
130402 2001-12-19  Paul Eggert  <eggert@twinsun.com>
130404         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
130405         not silently exit merely because the output buffer happens to
130406         have nothing pending.
130408 2001-12-18  Paul Eggert  <eggert@twinsun.com>
130410         See the big note in ../ChangeLog.
130411         * lib/human.c (suffixes): Prefer K to k for 1024.
130412         (generate_suffix_backwards): New function.
130413         (human_readable_inexact): Use it.
130414         * lib/xstrtol.c (__xstrtol): If there is no number but there
130415         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
130416         Accept 'K' as well as 'k'.
130418 2001-12-15  Jim Meyering  <meyering@lucent.com>
130420         * lib/regex.h (__restrict_arr): Update from libc.
130422         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
130423         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
130424         (STREQ): Define.
130426 2001-12-14  Jim Meyering  <meyering@lucent.com>
130428         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
130429         Suggestion from Bruno Haible.
130431 2001-12-10  Jim Meyering  <meyering@lucent.com>
130433         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
130434         xrealloc, Instead, include "xalloc.h".
130435         (initbuffer): Don't cast xmalloc return value to char*.
130436         (readline): Reword comment.
130437         Don't cast xrealloc return value to char*
130438         Return NULL, not 0.
130440 2001-12-09  Jim Meyering  <meyering@lucent.com>
130442         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
130443         about `signed and unsigned type in conditional expression'.
130444         * lib/posixtm.c (posix_time_parse): Likewise.
130446         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
130448         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
130449         to avoid a pedantic warning.
130451         * lib/getstr.c: Don't include assert.h.
130452         (getstr): Remove warning-evoking assertions.
130453         Return -1 if offset parameter is out of bounds.
130454         Change the type of a local from int to size_t.
130456         * lib/strftime.c (my_strftime_localtime_r): Include this function
130457         definition in the `#if ! HAVE_TM_GMTOFF' block.
130459         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
130460         Include xalloc.h instead.
130462 2001-12-02  Jim Meyering  <meyering@lucent.com>
130464         * lib/tempname.c: Don't declare getenv, thus reverting the change of
130465         2001-11-18.  It's no longer necessary, now that stdlib.h is always
130466         included.
130468         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
130469         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
130471 2001-11-30  Akim Demaille  <akim@epita.fr>
130473         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
130474         before being defined.
130476 2001-11-27  Paul Eggert  <eggert@twinsun.com>
130478         * lib/quotearg.h (quotearg_n, quotearg_n_style):
130479         First arg is int, not unsigned.
130480         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
130481         (SIZE_MAX, UINT_MAX): New macros.
130482         (quotearg_n_options): Abort if N is negative.
130483         Avoid overflow check on hosts where size_t is 64 bits and int
130484         is 32 bits, as overflow is impossible there.
130485         Fix off-by-one typo that caused unnecessary reallocation.
130487 2001-11-27  Jim Meyering  <meyering@lucent.com>
130489         * lib/tempname.c: Merge with version from libc.
130490         * lib/regex.c: Likewise.
130492         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
130493         systems for which STDC_HEADERS is 0, it was not included, resulting in
130494         a warning about an integer-to-pointer conversion problem with getenv.
130495         Reported by Volker Borchert.
130497 2001-11-26  Jim Meyering  <meyering@lucent.com>
130499         * lib/gtod.h: Remove file.
130500         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
130501         * lib/gettimeofday.c: Don't include gtod.h.
130502         (GTOD_init): Remove function.
130503         (rpl_gettimeofday): Do its job here instead, rather than aborting.
130504         Suggestion from Volker Borchert.
130506 2001-11-23  Jim Meyering  <meyering@lucent.com>
130508         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
130509         it.
130510         * lib/hash.c (struct hash_table): Define it here instead.
130512 2001-11-22  Jim Meyering  <meyering@lucent.com>
130514         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
130516 2001-11-20  Jim Meyering  <meyering@lucent.com>
130518         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
130519         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
130521 2001-11-19  Jim Meyering  <meyering@lucent.com>
130523         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
130524         directory.  Use "conftestXXXXXX" as the template.
130525         Suggestion from Paul Eggert.
130527         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
130528         immediately, so the test doesn't mistakenly hit the max-open-files
130529         limit.
130531 2001-11-18  Paul Eggert  <eggert@twinsun.com>
130533         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
130534         (TEMPORARIES): New macro.
130535         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
130536         removes an artificial limitation (e.g. HP-UX 10.20, where
130537         TMP_MAX is 17576).
130539 2001-11-18  Jim Meyering  <meyering@lucent.com>
130541         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
130543 2001-11-18  Jim Meyering  <meyering@lucent.com>
130545         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
130546         on SunOS 4.
130548         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
130549         files will be created before anything else.
130551 2001-11-17  Paul Eggert  <eggert@twinsun.com>
130553         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
130554         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
130556 2001-11-17  Jim Meyering  <meyering@lucent.com>
130558         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
130559         Prompted by a report from Bob Proulx.
130561         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
130562         Instead, require UTILS_FUNC_MKSTEMP.
130564 2001-11-17  Jim Meyering  <meyering@lucent.com>
130566         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
130567         Now, that's done as part of AC_FUNC_STRTOD.
130569 2001-11-17  Jim Meyering  <meyering@lucent.com>
130571         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
130572         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
130573         rather than group writable.  Patch by Juan F. Codagnone.
130575         * lib/readtokens.c: Remove explicit declarations of xmalloc and
130576         xrealloc, Instead, include "xalloc.h".
130578         * lib/mountlist.c: Include unlocked-io.h after all system headers.
130579         Remove explicit declarations of xmalloc, xrealloc,
130580         and xstrdup.  Instead, include "xalloc.h".
130582         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
130583         unlocked-io.h.
130584         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
130585         Likewise.
130586         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
130588         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
130589         Reported by Padraig Brady.
130591         * lib/mkstemp.c: #undef mkstemp.
130592         Include config.h.
130593         (rpl_mkstemp): Rename from mkstemp.
130594         Protoize.
130596 2001-11-16  Jim Meyering  <meyering@lucent.com>
130598         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
130599         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
130600         determine the amount of total physical memory, use pstat_getstatic.
130601         HPUX-11 doesn't define _SC_PHYS_PAGES.
130602         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
130603         If sysconf couldn't be used to determine the amount of available
130604         physical memory, use both pstat_getstatic and pstat_getdynamic.
130605         Based on a patch from Bob Proulx.
130607 2001-11-10  Jim Meyering  <meyering@lucent.com>
130609         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
130610         (jm_PREREQ): Use it.
130612 2001-11-09  Jim Meyering  <meyering@lucent.com>
130614         * m4/jm-macros.m4: Require autoconf-2.52f.
130615         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
130616         Use these AC_-prefixed names, not the AM_-prefixed ones.
130618         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
130620 2001-11-05  Jim Meyering  <meyering@lucent.com>
130622         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
130624 2001-11-04  Jim Meyering  <meyering@lucent.com>
130626         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
130627         $DEFS.
130629 2001-11-03  Jim Meyering  <meyering@lucent.com>
130631         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
130632         of AC_DEFUN.
130634         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
130635         know the name of the variable in the macro definition.
130637 2001-11-03  Jim Meyering  <meyering@lucent.com>
130639         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
130640         in argmatch_to_argument call.
130642         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
130643         argument.
130645         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
130646         e.g., a fault due to an attempt to free a NULL pointer.
130648 2001-11-01  Jim Meyering  <meyering@lucent.com>
130650         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
130651         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
130653 2001-11-01  Jim Meyering  <meyering@lucent.com>
130655         * lib/dirfd.c, lib/dirfd.h: New files.
130656         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
130658         * lib/hash.c (hash_print) [TESTING]: Clean up.
130660 2001-10-22  Paul Eggert  <eggert@twinsun.com>
130662         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
130663         to avoid a warning if -Wall.
130665 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
130667         * README: New file
130668         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
130669         (per RMS's instructions, this is now the canonical source)
130670         * lgpl/, gpl/: New directories.
130672 2001-10-21  Paul Eggert  <eggert@twinsun.com>
130674         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
130676 2001-10-21  Jim Meyering  <meyering@lucent.com>
130678         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
130679         this code would end up calling gettext even in packages built
130680         with --disable-nls.
130681         * lib/getopt.c (_): Likewise.
130682         * lib/regex.c (_): Likewise.
130684 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130686         * m4/error.m4 (jm_PREREQ_ERROR):
130687         Do not invoke AC_CHECK_FUNCS with strerror_r, as
130688         AC_FUNC_STRERROR_R does that.
130689         Check for strerror declaration.
130691         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
130692         are supposed to have them these days.
130693         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
130694         Merge changes from latest Autoconf CVS.
130695         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
130696         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
130697         POSIX decided to standardize on the int flavor of strerror_r.
130699 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130701         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
130702         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
130703         Use strerror_r that is only a macro, even if it is not a function.
130704         (strerror): Check for HAVE_DECL_STRERROR before declaring.
130705         (private_strerror): Use prototypes, not old-style function definition.
130706         (print_errno_message): New function.
130707         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
130708         char*-flavored one.
130709         (error_tail, error, error_at_line): Use it.
130711 2001-10-11  Jim Meyering  <meyering@lucent.com>
130713         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
130714         and quote_n (1, ... to avoid clobbering a buffer.
130716 2001-10-05  Jim Meyering  <meyering@lucent.com>
130718         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
130719         hash-pjw.h.
130720         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
130721         * lib/hash-pjw.h: New file.
130723 2001-09-30  Jim Meyering  <meyering@lucent.com>
130725         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
130726         `struct fsstat' has the `f_fstypename' member.
130727         Use that to define FS_TYPE, which is now used to make
130728         the getfsstat link test tighter.
130730 2001-09-30  Jim Meyering  <meyering@lucent.com>
130732         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
130733         Include <sys/ucred.h>, for Apple Darwin.
130734         Include sys/mount.h and sys/fs_types.h only if available.
130735         (FS_TYPE): Define.
130736         (read_filesystem_list): Use FS_TYPE.
130738 2001-09-29  Paul Eggert  <eggert@twinsun.com>
130740         * lib/exclude.c (excluded_filename): 0 -> false, since it's
130741         a boolean context.
130743 2001-09-29  Jim Meyering  <meyering@lucent.com>
130745         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130746         [one-argument getmntent function]): Include stdio.h before mntent.h.
130747         SunOS 4.1.x needs it for the declaration of `FILE'.
130748         Patch by Volker Borchert.
130750         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130751         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
130752         sys/fs_types.h, and make the link-test for getfsstat guard #include
130753         directives with appropriate #if HAVE_*_H tests so that we can
130754         detect getfsstat on Apple Darwin1.3.7 systems.
130755         Reported by Nelson Beebe.
130756         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
130758 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130760         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130761         #defines strtoimax.  Also treat the other strto* functions
130762         like strtoimax.
130764         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130765         Check for strtoul and strtoumax,
130766         as those declarations are made even in the signed case.
130767         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
130768         Likewise, for strtol and strtoimax.
130770 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130772         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130773         #defines strtoimax.  Also treat the other strto* functions
130774         like strtoimax.
130776         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
130777         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
130778         (strtoimax, strtoumax): Do not declare if already defined as a macro.
130780 2001-09-26  Jim Meyering  <meyering@lucent.com>
130782         Most macros in unlocked-io.h had the wrong number of arguments.
130783         * lib/gen-uio: New script.
130784         (USE_UNLOCKED_IO): Define to 1 if not already defined.
130785         * lib/unlocked-io.hin: Remove file.
130786         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
130787         rather than trying to embed it here.
130788         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
130789         Reported by Padraig Brady.
130791 2001-09-25  Volker Borchert  <bt@teknon.de>
130793         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
130794         `result'.
130796 2001-09-24  Jim Meyering  <meyering@lucent.com>
130798         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
130800 2001-09-23  Jim Meyering  <meyering@lucent.com>
130802         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
130803         instead of the mere test for existence of mntent.h.  The latter
130804         would get a false-positive on AIX 3.4 systems.
130805         In the outer getmntent if-block, don't die if neither of the getmntent
130806         tests succeeds.  Instead, just fall through and continue with the
130807         remaining tests.
130809 2001-09-23  Jim Meyering  <meyering@lucent.com>
130811         * lib/mountlist.c: Remove useless parentheses in #if directives.
130812         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
130813         the deprecated MOUNTED symbol is no longer defined in mntent.h.
130815 2001-09-22  Jim Meyering  <meyering@lucent.com>
130817         * m4/gettext.m4: New file.  From gettext.
130818         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
130819         * m4/progtest.m4: Likewise
130820         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
130821         * m4/glibc21.m4: Likewise.
130823         * m4/libintl.m4: Remove.  No longer used.
130825 2001-09-22  Jim Meyering  <meyering@lucent.com>
130827         * lib/localcharset.c: Update from latest gettext.
130828         * lib/config.charset: Likewise.
130830 2001-09-20  Jim Meyering  <meyering@lucent.com>
130832         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
130833         strtoimax.
130834         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
130835         strtoumax.
130837 2001-09-20  Jim Meyering  <meyering@lucent.com>
130839         * lib/xstrtol.c (strtoimax): Guard declaration with
130840         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
130841         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
130842         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
130843         (strtoumax): Likewise, for completeness (it wasn't necessary).
130845 2001-09-17  Paul Eggert  <eggert@twinsun.com>
130847         * lib/strtoimax.c (HAVE_LONG_LONG):
130848         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
130849         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
130850         to work around bug in IBM C compiler.
130852 2001-09-17  Jim Meyering  <meyering@lucent.com>
130854         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
130855         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
130856         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
130857         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
130858         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
130859         whenever the right hand side need not be expanded by the shell.
130861 2001-09-16  Paul Eggert  <eggert@twinsun.com>
130863         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
130864         library.  It's not correct, as some older glibcs are buggy.
130865         fnmatch wasn't fixed until glibc 2.2.
130867         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
130868         special shell magic here.
130870 2001-09-16  Jim Meyering  <meyering@lucent.com>
130872         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
130873         * m4/jm-macros.m4: Require it.
130875 2001-09-16  Jim Meyering  <meyering@lucent.com>
130877         * lib/mkdir.c: New file.
130879 2001-09-15  Jim Meyering  <meyering@lucent.com>
130881         * m4/jm-macros.m4: Check for help2man.
130883 2001-09-11  Jim Meyering  <meyering@lucent.com>
130885         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
130886         The body, by Paul Eggert, was moved here from configure.in.
130887         * m4/jm-macros.m4: Require UTILS_HOST_OS.
130889 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130891         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
130892         (jm_PREREQ): Use it.
130894 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130896         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
130897         Use ssize_t, not int, to store result of readlink.
130898         Check for ssize_t overflow as well as size_t overflow,
130899         as POSIX says the result of readlink is implementation-defined
130900         when ssize_t overflows.
130901         Remove unnecessary cast to char*.
130902         Use free+malloc instead of realloc, as the storage doesn't need
130903         to be preserved and it's clearer and can be more efficient that way.
130904         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
130905         * lib/xreadlink.h (xreadlink): Update prototype.
130907 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130909         * lib/xgetcwd.c: Revert some of the previous change; intead,
130910         fix the HAVE_GETCWD_NULL code to behave more like the
130911         !HAVE_GETCWD_NULL code used to.
130913         Include "xalloc.h".
130914         (xgetcwd): Do not return NULL when memory is exhausted; instead,
130915         invoke xalloc_die.
130917 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130919         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
130920         sys/param.h, as pathmax.h includes them.
130922 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130924         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
130925         (jm_PREREQ_XGETCWD): New macro.
130927         * m4/getcwd.m4: New file.
130929 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130931         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
130932         like the HAVE_GETCWD_NULL code.
130933         Include pathmax.h if not HAVE_GETCWD.
130934         Do not include xalloc.h.
130935         (INITIAL_BUFFER_SIZE): New symbol.
130936         Do not use xmalloc / xrealloc, since the caller is responsible for
130937         handling errors.  Preserve errno around `free' during failure.
130938         Do not overrun buffer when using getwd.
130940 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130942         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
130943         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
130944         getcwd (NULL, 0).
130946 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130948         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
130949         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
130950         spotted by Jim Meyering.
130952 2001-09-03  Jim Meyering  <meyering@lucent.com>
130954         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
130955         failure.
130957 2001-09-02  Jim Meyering  <meyering@lucent.com>
130959         * lib/error.c: Update from GNU libc.
130961 2001-09-01  Jim Meyering  <meyering@lucent.com>
130963         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
130964         Used by df.
130966 2001-09-01  Jim Meyering  <meyering@lucent.com>
130968         * lib/xreadlink.c: New file.
130969         * lib/xreadlink.h: New file.
130970         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
130971         xreadlink.h.
130973         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
130974         doesn't conflict with sparc Solaris 7's definition in
130975         /usr/include/sys/int_types.h.
130977         * lib/exclude.c: Use `""', not `<>' to #include non-system header
130978         files.
130979         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
130980         and strncasecmp as r-values.  Unixware didn't have declarations.
130982 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130984         * lib/xstrtol.h: Add copyright notice.
130985         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
130986         LONGINT_INVALID_SUFFIX_CHAR.
130988 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130990         * lib/xstrtol.c (strtoimax): New decl.
130992 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130994         * lib/xgetcwd.c: Don't include pathmax.h.
130995         Include stdlib.h and unistd.h if available.
130996         Include xalloc.h.
130997         (xmalloc, xstrdup, free): Remove decls.
130998         (xgetcwd): Don't assume sizes fit in unsigned.
130999         Check for overflow when computing sizes.
131000         Simplify reallocation code.
131002 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131004         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
131005         a directory's st_size can have an arbitrary value, so the old
131006         usage could waste an arbitrary amount of memory.  All uses
131007         changed.
131008         * lib/savedir.h: Update prototype.
131010 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131012         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
131014         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
131015         old strtoimax.c.
131017         Also, make the following further changes to make this file's
131018         configuration more similar to that of strtol.c:
131019         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
131020         (strtoumax, uintmax_t, strtoull, strtol): Remove.
131021         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
131022         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
131023         changed to signed values.
131025         And make the following changes as well:
131026         Fix copyright notice, as 1999 was missing.
131027         (verify): New macro.
131028         (strtoimax): Check sizes at compile-time, not run-time.
131029         Prefer strtol to strtoll if both work.
131030         (main): Remove; it was not that useful and was a pain to maintain.
131032         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
131034 2001-08-31  Jim Meyering  <meyering@lucent.com>
131036         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
131037         Use an initial, malloc'd, buffer of length 128 rather than
131038         a statically allocated one of length 1024.
131040 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131042         Simplify code, partly by assuming autoconf 2.52 semantics.
131044         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
131046         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
131047         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
131048         All uses removed.
131049         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
131050         Move AC_REQUIRE to next-to-top level, to avoid confusion.
131051         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
131052         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
131053         jm_AC_HEADER_INTTYPES_H.
131054         * m4/jm-macros.m4 (jm_MACROS): Likewise.
131056         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
131058         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131059         Quote first arg of AC_DEFUN.
131060         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
131061         since they are needed to parse the include file even if we need
131062         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
131063         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
131064         but with opposite signedness.
131066 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131068         Merge 'exclude' changes from tar 1.13.22.
131069         This fixes one or two unlikely storage allocation overflow bugs,
131070         but doesn't change user-visible behavior otherwise.
131072 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131074         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
131075         (jm_PREREQ_EXCLUDE): New macro.
131077 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131079         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
131080         tm to be declared.
131082 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131084         * lib/hash.c: Remove '2001' from copyright notice.
131086 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131088         * lib/full-write.h: New file.
131089         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
131090         * lib/full-write.c: Correct credits, as cccp.c no longer
131091         exists and anyway it was so heavily changed from the old cccp
131092         code as to be unrecognizable.  Include full-write.h.
131093         (full_write): Return size_t, with short writes meaning failure.
131094         All callers changed.  This fixes a bug with large buffers
131095         on 64-bit hosts.
131096         * lib/utime.c: Include full-write.h.
131098 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131100         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
131101         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
131102         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
131103         Include if available.
131104         (<xalloc.h>): Include
131105         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
131106         (verify): New macro.  Use it to verify that EXCLUDE macros do not
131107         collide with FNM macros.
131108         (struct patopts): New struct.
131109         (struct exclude): Use it, as exclude patterns now come with options.
131110         (new_exclude): Support above changes.
131111         (new_exclude, add_exclude_file):
131112         Initial size must now be a power of two to simplify overflow checking.
131113         (free_exclude, fnmatch_no_wildcards): New function.
131114         (excluded_filename): No longer requires options arg, as the options
131115         are determined by add_exclude.  Now returns bool, not int.
131116         (excluded_filename, add_exclude):
131117         Add support for the fancy new exclusion options.
131118         (add_exclude, add_exclude_file): Now takes int options arg.
131119         Check for arithmetic overflow when computing sizes.
131120         (add_exclude_file): xrealloc might modify errno, so don't
131121         realloc until after errno might be used.
131123         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
131124         New macros.
131125         (free_exclude): New decl.
131126         (add_exclude, add_exclude_file): Now takes int options arg.
131127         (excluded_filename): No longer requires options arg, as the options
131128         are determined by add_exclude.  Now returns bool, not int.
131130 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131132         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
131134 2001-08-27  Jim Meyering  <meyering@lucent.com>
131136         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
131138         * lib/version-etc.c (N_): Remove definition.
131139         Revert most of last change.
131140         Instead, simply don't mark the `Copyright...' string for translation.
131141         Based on advice from Paul Eggert.
131143         * lib/strtoxmax.c: Tweak comment.
131145 2001-08-26  Jim Meyering  <meyering@lucent.com>
131147         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
131149         * m4/xstrtoimax.m4: New file.
131150         * m4/xstrtoumax.m4: Add comments explaining why we
131151         AC_REPLACE_FUNCS(strtol).
131153 2001-08-26  Jim Meyering  <meyering@lucent.com>
131155         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
131156         of copyright with `%s' so translators don't get an untranslated
131157         message in 2002.
131158         (COPYRIGHT_YEAR): Define.
131159         (version_etc): Use fprintf rather than fputs.
131160         Suggestion from Ulrich Drepper.
131162         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
131164         * lib/strtoll.c: New file, from GNU libc.
131165         * lib/xstrtoimax.c: New file.
131167         * lib/xstrtol.h: Add xstrtoimax.
131168         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
131169         * lib/strtoimax.c: New file.  Likewise, but first define
131170         STRTOUXMAX_SIGNED.
131172         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
131173         ...
131174         * lib/strtoxmax.c: ... then renamed to this.
131176 2001-08-18  Paul Eggert  <eggert@twinsun.com>
131178         * m4/inttypes.m4: Add AC_PREREQ(2.13).
131179         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
131180         (jm_AC_TYPE_INTMAX_T): New macro.
131181         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
131183         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
131185         * m4/longlong.m4: Renamed from ulonglong.m4.
131186         * m4/inttypes.m4: Renamed from inttypes_h.m4.
131187         * m4/uintmax_t.m4: Removed.
131189 2001-08-13  Paul Eggert  <eggert@twinsun.com>
131191         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
131192         Port to Solaris 8, where 'sed' requires a space after the 'r'
131193         command, and where sh dislikes "$/".  Clean up the spacing a bit.
131194         Redirect output to $tmp just once.
131196 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
131198         * lib/addext.c (<errno.h>): Include.
131199         (errno): Declare if not defined.
131200         (addext): Work correctly when pathconf returns -1 and leaves
131201         errno alone because there is no limit.  Also, work even if
131202         pathconf returns a value greater than SIZE_MAX.
131204 2001-08-12  Jim Meyering  <meyering@lucent.com>
131206         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
131207         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
131208         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
131209         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
131210         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
131211         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
131212         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
131213         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
131214         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
131215         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
131216         utime.m4, utimes.m4, xstrtoumax.m4:
131217         Quote the first argument in each use of AC_DEFUN.
131219 2001-08-12  Jim Meyering  <meyering@lucent.com>
131221         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
131222         Simply `return getcwd (NULL, 0);'.
131223         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
131224         Use 1300 as initial value for length, not PATH_MAX.
131226         * lib/pathmax.h: Clean up cpp syntax.
131228 2001-08-12  Jim Meyering  <meyering@lucent.com>
131230         * lib/gettimeofday.c: New file.
131231         * lib/gtod.h: New file.
131232         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
131234 2001-08-05  Jim Meyering  <meyering@lucent.com>
131236         * m4/jm-macros.m4: Require autoconf-2.52.
131238 2001-08-04  Jim Meyering  <meyering@lucent.com>
131240         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
131241         stmt, to get in sync with glibc.
131243 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131245         The following changes are from gettext 0.10.39 as maintained by
131246         Bruno Haible.
131248         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
131249         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
131250         with inverted sense.  All uses changed.
131252         * lib/mbswidth.c: Don't include <limits.h>.
131253         Include <stdlib.h> and <string.h> unconditionally.
131254         (iswcntrl, mbsinit, ISCNTRL): New macros.
131255         (mbsnwidth): Use K&R style function declarations.
131256         Don't bother checking for MB_LEN_MAX == 1, since the compiler
131257         can optimize it when MB_CUR_MAX == 1.
131258         The width of control characters is zero, not 1.
131260 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131262         The following changes are from gettext 0.10.39 as maintained by
131263         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
131265         * m4/codeset.m4: Upgrade to serial AM1.
131266         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
131267         all uses changed.  Quote first arg of AC_DEFUN.
131268         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
131270         * m4/iconv.m4: Upgrade to serial AM2.
131271         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
131272         Add --with-libconv-prefix.
131273         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
131274         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
131275         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
131276         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
131277         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
131279         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
131280         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
131281         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
131282         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
131283         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
131284         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
131285         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
131286         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
131287         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
131289         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
131290         string.h any more.
131292         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
131293         not the default value.
131295         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
131296         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
131297         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
131298         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
131299         Also check for iswcntrl, used for wcwidth fallback.
131300         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
131301         to Autoconf 2.13.
131303 2001-08-03  Jim Meyering  <meyering@lucent.com>
131305         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
131306         as it was in the original.  Reported by Paul Eggert.
131308 2001-07-16  Jim Meyering  <meyering@lucent.com>
131310         * m4/gettimeofday.m4: New file.
131311         Prompted by a report from Bernhard Baehr.
131313 2001-07-15  Jim Meyering  <meyering@lucent.com>
131315         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
131316         stuff. Now it's in ../Makefile.cfg.
131318 2001-07-15  Jim Meyering  <meyering@lucent.com>
131320         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
131321         (BUILT_SOURCES): Add unlocked-io.h.
131322         (io_functions): Define.
131323         (unlocked-io.h): New rule.
131324         (DISTCLEANFILES): Add unlocked-io.h.
131325         (all-local): Depend on unlocked-io.h, to ensure it is created.
131327         * lib/unlocked-io.hin: New file
131329         * lib/regex.c: Update from glibc.
131331 2001-07-05  Jim Meyering  <meyering@lucent.com>
131333         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
131334         recommendation.
131335         (libfetish_a_SOURCES): Put all .h files here instead.
131336         Remove a thus-exposed (better checks in automake) duplicate and
131337         two unnecessary .h files.
131339 2001-07-04  Jim Meyering  <meyering@lucent.com>
131341         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
131342         that generates jm-glibc-io.m4 so that it doesn't trigger any make
131343         distcheck failure.
131345 2001-07-02  Jim Meyering  <meyering@lucent.com>
131347         The following changes were prompted by suggestions from Bruno Haible.
131349         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
131350         is now generated.
131351         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
131352         definition of EXTRA_DIST.
131353         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
131354         ensure that the generated file is created/updated whenever the list
131355         of $(unlocked_functions) is changed.
131356         (jm-glibc-io.m4): New rule.
131357         (unlocked-io.h): New rule -- currently unused.
131359 2001-06-24  Jim Meyering  <meyering@lucent.com>
131361         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
131362         unmatched right bracket, rather than kludging it with an extra,
131363         falsely-matching quote in a comment.  Patch by Akim Demaille.
131365 2001-06-11  Jim Meyering  <meyering@lucent.com>
131367         * lib/regex.c: Update from GNU libc.
131369 2001-05-27  Jim Meyering  <meyering@lucent.com>
131371         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
131372         Check for ut_type in struct utmp.
131374 2001-05-27  Jim Meyering  <meyering@lucent.com>
131376         * lib/readutmp.h (UT_TYPE): Define.
131378 2001-05-24  Jim Meyering  <meyering@lucent.com>
131380         * lib/argmatch.c: Include "quote.h".
131381         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
131382         quote function.  Reported by Göran Uddeborg.
131384 2001-05-22  Jim Meyering  <meyering@lucent.com>
131386         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
131387         now that we use the package-supplied version unconditionally.
131388         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
131390 2001-05-21  Jim Meyering  <meyering@lucent.com>
131392         * m4/regex.m4: Change a couple backticks to single quotes to avoid
131393         shell syntax errors.
131395 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131397         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
131399 2001-05-20  Paul Eggert  <eggert@twinsun.com>
131401         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
131402         Don't bother to check library strftime, since
131403         we'll be using our own my_strftime function anyway.
131404         Define my_strftime instead of strftime.
131406 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
131408         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
131409         which is not yet declared.
131411 2001-05-15  Jim Meyering  <meyering@lucent.com>
131413         * m4/regex.m4: Use proper quoting so brackets appear in the test
131414         program.
131415         Reported by, and with help from, Bruno Haible.
131417 2001-05-13  Jim Meyering  <meyering@lucent.com>
131419         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
131420         undefined.
131422 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131424         dirname code cleanup.  base_name now behaves more compatibly
131425         with POSIX basename when given file names that have trailing
131426         slashes, and similarly for dir_name.  Add new primitives
131427         base_len and dir_len.  Put the directory-name-related decls
131428         into dirname.h.
131430         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
131431         * lib/backupfile.c (base_name): Likewise.
131432         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
131433         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
131434         * lib/makepath.c (strip_trailing_slashes): Likewise.
131435         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
131436         ISSLASH): Likewise.
131437         * lib/rename.c (strip_trailing_slashes): Likewise.
131438         * lib/same.c (base_name): Likewise.
131439         * lib/stripslash.c (ISSLASH): Likewise.
131441         * lib/addext.c: Include <dirname.h> after size_t is defined.
131442         * lib/backupfile.c: Likewise.
131444         * lib/addext.c (addext): Use base_len to trim redundant
131445         trailing slashes instead of doing it ourselves.
131446         But do not trim the last slash if it is not redundant.
131448         * lib/backupfile.c (find_backup_file_name,
131449         max_backup_version): Use base_len instead of rolling it ourselves.
131450         Handle the case of "" and (on DOS) "C:" correctly.
131452         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
131453         needed. Include <string.h>, <dirname.h>.
131454         (base_name): Allow file names ending in slashes, other than names
131455         that are all slashes.  In this case, return the basename followed
131456         by the slashes.  This is more general, and can be used in places
131457         where the original base_name purposely had an assertion failure.
131458         (base_len): New function.
131460         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
131461         Do not include <assert.h>; no longer needed.
131462         Include xalloc.h.
131463         (memrchr): Remove decl.
131464         (dir_name_r): Remove.
131465         (dir_len): Renamed from dirlen.  All callers changed.
131466         Rewrite in terms of base_name, for simplicity and consistency.
131467         (dir_name): Never return NULL.  All callers changed.
131468         Do not include <stdlib.h> in test program; no longer needed.
131469         return 0; is fine for test program.
131471         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
131472         New macros.
131473         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
131475         * lib/path-concat.c (path_concat): Use base_len to compute
131476         base length, not strlen; this means we cannot rely on memcpy
131477         to null-terminate.
131479         * lib/same.c (STREQ): Remove.
131480         (same_name): Handle the case where the basename ends in trailing '/'.
131482         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
131483         a slash was stripped.  Do not strip the last slash after a
131484         file system prefix.
131486 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131488         * lib/Makefile.am (libfetish_a_SOURCES):
131489         Add strftime.c, since we now compile it on all hosts.
131491         * lib/strftime.c (my_strftime):
131492         Define to nstrftime if emacs, but only if my_strftime is not defined.
131493         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
131494         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
131495         Add one more extra argument: a nanoseconds value.
131496         All uses changed.
131497         (ns): New macro.
131498         (my_strftime function): Add %N format.
131499         (emacs_strftimeu): Renamed from emacs_strftime,
131500         with extra ut argument.
131502 2001-05-09  Paul Eggert  <eggert@twinsun.com>
131504         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
131506 2001-04-21  Jim Meyering  <meyering@lucent.com>
131508         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
131509         doesn't interfere.
131511 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131513         * m4/ftruncate.m4: Check for chsize.
131514         Link with ftruncate.o unconditionally if ftruncate is missing.
131515         This was required when cross-compiling to i586-mingw32msvc.
131517 2001-04-08  Jim Meyering  <meyering@lucent.com>
131519         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
131520         recomputed; that's necessary when the offset spans a DST transition.
131521         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
131523 2001-04-02  Jim Meyering  <meyering@lucent.com>
131525         * lib/regex.h, regex.c: Update from GNU libc.
131527 2001-03-24  Jim Meyering  <meyering@lucent.com>
131529         * m4/jm-macros.m4: Require autoconf-2.49d.
131531 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
131533         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
131535 2001-03-19  Paul Eggert  <eggert@twinsun.com>
131537         * lib/version-etc.c (version_etc_copyright): Update to 2001.
131539 2001-03-17  Jim Meyering  <meyering@lucent.com>
131541         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
131542         now that the version in autoconf is equivalent.
131543         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
131545         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
131546         Suggestion from Akim Demaille.
131548         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
131549         (jm_PREREQ_TEMPNAME): New function.
131551 2001-03-16  Paul Eggert  <eggert@twinsun.com>
131553         * lib/tempname.c (uint64_t): Define to uintmax_t if
131554         not defined, and if UINT64_MAX is not defined.
131555         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
131556         Reported by John David Anglin.
131558 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
131560         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
131561         resolve alias if codeset is empty.
131562         * lib/config.charset (BeOS): Use wildcard syntax.
131564 2001-03-13  Jim Meyering  <meyering@lucent.com>
131566         * lib/path-concat.c (path_concat)
131567         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
131568         concatenating e.g., `C:' and `foo'.
131569         From Bruno Haible.
131571 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131573         * lib/localcharset.c (locale_charset): Don't use
131574         setlocale(LC_CTYPE,NULL). Don't return NULL.
131575         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
131577 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131579         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
131580         support for DOS/DJGPP.
131582 2001-03-01  Paul Eggert  <eggert@twinsun.com>
131584         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
131585         lacks mkstemp.  Compile our own tempname.c if we compile our own
131586         mkstemp.c, as mkstemp relies on tempname.
131588 2001-03-01  Jim Meyering  <meyering@lucent.com>
131590         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
131591         AH_VERBATIM really does output its argument verbatim.
131593 2001-02-28  Paul Eggert  <eggert@twinsun.com>
131595         * lib/Makefile.am (libfetish_a_SOURCES):
131596         Add dup-safer.c, fopen-safer.c.
131597         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
131599         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
131600         * lib/unistd-safer.h: New files.
131602 2001-02-25  Paul Eggert  <eggert@twinsun.com>
131604         The mkstemp replacement is taken from glibc 2.2.2, with some
131605         portability fixes for use outside glibc, as follows:
131607         * lib/tempname.c (struct_stat64): New macro.
131608         (direxists, __gen_tempname): Use it.
131609         This avoids a portability problem with Solaris 8.
131611         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
131612         (<stddef.h>, <stdint.h>, <string.h>):
131613         Include only if STDC_HEADERS || _LIBC.
131614         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
131615         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
131616         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
131617         (__set_errno): Define this macro if <errno.h> doesn't.
131618         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
131619         Define these macros if <stdio.h> doesn't.
131620         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
131621         Define these macros if <sys/stat.h>
131622         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
131623         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
131624         __xstat64): Define if not _LIBC.
131625         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
131626         (__gen_tempname): Invoke gettimeofday only if
131627         HAVE_GETTIMEOFDAY || _LIBC;
131628         otherwise, fall back on plain "time".
131629         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
131631         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
131633         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
131635 2001-02-18  Paul Eggert  <eggert@twinsun.com>
131637         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
131639 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131641         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
131642         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
131643         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
131644         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131646 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131648         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
131649         Remove workaround macros for hosts that have mbrtowc but not
131650         mbstate_t, as we now insist on proper declarations for both
131651         before using mbrtowc.
131653 2001-02-17  Jim Meyering  <meyering@lucent.com>
131655         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
131656         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
131657         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
131658         UnixWare 7.1.1.
131660         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
131661         rather than AC_CACHE_VAL.
131663 2001-02-17  Jim Meyering  <meyering@lucent.com>
131665         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
131666         around included file name.
131668         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
131670         * lib/strftime.c: Update from GNU libc (the only changes were to
131671         comments).
131673 2001-02-17  Jim Meyering  <meyering@lucent.com>
131675         * lib/regex.c: Update from libc.
131677 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
131679         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
131680         clash.
131682 2001-02-16  Paul Eggert  <eggert@twinsun.com>
131684         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
131685         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
131686         Reported by Mark Hounschell via Paul Eggert.
131688 2001-02-07  Jim Meyering  <meyering@lucent.com>
131690         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
131692 2001-02-05  Jim Meyering  <meyering@lucent.com>
131694         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
131695         it includes the patch required for `large file' support with at least
131696         HP-UX's 10.20 /bin/cc.
131698 2001-02-03  Jim Meyering  <meyering@lucent.com>
131700         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
131701         AS_IF, now that it works once again (mysteriously).
131702         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131704 2001-01-30  Jim Meyering  <meyering@lucent.com>
131706         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
131707         * m4/chown.m4: Rename conftestchown to conftest.chown.
131708         * m4/rename.m4: s/conftestdir/conftest.d1/ and
131709         s/conftestdir2/conftest.d2/.
131710         * m4/utimes.m4: s/conftestdata/conftest.data/
131711         Inspired by Pavel Roskin's change in autoconf.
131713 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
131715         * lib/config.charset: Update for FreeBSD 4.2.
131717 2001-01-27  Jim Meyering  <meyering@lucent.com>
131719         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
131720         a use of AS_IF.
131721         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131723 2001-01-26  Jim Meyering  <meyering@lucent.com>
131725         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
131726         quotearg.c includes it.
131728 2001-01-26  Jim Meyering  <meyering@lucent.com>
131730         * lib/quotearg.c: Include stddef.h.
131731         * lib/quote.c: Include stddef.h.
131732         Reported by Axel Kittenberger.
131734         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
131735         line in double quotes so that it evokes a better diagnostic.
131736         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
131737         Reported by Axel Kittenberger.
131739 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
131741         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
131742         as if it was a `charset'.
131744 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131746         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
131747         has const.
131749 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131751         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
131752         to avoid a warning.  Add back 'const' to inptr.
131754 2001-01-20  Jim Meyering  <meyering@lucent.com>
131756         Be sure that headers are checked before used in code compiled
131757         for the type checks.
131758         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
131759         In place of that, invoke jm_CHECK_ALL_TYPES.
131760         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
131761         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
131762         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
131763         The check for ssize_t was mistakenly run before the test for unistd.h.
131765         The configure-time check for stdbool.h was missing.
131766         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
131767         (jm_PREREQ_HASH): New function.
131769 2001-01-17  Jim Meyering  <meyering@lucent.com>
131771         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
131772         for autoconf-2.49c.
131773         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
131775 2001-01-16  Jim Meyering  <meyering@lucent.com>
131777         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
131778         From Bruno Haible.
131780 2001-01-14  Jim Meyering  <meyering@lucent.com>
131782         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
131783         foo and bar.  Create conftestdir/ in the script, not in the C code.
131784         Remove directories in the script, not in the C code.
131785         Remove conftestdir{,2} before trying to create the directory.
131786         Make the entire configure script fail if the mkdir fails.
131788 2001-01-14  Jim Meyering  <meyering@lucent.com>
131790         * lib/rename.c: New file.  From Volker Borchert.
131791         Include stdlib.h, string.h or strings.h, and xalloc.h.
131792         Use strip_trailing_slashes rather than open-coding it.
131794 2001-01-03  Paul Eggert  <eggert@twinsun.com>
131796         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
131798 2001-01-03  Jim Meyering  <meyering@lucent.com>
131800         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
131801         of local `inptr' to avoid warning with some system declarations of
131802         iconv.
131804 2001-01-02  Volker Borchert  <bt@teknon.de>
131806         * m4/rename.m4: New file.
131807         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
131809 2001-01-01  Jim Meyering  <meyering@lucent.com>
131811         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
131812         even on systems with utmpx.h.  It's necessary for the declaration of
131813         utmp's ut_user member.  Reported by Andreas Jaeger.
131815         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
131816         available. They are required for the declarations of getgrgid and
131817         getpwuid resp.
131818         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
131819         Reported by Andreas Jaeger.
131821 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
131823         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
131824         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
131825         so `make install' also works in VPATH builds.
131827 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
131829         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
131830         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
131831         can be used in subdirectories.
131833 2000-12-29  Paul Eggert  <eggert@twinsun.com>
131835         * lib/modechange.c: Do not assume that mode_t uses the
131836         traditional octal encoding.  E.g. "chmod 1 FOO" should set
131837         the other-execute bit of FOO even if S_IXOTH != 1.
131839         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
131840         WOTH, XOTH, ALLM): New macros.
131841         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
131842          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
131843         Use them.
131844         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
131845         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
131846         (mode_compile):
131847         No need to use uintmax_t; unsigned long is long enough.
131848         Don't bother to get suffix since we don't use it.
131850 2000-12-26  Jim Meyering  <meyering@lucent.com>
131852         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
131853         better with autoheader.
131855 2000-12-24  Jim Meyering  <meyering@lucent.com>
131857         * lib/hash.c (is_prime): Return explicit boolean values.
131858         (hash_get_first): Return NULL to appease Irix5.6's 89.
131859         Reported by Nelson Beebe.
131861 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
131863         * lib/localcharset.c (locale_charset): Add support for Win32.
131865 2000-12-18  Paul Eggert  <eggert@twinsun.com>
131867         * lib/physmem.h, lib/physmem.c: New files.
131869         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
131870         (noinst_HEADERS): Add physmem.h.
131872         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
131873         't' for compatibility with Solaris 8 sort.
131875 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
131877         * lib/config.charset: Add support for BeOS.
131879 2000-12-17  Jim Meyering  <meyering@lucent.com>
131881         * m4/dos.m4 (jm_AC_DOS): New file and macro.
131882         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
131884 2000-12-16  Jim Meyering  <meyering@lucent.com>
131886         This bug had a serious impact on chown: `chown N:M FILE' (for integer
131887         N and M) would have treated it like `chown N:N FILE'.
131889         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
131891 2000-12-16  Jim Meyering  <meyering@lucent.com>
131893         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
131894         SHELLS_FILE to a file name that's useful on djgpp systems.
131895         Include stdlib.h.
131896         (ADDITIONAL_DEFAULT_SHELLS): Define.
131897         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
131898         Based mostly on a patch from Prashant TR.
131900 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
131902         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
131903         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
131904         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
131906 2000-12-08  Andreas Schwab  <schwab@suse.de>
131908         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
131909         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
131911 2000-12-07  Jim Meyering  <meyering@lucent.com>
131913         * lib/stripslash.c (ISSLASH): Define.
131914         (strip_trailing_slashes): Use ISSLASH rather than comparing against
131915         `/'.
131916         From Prashant TR.
131918         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
131919         (dir_name_r): Declare this function as static.
131920         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
131921         manifest itself on a name containing a mix of slashes and
131922         backslashes.
131923         Make this function work with names starting with a DOS-style
131924         drive letter and colon prefix.
131925         (dir_name): Append `.' if necessary.
131926         Based mostly on patches from Prashant TR and Eli Zaretskii.
131928         * lib/dirname.h (dir_name_r): Remove prototype.
131930 2000-12-06  Paul Eggert  <eggert@twinsun.com>
131932         * m4/off_t-format.m4: Remove this file.
131933         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
131935 2000-12-06  Jim Meyering  <meyering@lucent.com>
131937         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
131938         replacement strtoull, we may well need the replacement strtoul, too.
131939         Check for declarations of strtoul and strtoull.
131940         Check for strtol.  Mainly as a cue to cause automake to include
131941         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
131942         Check for limits.h -- strtol.c needs it.
131944 2000-12-05  Jim Meyering  <meyering@lucent.com>
131946         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
131948 2000-12-04  Jim Meyering  <meyering@lucent.com>
131950         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
131951         Also include memory.h, stdlib.h, unistd.h if appropriate.
131952         Reported by Andreas Jaeger (conflicting declaration of malloc).
131954 2000-12-02  Jim Meyering  <meyering@lucent.com>
131956         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
131957         * m4/jm-macros.m4 (jm_MACROS): require it.
131959 2000-12-02  Jim Meyering  <meyering@lucent.com>
131961         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
131963 2000-12-01  Paul Eggert  <eggert@twinsun.com>
131965         * lib/memrchr.c: Include <config.h> before any system include file.
131967 2000-11-30  Jim Meyering  <meyering@lucent.com>
131969         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
131971 2000-11-30  Jim Meyering  <meyering@lucent.com>
131973         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
131975 2000-11-29  Paul Eggert  <eggert@twinsun.com>
131977         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
131979 2000-11-26  Jim Meyering  <meyering@lucent.com>
131981         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
131983 2000-11-22  Paul Eggert  <eggert@twinsun.com>
131985         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
131986         size of (size_t) -1; it's not portable.
131988 2000-11-17  Jim Meyering  <meyering@lucent.com>
131990         * lib/strstr.c: Update from GNU libc.
131992 2000-11-17  Akim Demaille  <akim@epita.fr>
131994         * lib/obstack.h: Formatting changes.
131995         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
131996         prevent type checking.
131997         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
131998         cast the value to (void *): assigning a `foo *' to a `void *'
131999         variable is valid.
132000         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
132002 2000-11-16  Jim Meyering  <meyering@lucent.com>
132004         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
132006 2000-11-11  Jim Meyering  <meyering@lucent.com>
132008         * lib/error.c: Add a couple #includes, merging from GNU libc version.
132010 2000-11-10  Jim Meyering  <meyering@lucent.com>
132012         * lib/obstack.h: Update from GNU libc.
132013         * lib/obstack.c: Likewise.
132015 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
132017         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
132019 2000-11-06  Paul Eggert  <eggert@twinsun.com>
132021         * lib/getusershell.c (setusershell): Use rewind rather than
132022         fseek/fseeko, to avoid configuration hassles with fseeko.
132023         Don't bother opening SHELLS_FILE if shellstream is NULL;
132024         it's not necessary.
132026 2000-11-05  Jim Meyering  <meyering@lucent.com>
132028         * lib/makepath.h (make_dir): Declare.
132029         * lib/makepath.c (make_dir): Remove `static' attribute.
132030         Tweak a comment.
132032 2000-11-04  Jim Meyering  <meyering@lucent.com>
132034         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
132036 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
132038         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
132039         last one in a bucket, advance to the next bucket.
132041 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
132043         * lib/fnmatch.c: Do not comment out all the code if we are using
132044         the GNU C library, because in some cases we are replacing buggy
132045         code in the GNU C library itself.
132047 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
132049         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
132050         (regex_compile): Catch bogus \(\1\).
132052 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132054         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
132055         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
132056         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
132058 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132060         * lib/error.h, getline.h, modechange.h:
132061         Remove "2000" from Copyright line, as the file hasn't been
132062         changed this year other than in the copyright notice.
132064         * lib/xalloc.h: Add "2000" to Copyright line, as this file
132065         was changed this year.
132067 2000-10-29  Jim Meyering  <meyering@lucent.com>
132069         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
132070         renaming.
132071         * m4/ls-mntd-fs.m4: Likewise
132073 2000-10-29  Jim Meyering  <meyering@lucent.com>
132075         * lib/xstat.in: Fix grammar in comment.
132077 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
132079         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
132080         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
132081         doesn't define __restrict_arr.
132083 2000-10-28  Jim Meyering  <meyering@lucent.com>
132085         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
132086         (jm_PREREQ_MEMCHR): New function.
132088 2000-10-28  Jim Meyering  <meyering@lucent.com>
132090         * lib/memchr.c: Update from libc.
132091         Adjust for portability:
132092         [HAVE_STDLIB_H]: Include stdlib.h.
132093         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
132094         Undef __memchr, too.
132095         [!weak_alias]: Define __memchr to memchr.
132097         * lib/regex.c: Update from libc.
132098         * lib/regex.h: Likewise.
132099         * lib/getopt1.c: Likewise.
132100         * lib/memcmp.c: Likewise.
132102         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
132103         Avoid using fseek, when possible -- it's broken by design.
132104         Patch by Ulrich Drepper.
132106 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
132108         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
132109         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
132110         Giving in to popular pressure to shut up the compiler with casts.
132112 2000-10-26  Jim Meyering  <meyering@lucent.com>
132114         * lib/strftime.c: Update from libc.
132116 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
132118         * regex.c: More `unsigned char' -> `re_char' changes.
132119         Also change several `int' into `re_wchar_t'.
132120         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
132121         (PUSH_FAILURE_POINTER): Don't cast any more.
132122         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
132123         We want GCC to complain, since this piece of code makes
132124         re_match non-reentrant, which *should* be fixed.
132125         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
132126         (EXTEND_BUFFER): Use RETALLOC.
132127         (SET_LIST_BIT): Don't cast.
132128         (re_wchar_t): New type.
132129         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
132130         that those two functions will always properly return.
132131         (IMMEDIATE_QUIT_CHECK): Cast to void.
132132         (analyse_first): Use recursion rather than an explicit stack.
132133         (re_compile_fastmap): Can't fail anymore.
132134         (re_search_2): Don't check re_compile_fastmap for failure.
132135         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
132136         Now also sets the new value (passed in a new argument).
132137         (re_match_2_internal): Use it.
132138         Also, use a new var `reg' of type size_t when looping through regs
132139         rather than reuse the inappropriate `mcnt'.
132141 2000-10-25  Jim Meyering  <meyering@lucent.com>
132143         * lib/obstack.c: Update from libc.
132145 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
132147         * regex.c (regex_compile): Change the way of handling a range from
132148         a char less than 256 to a char not less than 256.
132150 2000-10-24  Andrew Innes  <andrewi@gnu.org>
132152         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
132153         NT-Emacs only.
132154         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
132155         so that re_search functions only quit when callers expect them to.
132157 2000-10-23  Jim Meyering  <meyering@lucent.com>
132159         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
132160         wrong.  That set_locale call must not have any side effects.
132161         From Paul Eggert.
132163 2000-10-22  Jim Meyering  <meyering@lucent.com>
132165         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
132166         [CYCLIC]: Remove now-unused definition.
132168         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
132169         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
132170         Suggestion from Ulrich Drepper.
132172 2000-10-21  Jim Meyering  <meyering@lucent.com>
132174         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
132175         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
132176         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
132178 2000-10-21  Jim Meyering  <meyering@lucent.com>
132180         * lib/dirname.c (memrchr): Declare if necessary.
132181         (dir_name): Remove the restriction that there be no
132182         trailing slashes.  Now, this code skips past them, effectively
132183         ignoring them.
132184         [TEST_DIRNAME] (main): New unit tests.
132186         * lib/memrchr.c: New file from GNU libc.
132187         Undef __memrchr, too.
132188         [!weak_alias]: Define __memrchr to memrchr.
132189         Guard weak_alias use with `#ifdef weak_alias'.
132191 2000-10-21  Jim Meyering  <meyering@lucent.com>
132193         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
132194         (dir_name): Use dir_name_r.
132195         * lib/dirname.h (dir_name_r): Declare it.
132197 2000-10-17  Jim Meyering  <meyering@lucent.com>
132199         * lib/quote.h (PARAMS): Define and use.
132200         Reported by Akim Demaille.
132202         * lib/getopt.c: Update from libc.
132204 2000-10-16  Jim Meyering  <meyering@lucent.com>
132206         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
132207         setlocale.
132208         From Jan Fedak.
132210 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
132212         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
132214 2000-09-25  Jim Meyering  <meyering@lucent.com>
132216         * lib/md5.h (rol): Define (from GnuPG).
132218         * lib/sha.c: Give credit (GnuPG) where due.
132219         (M): Use rol rather than open-coding it.
132220         Add a FIXME comment.
132222 2000-09-21  Jim Meyering  <meyering@lucent.com>
132224         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
132225         Reported by Michael Stone.
132227 2000-09-20  Jim Meyering  <meyering@lucent.com>
132229         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
132230         (noinst_HEADERS): Add sha.h.
132231         Based on code from Scott G. Miller and from GnuPG.
132233 2000-09-18  Jim Meyering  <meyering@lucent.com>
132235         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
132236         LIBS. Otherwise, everyone ends up linking with -lelf for some
132237         configurations.
132238         Reported by Mike Stone.
132240 2000-09-15  Jim Meyering  <meyering@lucent.com>
132242         * lib/regex.c: Update from libc.
132244 2000-09-10  Jim Meyering  <meyering@lucent.com>
132246         * lib/getopt.c (_getopt_internal): Update from glibc.
132248 2000-09-09  Jim Meyering  <meyering@lucent.com>
132250         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
132251         think it should be used as a general replacement for isascii.
132252         * lib/fnmatch.c: Likewise.
132253         * lib/mbswidth.c: Likewise
132254         * lib/regex.c: Likewise.
132256         Don't use atoi.
132257         * lib/userspec.c: Include sys/param.h and limits.h.
132258         Include xstrtol.h.
132259         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
132260         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
132261         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
132262         UID, GID.  Check range.
132264 2000-09-06  Jim Meyering  <meyering@lucent.com>
132266         * lib/getopt.c (_getopt_internal): Update from glibc.
132268 2000-08-30  Jim Meyering  <meyering@lucent.com>
132270         * lib/strftime.c: Merge in changes from GNU libc.
132272 2000-08-26  Jim Meyering  <meyering@lucent.com>
132274         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
132275         * m4/fpending.m4: New file.
132277 2000-08-26  Jim Meyering  <meyering@lucent.com>
132279         * lib/closeout.c: Include "__fpending.h".
132280         (close_stdout_status): Return right away if there's nothing to flush.
132282         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
132283         * lib/__fpending.c: New file.
132284         * lib/__fpending.h: New file.
132286 2000-08-20  Jim Meyering  <meyering@lucent.com>
132288         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
132289         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
132290         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
132292 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
132294         Improve fileutils installation on systems where running
132295         programs (like install) can't be unlinked.
132296         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
132297         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
132299 2000-08-07  Paul Eggert  <eggert@twinsun.com>
132301         Standardize on "memory exhausted" instead of "Memory exhausted"
132302         or "virtual memory exhausted".
132303         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
132304         "virtual memory exhausted".
132305         * lib/same.c (same_name): Invoke xalloc_die instead of printing
132306         our own message.
132307         * lib/userspec.c (parse_user_spec): Likewise.
132308         * lib/bumpalloc.h: comment fix
132309         * lib/same.c, userspec.c: Include xalloc.h.
132311         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
132312         not char *const and pointing to a constant array.
132313         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
132314         (xrealloc): Comment fix.
132316         * lib/userspec.c (parse_user_spec):
132317         Don't translate a message until just before returning,
132318         to avoid unnecessary translation.
132320 2000-08-07  Jim Meyering  <meyering@lucent.com>
132322         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
132323         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
132324         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
132325         getgroups.c, gethostname.c, getopt.h, group-member.c,
132326         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
132327         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
132328         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
132329         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
132330         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
132331         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
132332         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
132333         yesno.c: Back out Copyright date changes for each file with no change
132334         this year.  This eases coordination with other programs using the same
132335         source code modules.  From Paul Eggert.
132337 2000-08-06  Paul Eggert  <eggert@twinsun.com>
132339         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
132340         not char, for compatibility with glibc 2.1.3 strftime.c.
132342 2000-08-03  Greg McGary  <greg@mcgary.org>
132344         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
132345         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
132346         (EXTEND_BUFFER): Use them.
132348 2000-08-01  Jim Meyering  <meyering@lucent.com>
132350         * lib/dirname.c (ISSLASH): Define.
132351         (BACKSLASH_IS_PATH_SEPARATOR): Define.
132352         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
132353         both `\' and `/' may be use as path separators.
132354         Based on a patch from Prashant TR.
132356 2000-07-31  Paul Eggert  <eggert@twinsun.com>
132358         * lib/quotearg.c (quotearg_n_options): Don't make the initial
132359         slot vector a constant, since it might get modified.
132361 2000-07-31  Jim Meyering  <meyering@lucent.com>
132363         * lib/xmalloc.c: Use `virtual memory exhausted', not
132364         `Memory exhausted'.
132365         * lib/obstack.c (print_and_abort): Likewise.
132367 2000-07-30  Paul Eggert  <eggert@twinsun.com>
132369         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
132370         buffer, so that the caller can always quote one small
132371         component of a "memory exhausted" message in slot 0.
132372         From a suggestion by Jim Meyering.
132374 2000-07-30  Jim Meyering  <meyering@lucent.com>
132376         * lib/makepath.c (make_path): Quote the other instance, too.
132378         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
132379         (STATIC_BUF_SIZE): Define.
132380         (quotearg_n_options): Use only statically allocated storage when
132381         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
132382         than STATIC_BUF_SIZE.
132384 2000-07-29  Jim Meyering  <meyering@lucent.com>
132386         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
132387         * lib/dirname.c (dir_name): Likewise.
132389         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
132390         `/'.
132392         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
132393         (dir_name): Assert that there are no trailing slashes.
132395 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
132397         * lib/mbswidth.h (mbswidth): Add a flags argument.
132398         (mbswidth): New declaration.
132399         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
132400         * lib/mbswidth.c (mbswidth): Add a flags argument.
132401         (mbsnwidth): New function.
132403 2000-07-24  Jim Meyering  <meyering@lucent.com>
132405         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
132407 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132409         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
132411 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132413         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
132414         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
132415         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
132416         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
132417         invoke multibyte primitives.
132419 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132421         * lib/quotearg.c:
132422         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
132423         so that mbstate_t is always defined.
132425         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
132426         be 1 in at least one GCC installation, and this configuration
132427         error is likely to be common.  Ignoring MB_LEN_MAX hurts
132428         performance on hosts that have mbrtowc but have only unibyte
132429         locales, but I assume these hosts are rare.
132431 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132433         * lib/mbswidth.c (_XOPEN_SOURCE):
132434         Don't define; this causes problems on Solaris 7.
132435         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
132437 2000-07-23  Jim Meyering  <meyering@lucent.com>
132439         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
132440         too: getgrgid, getpwuid, getuid.
132442 2000-07-23  Jim Meyering  <meyering@lucent.com>
132444         * lib/basename.c (base_name): Add an assertion.
132446 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
132448         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
132449         shadow its mbsinit function.
132451 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132453         * lib/mbswidth.h: New file.
132454         * lib/mbswidth.c: New file.
132455         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
132456         (noinst_HEADERS): Add mbswidth.h.
132458 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132460         * lib/config.charset: Add support for FreeBSD. Improve support for
132461         HP-UX and IRIX 6.
132463 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
132465         * m4/mbswidth.m4: New file.
132466         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
132468 2000-07-15  Jim Meyering  <meyering@lucent.com>
132470         * lib/makepath.c: Include quote.h.
132471         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
132472         corresponding argument in a `quote (...)' call.
132473         Give better diagnostics.
132475         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
132476         (noinst_HEADERS): Add quote.h.
132478         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
132479         from tar's src/misc.c.
132480         * lib/quote.h: New file.  Prototypes for same.
132482 2000-07-14  Paul Eggert  <eggert@twinsun.com>
132484         From a suggestion by Bruno Haible.
132485         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
132486         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
132487         to decide whether to define the BeOS workaround macro;
132488         this adjusts to the change to AC_MBSTATE_T.
132490 2000-07-14  Jim Meyering  <meyering@lucent.com>
132492         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
132493         jm_AC_TYPE_UINTMAX_T.
132495 2000-07-13  Paul Eggert  <eggert@twinsun.com>
132497         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
132499         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
132500         quotearg_buffer_restyled): Add support for
132501         clocale_quoting_style.  Undo previous change to
132502         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
132503         and "{RIGHT QUOTATION MARK}" msgids.
132505 2000-07-10  Paul Eggert  <eggert@twinsun.com>
132507         From a suggestion by Bruno Haible.
132508         * m4/mbstate_t.m4 (AC_MBSTATE_T):
132509         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
132510         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
132511         and mbstate_t, to a single-part test that simply defines mbstate_t.
132512         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
132513         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
132515 2000-07-10  Jim Meyering  <meyering@lucent.com>
132517         * m4/strerror_r.m4: Mirror the correction made in autoconf.
132519         * m4/gnu-source.m4: Output to confdefs.h directly.
132520         Suggestion from Akim Demaille.
132522 2000-07-09  Paul Eggert  <eggert@twinsun.com>
132524         The old behavior of quoting `like this' doesn't look good with
132525         newer, ISO-style fonts.  See:
132526         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
132528         Instead, quote "like this" by default.  Let the translator
132529         tailor the locale-specific quoting behavior by providing
132530         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
132532         * lib/quotearg.c (N_): New macro.
132533         (gettext_default): New function.
132534         (quotearg_buffer_restyled): Use
132535         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
132536         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
132538 2000-07-09  Jim Meyering  <meyering@lucent.com>
132540         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
132541         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
132543         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
132544         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
132546 2000-07-09  Jim Meyering  <meyering@lucent.com>
132548         * lib/Most files: Update copyright dates to include 2000.
132550 2000-07-08  Jim Meyering  <meyering@lucent.com>
132552         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
132553         if not defined.
132554         (xgethostname): Remove now-unnecessary #ifdef.
132555         Move declaration of `err' into loop where it's used.
132557 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132558         and Bruno Haible  <haible@clisp.cons.org>
132560         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
132561         only if the test for an object-type mbstate_t fails.  This
132562         prevents us from mistakenly reporting that mbstate_t is a
132563         system object type after we "#define mbstate_t int" to work
132564         around its lack.
132566 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132567         and Bruno Haible  <haible@clisp.cons.org>
132569         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
132571 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132573         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
132574         to strerror_r.
132575         Include <ctype.h> for use of isalpha.
132577 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132579         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
132580         by allocating a larger buffer. Test the gethostname return value for
132581         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
132582         returns an error and ENAMETOOLONG isn't defined.
132584 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132586         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
132587         dimension.
132589 2000-07-04  Jim Meyering  <meyering@lucent.com>
132591         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
132592         of the deprecated AC_CHECKING.
132594 2000-07-04  Jim Meyering  <meyering@lucent.com>
132596         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
132597         Reported by Bruno Haible.
132599 2000-07-04  Jim Meyering  <meyering@lucent.com>
132601         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
132602         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
132603         lacks mbrtowc.
132605 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132607         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
132608         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
132610 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132611         and Bruno Haible  <haible@clisp.cons.org>
132613         * lib/quotearg.c (mbrtowc):
132614         Assign to *pwc, and return 1 only if result is nonzero.
132615         (iswprint): Use ISPRINT when substituting our own mbrtowc.
132617 2000-07-03  Jim Meyering  <meyering@lucent.com>
132619         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
132621 2000-07-03  Jim Meyering  <meyering@lucent.com>
132623         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
132624         This is necessary to get a definition of e.g., UTMP_FILE on
132625         HP-UX 10.20.
132626         From Bob Proulx.
132628 2000-07-02  Jim Meyering  <meyering@lucent.com>
132630         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
132632         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
132633         AC_LIBOBJ(function_name).
132634         * m4/chown.m4: Likewise.
132635         * m4/fnmatch.m4: Likewise.
132636         * m4/ftruncate.m4: Likewise.
132637         * m4/getgroups.m4: Likewise.
132638         * m4/getline.m4: Likewise.
132639         * m4/group-member.m4: Likewise.
132640         * m4/jm-macros.m4: Likewise.
132641         * m4/lstat.m4: Likewise.
132642         * m4/malloc.m4: Likewise.
132643         * m4/memcmp.m4: Likewise.
132644         * m4/nanosleep.m4: Likewise.
132645         * m4/putenv.m4: Likewise.
132646         * m4/realloc.m4: Likewise.
132647         * m4/regex.m4: Likewise.
132648         * m4/stat.m4: Likewise.
132649         * m4/strftime.m4: Likewise.
132651 2000-07-02  Jim Meyering  <meyering@lucent.com>
132653         * lib/quotearg.c (mbstate_t): Don't define here.
132655 2000-07-02  Jim Meyering  <meyering@lucent.com>
132657         * lib/nanosleep.c (SIGCONT): Define if not already defined.
132659 2000-07-01  Jim Meyering  <meyering@lucent.com>
132661         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
132663 2000-07-01  Jim Meyering  <meyering@lucent.com>
132665         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
132666         problem.
132668 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132670         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
132671         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
132673 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132675         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
132676         per change in ../m4/ls-mntd-fs.m4.
132677         (read_filesystem_list): Ignore symbolic links.
132679 2000-06-29  Jim Meyering  <meyering@lucent.com>
132681         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
132682         for declaration of strcmp.
132684         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
132686         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
132687         Avoid warning by casting result to `char *' to remove `const'.
132689 2000-06-28  Jim Meyering  <meyering@lucent.com>
132691         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
132692         included by quotearg.c, for which we perform this test.  From
132693         Bruno Haible.
132695 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132697         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
132698         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
132699         <utmpx.h> exists, put readutmp.o into LIBOBJS.
132701 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132703         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
132705 2000-06-26  Paul Eggert  <eggert@twinsun.com>
132707         savedir now sets errno on failure and invokes xmalloc to get memory.
132708         Fix a couple of other minor bugs while we're at it.
132710         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
132711         (NAMLEN): Remove macro.
132712         (malloc, realloc): Remove decls.
132713         (stpcpy): Likewise.
132714         ("xalloc.h"): Include.
132715         (NAME_SIZE_DEFAULT): New macro.
132716         (savedir): Use xmalloc / xrealloc to allocate memory.
132717         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
132718         Skip "" directory entries.
132719         Use strlen to calculate directory entry length, since the old method
132720         is rarely used these days and isn't worth supporting.
132721         Don't use a pointer after freeing it.
132722         Check for integer overflow when calculating allocation size.
132723         Use memcpy to copy entries, instead of stpcpy.
132724         Set errno properly when returning NULL.
132725         Check for readdir error.
132727 2000-06-26  Jim Meyering  <meyering@lucent.com>
132729         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
132731 2000-06-25  Jim Meyering  <meyering@lucent.com>
132733         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
132734         Linux header bug when _XOPEN_SOURCE is defined to 500.
132736 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132738         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
132739         deficiency.
132741 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132743         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
132744         Include xalloc.h.
132745         Don't include <stdlib.h>.  Don't declare malloc, realloc.
132747 2000-06-24  Jim Meyering  <meyering@lucent.com>
132749         * m4/strerror_r.m4: Revive this file -- to try out an experimental
132750         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
132751         for which strerror does return char*, but which lacks a conveniently
132752         accessible declaration of the function.  If the compile-test says
132753         strerror_r doesn't work, then resort to a `run'-test that works on
132754         BeOS and segfaults on DEC Unix.
132756 2000-06-24  Jim Meyering  <meyering@lucent.com>
132758         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
132760 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132762         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
132763         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
132765 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132767         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
132768         (mbrtowc, mbstate_t): Define substitutes if
132769         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
132770         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
132771         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
132773 2000-06-23  Jim Meyering  <meyering@lucent.com>
132775         * m4/afs.m4: Add missing AC_MSG_RESULT.
132776         Reported by Bruno Haible.
132778         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
132779         Suggestion from Bruno Haible.
132781 2000-06-23  Jim Meyering  <meyering@lucent.com>
132783         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
132785 2000-06-21  Jim Meyering  <meyering@lucent.com>
132787         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
132789 2000-06-21  Jim Meyering  <meyering@lucent.com>
132791         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
132792         (noinst_HEADERS): Add getstr.h.
132794         * lib/getline.c (getstr): Move into a separate file.
132795         * lib/getstr.c (getstr): New file, extracted from getline.c, with
132796         the following changes: new parameter, delim2; both delim[12]
132797         parameters have type `int', not `char'.  The latter would lose
132798         with 8-bit delimiters.
132799         * lib/getstr.h: New file.
132801 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132803         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
132804         than 1024, return a memory chunk of least possible size, instead
132805         of size PATH_MAX + 2. In the loop, increment the size proportionally.
132806         Use free/xmalloc instead of xrealloc to avoid copying for very long
132807         paths.
132809 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132811         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
132812         the empty string.
132814 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132816         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
132817         address, not strdup.  Include <stdlib.h> and don't declare free().
132819 2000-06-19  Jim Meyering  <meyering@lucent.com>
132821         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
132823 2000-06-18  Jim Meyering  <meyering@lucent.com>
132825         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
132827         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
132828         `checking whether...' message to be consistent with that of the
132829         lstat test.
132831 2000-06-18  Jim Meyering  <meyering@lucent.com>
132833         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
132834         Besides, these days every porting target provides a mkdir function.
132836         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
132837         needed. (this snippet comes from src/system.h).
132839 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
132841         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
132843 2000-06-15  Paul Eggert  <eggert@twinsun.com>
132845         * lib/human.c (adjust_value): New function.
132846         (human_readable_inexact): Apply rounding style even when
132847         printing approximate values.
132849 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132851         * lib/human.c (human_readable_inexact): Allow an input block
132852         size that is not a multiple of the output block size, and vice versa.
132853         Reported by Piergiorgio Sartor.
132855 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132857         * lib/getdate.y (get_date): Apply relative times after time
132858         zone indicator, not before.  Reported by Todd A. Jacobs.
132860 2000-06-13  Jim Meyering  <meyering@lucent.com>
132862         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
132864         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
132866 2000-06-12  Paul Eggert  <eggert@twinsun.com>
132868         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
132870 2000-06-12  Jim Meyering  <meyering@lucent.com>
132872         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
132873         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
132874         optional argument.
132875         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
132876         the optional argument, `lib'.
132878 2000-06-08  Jim Meyering  <meyering@lucent.com>
132880         * m4/largefile.m4: Remove file (now that it's part of autoconf).
132882 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132884         Rewrite largefile configuration so that we don't need to run
132885         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
132886         AC_CANONICAL_HOST in configure.in -- jmm]
132888         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
132889         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
132890         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
132891         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
132892         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
132893         All uses changed.
132894         Instead of inspecting the output of getconf, try to compile the
132895         test program without and with the macro definition.
132896         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
132897         for getconf.  Instead, check for the needed flags by compiling
132898         test programs.
132900 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132902         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
132904 2000-06-04  Jim Meyering  <meyering@lucent.com>
132906         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
132907         SunOS 4.1.4 for which gid_t is an unsigned type.
132909 2000-06-03  Jim Meyering  <meyering@lucent.com>
132911         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
132912         now that autoconf requires that.
132914         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
132915         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
132916         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
132918 2000-06-03  Jim Meyering  <meyering@lucent.com>
132920         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
132922 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132924         * m4/glibc21.m4: New file.
132925         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
132927 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132929         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
132930         newer, don't install charset.alias.
132931         * lib/config.charset: Change the Linux/glibc rules so they become empty
132932         on glibc-2.1 or newer.
132934 2000-06-02  Jim Meyering  <meyering@lucent.com>
132936         * lib/mountlist.c: Back out last change.  Instead, do this...
132937         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
132938         me_dummy member using the same `ignore'-testing code.
132939         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
132940         fs_type strings.
132941         From Mark D. Roth.
132943 2000-05-29  Jim Meyering  <meyering@lucent.com>
132945         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
132946         mounts with the `ignore' attribute.  Based on a patch from
132947         Mark D. Roth.
132949 2000-05-28  Jim Meyering  <meyering@lucent.com>
132951         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
132952         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132953         * m4/stat.m4: Likewise.
132954         * m4/lstat.m4: Likewise.
132955         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
132957         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
132958         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
132960 2000-05-26  Jim Meyering  <meyering@lucent.com>
132962         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
132964 2000-05-24  Jim Meyering  <meyering@lucent.com>
132966         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
132967         autoconf requires that.
132968         * m4/lib-check.m4: Likewise.
132969         * m4/jm-macros.m4: Likewise.
132970         * m4/strftime.m4: Likewise.
132972         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
132973         AC_CHECK_DECLS, now that autoconf requires that.
132975 2000-05-22  Jim Meyering  <meyering@lucent.com>
132977         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132978         * m4/lstat.m4: Likewise.
132980 2000-05-22  Jim Meyering  <meyering@lucent.com>
132982         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
132984 2000-05-20  Jim Meyering  <meyering@lucent.com>
132986         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
132987         (jm_PREREQ): Use it.
132989 2000-05-18  Jim Meyering  <meyering@lucent.com>
132991         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
132992         back, too, since it may have been modified by allocate_entry.
132993         (hash_delete): Rewrite to use neither the assignment operator
132994         nor the comma operator in an if-expression.
132996 2000-05-15  Paul Eggert  <eggert@twinsun.com>
132998         * lib/closeout.c:
132999         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
133000         Remove; no longer needed.
133001         "quotearg.h": Add include.
133002         (file_name): Do not bother to explicitly initialize to NULL; it's less
133003         efficient on some hosts.
133004         (close_stdout_status): Remove test as to whether stdout was already
133005         closed; it breaks for the case "echo x | sort >&-".
133006         Quote file name colons.
133007         Do not assume that _("write error") lacks format strings.
133009 2000-05-15  Jim Meyering  <meyering@lucent.com>
133011         * lib/version-etc.c (version_etc_copyright): Update the copyright
133012         string used in all --version output.
133014 2000-05-14  Jim Meyering  <meyering@lucent.com>
133016         * lib/closeout.c (close_stdout_set_file_name): New function.
133017         (close_stdout_status): Use new file-scoped global.
133018         Return right away if fstat says the stdout file descriptor is invalid.
133019         * lib/closeout.h (close_stdout_set_file_name): Declare.
133021 2000-05-10  Jim Meyering  <meyering@lucent.com>
133023         * lib/closeout.c [default_exit_status]: New file-scoped variable.
133024         (close_stdout_set_status): New function.
133025         * lib/closeout.h (close_stdout_set_status): Declare.
133027 2000-05-09  Jim Meyering  <meyering@lucent.com>
133029         * m4/gettext.m4: Rename this...
133030         * m4/libintl.m4: ...to this.
133032 2000-05-08  Jim Meyering  <meyering@lucent.com>
133034         * lib/long-options.c: Don't include closeout.h.
133035         (parse_long_options): Don't call close_stdout for --version.
133037 2000-05-06  Paul Eggert  <eggert@twinsun.com>
133039         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
133040         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
133041         2.1.3 bug.  This avoids a clash when files like regex.c define
133042         _GNU_SOURCE.
133044 2000-05-06  Jim Meyering  <meyering@lucent.com>
133046         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
133047         (AC_REPLACE_FUNCS): Add strnlen.
133049         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
133050         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
133052         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
133053         AC_SEARCH_LIBS call for nanosleep.
133054         (LIB_NANOSLEEP): Set and AC_SUBST.
133056 2000-05-06  Jim Meyering  <meyering@lucent.com>
133058         * lib/strnlen.c: Undefine __strnlen and strnlen.
133059         [!weak_alias]: Define __strnlen to strnlen.
133061         * lib/atexit.c: New file, from libiberty.
133063 2000-05-06  Jim Meyering  <meyering@lucent.com>
133065         * lib/closeout.c (close_stdout_status): Also check for errors on the
133066         stderr stream.
133068 2000-05-05  Jim Meyering  <meyering@lucent.com>
133070         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
133071         AC_SEARCH_LIBS call for clock_gettime.
133072         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
133074         * m4/search-libs.m4: Update from autoconf.
133076         su doesn't work on Solaris 2.6.
133077         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
133078         <shadow.h>.  Reported by Dragos Harabor.
133080 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
133082         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
133083         memcpy instead of xmalloc, xrealloc, path_concat.
133084         (locale_charset): Treat empty environment variables as absent.
133085         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
133087 2000-05-04  Jim Meyering  <meyering@lucent.com>
133089         * lib/getopt.c: Update from glibc.
133090         * lib/obstack.c: Likewise.
133091         * lib/obstack.h: Likewise.
133092         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
133093         file
133095         * lib/regex.h: Likewise.
133096         * lib/strndup.c: Likewise.
133097         * lib/strnlen.c: New file, from glibc.
133099 2000-05-03  Jim Meyering  <meyering@lucent.com>
133101         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
133103 2000-05-02  Paul Eggert  <eggert@twinsun.com>
133105         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
133106         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
133107         compile-time test, rather than inspecting host and OS, to
133108         decide whether to define _LARGEFILE_SOURCE.
133110 2000-05-01  Jim Meyering  <meyering@lucent.com>
133112         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
133114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
133115         Based on a patch from Bruno Haible.
133117 2000-05-01  Jim Meyering  <meyering@lucent.com>
133119         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
133121 2000-04-29  Jim Meyering  <meyering@lucent.com>
133123         * lib/path-concat.c: Declare strdup only if it's not defined.
133124         * lib/canon-host.c: Likewise.
133126 2000-04-28  Jim Meyering  <meyering@lucent.com>
133128         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
133129         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
133130         is included first, then limits.h is included by locale.h by libintl.h.
133131         From John David Anglin.
133133 2000-04-25  Jim Meyering  <meyering@lucent.com>
133135         * lib/makepath.c (S_IRWXUGO): Define.
133136         (make_path): Always perform explicit chmod if MODE specifies any
133137         of the `special' permission bits.  Prompted by a bug report against
133138         install from Mate Wierdl and Joost van Baal.
133140 2000-04-18  Jim Meyering  <meyering@lucent.com>
133142         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
133143         (jm_PREREQ): Use it.
133145 2000-04-18  Jim Meyering  <meyering@lucent.com>
133147         * lib/README: New file.
133149         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
133150         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
133152 2000-04-17  Jim Meyering  <meyering@lucent.com>
133154         Get it right :-)
133155         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
133156         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
133157         Suggestion from Akim Demaille.
133159 2000-04-17  Jim Meyering  <meyering@lucent.com>
133161         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
133162         the definition of it to rpl_strftime also defined-away the system's
133163         declaration.
133165 2000-04-15  Jim Meyering  <meyering@lucent.com>
133167         Use `C' to denote so-called `contiguous' files, the same way
133168         that tar does.
133169         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
133170         (ftypelet): Use S_ISCTG.
133171         From Michael Deutschmann.
133173 2000-04-14  Jim Meyering  <meyering@lucent.com>
133175         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
133176         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
133177         clobbered.
133179 2000-04-14  Jim Meyering  <meyering@lucent.com>
133181         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
133183 2000-04-13  Jim Meyering  <meyering@lucent.com>
133185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
133186         AH_VERBATIM to insert required #ifndef into config.h.in.
133187         Suggestion from Akim Demaille.
133189 2000-04-12  Jim Meyering  <meyering@lucent.com>
133191         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
133192         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
133193         Christian Krackowizer.
133195         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
133196         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
133197         (AC_SYS_LARGEFILE): Require.
133198         (AM_C_PROTOTYPES): Require.
133200 2000-04-08  Jim Meyering  <meyering@lucent.com>
133202         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
133203         names don't conflict.  Reported by Eli Zaretskii.
133205 2000-04-07  Jim Meyering  <meyering@lucent.com>
133207         * lib/putenv.c: Move inclusion of errno.h so it follows that of
133208         sys/types.h, to work around system header problems on AIX 3.2.5.
133209         From Bruno Haible.
133211 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
133213         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
133214         bug.  Deal with the different error behavior of Irix iconv.
133216 2000-04-05  Paul Eggert  <eggert@twinsun.com>
133218         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
133219         IRIX if the installer said otherwise.
133221 2000-04-05  Jim Meyering  <meyering@lucent.com>
133223         Portability tweaks required for ultrix4.3.
133224         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
133225         (jm_CHECK_DECLS): Add getutent to the list of functions.
133226         (_jm_DECL_HEADERS): Add utmpx.h.
133227         From John David Anglin.
133229         * m4/strftime.m4: Back out the 2000-04-02 change.
133230         Instead of that change, simply undefine putenv in the test program.
133232 2000-04-05  Jim Meyering  <meyering@lucent.com>
133234         Portability tweaks required for ultrix4.3.
133235         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
133236         getutent.
133237         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
133238         * lib/canon-host.c: Declare strdup.
133239         * lib/path-concat.c: Likewise.
133240         From John David Anglin.
133242 2000-04-04  Jim Meyering  <meyering@lucent.com>
133244         Be more DOS 8.3-friendly.
133245         * lib/ref-add.sin: Renamed from ref-add.sed.in.
133246         * lib/ref-del.sin: Renamed from ref-del.sed.in.
133247         * lib/Makefile.am: Reflect renaming.
133248         Reported by Eli Zaretskii.
133250         Use a temporary file name that won't clash with `charset.alias'
133251         in the DOS 8.3 name space.
133252         * lib/Makefile.am (charset_tmp): Define.
133253         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
133254         (uninstall-local): Likewise.
133255         Reported by Eli Zaretskii.
133257 2000-04-03  Jim Meyering  <meyering@lucent.com>
133259         * m4/gettext.m4: Fix typo in comment.
133261         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
133262         textutils/configure.in).  Suggestion from Paul Eggert.
133263         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
133265 2000-04-02  Paul Eggert  <eggert@twinsun.com>
133267         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
133268         variable in the shell rather than using putenv, which isn't
133269         portable.  This avoids the configure-time inter-test dependency
133270         on the potentially-renamed putenv function.
133272 2000-03-30  Paul Eggert  <eggert@twinsun.com>
133274         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
133275         before checking struct stat.st_blksize, so that
133276         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
133278 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133280         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
133281         since strftime.c uses HAVE_STRFTIME to decide whether to use
133282         the underlying strftime.
133284 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133286         * lib/time/strftime.c (my_strftime): Make sure we call the system
133287         strftime, not ourselves, when invoking the underlying strftime.
133289 2000-03-24  Jim Meyering  <meyering@lucent.com>
133291         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
133292         (charset_alias): Define.
133293         (install-exec-local): Factor out common code.
133294         (uninstall-local): Split lines longer than 80.
133295         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
133296         (SUFFIXES): Define.
133297         (.sed.in.sed): New rule.  Don't redirect directly to $@.
133298         (CLEANFILES): Add ref-add.sed and ref-del.sed.
133300 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
133302         * lib/config.charset: Output a line containing "Packages using this
133303         file".
133304         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
133305         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
133306         ref-del.sed): New rules.
133308 2000-03-17  Jim Meyering  <meyering@lucent.com>
133310         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
133311         Otherwise, include <strings.h>
133313 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
133315         * lib/unicodeio.c (utf8_wctomb): New function.
133316         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
133317         format instead of in UCS-4 with platform dependent endianness.
133319 2000-03-10  Jim Meyering  <meyering@lucent.com>
133321         * m4/lib-check.m4: Look for getspnam in -lgen, too.
133322         From Marco Franzen.
133324 2000-03-07  Paul Eggert  <eggert@twinsun.com>
133326         * lib/savedir.c (savedir): Work even if directory size is
133327         negative; this can happen with some screwy NFS configurations.
133329 2000-03-06  Jim Meyering  <meyering@lucent.com>
133331         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
133332         if it's NULL (because we ran out of memory).  From Bruno Haible.
133334 2000-03-05  Jim Meyering  <meyering@lucent.com>
133336         * lib/localcharset.c ("path-concat.h"): Include.
133337         (get_charset_aliases): Use path_concat instead of ANSI string
133338         concatenation.
133340         * lib/unicodeio.h (PARAMS): Define.
133341         Use it to guard prototype.
133343 2000-03-04  Jim Meyering  <meyering@lucent.com>
133345         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
133346         for lib/localcharset.c.
133348 2000-03-04  Jim Meyering  <meyering@lucent.com>
133350         * lib/Makefile.am (install-exec-local): Create $(libdir) before
133351         installing into it.
133352         (uninstall-local): Uncomment this rule so `make distcheck' works
133353         once again.
133355         * lib/unicodeio.c (<errno.h>): Include it.
133356         (errno): Declare if not defined.
133358         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
133360         * lib/config.charset: New version, incorporating remarks from a linux
133361         i18n mailing list.  From Bruno Haible.
133363 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
133365         * m4/codeset.m4: New file.
133366         * m4/iconv.m4: New file.
133367         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
133369 2000-03-03  Jim Meyering  <meyering@lucent.com>
133371         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
133373 2000-03-02  Jim Meyering  <meyering@lucent.com>
133375         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
133376         the messages come out on separate lines.
133378         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
133379         rather than jm_CHECK_DECLARATIONS.
133380         * m4/decl.m4: Remove now-unused file.
133382         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
133383         geteuid.
133385 2000-03-02  Jim Meyering  <meyering@lucent.com>
133387         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
133389 2000-03-01  Jim Meyering  <meyering@lucent.com>
133391         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
133392         * lib/unicodeio.c: Likewise.
133394 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
133396         * lib/config.charset: New file.
133397         * lib/localcharset.c: New file.
133398         * lib/unicodeio.h, lib/unicodeio.c: New files.
133399         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
133400         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
133401         (noinst_HEADERS): Add unicodeio.h.
133402         (all-local, install-exec-local, charset.alias): New targets.
133404 2000-02-28  Paul Eggert  <eggert@twinsun.com>
133406         * lib/quotearg.c (ALERT_CHAR): New macro.
133407         (quotearg_buffer_restyled): Use it.
133409 2000-02-27  Jim Meyering  <meyering@lucent.com>
133411         * m4/check-decl.m4: Add getenv to the list.
133413 2000-02-27  Jim Meyering  <meyering@lucent.com>
133415         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
133416         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
133418         * lib/backupfile.c: Guard inclusion of stdlib.h with
133419         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
133420         Declare malloc if needed.
133422         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
133423         `#ifndef HAVE_DECL..'
133424         now that autoconf always defines the HAVE_DECL_ symbols.
133425         * lib/human.c: Likewise.
133426         * lib/same.c: Likewise.
133427         * lib/strtoumax.c: Likewise.
133429         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
133430         declaration check was not run.
133431         * lib/hash.c: Likewise.
133432         * lib/human.c: Likewise.
133433         * lib/same.c: Likewise.
133434         * lib/strtoumax.c: Likewise.
133436         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
133437         `.', then first look up the entire `.'-containing string as a login
133438         name.
133440 2000-02-23  Jim Meyering  <meyering@lucent.com>
133442         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
133443         in place of my hack.
133445 2000-02-18  Paul Eggert  <eggert@twinsun.com>
133447         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
133448         (textint): New typedef.
133449         (parser_control): Member year changed from int to textint.
133450         All uses changed.
133451         (YYSTYPE): Removed; replaced by %union with int and textint members.
133452         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
133453         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
133454         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
133455         (tSNUMBER, tUNUMBER): Now of type <textintval>.
133456         (date, number, to_year): Use width of number in digits, not its value,
133457         to determine whether it's a 2-digit year, or a 2-digit time.
133458         (yylex): Store number of digits of numeric tokens.
133459         Reported by John Kendall.
133461         (parser_control): Changed from struct parser_control to typedef (for
133462         consistency).  All uses changed.
133464         (tID): Removed; not used.
133465         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
133467 2000-02-14  Paul Eggert  <eggert@twinsun.com>
133469         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
133470         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
133472 2000-02-12  Jim Meyering  <meyering@lucent.com>
133474         * lib/userspec.c (ISDIGIT): Define it.
133475         (isdigit): Remove definition.
133476         (is_number): Use ISDIGIT, not isdigit.
133477         <libintl.h>: Include.
133478         (_ and N_): Define.
133479         (parse_user_spec): Mark translatable strings.
133481 2000-02-10  Jim Meyering  <meyering@lucent.com>
133483         With these changes, nanosleep.[ch] are finally enough like the other
133484         lib/* replacement files to compile on a few more losing systems.
133486         * lib/nanosleep.h: Don't include config.h.
133487         Remove prototype from declaration of nanosleep.
133488         (PARAMS): Remove now-unneeded definition.
133489         * lib/nanosleep.c: #undef nanosleep.
133490         (rpl_nanosleep): Rename from nanosleep.
133492 2000-02-10  Jim Meyering  <meyering@lucent.com>
133494         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
133495         gnu_nanosleep to rpl_nanosleep.
133497 2000-02-09  Jim Meyering  <meyering@lucent.com>
133499         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
133500         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
133502 2000-02-08  Akim Demaille  <akim@epita.fr>
133504         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
133505         `[' and `]' and remove uses of `changequote'.
133506         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
133507         (AC_SYS_LARGEFILE): Likewise.
133508         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
133509         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
133510         of changequote.
133511         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
133512         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
133513         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
133514         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
133516 2000-02-05  Jim Meyering  <meyering@lucent.com>
133518         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
133519         Remove explicit use of AC_HEADER_TIME.  It is required by
133520         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
133521         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
133522         in autoconf whereby the expansion of the latter ended up preceding
133523         the expansion of its prerequisite, AC_HEADER_TIME.
133524         Reported by Volker Borchert.
133526 2000-02-03  Jim Meyering  <meyering@lucent.com>
133528         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
133530 2000-02-03  Jim Meyering  <meyering@lucent.com>
133532         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
133533         rather than with `#if HAVE_UTMPNAME'.
133535 2000-02-02  Jim Meyering  <meyering@lucent.com>
133537         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
133538         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
133539         Reported by Eli Zaretskii.
133541 2000-02-01  Jim Meyering  <meyering@lucent.com>
133543         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
133545 2000-01-31  Jim Meyering  <meyering@lucent.com>
133547         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
133548         functions.  Add the time.h and sys/time.h headers along with the
133549         AC_REQUIRE'ment of AC_HEADER_TIME.
133551 2000-01-31  Jim Meyering  <meyering@lucent.com>
133553         * lib/nanosleep.h (nanosleep): Guard declaration with
133554         `#if ! HAVE_DECL_NANOSLEEP'.
133555         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
133556         the declaration in that vendor's sys/timers.h.
133557         Reported by Christian Krackowizer.
133559         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
133560         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
133561         (ISPRINT): Likewise.
133562         Reported by Tom Tromey.
133564 2000-01-30  Jim Meyering  <meyering@lucent.com>
133566         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
133568         * m4/prereq.m4 (utmp_includes): Define.
133569         Check for ut_user and ut_name members in both struct utmpx
133570         and struct utmp.
133572 2000-01-30  Jim Meyering  <meyering@lucent.com>
133574         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
133575         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
133576         header files where only utmpx.ut_user is declared.
133578         * lib/readutmp.h (UT_USER): Define.
133580 2000-01-29  Jim Meyering  <meyering@lucent.com>
133582         * m4/lib-check.m4: New file containing library-related checks from
133583         fileutils and sh-utils (textutils had none).
133585 2000-01-28  Jim Meyering  <meyering@lucent.com>
133587         * m4/perl.m4: Change format of warning message to look more like that
133588         from the missing script.  Suggestion from François Pinard.
133590 2000-01-25  Jim Meyering  <meyering@lucent.com>
133592         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
133593         well as time.h in the compile check.
133594         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
133595         Fix typo in cross-compiling case: s/yes/no/.
133597 2000-01-23  Jim Meyering  <meyering@lucent.com>
133599         * m4/jm-macros.m4: Move df-related tests here from
133600         fileutils/configure.in
133602         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
133603         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
133605         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
133606         s/space/ac_fsusage_space/.
133607         (jm_FILE_SYSTEM_USAGE): Take two parameters.
133609         * m4/ftruncate.m4: New file (derived from part of
133610         fileutils/configure.in).
133611         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
133612         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
133614         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
133615         AC_SUBST these here, rather than just in sh-util/configure.in, so
133616         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
133617         all the same.
133618         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
133619         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
133620         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
133621         (AC_SUBST(POW_LIBM)): Likewise.
133622         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
133624 2000-01-23  Jim Meyering  <meyering@lucent.com>
133626         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
133627         obstack.c.
133629 2000-01-22  Jim Meyering  <meyering@lucent.com>
133631         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
133633         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
133635         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
133636         configure.in
133637         (AC_CHECK_HEADERS): Likewise for sh-utils.
133638         (AC_CHECK_HEADERS): Likewise for textutils.
133639         Merge the three lists of headers.
133641         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
133642         from fileutils' configure.in.
133644         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
133645         code. Moved tests into their own function (_jm_DECL_HEADERS) in
133646         check-decl.m4.
133648         * m4/check-decl.m4: Use #if rather than #ifdef.
133649         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
133650         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
133651         (_jm_DECL_HEADERS): Define new function.
133652         (jm_CHECK_DECLARATIONS): Require it.
133654 2000-01-22  Jim Meyering  <meyering@lucent.com>
133656         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
133657         [! HAVE_DECL_STRTOULL]: Declare strtoull.
133658         Required for some AIX systems.  Reported by Christian Krackowizer.
133659         [TESTING] (main): New function.
133661         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
133662         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
133663         letters.
133665         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
133666         iswprint.
133668         * lib/strverscmp.c (ISDIGIT): Define.
133669         (strverscmp): Use ISDIGIT, not isdigit.
133671 2000-01-19  Jim Meyering  <meyering@lucent.com>
133673         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
133674         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
133675         defines `struct timespec' in <sys/time.h>
133677         * m4/c-bs-a.m4: Remove uses of changequote altogether.
133678         Thanks to Akim for explaining.
133680 2000-01-17  Paul Eggert  <eggert@twinsun.com>
133682         * lib/nanosleep.c (nanosleep):
133683         Don't use SA_INTERRUPT to decide whether to call sigaction, as
133684         POSIX.1 doesn't require SA_INTERRUPT and some systems
133685         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
133686         it's been part of POSIX.1 since day 1 (in 1988).
133688 2000-01-17  Jim Meyering  <meyering@lucent.com>
133690         * lib/interlock: Remove unused file.  Reported by François Pinard.
133692 2000-01-16  Paul Eggert  <eggert@twinsun.com>
133694         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
133695         alert, backslash, formfeed, and vertical tab unnecessarily in
133696         shell quoting style.
133698 2000-01-16  Jim Meyering  <meyering@lucent.com>
133700         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
133701         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
133702         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
133703         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
133705 2000-01-16  Jim Meyering  <meyering@lucent.com>
133707         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
133708         because the latter didn't work.
133710 2000-01-15  Jim Meyering  <meyering@lucent.com>
133712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
133713         (AC_REPLACE_FUNCS): Add memcpy and memset.
133714         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
133715         Add strpbrk.
133716         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
133718 2000-01-12  Jim Meyering  <meyering@lucent.com>
133720         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
133721         (jm_PREREQ): Use it.
133722         (jm_PREREQ_READUTMP): New macro.
133723         (jm_PREREQ): Use it.
133725 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133727         Quote multibyte characters correctly.
133728         * m4/c-bs-a.m4: New file.
133729         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
133730         (jm_PREREQ): Use it.
133732 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133734         * m4/uintmax_t.m4: Port to autoconf 2.13.
133736 2000-01-08  Jim Meyering  <meyering@ascend.com>
133738         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
133739         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
133741 2000-01-04  Jim Meyering  <meyering@ascend.com>
133743         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
133744         jm_STRUCT_DIRENT_D_TYPE.
133745         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
133746         jm_STRUCT_DIRENT_D_INO.
133747         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
133748         jm_STRUCT_UTIMBUF.
133749         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
133750         renamings.
133751         * m4/utime.m4: Likewise.
133753         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
133754         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
133756 2000-01-03  Paul Eggert  <eggert@twinsun.com>
133758         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
133759         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
133761 2000-01-02  Jim Meyering  <meyering@ascend.com>
133763         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
133764         remember if this is necessary.
133766 1999-12-26  Jim Meyering  <meyering@ascend.com>
133768         * m4/jm-macros.m4: Use it here.
133769         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
133771 1999-12-23  Jim Meyering  <meyering@ascend.com>
133773         * m4/jm-macros.m4: Check for clock_gettime (moved from
133774         fileutils/configure.in)
133775         Check for gettimeofday.
133777 1999-12-20  Jim Meyering  <meyering@ascend.com>
133779         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
133780         autoconf-2.14a-1999-12-20.
133782 1999-12-19  Jim Meyering  <meyering@ascend.com>
133784         * m4/lstat-slash.m4: New file.
133785         * m4/jm-macros.m4: Use the new macro:
133786         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133788 1999-12-07  Jim Meyering  <meyering@ascend.com>
133790         * m4/perl.m4: Require that File::Compare be available, too.
133791         Too many systems seem to lack it.
133793         * m4/strftime.m4: Add checks for most of the cpp macros tested in
133794         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
133796 1999-11-18  Paul Eggert  <eggert@twinsun.com>
133798         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
133799         problem with the QNX 4.25 shell, which doesn't propagate exit
133800         status of failed commands inside shell assignments.
133802 1999-11-17  Jim Meyering  <meyering@ascend.com>
133804         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
133806 1999-11-07  Jim Meyering  <meyering@ascend.com>
133808         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
133810 1999-11-06  Jim Meyering  <meyering@ascend.com>
133812         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
133813         * m4/jm-macros.m4 (jm_MACROS): Use it here.
133815 1999-11-05  Jim Meyering  <meyering@ascend.com>
133817         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
133818         configure.in of textutils, fileutils, and sh-utils into this one
133819         (shared between those packages) file.
133820         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
133821         AC_STRUCT_ST_BLKSIZE.
133823 1999-11-03  Jim Meyering  <meyering@ascend.com>
133825         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
133826         of AC_CHECK_TYPE checks includes unistd.h.
133827         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
133828         Suggestion from Akim Demaille.
133830 1999-10-30  Jim Meyering  <meyering@ascend.com>
133832         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
133833         m4-quoted string.
133834         * m4/ls-mntd-fs.m4: Likewise.
133835         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
133836         * m4/jm-winsz1.m4: Likewise.
133838         * m4/const.m4: Remove file, since the fix made it into the experimental
133839         version of autoconf.
133840         * m4/mktime.m4: Likewise.
133842         * m4/check-type.m4: Remove file, now that the latest version of
133843         AC_CHECK_TYPE takes a third arg to specify additional #includes.
133845         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
133846         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
133847         AC_CHECK_TYPE.
133849 1999-10-04  Jim Meyering  <meyering@ascend.com>
133851         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
133853 1999-09-22  Paul Eggert  <eggert@twinsun.com>
133855         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
133856         2.95.1 bug with HP-UX 10.20.
133858 1999-09-17  Jim Meyering  <meyering@ascend.com>
133860         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
133861         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
133862         due to missing strdup (against sh-utils-2.0).
133864 1999-08-29  Jim Meyering  <meyering@ascend.com>
133866         * m4/jm-macros.m4: Require jm_BISON.
133867         * m4/bison.m4: New file.
133869 1999-08-17  Paul Eggert  <eggert@twinsun.com>
133871         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
133872         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
133874 1999-08-05  Jim Meyering  <meyering@ascend.com>
133876         * m4/getline.m4: Rename test file from conftestdata to conftest.data
133877         to avoid conflicts with `conftest' on 8+3 filesystems.
133878         Suggestion from Eli Zaretskii.
133880 1999-08-04  Jim Meyering  <meyering@ascend.com>
133882         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
133883         fileutils and sh-utils (textutils's getline test was inadequate).
133884         (AM_FUNC_GETLINE): Run this test.
133885         (AC_CHECK_FUNCS): Check for getdelim.
133886         Reported by Bob Proulx.
133888 1999-08-02  Jim Meyering  <meyering@ascend.com>
133890         * m4/jm-macros.m4: Add a comment.
133892 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133894         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
133895         <inttypes.h> defines strtoumax as a macro (and not as a
133896         function).
133898 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133900         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
133901         that we can shift, multiply and divide unsigned long long
133902         values; Ultrix cc can't do it.
133904 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133906         * m4/mktime.m4: New file, which is a preview of what should appear
133907         in the next public autoconf release.
133909 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133911         * m4/lfs.m4: Remove this file.
133912         * m4/largefile.m4: New file.  It contains the old contents of
133913         lfs.m4, except that all names with prefix AC_LFS have been
133914         changed to use the prefix AC_SYS_LARGEFILE instead, to be
133915         compatible with future autoconf versions.  Also, some minor m4
133916         quoting problems have been fixed.
133918 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133920         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
133921         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
133922         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
133923         and simplify the shell code.
133925 1999-08-01  Jim Meyering  <meyering@ascend.com>
133927         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
133928         m4.
133930 1999-07-20  Jim Meyering  <meyering@ascend.com>
133932         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
133934 1999-07-15  Jim Meyering  <meyering@ascend.com>
133936         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
133938 1999-05-22  Jim Meyering  <meyering@ascend.com>
133940         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
133942 1999-05-20  Jim Meyering  <meyering@ascend.com>
133944         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
133945         Add a colon after each `then' in case $4 is empty.
133947 1999-05-16  Jim Meyering  <meyering@ascend.com>
133949         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
133951 1999-05-10  Jim Meyering  <meyering@ascend.com>
133953         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
133955         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
133956         AC_FUNC_MKTIME.
133958 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
133960         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
133962 1999-05-04  Paul Eggert  <eggert@twinsun.com>
133964         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
133965         not CPPFLAGS, so that linking works correctly in IRIX.
133967 1999-04-30  Paul Eggert  <eggert@twinsun.com>
133969         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
133971 1999-04-20  Paul Eggert  <eggert@twinsun.com>
133973         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
133974         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
133975         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
133976         jm_AC_TYPE_UNSIGNED_LONG_LONG.
133977         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
133979         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
133981 1999-04-20  Jim Meyering  <meyering@ascend.com>
133983         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
133984         AC_REPLACE xstroull if necessary.  From Paul Eggert.
133985         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
133987 1999-04-18  Jim Meyering  <meyering@ascend.com>
133989         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
133990         * m4/jm-macros.m4: Use it.
133992 1999-04-06  Jim Meyering  <meyering@ascend.com>
133994         * m4/strftime.m4: Remove test for %f.
133996 1999-03-29  Jim Meyering  <meyering@ascend.com>
133998         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
133999         superset of the AC_TYPE_* checks in the textutils, fileutils,
134000         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
134001         AC_TYPE_PID_T.
134003 1999-03-28  Jim Meyering  <meyering@ascend.com>
134005         * m4/jm-macros.m4: Define GNU_PACKAGE here.
134006         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
134007         replaced e.g., in the *.sh files of the sh-utils.
134009 1999-03-20  Jim Meyering  <meyering@ascend.com>
134011         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
134012         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
134013         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
134015 1999-03-19  Jim Meyering  <meyering@ascend.com>
134017         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
134019 1999-03-12  Jim Meyering  <meyering@ascend.com>
134021         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
134023 1999-03-07  Jim Meyering  <meyering@ascend.com>
134025         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
134026         declared.
134028 1999-02-17  Jim Meyering  <meyering@ascend.com>
134030         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
134031         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
134033 1999-02-07  Jim Meyering  <meyering@ascend.com>
134035         * m4/group-member.m4: New file -- extracted from sh-utils'
134036         configure.in.
134038         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
134039         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
134041 1999-02-06  Jim Meyering  <meyering@ascend.com>
134043         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
134044         * m4/fnmatch.m4: Likewise.
134045         * m4/getgroups.m4: Likewise.
134046         * m4/lstat.m4: Likewise.
134047         * m4/malloc.m4: Likewise.
134048         * m4/putenv.m4: Likewise.
134049         * m4/realloc.m4: Likewise.
134050         * m4/regex.m4: Likewise.
134051         * m4/stat.m4: Likewise.
134052         * m4/strftime.m4: Likewise.
134053         Suggestion from Alain Magloire.
134055         * m4/chown.m4: Use `.$ac_objext', not `.o'.
134056         * m4/fnmatch.m4: Likewise.
134057         * m4/getgroups.m4: Likewise.
134058         * m4/getline.m4: Likewise.
134059         * m4/lstat.m4: Likewise.
134060         * m4/malloc.m4: Likewise.
134061         * m4/memcmp.m4: Likewise.
134062         * m4/putenv.m4: Likewise.
134063         * m4/realloc.m4: Likewise.
134064         * m4/regex.m4: Likewise.
134065         * m4/stat.m4: Likewise.
134066         * m4/strftime.m4: Likewise.
134067         Suggestion from Alain Magloire.
134069         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
134070         an argument.
134072         * m4/regex.m4: Add a run-time Test for proper operation of
134073         re_compile_pattern.
134075 1999-01-31  Jim Meyering  <meyering@ascend.com>
134077         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
134079 1999-01-30  Jim Meyering  <meyering@ascend.com>
134081         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
134083         * m4/jm-mktime.m4: Make this a wrapper around the official
134084         AM_FUNC_MKTIME rather than my private copy, now that the official one
134085         is up to date.
134086         * m4/mktime.m4: Remove file.
134088         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
134089         * m4/uptime.m4: Likewise.
134090         * m4/uintmax_t.m4: Likewise.
134092 1999-01-28  Jim Meyering  <meyering@ascend.com>
134094         * m4/jm-macros.m4: Use jm_AFS.
134095         * m4/afs.m4: New file (from fileutils' configure.in).
134097         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
134098         * m4/chown.m4: Likewise.
134099         * m4/d-ino.m4: Likewise.
134100         * m4/d-type.m4: Likewise.
134101         * m4/fnmatch.m4: Likewise.
134102         * m4/getgroups.m4: Likewise.
134103         * m4/gettext.m4: Likewise.
134104         * m4/jm-mktime.m4: Likewise.
134105         * m4/jm-winsz2.m4: Likewise.
134106         * m4/lcmessage.m4: Likewise.
134107         * m4/ls-mntd-fs.m4: Likewise.
134108         * m4/malloc.m4: Likewise.
134109         * m4/memcmp.m4: Likewise.
134110         * m4/putenv.m4: Likewise.
134111         * m4/realloc.m4: Likewise.
134112         * m4/st_mtim.m4: Likewise.
134113         * m4/strftime.m4: Likewise.
134115 1999-01-16  Jim Meyering  <meyering@ascend.com>
134117         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
134118         (ARGMATCH_DIE_DECL): Define.
134120 1999-01-12  Jim Meyering  <meyering@ascend.com>
134122         * m4/Makefile.am.in: Rewrite to avoid using fmt.
134123         Reported by Lars Hecking.
134125 1999-01-10  Jim Meyering  <meyering@ascend.com>
134127         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
134128         gross kludge.
134129         * m4/inttypes_h.m4: Likewise.
134130         * m4/lstat.m4: Likewise.
134131         * m4/malloc.m4: Likewise.
134132         * m4/readdir.m4: Likewise.
134133         * m4/realloc.m4: Likewise.
134134         * m4/st_dm_mode.m4: Likewise.
134135         * m4/stat.m4: Likewise.
134136         * m4/utimbuf.m4: Likewise.
134137         * m4/utimes.m4: Likewise.
134139         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
134140         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
134141         comments in config.h.in are meaningful.
134143         * m4/jm-macros.m4: Require autoconf-2.13 here.
134145         * m4/regex.m4: By default, don't use the included regex.c on systems
134146         with glibc 2.  Suggestion from Uli Drepper.
134148 1999-01-02  Jim Meyering  <meyering@ascend.com>
134150         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
134152 1998-12-18  Jim Meyering  <meyering@ascend.com>
134154         * m4/Makefile.am.in (Makefile.am): Simplify rule.
134155         Based on a suggestion from Lars Hecking.
134157 1998-11-16  Paul Eggert  <eggert@twinsun.com>
134159         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
134161 1998-11-16  Jim Meyering  <meyering@ascend.com>
134163         * m4/lfs.m4: Double-quote the `uname...` expression.
134165 1998-11-14  Jim Meyering  <meyering@ascend.com>
134167         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
134168         * m4/stat.m4: Likewise.
134170 1998-11-03  Jim Meyering  <meyering@ascend.com>
134172         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
134173         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
134175 1998-10-18  Jim Meyering  <meyering@ascend.com>
134177         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
134179 1998-10-17  Jim Meyering  <meyering@ascend.com>
134181         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
134182         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
134183         calls for those previously hard-coded headers.  Instead, take a new
134184         parameter.
134185         (jm_CHECK_DECLARATIONS): Reflect interface change.
134186         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
134187         (jm_CHECK_DECL_LOCALTIME_R): New macro.
134189         * m4/mktime.m4: Test for spring-forward gap before long-running test.
134191 1998-10-14  Jim Meyering  <meyering@ascend.com>
134193         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
134194         instead of "TZ=America/Vancouver".  From Paul Eggert.
134196 1998-10-11  Jim Meyering  <meyering@ascend.com>
134198         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
134199         This adds a test for a recently added compatibility fix for mktime.c.
134200         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
134202 1998-09-27  Jim Meyering  <meyering@ascend.com>
134204         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
134206         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
134207         ../configure.in, including a change from Gordon Matzigkeit to allow
134208         cross-compiling for the Hurd.
134210         * m4/glibc.m4: New file/macro to test for the GNU C Library
134211         versions 1 and 2.  From Gordon Matzigkeit.
134212         Indent.
134214 1998-09-21  Jim Meyering  <meyering@ascend.com>
134216         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
134218 1998-08-18  Paul Eggert  <eggert@twinsun.com>
134220         Port nanosecond-resolution times to UnixWare 2.1.2 and
134221         pedantic Solaris 2.6.
134223         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
134224         AC_STRUCT_ST_MTIM.
134225         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
134226         Generate name of ns member, instead of just 1 or undef.
134227         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
134229 1998-08-15  Jim Meyering  <meyering@ascend.com>
134231         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
134232         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
134233         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
134234         instead of jm_TYPE_SSIZE_T.
134236 1998-08-12  Jim Meyering  <meyering@ascend.com>
134238         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
134240 1998-08-02  Jim Meyering  <meyering@ascend.com>
134242         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
134243         in acconfig.h manually.
134245 1998-07-31  Paul Eggert  <eggert@twinsun.com>
134247         * m4/st_mtim.m4: New file.
134249 1998-07-28  Jim Meyering  <meyering@ascend.com>
134251         * m4/utimes.m4: Undef stat.
134253 1998-07-25  Jim Meyering  <meyering@ascend.com>
134255         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
134256         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
134258 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
134260         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
134261         uid and gid actually remain unchanged.
134263 1998-07-07  Jim Meyering  <meyering@ascend.com>
134265         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
134267 1998-07-04  Jim Meyering  <meyering@ascend.com>
134269         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
134270         to prove that this macro can be used in packages without regex.c.
134272 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
134274         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
134275         is to be used.
134277 1998-07-03  Jim Meyering  <meyering@ascend.com>
134279         * m4/gettext.m4: Add -lintl if it's found to be necessary.
134281         * m4/gettext.m4: New file -- from gettext-0.10.35.
134282         * m4/lcmessage.m4: Likewise.
134283         * m4/progtest.m4: Likewise.
134285         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
134286         * m4/jm-macros.m4: Require the new macro.
134288 1998-06-29  Jim Meyering  <meyering@ascend.com>
134290         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
134291         for the definition of NGROUPS (used in a system header included
134292         by sys/mount.h).
134294 1998-06-28  Jim Meyering  <meyering@ascend.com>
134296         * m4/ls-mntd-fs.m4: New file.
134297         * m4/fstypename.m4: New file.
134299         * m4/jm-macros.m4: Require the new macro.
134300         * m4/jm-glibc-io.m4: New file.
134302 1998-05-19  Jim Meyering  <meyering@ascend.com>
134304         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
134305         * m4/lchown.m4: New file.
134307         * m4/Makefile.am.in: New file.
134308         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
134310 1998-05-14  Jim Meyering  <meyering@ascend.com>
134312         * m4/Makefile.am (EXTRA_DIST): Add them.
134313         * m4/jm-macros.m4: New file.
134314         * m4/utimbuf.m4: New file.
134316 1998-05-12  Jim Meyering  <meyering@ascend.com>
134318         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
134320 1998-05-11  Jim Meyering  <meyering@ascend.com>
134322         * m4/isc-posix.m4: New file.
134324 1998-05-10  Jim Meyering  <meyering@ascend.com>
134326         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
134328 1998-05-09  Jim Meyering  <meyering@ascend.com>
134330         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
134331         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
134332         with automake.
134334         * m4/ssize_t.m4: New file.
134335         * m4/mktime.m4: Remove file -- the new automake has this now.
134337 1998-04-26  Jim Meyering  <meyering@ascend.com>
134339         * m4/assert.m4: New file.
134340         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
134342 1998-04-05  Jim Meyering  <meyering@ascend.com>
134344         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
134345         (jm_PREREQ): Use it here.
134347 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
134349         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
134350         in acconfig.h.
134352 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
134354         * m4/prereq.m4: New file.
134355         * m4/error.m4: New file.
134356         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
134358 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
134360         * m4/getline.m4: Don't set am_cv_func_working_getline before the
134361         cache-check for the same variable -- that defeated the purpose of
134362         the test; the test program was never run.  This was a problem only
134363         on systems with losing getline functions -- HP-UX 10.20 is one.
134364         Reported by Bjorn Helgaas.
134366 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
134368         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
134370 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
134372         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
134374         * m4/const.m4: New file.  Use an initializer in this declaration
134375         typedef int charset[2]; const charset x;
134376         Reported by Bob Glickstein.
134378 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
134380         * m4/chown.m4: Fix reversed types on -1 args to chown.
134381         From Kaveh Ghazi.
134383 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
134385         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
134386         Add lseek and memchr.
134388         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
134389         T.E.Dickey <dickey@clark.net> said that some older preprocessors
134390         have a 20-character limit on names.
134392 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
134394         * m4/inttypes_h.m4: New file.
134395         * m4/uintmax_t.m4: New file.
134396         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
134399         -----
134401         Local Variables:
134402         coding: utf-8
134403         End:
134405         Copyright (C) 1997-2020 Free Software Foundation, Inc.
134407         Copying and distribution of this file, with or without
134408         modification, are permitted provided the copyright notice
134409         and this notice are preserved.